Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat: annotate schema options with added keywords - #21473

#21473
Merged
bjohansebas merged 5 commits into
webpack:mainwebpack/webpack:mainfrom
bjohansebas:feat/schema-since-default-annotationsbjohansebas/webpack:feat/schema-since-default-annotationsCopy head branch name to clipboard
Jul 28, 2026
Merged

feat: annotate schema options with added keywords#21473
bjohansebas merged 5 commits into
webpack:mainwebpack/webpack:mainfrom
bjohansebas:feat/schema-since-default-annotationsbjohansebas/webpack:feat/schema-since-default-annotationsCopy head branch name to clipboard

Conversation

@bjohansebas

@bjohansebas bjohansebas commented Jul 22, 2026

Copy link
Copy Markdown
Member

Summary

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?

Use of AI


Note

Low Risk
Documentation and generated types only; no runtime behavior or config validation changes beyond stripping doc-only schema keywords.

Overview
Adds version metadata to webpack’s public TypeScript surface so IDEs and docs can show when options and hooks were introduced.

Schema entries gain an "added": "<version>" keyword (and existing experimental is documented in AGENTS.md); tooling v1.27.0 turns those into @since (and @experimental) on generated WebpackOptions declarations. Many newer options (resource hints, HTML output, CSS parsers, etc.) are tagged 5.109.0 where appropriate; experiments.* now carry @since for their original release versions.

Plugin hooks are refactored to createCompilationHooks() factories with inline @since on each hook (e.g. HtmlModulesPlugin, JavascriptModulesPlugin, NormalModule, Compiler, Compilation), and getCompilationHooks return types are inlined in types.d.ts so hook versions appear on the public API.

Reviewed by Cursor Bugbot for commit 9018e85. Bugbot is set up for automated code reviews on this repo. Configure here.

Copilot AI review requested due to automatic review settings July 22, 2026 00:22
@changeset-bot

changeset-bot Bot commented Jul 22, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9018e85

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@bjohansebas
bjohansebas force-pushed the feat/schema-since-default-annotations branch from 59e6563 to 27fa1ab Compare July 22, 2026 00:26
Copilot AI review requested due to automatic review settings July 22, 2026 00:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@codspeed-hq

codspeed-hq Bot commented Jul 22, 2026

Copy link
Copy Markdown

Merging this PR will regress 1 benchmark

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 1 improved benchmark
❌ 1 regressed benchmark
✅ 214 untouched benchmarks

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Memory benchmark "many-modules-esm", scenario '{"name":"mode-production","mode":"production"}' 7.5 MB 9.9 MB -24.25%
Memory benchmark "devtool-eval", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}' 3.1 MB 1.3 MB ×2.4

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing bjohansebas:feat/schema-since-default-annotations (9018e85) with main (ec39088)

Open in CodSpeed

@codecov

codecov Bot commented Jul 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.30769% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.80%. Comparing base (ec39088) to head (9018e85).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
lib/NormalModule.js 85.71% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #21473      +/-   ##
==========================================
+ Coverage   93.78%   93.80%   +0.01%     
==========================================
  Files         620      620              
  Lines       73330    73324       -6     
  Branches    21203    21203              
==========================================
+ Hits        68771    68779       +8     
+ Misses       4559     4545      -14     
Flag Coverage Δ
css-parsing 25.59% <77.27%> (-0.01%) ⬇️
html5lib 27.02% <76.19%> (-0.01%) ⬇️
integration 89.61% <92.30%> (+0.01%) ⬆️
test262 43.37% <81.81%> (+0.02%) ⬆️
unit 47.22% <82.60%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI review requested due to automatic review settings July 22, 2026 01:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings July 22, 2026 01:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@bjohansebas
bjohansebas force-pushed the feat/schema-since-default-annotations branch from 4b49a3a to 8db43f6 Compare July 22, 2026 01:51
Copilot AI review requested due to automatic review settings July 22, 2026 01:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@alexander-akait alexander-akait left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea with @ since, let’s avoid default from here, I want to discuss about it and have ideas

Copilot AI review requested due to automatic review settings July 22, 2026 18:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings July 25, 2026 21:32
@bjohansebas
bjohansebas force-pushed the feat/schema-since-default-annotations branch from 7c619f4 to e48b158 Compare July 25, 2026 21:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@bjohansebas bjohansebas changed the title feat: annotate schema options with added and default keywords feat: annotate schema options with added keywords Jul 26, 2026
@bjohansebas
bjohansebas force-pushed the feat/schema-since-default-annotations branch from e48b158 to 9018e85 Compare July 27, 2026 23:01
@bjohansebas
bjohansebas merged commit 774e7e4 into webpack:main Jul 28, 2026
61 of 62 checks passed
@bjohansebas
bjohansebas deleted the feat/schema-since-default-annotations branch July 28, 2026 15:27
@github-actions

Copy link
Copy Markdown
Contributor

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

Install it locally:

  • npm
npm i -D webpack@https://pkg.pr.new/webpack@774e7e4
  • yarn
yarn add -D webpack@https://pkg.pr.new/webpack@774e7e4
  • pnpm
pnpm add -D webpack@https://pkg.pr.new/webpack@774e7e4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.