GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: implement deprecate flag to schema by bjohansebas · Pull Request #20432 · webpack/webpack

Conversation

@bjohansebas

@bjohansebas bjohansebas commented Feb 8, 2026

Copy link
Copy Markdown
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
@changeset-bot

changeset-bot Bot commented Feb 8, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0cfe89f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
webpack Patch

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

alexander-akait
alexander-akait reviewed Feb 8, 2026
View reviewed changes

@alexander-akait alexander-akait left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for 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.

Uh oh!

There was an error while loading. Please reload this page.

bjohansebas reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
bjohansebas
bjohansebas commented Feb 8, 2026
View reviewed changes
Comment thread package.json Outdated
"tinybench": "^5.0.0",
"toml": "^3.0.0",
"tooling": "webpack/tooling#v1.24.5",
"tooling": "bjohansebas/tooling-webpack#deprecated-linter",

@bjohansebas bjohansebas Feb 8, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for 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.

Uh oh!

There was an error while loading. Please reload this page.

alexander-akait reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
bjohansebas added 2 commits February 8, 2026 19:04
@bjohansebas
feat: implement deprecate flag to schema
013a555
@bjohansebas
feat: s chema linter
10f3f00
@bjohansebas
bjohansebas force-pushed the deprecated-options branch from 7ba69a4 to 10f3f00 Compare February 8, 2026 19:05
@codspeed

codspeed Bot commented Feb 8, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Merging this PR will degrade performance by 24.63%

⚡ 3 improved benchmarks
❌ 2 regressed benchmarks
✅ 139 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
⚡ Memory benchmark "css-modules", scenario '{"name":"mode-production","mode":"production"}' 10.6 MB 8 MB +32.48%
❌ Memory benchmark "many-chunks-esm", scenario '{"name":"mode-production","mode":"production"}' 7.4 MB 9.8 MB -24.63%
⚡ Memory benchmark "lodash", scenario '{"name":"mode-development","mode":"development"}' 5.3 MB 4.1 MB +29.36%
❌ Memory benchmark "devtool-eval-source-map", scenario '{"name":"mode-production","mode":"production"}' 6.2 MB 7.8 MB -20.76%
⚡ Memory benchmark "many-chunks-commonjs", scenario '{"name":"mode-production","mode":"production"}' 9.8 MB 7.9 MB +24.92%

Comparing bjohansebas:deprecated-options (0cfe89f) with main (3da7560)

Open in CodSpeed
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bjohansebas
fixup!
be664af
alexander-akait
alexander-akait reviewed Feb 23, 2026
View reviewed changes

@alexander-akait alexander-akait left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for 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.

Uh oh!

There was an error while loading. Please reload this page.

bjohansebas reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@bjohansebas
feat: generate @deprecated tag
20773f1
@bjohansebas bjohansebas mentioned this pull request Mar 1, 2026
feat: support deprecated on schema webpack/tooling#33
Merged
bjohansebas added 5 commits March 1, 2026 01:14
@bjohansebas
Merge branch 'main' of github.com:webpack/webpack into deprecated-opt…
a7aecbe
…ions
@bjohansebas
fixup!
37a34c4
@bjohansebas
feat: add deprecated on jsdocs
7972bf5
@bjohansebas
fixup!
f40aa71
@bjohansebas
docs
a2ccd54
@alexander-akait

alexander-akait commented Mar 3, 2026

Copy link
Copy Markdown
Member

@bjohansebas Released - https://github.com/webpack/tooling/releases/tag/v1.25.0, feel free to switch on our original tooling

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alexander-akait

alexander-akait commented Mar 5, 2026

Copy link
Copy Markdown
Member

@bjohansebas I updated tooling and add more @depreacted for methods, feel free to rebase and we can merge, here patterns we can't handle:

/**
 * @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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bjohansebas added 2 commits March 6, 2026 16:01
@bjohansebas
fix: update tooling dependency to version 1.25.0
3aa565d
@bjohansebas
Merge branch 'main' of https://github.com/webpack/webpack into deprec…
0cfe89f
…ated-options
@bjohansebas
bjohansebas marked this pull request as ready for review March 6, 2026 16:07
@bjohansebas

bjohansebas commented Mar 6, 2026

Copy link
Copy Markdown
Member Author

Okay, I’ll review it for a future PR. I’ve already pulled the changes from main.

alexander-akait reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

alexander-akait
alexander-akait approved these changes Mar 6, 2026
View reviewed changes
@alexander-akait
alexander-akait merged commit d6927b4 into webpack:main Mar 6, 2026
54 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@alexander-akait

alexander-akait commented Mar 6, 2026

Copy link
Copy Markdown
Member

Thanks

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

This PR is packaged and the instant preview is available (d6927b4).

Install it locally:

  • npm
npm i -D webpack@https://pkg.pr.new/webpack@d6927b4
  • yarn
yarn add -D webpack@https://pkg.pr.new/webpack@d6927b4
  • pnpm
pnpm add -D webpack@https://pkg.pr.new/webpack@d6927b4
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot mentioned this pull request Mar 6, 2026
chore(release): new release #20593
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@alexander-akait alexander-akait alexander-akait approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@bjohansebas @alexander-akait
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.