GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat: implement deprecate flag to schema by bjohansebas · Pull Request #20432 · webpack/webpack Conversation
Member
Summary As discussed on Discord, so that the autogenerated documentation can show that a certain property is deprecated. What kind of change does this PR introduce? Did you add tests for your changes? Does this PR introduce a breaking change? If relevant, what needs to be documented once your changes are merged or what have you already documented?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
🦋 Changeset detectedLatest commit: 0cfe89f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Looks good, we need to improve our types generator to generate @deprecated
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| "tinybench": "^5.0.0", | ||
| "toml": "^3.0.0", | ||
| "tooling": "webpack/tooling#v1.24.5", | ||
| "tooling": "bjohansebas/tooling-webpack#deprecated-linter", |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It’s just for testing :), once it works I’ll send the PR to tooling.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
7ba69a4 to
10f3f00
Compare
There was an error while loading. Please reload this page.
Merging this PR will degrade performance by 24.63%
Performance Changes
Comparing |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Hm, I think we need to add @deprecated to your types too
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@bjohansebas Released - https://github.com/webpack/tooling/releases/tag/v1.25.0, feel free to switch on our original tooling |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@bjohansebas I updated tooling and add more /** * @deprecated Use the `readResource` hook instead. * @typedef {HookMap<FakeHook<AsyncSeriesBailHook<[string, NormalModule], string | Buffer | null>>>} DeprecatedReadResourceForScheme */ /** * @typedef {object} NormalModuleCompilationHooks * @property {SyncHook<[AnyLoaderContext, NormalModule]>} loader * @property {SyncHook<[LoaderItem[], NormalModule, AnyLoaderContext]>} beforeLoaders * @property {SyncHook<[NormalModule]>} beforeParse * @property {SyncHook<[NormalModule]>} beforeSnapshot * @property {DeprecatedReadResourceForScheme} readResourceForScheme * @property {HookMap<AsyncSeriesBailHook<[AnyLoaderContext], string | Buffer | null>>} readResource * @property {SyncWaterfallHook<[Result, NormalModule]>} processResult * @property {AsyncSeriesBailHook<[NormalModule, NeedBuildContext], boolean>} needBuild */ // TODO remove in webpack 6 Object.defineProperty(Module.prototype, "used", { /** * @deprecated * @returns {EXPECTED_ANY} throw an error */ get() { throw new Error( "Module.used was refactored (use ModuleGraph.getUsedExports instead)" ); }, /** * @param {EXPECTED_ANY} value value */ set(value) { throw new Error( "Module.used was refactored (use ModuleGraph.setUsedExports instead)" ); } }); don't look deeply why it doesn't work, but will be great to handle them too |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Okay, I’ll review it for a future PR. I’ve already pulled the changes from |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thanks |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This PR is packaged and the instant preview is available (d6927b4). Install it locally:
npm i -D webpack@https://pkg.pr.new/webpack@d6927b4
yarn add -D webpack@https://pkg.pr.new/webpack@d6927b4
pnpm add -D webpack@https://pkg.pr.new/webpack@d6927b4 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.