instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
webpack__css-loader__917
webpack/css-loader
917
defect
e5dfd23d14597b1e44c6c2706af6507fd9a4930e
1f42f0e762503eb69a9f9c8761778daca5d6c46c
fix: avoid all escaped characters replaced
<!-- HOLY CRAP a Pull Request. We ❤️ those! If you remove or skip this template, you'll make the 🐼 sad and the mighty god of Github will appear and pile-drive the close button from a great height while making animal noises. Please place an x (no spaces!) in all [ ] that apply --> This PR contain...
diff --git a/src/utils.js b/src/utils.js index c647dc82..a3ca0fec 100644 --- a/src/utils.js +++ b/src/utils.js @@ -89,7 +89,8 @@ function getLocalIdent(loaderContext, localIdentName, localName, options) { ); return hash - .replace(new RegExp('[^a-zA-Z0-9\\-_\u00A0-\uFFFF]', 'g'), '-') + .replace(/\\@/g, '...
2
2
1
[{"id": "G0", "claim": "The fix should avoid replacing all escaped characters, not only `@`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a newline at the end of test/fixtures/modules/localIdentName.css (and set up prettier for that).", "categ...
null
webpack__enhanced-resolve__186
webpack/enhanced-resolve
186
defect
0dc73647790867e25f7fdebc282a04e2bac4f2ab
acdd12a46d7f9e8eeafd952ec3b9401196c8db55
Linting with typescript
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> <!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> <!-- Try to link to an open issue for more information. --> https://github.com...
diff --git a/lib/Resolver.js b/lib/Resolver.js index 43918371..c06c3ee9 100644 --- a/lib/Resolver.js +++ b/lib/Resolver.js @@ -123,6 +123,9 @@ class Resolver { }; const finishWithoutResolve = log => { + /** + * @type {Error & {details?: string}} + */ const error = new Error("Can't " + message); ...
4
4
0
[{"id": "G0", "claim": "The `pretravis` script should stay `\"yarn lint\"` instead of the added `\"yarn lint && yarn types\"`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The type check should be folded into the `lint` script as `eslint lib test && ts...
null
webpack__enhanced-resolve__204
webpack/enhanced-resolve
204
defect
95a59e3facb5b1f0e5f72a2d19e4fb6e7cf8816c
c1989498b53d53bc5b08cf1cbd4ce22231ff0b7c
make trailing slash module path resolve correctly
Fixes [#8889](https://github.com/webpack/webpack/issues/8889)
diff --git a/lib/Resolver.js b/lib/Resolver.js index f191b303..7be4e5f6 100644 --- a/lib/Resolver.js +++ b/lib/Resolver.js @@ -273,7 +273,7 @@ class Resolver { if (part.request) { part.module = this.isModule(part.request); part.directory = this.isDirectory(part.request); - if (part.directory) { + if (par...
1
1
1
[{"id": "G0", "claim": "Tests should be added for the pull request's change to trailing-slash module path resolution, which currently ships with no test coverage.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
webpack__enhanced-resolve__218
webpack/enhanced-resolve
218
defect
9fbb50d4f335a9cf413c98b85ee59a9b651fb974
015fad7d1bb7da2c4d2858b2e2d3def08fa4d8bb
exportsFields option
- improve docs - support exportsFields configuration param
diff --git a/README.md b/README.md index 2055340a..76ca2440 100644 --- a/README.md +++ b/README.md @@ -81,9 +81,11 @@ myResolver.resolve({}, lookupStartPath, request, resolveContext, ( | alias | [] | A list of module alias configurations or an object which maps key to value ...
2
2
2
[{"id": "G0", "claim": "enhanced-resolve acts as the node.js resolver when used standalone, so the README (and lib/index.js) should document \"node\" as the default conditionNames.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "ResolverFactory shoul...
null
webpack__enhanced-resolve__219
webpack/enhanced-resolve
219
defect
122e5126fdc147753a28bd1c14ddb53638b3a743
38d63b220096d2d54f63526056804893257a488f
Refactor array options to set
I did refactoring also for options with `string|string[]`, I think this is useful too since mostly only strings will be used
diff --git a/lib/DescriptionFilePlugin.js b/lib/DescriptionFilePlugin.js index 9f7e176c..4d9e0d2f 100644 --- a/lib/DescriptionFilePlugin.js +++ b/lib/DescriptionFilePlugin.js @@ -13,13 +13,13 @@ const DescriptionFileUtils = require("./DescriptionFileUtils"); module.exports = class DescriptionFilePlugin { /** * @p...
4
4
2
[{"id": "G0", "claim": "The cast `/** @type {string} */ (content)` is not correct because the content can be a Buffer too; call `.toString()` so it works for both Buffer and string.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The typedef should b...
null
webpack__enhanced-resolve__225
webpack/enhanced-resolve
225
defect
cf930fea3f3c95792e55b206e1477a8bb15fbaa1
22a42679ef26a3a5aa29f5d2177d1e165afac85c
support query in ExportsFieldPlugin
- add exports field test cases - add types export
diff --git a/lib/ExportsFieldPlugin.js b/lib/ExportsFieldPlugin.js index 11aa36a6..780c5def 100644 --- a/lib/ExportsFieldPlugin.js +++ b/lib/ExportsFieldPlugin.js @@ -47,7 +47,9 @@ module.exports = class ExportsFieldPlugin { // (There is no description file inside of this package) if (request.relativePath !==...
3
3
2
[{"id": "G0", "claim": "The `if (remainingRequest === undefined) return callback();` check should be moved one line up (before the new query-appending ternary) to keep the expected behavior, since computing remainingRequest from an undefined request.request would no longer early-return as before.", "category": "correct...
null
webpack__enhanced-resolve__240
webpack/enhanced-resolve
240
defect
84761ba8806fe7fb26e82f6b3b953f91045a79ef
029d3e2ce802ef5181355bf64f14f6d0d819ed66
fix #238
fixes #238
diff --git a/lib/ConditionalPlugin.js b/lib/ConditionalPlugin.js index 3dfaebd5..ebcec62d 100644 --- a/lib/ConditionalPlugin.js +++ b/lib/ConditionalPlugin.js @@ -12,7 +12,7 @@ module.exports = class ConditionalPlugin { /** * @param {string | ResolveStepHook} source source - * @param {Partial<Record<keyof Resolv...
1
1
0
[{"id": "G0", "claim": "The unneeded comment headers in the tests should be removed (the '// not found in modules directories' and '// missing single file modules' lines in test/dependencies.js, via empty suggestion blocks and the request to remove the unneeded headers).", "category": "maintainability", "verdict": "sup...
null
webpack__enhanced-resolve__301
webpack/enhanced-resolve
301
defect
60d79f3c93304ce5ecbbe0127aa583d4a73bf1a1
05d77ef3dbb294aac22dd50565ed69d89f0b9c95
fix: find the `pnpapi` the `issuer` belongs to
**What's the problem this PR addresses?** - In some cases `enhanced-resolve` is outside the control of the `pnpapi` and can't require it - The `issuer` might not belong to the same `pnpapi` as `enhanced-resolve` - The `issuer` might not belong to a `pnpapi` at all and should use the `node_modules` resolution inste...
diff --git a/lib/PnpPlugin.js b/lib/PnpPlugin.js index cecb7ddc..1ac7bc29 100644 --- a/lib/PnpPlugin.js +++ b/lib/PnpPlugin.js @@ -9,7 +9,7 @@ /** @typedef {import("./Resolver").ResolveStepHook} ResolveStepHook */ /** * @typedef {Object} PnpApiImpl - * @property {function(string, string, object): string} resolveToU...
10
2
1
[{"id": "G0", "claim": "When the PnP api returns null for the issuer, the plugin's bare callback() stops resolution at webpack's ConditionalPlugin instead of continuing with the alternatives, so the FIXME should be fixed before this is merged.", "category": "correctness", "verdict": "supported", "priority": "P1", "scop...
null
webpack__enhanced-resolve__331
webpack/enhanced-resolve
331
defect
b6468e041ddd63b964e70871d0f23ddc2eeb8690
95ef5e9630fc5289c9c6089191c4e6b87114c396
fix yield
- handle in ignore for AliasPlugin - handle in ignore for AliasFieldPlugin - handle for unsafe cache - handle yield for custom plugins - use real fs in yield tests - add tests for AliasField and Alias in yield
diff --git a/lib/AliasFieldPlugin.js b/lib/AliasFieldPlugin.js index c387db0b..4699431d 100644 --- a/lib/AliasFieldPlugin.js +++ b/lib/AliasFieldPlugin.js @@ -60,6 +60,10 @@ module.exports = class AliasFieldPlugin { ...request, path: false }; + if (typeof resolveContext.yield === "function") { +...
2
2
2
[{"id": "G0", "claim": "The UnsafeCachePlugin has a bug: the cache must record whether an entry was produced by a `yield` resolve or a `default` resolve, probably by updating the cache id.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The special h...
null
webpack__enhanced-resolve__337
webpack/enhanced-resolve
337
defect
c960801d5cfbb6a472e40a7fe8f6c0679955a13b
4f01ac2f9ae241a2ee9e844d4798b9b6ba134a02
fix hash aliases
fixes #334
diff --git a/lib/AliasPlugin.js b/lib/AliasPlugin.js index ee42952b..495abcb4 100644 --- a/lib/AliasPlugin.js +++ b/lib/AliasPlugin.js @@ -6,6 +6,7 @@ "use strict"; const forEachBail = require("./forEachBail"); +const { PathType, getType } = require("./util/path"); /** @typedef {import("./Resolver")} Resolver */...
2
2
1
[{"id": "G0", "claim": "Add a test case below exercising the newly added \"#\" and \"@\" alias configurations.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The cache added in AliasPlugin.apply looks like overkill and should be removed.", "category": "...
null
webpack__enhanced-resolve__340
webpack/enhanced-resolve
340
defect
c960801d5cfbb6a472e40a7fe8f6c0679955a13b
b16c35c1441fbfc6544a0c0c4642a03dd339d7ad
use only alias field properties
prevent checking object prototype properties fixes #118
diff --git a/lib/AliasFieldPlugin.js b/lib/AliasFieldPlugin.js index 4699431d..274a2eb5 100644 --- a/lib/AliasFieldPlugin.js +++ b/lib/AliasFieldPlugin.js @@ -49,9 +49,17 @@ module.exports = class AliasFieldPlugin { ); return callback(); } - const data1 = fieldData[innerRequest]; - const data2 =...
1
1
1
[{"id": "G0", "claim": "In lib/AliasFieldPlugin.js the second fallback should use innerRequest.startsWith(\"./\") and fieldData[innerRequest.slice(2)] instead of a hasOwnProperty check on innerRequest.replace(/^\\.\\//, \"\"), so that only alias field properties (and not implicit string keys like \"toString\") are cons...
null
webpack__less-loader__15
webpack/less-loader
15
defect
f8f075a55cda1c0fd087d996d04e80db109a8ee8
3174e3dd09200c104cdcdee7413eeac3a78e86f7
Added advanced tests regarding imports
This pull-request just adds advanced tests to check for the correct import behavior of the less-loader. Since less provides various ways to import a less-file we should check if the less-loader generates the correct output. Additionally I've added a little script to easily generate reference css-files located under `t...
diff --git a/README.md b/README.md index 2a742c1c..e39ec365 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,60 @@ module.exports = { Then you only need to write: `require("./file.less")` +## Note on imports + +webpack provides an [advanced mechanism to resolve files](http://webpack.github.io/docs/resolvin...
1
1
1
[{"id": "G0", "claim": "The README's new chapter on importing css files is wrong: in the default `style!css!less` case the css-loader resolves the import, so `@import \"~css/module.css\"` yielding itself is expected, and the real difference of `@import (less) \"css\"` is that rules in the css can be referenced in the l...
null
webpack__less-loader__17
webpack/less-loader
17
defect
d959275159c33d2688eaec4be0d0b34c30c85432
8e6de701788827aafe32797bca1d8694f88efa97
Improve error messages on less render errors
They now include the actual `.less` file which caused the error, along with the correct line number and other helpful things: ``` $ webpack … Module build failed: .btn is undefined @ …/style.less (line 31, column 6) near lines: .table-message { .btn; text-transform: none; @ ./akindi/style/s...
diff --git a/index.js b/index.js index 96343fa0..51722c0b 100644 --- a/index.js +++ b/index.js @@ -10,11 +10,35 @@ var loaderUtils = require("loader-utils"); var backslash = /\\/g; var trailingSlash = /[\\\/]$/; -function formatLessError(e, filename) { +function formatLessLoaderError(e, filename) { return new Err...
3
2
2
[{"id": "G0", "claim": "formatLessRenderError should return an Error object rather than a plain object with a message.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "formatLessRenderError should leave the stack intact and add a hideStack: true property i...
null
webpack__less-loader__318
webpack/less-loader
318
defect
f0b42b4e64dceed0bbb2557c0d88d1c36fe3e553
75714116f25282b3a65d074ac20576bb9aa43178
feat: move less-specific options to lessOptions
This PR contains a: - [ ] **bugfix** - [X] new **feature** - [X] **code refactor** - [X] **test update** <!-- if bug or feature is checked, this should be too --> - [ ] **typo fix** - [ ] **metadata update** ### Motivation / Use-Case Move less-specific options over to `lessOptions`, in parity with what `s...
diff --git a/README.md b/README.md index 7a504af2..70266f30 100644 --- a/README.md +++ b/README.md @@ -43,15 +43,11 @@ module.exports = { And run `webpack` via your preferred method. -The `less-loader` requires [less](https://github.com/less/less.js) as [`peerDependency`](https://docs.npmjs.com/files/package.json#...
2
2
1
[{"id": "G0", "claim": "Move the inline less-options building code in src/index.js into a separate `getLessOptions` module, as sass-loader does with `getSassOptions`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `sourceMap` option should a...
null
webpack__mini-css-extract-plugin__1016
webpack/mini-css-extract-plugin
1,016
defect
5ffd85873f96239b2c8a512321ab3a18edd3bf1a
08032b13c939f13d80f6e73730d6fd3f6238b90a
fix: avoid to throw error when link doesn't have parentNode
<!-- HOLY CRAP a Pull Request. We ❤️ those! If you remove or skip this template, you'll make the 🐼 sad and the mighty god of Github will appear and pile-drive the close button from a great height while making animal noises. Please place an x (no spaces!) in all [ ] that apply --> This PR contain...
diff --git a/src/index.js b/src/index.js index d89d4fa9..28c811c6 100644 --- a/src/index.js +++ b/src/index.js @@ -862,7 +862,7 @@ class MiniCssExtractPlugin { 'err.code = "CSS_CHUNK_LOAD_FAILED";', "err.type = errorType;", "err.request = realHref;", - ...
2
2
1
[{"id": "G0", "claim": "Add a space after `if` in the added `if(linkTag.parentNode)` guard string in src/index.js.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The OLD API tests workflow is failing on this pull request and the author should check and fi...
null
webpack__mini-css-extract-plugin__1054
webpack/mini-css-extract-plugin
1,054
defect
d5e540baf8280442e523530ebbbe31c57a4c4336
b86ed75c1926f71fc9e0f634acc68eaa0f04950a
feat: add beforeTagInsert hook
<!-- HOLY CRAP a Pull Request. We ❤️ those! If you remove or skip this template, you'll make the 🐼 sad and the mighty god of Github will appear and pile-drive the close button from a great height while making animal noises. Please place an x (no spaces!) in all [ ] that apply --> This PR contain...
diff --git a/.cspell.json b/.cspell.json index 40c8d65e0..89d901e52 100644 --- a/.cspell.json +++ b/.cspell.json @@ -30,7 +30,8 @@ "vspace", "commitlint", "unreload", - "cnfg" + "cnfg", + "tapable" ], "ignorePaths": [ diff --git a/package-lock.json b/package-lock.json index 0d2a842a9..ca...
3
1
0
[{"id": "G0", "claim": "The hooks module's getHooks/createHooks functions should be exposed as static methods (on the MiniCssExtractPlugin class).", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The added `.filter((statement) => statement !== undefined)` ...
null
webpack__mini-css-extract-plugin__194
webpack/mini-css-extract-plugin
194
defect
eff04a83ff7cdcbc88b282b42977bea05e782ba0
34f801a6c69b730690ba5453e8f7bc8e31e177ce
fix: conflict multiple asset error
<!-- HOLY CRAP a Pull Request. We ❤️ those! If you remove or skip this template, you'll make the 🐼 sad and the mighty god of Github will appear and pile-drive the close button from a great height while making animal noises. Please place an x (no spaces!) in all [ ] that apply --> This PR contain...
diff --git a/src/index.js b/src/index.js index bd4a0647..ccdab505 100644 --- a/src/index.js +++ b/src/index.js @@ -175,7 +175,7 @@ class MiniCssExtractPlugin { chunk, contentHashType: NS, }, - identifier: `${pluginName}.${chunk.id}`, + identifie...
2
2
2
[{"id": "G0", "claim": "The pull request's change should be covered by a test case before it is merged.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The original code isn't wrong — two chunks producing the same file is acceptable when the hash matches...
null
webpack__mini-css-extract-plugin__284
webpack/mini-css-extract-plugin
284
defect
aa993daa12a45a326abcdd4f19dcba76db35ed8a
860ba4abf6ca02b231108d1163749b334c2711d9
fix(index): assign empty `module.id` to prevent `contenthash` from changing unnecessarily
Content hashes change when the entries order or length changes - Checks sourceMap before `JSON.stringify`, because it outputs `""` on an empty string, modifying the hash unnecessarily. **Reproduction**: https://github.com/lfre/mini-css-extract-plugin-contenthash ### Type - [x] Fix ### Issues - Fixes ...
diff --git a/src/index.js b/src/index.js index 57d915d6..49d458ff 100644 --- a/src/index.js +++ b/src/index.js @@ -42,6 +42,7 @@ class CssDependencyTemplate { class CssModule extends webpack.Module { constructor(dependency) { super(MODULE_TYPE, dependency.context); + this.id = ''; this._identifier = de...
3
1
1
[{"id": "G0", "claim": "Sokra questions why the duplicate expected fixture 7bb844e9f5514d392e40.css was removed by this pull request.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "alexander-akait observes that the tests still look broken on this pull...
null
webpack__mini-css-extract-plugin__292
webpack/mini-css-extract-plugin
292
defect
770e28da5426b9a00e5e56000f53f67327d14b0d
a6f47e122f186d24cd9e6079ab55a045c128e1a1
fix(index): update to allow requesting failed async css files
<!-- HOLY CRAP a Pull Request. We ❤️ those! If you remove or skip this template, you'll make the 🐼 sad and the mighty god of Github will appear and pile-drive the close button from a great height while making animal noises. Please place an x (no spaces!) in all [ ] that apply --> This PR contain...
diff --git a/src/index.js b/src/index.js index 49d458ff5..f6905f758 100644 --- a/src/index.js +++ b/src/index.js @@ -334,22 +334,6 @@ class MiniCssExtractPlugin { Template.indent([ `var href = ${linkHrefPath};`, `var fullhref = ${mainTemplate.requireFn}.p + href;`,...
3
3
3
[{"id": "G0", "claim": "Removing the existing link/style tag deduplication code is a breaking change that will add style tags twice (e.g. under SSR) and break rule order, so it should not be removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
webpack__mini-css-extract-plugin__384
webpack/mini-css-extract-plugin
384
defect
b0a0355d3815d84d5125577d95d96c0367e62d3e
1c789fb2383d8c23e02ce103c75905833249edd2
fix(loader): fix publicPath regression
... when the publicPath is set to an empty string. The publicPath should resolve to an empty string in this case and _not_ `/`. <!-- HOLY CRAP a Pull Request. We ❤️ those! If you remove or skip this template, you'll make the 🐼 sad and the mighty god of Github will appear and pile-drive the close button f...
diff --git a/src/loader.js b/src/loader.js index 04181c42..a91dd787 100644 --- a/src/loader.js +++ b/src/loader.js @@ -68,7 +68,7 @@ export function pitch(request) { const childFilename = '*'; // eslint-disable-line no-path-concat const publicPath = typeof options.publicPath === 'string' - ? options.pub...
1
1
1
[{"id": "G0", "claim": "Add tests covering the pull request's changed behaviour (publicPath set to an empty string).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
webpack__mini-css-extract-plugin__422
webpack/mini-css-extract-plugin
422
defect
392c4ae68c9384230d6652e7fee277a702deacd7
0b980381f72f1e9cefef67b61264ed4a36688a30
feat: Add ignoreOrder flag
<!-- HOLY CRAP a Pull Request. We ❤️ those! If you remove or skip this template, you'll make the 🐼 sad and the mighty god of Github will appear and pile-drive the close button from a great height while making animal noises. Please place an x (no spaces!) in all [ ] that apply --> This PR contain...
diff --git a/README.md b/README.md index 74d1d293..ad15240e 100644 --- a/README.md +++ b/README.md @@ -51,9 +51,10 @@ module.exports = { plugins: [ new MiniCssExtractPlugin({ // Options similar to the same options in webpackOptions.output - // both options are optional + // all options are opti...
1
1
1
[{"id": "G0", "claim": "Please add a test with `ignoreOrder: false`.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
webpack__mini-css-extract-plugin__59
webpack/mini-css-extract-plugin
59
defect
86adece9e6da3e3646c6a69a6ba4021a34298e3d
726b3a4631bc260fce74d361490ab87a85e5b97e
add support for webpack's new contenthash support
fixes #1
diff --git a/README.md b/README.md index 87c73feb..d1a6fca2 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,11 @@ When inlining CSS `data-href` must be used. <tbody> </table> +#### Long Term Caching + +For long term caching use `filename: "[contenthash].css"`. Optionally add `[name]`. + + [npm]: https://img....
1
1
0
[{"id": "G0", "claim": "The code should use `.slice` or `.substring` instead of the Annex B `.substr` method.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
webpack__sass-loader__1245
webpack/sass-loader
1,245
defect
eda85050d046c6544b5ecc2313e314ed823962f7
ad5b19389a1cfc093288ca04a83d2e2cdddd0e29
fix(modern-compiler): dispose redundant compilers
This PR contains a: - [x] **bugfix** - [ ] new **feature** - [ ] **code refactor** - [ ] **test update** - [ ] **typo fix** - [ ] **metadata update** idk how to cover this by tests ### Motivation / Use-Case fixes #1244 ### Breaking Changes No ### Additional Info No
diff --git a/src/utils.js b/src/utils.js index 76d22b36..4ea78ce6 100644 --- a/src/utils.js +++ b/src/utils.js @@ -768,6 +768,8 @@ function getCompileFn(loaderContext, implementation, apiType) { webpackCompiler.hooks.shutdown.tap("sass-loader", () => { compiler.dispose(); ...
1
1
1
[{"id": "G0", "claim": "The new dispose branch appears untested and coverage is failing, so a test for it should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
webpack__sass-loader__573
webpack/sass-loader
573
defect
437450fb782308270c12a794fe5ca202de2930a7
00ba1bd036d4ce873f6384f458caca97195b038e
Make this package implementation-agnostic
Rather than always loading Node Sass, this now requires users to pass in either Dart Sass or Node Sass as an option to the loader. Closes #435
diff --git a/CHANGELOG.md b/CHANGELOG.md index 117c19b7..62c5f4ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,38 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +<a name="8....
16
10
4
[{"id": "G0", "claim": "Remove the 8.0.0 CHANGELOG entry this PR adds; that entry should be written just before release instead.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "sass-loader should not take a Sass implementation option at all; it sho...
null
webpack__webpack-bundle-analyzer__323
webpack/webpack-bundle-analyzer
323
defect
f49796fbb6cada3749cabda574bc25dfa3fdd480
0cbd05e93fde2834d893aba060ce130b4edfca06
Allow self for globalObject in async chunks
This PR adds support for `self` as the `globalObject` when searching for async chunks. We use `self` for our client bundles because it supports both browsers and web workers, and we have some libraries that will create workers as child compilations of the client compile. Technically you can pass a lot more in here (as ...
diff --git a/src/parseUtils.js b/src/parseUtils.js index 6e5dee88..b4dfeff2 100644 --- a/src/parseUtils.js +++ b/src/parseUtils.js @@ -185,6 +185,8 @@ function isAsyncChunkPushExpression(node) { callee.object.left.object && ( callee.object.left.object.name === 'window' || + // `self` is a common o...
1
1
0
[{"id": "G0", "claim": "The pull request should add a changelog entry for this change, marked as an Improvement, under the UNRELEASED section similar to previous entries.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
webpack__webpack-bundle-analyzer__345
webpack/webpack-bundle-analyzer
345
defect
06e6b39b309d0eb59ebad0d8db7ef4234dc04673
7ff994b4dd960bd2e28e5ede634cfbe8a0f0923e
add support for node bundle
when webpack config target=node, the modules are store at exports.modules. https://github.com/webpack/webpack/blob/157c457241bf46b1cb31dbb17e806702eb4a0ec5/lib/node/NodeTemplatePlugin.js#L39
diff --git a/CHANGELOG.md b/CHANGELOG.md index e6fd3b07..95fc3796 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,9 @@ _Note: Gaps between patch versions are faulty, broken or test releases._ ## UNRELEASED + * **Improvement** + * Added support for exports.modules when webpack target = node + <!-- Add ...
3
3
1
[{"id": "G0", "claim": "The test fixture filename validNodeBundleWithModulesAsArray.js says the modules are an array but they are in an object, so the WithModulesAsArray part should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
webpack__webpack-bundle-analyzer__390
webpack/webpack-bundle-analyzer
390
defect
ee6c7a9426b6d2ae7a2ce2a798f24036f5b48c0c
ed8d99898b37b84dd3994ed732bdabbd706e83c3
Replace `bfj` module with custom `stats.json` writer
This PR replaces `bfj` module with custom `StatsSerializeStream` class which writes `stats.json` significantly faster (by about 6 times). Tested on 195mb `stats.json` file.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 70ca4ef6..df5970fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,9 @@ _Note: Gaps between patch versions are faulty, broken or test releases._ <!-- Add changelog entries for new changes under this section --> + * **Improvement** + * Significantly speed u...
3
2
0
[{"id": "G0", "claim": "The tests should also assert that special objects (Symbol, Date, RegExp, functions) are not printed, and that stringifying input consisting only of non-stringifiable things returns undefined, like JSON.stringify does.", "category": "testing", "verdict": "opposed", "priority": "P1", "scope": "int...
null
webpack__webpack-bundle-analyzer__505
webpack/webpack-bundle-analyzer
505
defect
7d6039e24e84c6e156a8dea36528a12a554bb714
325fd44cb0b033343b0132ce0a97307aad2415ec
Reduce the usage of lodash
Why do we need lodash if we can utilize features provided by the ECMAScript itself :)
diff --git a/client/components/ModuleItem.jsx b/client/components/ModuleItem.jsx index 4927e212..2dd2c358 100644 --- a/client/components/ModuleItem.jsx +++ b/client/components/ModuleItem.jsx @@ -73,7 +73,8 @@ export default class ModuleItem extends PureComponent { } get invisibleHint() { - return `${_.upperF...
4
4
2
[{"id": "G1", "claim": "The PR should add a changelog entry tagged \"Internal\" describing the lodash reduction.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The new changelog entry should be placed between `## UNRELEASED` and `## 4.9.0`.", "cat...
null
webpack__webpack-bundle-analyzer__520
webpack/webpack-bundle-analyzer
520
defect
7d6039e24e84c6e156a8dea36528a12a554bb714
45b4db76dff3f3b21cea5ae7f9859c60f2cb0f7d
feat: support custom loginfo with server mode
Sometimes,i will set host to be `0.0.0.0`,but i won't console info with `0.0.0.0`.So i need to custom log info and show better info for users.
diff --git a/src/BundleAnalyzerPlugin.js b/src/BundleAnalyzerPlugin.js index 9e5c2842..c1b065fa 100644 --- a/src/BundleAnalyzerPlugin.js +++ b/src/BundleAnalyzerPlugin.js @@ -23,6 +23,7 @@ class BundleAnalyzerPlugin { logLevel: 'info', // deprecated startAnalyzer: true, + logInfo: utils.defaul...
2
2
1
[{"id": "G0", "claim": "The default logInfo option duplicates the hard-coded 'Webpack Bundle Analyzer is started at...' text in src/viewer.js, and the plugin should instead let users override only how the analyzer URL is calculated via an analyzerUrl option with a defaultAnalyzerUrl implementation matching the current ...
null
webpack__webpack-bundle-analyzer__56
webpack/webpack-bundle-analyzer
56
defect
e5b274fe364ca518ce58f748eff643e37e86050f
7be38bf73fd465859a96464a91e6b9c24dc9ff2b
Fix parsing JSONP chunks with entry points for webpack 2
If the JSONP chunk contains modules used as entry points, webpack 2 will tack the entry point module IDs as the third argument to the JSONP function. https://github.com/webpack/webpack/blob/v2.2.1/lib/JsonpChunkTemplatePlugin.js#L19-L21 This fixes #54, at least given the same input I now can generate a valid re...
diff --git a/src/parseUtils.js b/src/parseUtils.js index 4e2b4531..16adbe02 100644 --- a/src/parseUtils.js +++ b/src/parseUtils.js @@ -45,7 +45,7 @@ function parseBundle(bundlePath) { // As function name may be changed with `output.jsonpFunction` option we can't rely on it's default name. if ( ...
2
1
1
[{"id": "G0", "claim": "The parser should also check the structure of the third argument of the webpackJsonp call, verifying it is an array of chunk ids, now that the PR accepts the three-argument form.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
webpack__webpack-bundle-analyzer__609
webpack/webpack-bundle-analyzer
609
defect
e120231d662e29bbd40d885cba017db2417aed71
3780bc4162e9eff2c2ec0b199f041f3ff5aaf9f1
Reduce installation size
The PR follows #505. The PR reduces `node_modules` size after `npm i webpack-bundle-analyzer` with 2 changes: - Replaces `chalk` with `picocolors` - Replaces `lodash` with individual `lodash.*` packages. **Comparison** Running `npm i --omit=dev --omit=optional` against `webpack-contrib/webpack-bundle-analyzer...
diff --git a/client/components/ModuleItem.jsx b/client/components/ModuleItem.jsx index 2dd2c358..5e54bb24 100644 --- a/client/components/ModuleItem.jsx +++ b/client/components/ModuleItem.jsx @@ -1,4 +1,5 @@ -import _ from 'lodash'; +import escapeRegExp from 'escape-string-regexp'; +import escape from 'lodash.escape'; ...
3
3
1
[{"id": "G0", "claim": "Keep the inline documentation comments in getBundleModules (e.g. the note about filtering out Webpack's runtime modules) that removing lodash chains deleted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add more changel...
null
webpack__webpack-dev-server__2303
webpack/webpack-dev-server
2,303
defect
969b5801078e1260b25b1b548a4510ab922740c8
2bc4dd49bb0b175ce1848f1817f8d54c6c7721f6
fix(client): don't override protocol for socket connection to 127.0.0.1
Chrome and Firefox accept `http://`/`ws://` mixed-content connection to `127.0.0.1` even when the actual website is loaded via `https://`. Fixes #2302 - [X] This is a **bugfix** - [X] This is a **feature** - [ ] This is a **code refactor** - [ ] This is a **test update** - [ ] This is a **docs update** - [...
diff --git a/client-src/default/utils/createSocketUrl.js b/client-src/default/utils/createSocketUrl.js index b7bf6c944d..d91b16541b 100644 --- a/client-src/default/utils/createSocketUrl.js +++ b/client-src/default/utils/createSocketUrl.js @@ -50,6 +50,7 @@ function createSocketUrl(resourceQuery) { // because the bro...
5
4
1
[{"id": "G0", "claim": "The pull request changes the protocol-override behaviour without adding any tests; tests need to be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The existing createSocketUrl snapshot tests appear to capture wrong values ...
null
webpack__webpack-dev-server__5255
webpack/webpack-dev-server
5,255
defect
1ac78d0235fdc54c2ea11a71dc440500c260124e
e0385c8fe9f63cacfbc1530b259dc929bf8f5501
Issue 4630/replace default gateway
<!-- Thank you for submitting a pull request! Please note that this template is not optional and all _ALL_ fields must be filled out, or your pull request may be rejected. Please do not delete this template. Please do remove this header to acknowledge this message. Please place an x, no spaces, in ...
diff --git a/lib/Server.js b/lib/Server.js index 05c3c0ba82..dfdad26986 100644 --- a/lib/Server.js +++ b/lib/Server.js @@ -378,57 +378,30 @@ class Server { return /^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(URL); } - /** - * @param {string} gateway - * @returns {string | undefined} - */ - static findIp(gateway) ...
2
2
1
[{"id": "G0", "claim": "The pull request should remove its unrelated changes.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "unclear"}, {"id": "G1", "claim": "The findIp function must be kept because developers can still use it, and removing it would be a breaking change.", "catego...
null
webpack__webpack__14357
webpack/webpack
14,357
defect
449f7ef39b1096bdacd384d917baec954a0aaca2
1cb6ba2b73ac03889b34e9063fef6199bab64c5c
track returned state in function body
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> <!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> <!-- Try to link to an open issue for more information. --> <!-- In addition...
diff --git a/lib/ConstPlugin.js b/lib/ConstPlugin.js index 844da0c6fa3..150ff20de2d 100644 --- a/lib/ConstPlugin.js +++ b/lib/ConstPlugin.js @@ -12,7 +12,12 @@ const { parseResource } = require("./util/identifier"); /** @typedef {import("estree").Expression} ExpressionNode */ /** @typedef {import("estree").Super} S...
5
3
1
[{"id": "G0", "claim": "The test should check that `./a` was required (via the module graph) instead of only asserting `result` stays 0, which passes regardless of whether the dead require is bundled.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The t...
null
webpack__webpack__16577
webpack/webpack
16,577
defect
8241da7f1e75c5581ba535d127fa66aeb9eb2ac8
11dde1f626ac632bff8ed7e30af5b869721c760a
feat: 'css/auto' as a css module type
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> <!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> <!-- Try to link to an open issue for more information. --> resolve #16572 <...
diff --git a/lib/NormalModuleFactory.js b/lib/NormalModuleFactory.js index f02e57128491..21905930543c 100644 --- a/lib/NormalModuleFactory.js +++ b/lib/NormalModuleFactory.js @@ -579,7 +579,10 @@ class NormalModuleFactory extends ModuleFactory { resourceResolveData: resourceData.data, settings, ...
5
1
1
[{"id": "G0", "claim": "The anchored line \"Parser options for css modules.\" needs a small fix.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "unclear"}, {"id": "G1", "claim": "The IS_MODULES check should use the module's own resource path (e.g. parseResource(module.resource).path) ...
null
webpack__webpack__18009
webpack/webpack
18,009
defect
4a2662381ed8e6a9d849b494511459f5858d4e82
c0e9bfb10146c9733a5a80e46a22ffb916fcee00
fix: correct preOrderIndex and postOrderIndex
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> <!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> <!-- Try to link to an open issue for more information. --> <!-- In addition t...
diff --git a/lib/buildChunkGraph.js b/lib/buildChunkGraph.js index a484b844997f..9da2613cdada 100644 --- a/lib/buildChunkGraph.js +++ b/lib/buildChunkGraph.js @@ -266,12 +266,18 @@ const visitModules = ( /** @type {Map<DependenciesBlock, ChunkGroupInfo>} */ const blockChunkGroups = new Map(); + /** @type {Map<Chu...
1
1
1
[{"id": "G0", "claim": "The tests added by this pull request are failing and must be fixed before merge.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
webpack__webpack__18062
webpack/webpack
18,062
defect
51f0f0aeac072f989f8d40247f6c23a1995c5c37
7a795115dcb7eab13726e408614aea07cf875d0a
fix: Consumption of eager shared modules
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> <!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> <!-- Try to link to an open issue for more information. --> <!-- In addition t...
diff --git a/lib/sharing/ConsumeSharedModule.js b/lib/sharing/ConsumeSharedModule.js index 0ad41d313961..570b52be0348 100644 --- a/lib/sharing/ConsumeSharedModule.js +++ b/lib/sharing/ConsumeSharedModule.js @@ -206,26 +206,31 @@ class ConsumeSharedModule extends Module { }); } } - let fn = "load"; - const...
1
1
1
[{"id": "G0", "claim": "The PR needs test cases for the eager shared module consumption it fixes, and they should go in test/configCases/container.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
webpack__webpack__18147
webpack/webpack
18,147
defect
4fb4890dae7516c41c1592073845ce8a36fae8ec
c8e9b0f49c9d8ce3c26812619fb323f5d0d4774d
fix: use LZW to compress css head meta
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> <!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> <!-- Try to link to an open issue for more information. --> <!-- In addition t...
diff --git a/lib/css/CssLoadingRuntimeModule.js b/lib/css/CssLoadingRuntimeModule.js index da9f3b8135b..22bebafb114 100644 --- a/lib/css/CssLoadingRuntimeModule.js +++ b/lib/css/CssLoadingRuntimeModule.js @@ -183,7 +183,7 @@ class CssLoadingRuntimeModule extends RuntimeModule { [ `var data, token = "", token...
2
2
2
[{"id": "G0", "claim": "The css head data compression should be enabled only for production mode, since the css head can technically be used for debugging.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The LZW algorithm has serious problems: using `\"` ...
null
webpack__webpack__18912
webpack/webpack
18,912
defect
6a6f14fc04c679a2648011fa7e0ed96eb77c1e8d
925ca442be7e9a2ef6e1bf08ce2962e49ca6bff4
fix: Recursive search for versions of shared dependencies
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> <!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> <!-- Try to link to an open issue for more information. --> Improved recursi...
diff --git a/lib/sharing/ConsumeSharedPlugin.js b/lib/sharing/ConsumeSharedPlugin.js index efc5249061aa..322694f105d7 100644 --- a/lib/sharing/ConsumeSharedPlugin.js +++ b/lib/sharing/ConsumeSharedPlugin.js @@ -236,34 +236,50 @@ class ConsumeSharedPlugin { compilation.inputFileSystem, context, ...
1
1
0
[{"id": "G0", "claim": "The reviewer asks why the DescriptionFile typedef's data type was changed from JsonObject to the weaker Record<string, any> in lib/sharing/utils.js.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
webpack__webpack__18947
webpack/webpack
18,947
defect
0ddd74df059008777d97d5918fdd8b5d083e796d
c8cc6143c8348258616eb2955102ba133fb5cfc6
feat: Add support for injecting sourcemap debug ids
### What kind of change does this PR introduce? Adds support to `SourceMapDevToolPlugin` for injecting debug IDs into source files and sourcemaps as per the [TC39 proposal](https://github.com/tc39/source-map/blob/main/proposals/debug-id.md). - Sentry users have been relying on debug ids in production for a number...
diff --git a/declarations/plugins/SourceMapDevToolPlugin.d.ts b/declarations/plugins/SourceMapDevToolPlugin.d.ts index e0104874453..e3b20c0d2a3 100644 --- a/declarations/plugins/SourceMapDevToolPlugin.d.ts +++ b/declarations/plugins/SourceMapDevToolPlugin.d.ts @@ -76,4 +76,8 @@ export interface SourceMapDevToolPluginOp...
3
2
2
[{"id": "G0", "claim": "The debug ID hash should respect the user-configurable output.hashFunction (and other hash options such as output.hashSalt) instead of hardcoding xxhash64.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Parse the debugids token from...
null
webpack__webpack__19508
webpack/webpack
19,508
defect
dec18718be5dfba28f067fb3827dd620a1f33667
579f7621fd2557c6ca1f0c16563948da31be3797
feat: Support VirtualUrlPlugin
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> <!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> <!-- Try to link to an open issue for more information. --> <!-- In addition t...
diff --git a/declarations/plugins/schemes/VirtualUrlPlugin.d.ts b/declarations/plugins/schemes/VirtualUrlPlugin.d.ts new file mode 100644 index 00000000000..03deffd2af5 --- /dev/null +++ b/declarations/plugins/schemes/VirtualUrlPlugin.d.ts @@ -0,0 +1,26 @@ +/* + * This file was automatically generated. + * DO NOT MODIF...
7
6
1
[{"id": "G0", "claim": "Merging the pull request will degrade performance of the \"future-defaults\" mode-development-rebuild benchmark by 74.13% (11.6 ms to 44.7 ms), as measured by CodSpeed.", "category": "performance", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a tes...
null
webpack__webpack__19526
webpack/webpack
19,526
defect
2b124f07c101a4f3e9ba67c528aaeaf428d4c3b3
c596443c157a6542e90493c873c15c16e8976742
fix: destructuring namespace import with default
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> <!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> <!-- Try to link to an open issue for more information. --> <!-- In addition t...
diff --git a/lib/javascript/JavascriptParser.js b/lib/javascript/JavascriptParser.js index 060244fed2e..49fd09bb5e1 100644 --- a/lib/javascript/JavascriptParser.js +++ b/lib/javascript/JavascriptParser.js @@ -2852,6 +2852,16 @@ class JavascriptParser extends Parser { for (let i = 0; i < properties.length; i++) { ...
4
2
1
[{"id": "G0", "claim": "A test case should be added in which the default value is actually used (e.g. `const { bar = 'foo' } = namespace;` with `bar` not exported, expecting \"foo\"), since none of the cases at S1 exercises a default.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
webpack__webpack__19536
webpack/webpack
19,536
defect
67aa02a2c0723f7fe4955897bb9a95a443267490
2280284269d61ac40cfb583b37c0bf525d6e61bf
fix: eliminate unused statements in certain scenarios
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> <!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> <!-- Try to link to an open issue for more information. --> <!-- In addition t...
diff --git a/lib/ConstPlugin.js b/lib/ConstPlugin.js index 11020251bf3..879b846ea27 100644 --- a/lib/ConstPlugin.js +++ b/lib/ConstPlugin.js @@ -179,53 +179,21 @@ class ConstPlugin { ? statement.alternate : statement.consequent; if (branchToRemove) { - // Before removing the dead branch...
3
2
0
[{"id": "G0", "claim": "The new parser hook should be named `unusedStatement` instead of `deadStatement`, since `dead` is a harsher word.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Why is the `parser.scope.terminated` opt-out needed around t...
null
webpack__webpack__19595
webpack/webpack
19,595
defect
19ca74127f7668aaf60d59f4af8fcaee7924541a
b47084cb0e42375f9813215944fd4b78cff9f1f1
fix: CleanPlugin unlink same file twice
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> <!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> <!-- Try to link to an open issue for more information. --> <!-- In addition t...
diff --git a/lib/CleanPlugin.js b/lib/CleanPlugin.js index 7bd5ac904b9b..a5a7ffdaa87c 100644 --- a/lib/CleanPlugin.js +++ b/lib/CleanPlugin.js @@ -6,6 +6,7 @@ "use strict"; const asyncLib = require("neo-async"); +const path = require("path"); const { SyncBailHook } = require("tapable"); const Compilation = requir...
1
1
0
[{"id": "G0", "claim": "Implement getDirectories, hasFile and isEqualPath as internal plugin methods prefixed with an underscore (e.g. _isEqualPath) instead of exposing them as module.exports properties, since the author does not want them as part of the public API.", "category": "design", "verdict": "supported", "prio...
null
webpack__webpack__19633
webpack/webpack
19,633
defect
10fb5566e71d24e268678cd8dd2376cafcdcb5dc
f22d7f683b4b3b29222ac94378e93064ccce01f0
refactor: use import to load the HMR manifest to support all ESM environments
<!-- In addition to that please answer these questions: --> **What kind of change does this PR introduce?** refactoring **Did you add tests for your changes?** No **Does this PR introduce a breaking change?** No **What needs to be documented once your changes are merged?** No
diff --git a/lib/esm/ModuleChunkLoadingRuntimeModule.js b/lib/esm/ModuleChunkLoadingRuntimeModule.js index ed850b0fd662..1226d2314466 100644 --- a/lib/esm/ModuleChunkLoadingRuntimeModule.js +++ b/lib/esm/ModuleChunkLoadingRuntimeModule.js @@ -424,14 +424,12 @@ class ModuleChunkLoadingRuntimeModule extends RuntimeModule...
2
1
1
[{"id": "G0", "claim": "Import attributes support should be feature-detected (adding importAttributes to target.js and defaults.js) with a fallback to the old fetch when unsupported, because import attributes are still young and some legacy platforms/applications may be used in old environments where they are not suppo...
null
webpack__webpack__19847
webpack/webpack
19,847
defect
6b313c950ddc05725bdfba755fb9f703974ee948
5b0b6b3db5d8da4b21b62f49e072efef8124f718
fix: improve CommonJs bundle to ESM library
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> <!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> <!-- Try to link to an open issue for more information. --> <!-- In addition t...
diff --git a/lib/Module.js b/lib/Module.js index 9c439569158..1ad7374ea21 100644 --- a/lib/Module.js +++ b/lib/Module.js @@ -123,6 +123,7 @@ const makeSerializable = require("./util/makeSerializable"); * @property {("default" | "namespace" | "flagged" | "dynamic")=} exportsType * @property {(false | "redirect" | "r...
2
1
0
[{"id": "G0", "claim": "Merging #19847 will degrade performance by 64.41% in the devtool-eval benchmark with scenario mode-development-rebuild (43 ms to 120.8 ms).", "category": "performance", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Rename the new BuildMeta property `tre...
null
webpack__webpack__19916
webpack/webpack
19,916
defect
6e6d0442aef22945fdddccd0f918185e86b77661
721d66177da648dd6a744a37464ef1d3110844e3
fix: support web workers loading for jsonp format
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> <!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> <!-- Try to link to an open issue for more information. --> <!-- In addition t...
diff --git a/lib/web/JsonpChunkLoadingRuntimeModule.js b/lib/web/JsonpChunkLoadingRuntimeModule.js index d043dd93e8a..f38691cf1a6 100644 --- a/lib/web/JsonpChunkLoadingRuntimeModule.js +++ b/lib/web/JsonpChunkLoadingRuntimeModule.js @@ -69,7 +69,7 @@ class JsonpChunkLoadingRuntimeModule extends RuntimeModule { if (o...
1
1
1
[{"id": "G0", "claim": "The added `(document && document.baseURI)` guard still fails when the `document` global itself is not declared, and the correct check would use `typeof document` or `globalThis.document?.baseURI`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
webpack__webpack__19953
webpack/webpack
19,953
defect
d9121b39a1d76339b7966279f198c2d8d3fdff5c
a37fdaff709b6f08e3a4e34598a09ad67ff160d3
feat: support ignoreList option in `SourceMapDevToolPlugin`
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> **Summary** <!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> <!-- Try to link to an open issue for more information. --> <!-...
diff --git a/declarations/plugins/BannerPlugin.d.ts b/declarations/plugins/BannerPlugin.d.ts index 8ee47aba5c77..a7d6ca3858ae 100644 --- a/declarations/plugins/BannerPlugin.d.ts +++ b/declarations/plugins/BannerPlugin.d.ts @@ -23,7 +23,7 @@ export type Rules = Rule[] | Rule; /** * Filtering rule as regex or string. ...
2
1
0
[{"id": "G0", "claim": "Split the PR into two parts - first `ignoreList: string | RegExp`, then a second part with the rule that allows using a function - because the helper is used in many plugins and types would need updating in many places.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "in...
null
webpack__webpack__20020
webpack/webpack
20,020
defect
0f84d1e3bf69915dc060f23ced9dfa468a884a42
c70277ca3fc98b3f42f2e09d638c5edb1bfe3e49
fix: async modules in defer import
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> **Summary** 1. Should access correct module namespace instead of a promise when mixed defer/non-defer imports with async modules (test added at `test/configCases/defer-import/harmony-impor...
diff --git a/lib/dependencies/HarmonyExportImportedSpecifierDependency.js b/lib/dependencies/HarmonyExportImportedSpecifierDependency.js index c839e43e366..67ceffd653f 100644 --- a/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +++ b/lib/dependencies/HarmonyExportImportedSpecifierDependency.js @@ -1055,7 ...
2
2
1
[{"id": "G0", "claim": "In the generated runtime code, the deferred exports entry should be deleted with `__webpack_module_deferred_exports__[moduleId]` rather than `[module]`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comment below the del...
null
webpack__webpack__20050
webpack/webpack
20,050
defect
3e7175576a71c81f366f47a17a6eca3d9e769031
08ad4167cd4fb081d0d8bd49bd41670267c9ff88
feat: added support for `import.meta.dirname` and `import.meta.filename`
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> **Summary** Added support to `import.meta.dirname` and `import.meta.filename` Also: - fixed problem when developer has `__dirname` or `__filename` local variables (we use this names ...
diff --git a/lib/NodeStuffPlugin.js b/lib/NodeStuffPlugin.js index 9faa3053daa..0d173e1624d 100644 --- a/lib/NodeStuffPlugin.js +++ b/lib/NodeStuffPlugin.js @@ -7,7 +7,8 @@ const { JAVASCRIPT_MODULE_TYPE_AUTO, - JAVASCRIPT_MODULE_TYPE_DYNAMIC + JAVASCRIPT_MODULE_TYPE_DYNAMIC, + JAVASCRIPT_MODULE_TYPE_ESM } = requ...
3
2
1
[{"id": "G0", "claim": "The new eval-only handling must prevent removing `import.meta.filename` and `import.meta.dirname`, keeping the expressions instead of replacing them with `__filename`/`__dirname`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":...
null
webpack__webpack__20162
webpack/webpack
20,162
defect
76b2822c60f70ac28d14e0c388782c5e4abeba2f
6591a3bdeac5bc664234f4ab01c459632fcc1ac4
feat: remove empty needless js output for normal css module
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> **Summary** See https://github.com/orgs/webpack/discussions/20161 <!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> <!-- Tr...
diff --git a/lib/css/CssGenerator.js b/lib/css/CssGenerator.js index 9621c635336d..b6f433257289 100644 --- a/lib/css/CssGenerator.js +++ b/lib/css/CssGenerator.js @@ -19,6 +19,7 @@ const { const RuntimeGlobals = require("../RuntimeGlobals"); const Template = require("../Template"); const CssImportDependency = requir...
5
3
0
[{"id": "G0", "claim": "Merging this PR will degrade memory performance by 35.22% on the asset-modules-source development-rebuild benchmark (CodSpeed), and asks to fix the performance issues or acknowledge them.", "category": "performance", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", ...
null
webpack__webpack__20189
webpack/webpack
20,189
defect
04375e8fca83d5b36788f7401345a6a7e10ec0a0
d32be4e5714b2f1c7162f427f9702cca6fd0381e
fix ESM default export handling for .mjs files in Module Federation
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> **Summary** <!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> <!-- Try to link to an open issue for more information. --> <!-...
diff --git a/.changeset/brown-apricots-work.md b/.changeset/brown-apricots-work.md new file mode 100644 index 000000000000..0a0dbc4479ef --- /dev/null +++ b/.changeset/brown-apricots-work.md @@ -0,0 +1,5 @@ +--- +"webpack": patch +--- + +Fixed ESM default export handling for `.mjs` files in Module Federation diff --git...
3
3
1
[{"id": "G0", "claim": "Remove the unit tests in test/ConsumeSharedModule.unittest.js added by this pull request, because they are useless and the configCases coverage is enough.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ConsumeSharedModule.getExpo...
null
webpack__webpack__20221
webpack/webpack
20,221
defect
57d94cf09fe871ba883c9e171d8f41335c379598
416b79be84b5f30ef1ce47ec2a37224e2376e3cd
fix: add null check for module existence with helpful error message
Adds a check before module execution to provide a helpful error message when a module ID is not found in `__webpack_modules__`, instead of the cryptic `Cannot read properties of undefined (reading 'call')` error. Fixes #18021 <!-- Thanks for submitting a pull request! Please provide enough information so that oth...
diff --git a/lib/javascript/JavascriptModulesPlugin.js b/lib/javascript/JavascriptModulesPlugin.js index a40dd6b40e48..35908d7bcb27 100644 --- a/lib/javascript/JavascriptModulesPlugin.js +++ b/lib/javascript/JavascriptModulesPlugin.js @@ -869,9 +869,7 @@ class JavascriptModulesPlugin { const strictBailout = hooks.s...
5
5
3
[{"id": "G0", "claim": "The new module-existence error should be emitted only in development mode, not in every build.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Remove the unrelated reformatting of the __webpack_modules__ call lines from this pull r...
null
webpack__webpack__20258
webpack/webpack
20,258
defect
50e099730eefdeff196b6adbbf29f640e5e75828
f665e327105a2f6c83a5a1bc841f7a812dbf937c
fix: respect errorStack option in stats output (#15980)
**Summary** Fixes #15980. The `errorStack` extractor was not checking the `errorStack` option before adding stack traces to error output. This caused stack traces to be printed even when `stats.errorStack` was set to `false`. This fix adds a check for the `errorStack` option, similar to how `errorDetails` chec...
diff --git a/lib/stats/DefaultStatsFactoryPlugin.js b/lib/stats/DefaultStatsFactoryPlugin.js index 27824641fcf7..9a45074c56fc 100644 --- a/lib/stats/DefaultStatsFactoryPlugin.js +++ b/lib/stats/DefaultStatsFactoryPlugin.js @@ -507,8 +507,8 @@ const EXTRACT_ERROR = { object.details = /** @type {WebpackError} */ (err...
1
1
1
[{"id": "G0", "claim": "Add a test case where the stack trace is printed (stats option errorStack set to true) so the enabled path of the fix is covered before merging.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
webpack__webpack__20319
webpack/webpack
20,319
defect
c3ce90b983eecbd75ee36d1eadbd9e0d47becc85
c03bc2c201006dda923c58e9e4ec4e20346b290c
perf: omit empty ignoreList property from source maps
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> **Summary** perf: omit empty ignoreList property from source maps **What kind of change does this PR introduce?** perf **Did you add tests for your changes?** Yes **Does this PR i...
diff --git a/.changeset/sourcemap-ignorelist.md b/.changeset/sourcemap-ignorelist.md new file mode 100644 index 00000000000..1938690d851 --- /dev/null +++ b/.changeset/sourcemap-ignorelist.md @@ -0,0 +1,5 @@ +--- +"webpack": patch +--- + +Optimize source map generation: only include `ignoreList` property when it has co...
1
1
1
[{"id": "G0", "claim": "Add a test case that generates a source map and uses toMatch() against the default generated properties of the source map, to catch regressions such as the empty ignoreList this PR omits.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
webpack__webpack__20320
webpack/webpack
20,320
defect
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
637f40e55bf47fb2f3b6d6668adb9fd8a3e4baf5
feat: support import specifier guard
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> **Summary** Fixes https://github.com/webpack/webpack/issues/14814 and closes https://github.com/webpack/webpack/pull/15497. <!-- Explain the **motivation** for making this change. What ...
diff --git a/lib/dependencies/HarmonyImportDependencyParserPlugin.js b/lib/dependencies/HarmonyImportDependencyParserPlugin.js index cef9b1023d6..f8f9ef5326c 100644 --- a/lib/dependencies/HarmonyImportDependencyParserPlugin.js +++ b/lib/dependencies/HarmonyImportDependencyParserPlugin.js @@ -12,16 +12,20 @@ const { g...
3
3
0
[{"id": "G0", "claim": "Rebase onto main so the JSDoc types follow the recently applied ESLint rule style.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Merge HarmonyImportSpecifierGuardParserPlugin into HarmonyImportDependencyParserPlugin as a...
null
webpack__webpack__20345
webpack/webpack
20,345
defect
13c679ad0d38511e4473db7da798a47d95b0e7b0
0ec91991aa762d405351fd57490aefc3cc690da7
fix: reuse async entrypoint for same Worker URL within a module
**Summary** Reuse the same async entrypoint for the same Worker URL within a module to avoid circular dependency warnings when multiple Workers reference the same resource. **What kind of change does this PR introduce?** fix **Did you add tests for your changes?** Yes **Does this PR introduce a breaking cha...
diff --git a/.changeset/fix-worker-reuse-async-entry.md b/.changeset/fix-worker-reuse-async-entry.md new file mode 100644 index 00000000000..5ab2c0fc750 --- /dev/null +++ b/.changeset/fix-worker-reuse-async-entry.md @@ -0,0 +1,5 @@ +--- +"webpack": patch +--- + +Reuse the same async entrypoint for the same Worker URL w...
1
1
0
[{"id": "G0", "claim": "Suggests adding a `circular` property with a `true` value for such case(s) and ignoring chunk creation in buildGraph, so there will be no circular dependency warning.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
webpack__webpack__20347
webpack/webpack
20,347
defect
66e8011516592a7307e9cd4fcff4ae7471016056
12f7eeaf28afaf7afb93c89dd360dfa0d5738bcb
feat: resolve worker via condition name
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> **Summary** Parts of https://github.com/webpack/webpack/pull/19891. <!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> <!-- Tr...
diff --git a/lib/config/defaults.js b/lib/config/defaults.js index 05b6785b09b..d45d19f5375 100644 --- a/lib/config/defaults.js +++ b/lib/config/defaults.js @@ -1986,6 +1986,19 @@ const getResolveDefaults = ({ extensions: [...jsExtensions] }); + /** @type {() => ResolveOptions} */ + const workerDeps = () => { + ...
1
1
1
[{"id": "G0", "claim": "The worker resolve defaults should not lose `preferRelative` when switching to condition-name-based worker resolution.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
webpack__webpack__20452
webpack/webpack
20,452
defect
655fe2acc9b745baba67ec2f6f0d95a69858b456
4c6f42abaa3b3c5fef1db18e1115815b7cc5450b
fix: deterministic findGraphRoots regardless of edge ordering
Fixes #20445 `findGraphRoots` could return different root sets for the same graph depending on edge ordering. This caused nondeterministic chunk names across webpack runs, which breaks deployments when HTML and JS bundles aren't deployed atomically. ### Root cause DFS visit markers were stored per-node. When the DFS...
diff --git a/.changeset/giant-turkeys-hide.md b/.changeset/giant-turkeys-hide.md new file mode 100644 index 00000000000..629dbe4e15c --- /dev/null +++ b/.changeset/giant-turkeys-hide.md @@ -0,0 +1,5 @@ +--- +"webpack": patch +--- + +fix: deterministic findGraphRoots regardless of edge ordering diff --git a/lib/util/fin...
2
1
1
[{"id": "G0", "claim": "The tests should be rewritten as a test case under test/configCases instead of unit tests, which are useless for such cases.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reported freeze could not be reproduced by the mainta...
null
webpack__webpack__20521
webpack/webpack
20,521
defect
861259e214bdb9e74cab0f1066cfa326584650ba
9f5aa2850d2766087f8402443d77a4dfafc2a07c
fix: deduplicate export presence logic in Harmony dependency classes
### Issue(Fixes #20523 ) ## Problem Three parser plugins independently compute `exportPresenceMode` from parser options using an identical ternary chain: ```js this.exportPresenceMode = options.importExportsPresence !== undefined // or reexportExportsPresence ? ExportPresenceModes.fromUserOpti...
diff --git a/.changeset/deduplicate-harmony-presence.md b/.changeset/deduplicate-harmony-presence.md new file mode 100644 index 000000000000..3419ded4ed63 --- /dev/null +++ b/.changeset/deduplicate-harmony-presence.md @@ -0,0 +1,5 @@ +--- +"webpack": patch +--- + +Deduplicate export presence mode resolution logic and `...
5
4
2
[{"id": "G0", "claim": "Merging the pull request will degrade memory performance (CodSpeed reports up to 68.34% on several benchmarks), so the performance issues should be fixed or acknowledged.", "category": "performance", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pul...
null
webpack__webpack__20623
webpack/webpack
20,623
defect
d6927b41e99ac2a817cc14577f4bd5f68ff198cc
678495ab210c8ff17a915dd74aff02abe1b306f3
chore: update outdated pug-loader
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> **Summary** chore - update outdated pug-loader <!-- In addition to that please answer these questions: --> **What kind of change does this PR introduce?** chore **Did you add t...
diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 0d372f3f84b..05661525b32 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -26,7 +26,8 @@ jobs: pkg:npm/abbrev, pkg:npm/@pkgjs/parseargs, ...
1
1
0
[{"id": "G0", "claim": "The pull request's own changes fail lint (e.g. the new dependency name 'webdiscus' is not in cspell.json and the README table separator row is misformatted), and the author asked Copilot to fix the lint errors.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "...
null
webpack__webpack__20632
webpack/webpack
20,632
defect
3da7560ba58c9a3fc7d94148c80c54a6c9384561
79d2812cd00ac994c7c04db52846c2e609ca44d6
feat: allow external modules place in async chunks in some case
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> **Summary** Fixes https://github.com/webpack/webpack/issues/20362. <!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> <!--...
diff --git a/lib/ExternalModule.js b/lib/ExternalModule.js index 9dfaf9fdb22..153d21473f0 100644 --- a/lib/ExternalModule.js +++ b/lib/ExternalModule.js @@ -5,6 +5,7 @@ "use strict"; +const { SyncBailHook } = require("tapable"); const { OriginalSource, RawSource } = require("webpack-sources"); const Concatenatio...
2
1
0
[{"id": "G0", "claim": "For `import(...)` externals, webpack should move them into their own chunk instead of keeping them in the initial chunk, since dynamically imported externals should not be loaded in the initial chunk and V8 caching means no performance regression is expected.", "category": "design", "verdict": "...
null
webpack__webpack__20697
webpack/webpack
20,697
defect
72598efbba25d86f99c7197edd7338eeba057567
82f63692d05b4e415ccdb274df318ca58003fb68
fix: improve CLI number validation and add regression tests
Ensure numeric inputs are strictly validated against DECIMAL_NUMBER_REGEXP before conversion. Added tests to reject Infinity and hex values in watch options to prevent ambiguous parsing. <!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> *...
diff --git a/lib/cli.js b/lib/cli.js index ec3926f0c5e..153578eadd8 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -603,6 +603,8 @@ const getExpectedValue = (argConfig) => { /** @typedef {null | string | number | boolean | RegExp | EnumValue | []} ParsedValue */ +const DECIMAL_NUMBER_REGEXP = /^[+-]?(?:\d+\.?\d*|\.\d...
1
1
1
[{"id": "G0", "claim": "The pull request needs more tests: the new DECIMAL_NUMBER_REGEXP handling of the exponent part (e) and of the (?:\\d+\\.?\\d*|\\.\\d+) decimal group is untested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
webpack__webpack__20812
webpack/webpack
20,812
defect
568f0959ddc9d1e7d16a48781b22c92ba0247b66
5e0a1931a8638edfc259f5fa3902b2e687a25eab
fix: migrate from mime-types to mime-db
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> **Summary** reduce deps size and update outdated dep <!-- In addition to that please answer these questions: --> **What kind of change does this PR introduce?** fix **Did you a...
diff --git a/.changeset/full-months-jog.md b/.changeset/full-months-jog.md new file mode 100644 index 00000000000..b47b3f040ee --- /dev/null +++ b/.changeset/full-months-jog.md @@ -0,0 +1,5 @@ +--- +"webpack": patch +--- + +Migrate from `mime-types` to `mime-db`. diff --git a/lib/TemplatedPathPlugin.js b/lib/TemplatedP...
3
2
2
[{"id": "G0", "claim": "extension() indexes `extensions` with `match[0].toLowerCase()`, and because TYPE_REGEXP allows leading/trailing spaces `match[0]` can include whitespace (e.g. \" text/html \") and will not match keys in mime-db, so the lookup should use the captured type/subtype groups or trim the input.", "cate...
null
webpack__webpack__7279
webpack/webpack
7,279
defect
c92eabd3be44d4162be0affc9ef368624b0a6e51
737eaa51b6ffe3886c85e5660a9446f101f7c71a
Fix a bug where ProgressPlugin is not working properly with MultiComp…
…iler <!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> **What kind of change does this PR introduce?** a bugfix **Did you add tests for your changes?** existing tests **If relevant, link to documentation update:** N/A **Summa...
diff --git a/lib/ProgressPlugin.js b/lib/ProgressPlugin.js index 713e8d9db26..137bb492ea5 100644 --- a/lib/ProgressPlugin.js +++ b/lib/ProgressPlugin.js @@ -83,7 +83,7 @@ class ProgressPlugin { const states = new Array(compiler.compilers.length); compiler.compilers.forEach((compiler, idx) => { new Progress...
1
1
1
[{"id": "G0", "claim": "Add a test case to ensure that the ProgressPlugin MultiCompiler behavior fixed by this pull request won't break in future.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
webpro-nl__knip__1171
webpro-nl/knip
1,171
defect
cbfb9c3b1c6fd4f77b5e5f0987e0f027ee609feb
f4f0d6c7bffa4c9e96b8f7df565101bdb43c4e2a
Support Vitest projects configuration for dynamic project discovery
## Summary Adds support for Vitest's `projects` configuration that allows defining test projects through inline configurations and external file patterns. External project files are resolved from glob patterns and their dependencies are correctly assigned to their respective workspace locations. Resolves #1114 ## Cha...
diff --git a/packages/knip/fixtures/plugins/vitest9/package.json b/packages/knip/fixtures/plugins/vitest9/package.json new file mode 100644 index 0000000000..900efa0422 --- /dev/null +++ b/packages/knip/fixtures/plugins/vitest9/package.json @@ -0,0 +1,7 @@ +{ + "name": "@fixtures/vitest9", + "workspaces": ["packages/...
3
3
1
[{"id": "G0", "claim": "External project config files matched by glob patterns should be referenced with toConfig() instead of being _load()ed inside the plugin, so that resolveConfig is re-executed with each external config and dependencies are assigned to the workspace where that config file lives.", "category": "des...
null
webpro-nl__knip__1219
webpro-nl/knip
1,219
defect
ad30f8208dd19333d90ea532a02165c6d730cbea
491839f36114e76a77cce3d1d23a1bdf9e6a97ca
feat: pnpm plugin
<!-- - Try to author code and/or docs similar to the rest of the repository - See [DEVELOPMENT.md][1] for development and QA guidelines Through [the CI workflow][2] the changes will be tested in Ubuntu, macOS and Windows. The changes will also be [tested against a number of external projects][3]. [1]: https:...
diff --git a/packages/knip/fixtures/plugins/pnpm/.pnpmfile.cjs b/packages/knip/fixtures/plugins/pnpm/.pnpmfile.cjs new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/knip/fixtures/plugins/pnpm/package.json b/packages/knip/fixtures/plugins/pnpm/package.json new file mode 100644 index 0000000000..c47...
2
2
2
[{"id": "G0", "claim": "The plugin's isEnabled should be Boolean(manifest.packageManager?.startsWith('pnpm@')) instead of falling back to true when packageManager is unset.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The tests are failing because...
null
webpro-nl__knip__1231
webpro-nl/knip
1,231
defect
7a2c9917591732d60879fb8b3aa5fcded01d6f19
89ca55bee0e47de12dc19d7fc56606f126381af5
feat: GitHub actions reporter
<!-- - Try to author code and/or docs similar to the rest of the repository - See [DEVELOPMENT.md][1] for development and QA guidelines Through [the CI workflow][2] the changes will be tested in Ubuntu, macOS and Windows. The changes will also be [tested against a number of external projects][3]. [1]: https:...
diff --git a/packages/knip/src/reporters/githubActions.ts b/packages/knip/src/reporters/githubActions.ts new file mode 100644 index 0000000000..d2a822deae --- /dev/null +++ b/packages/knip/src/reporters/githubActions.ts @@ -0,0 +1,63 @@ +import { ISSUE_TYPES, ISSUE_TYPE_TITLE } from '../constants.js'; +import type { Re...
5
4
1
[{"id": "G0", "claim": "The reporter should be enabled in knip's own test suite/CI (dogfooding).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The module-level `const core = createGitHubActionsLogger()` is needed only when the reporter is actually used...
null
webpro-nl__knip__1339
webpro-nl/knip
1,339
defect
71a4d125a8450c7a9e4a5c78735bbb3c2aabdae1
a17fa7f2ed61bb84f299238458dec23513c26497
feat(plugins): extend prisma plugin
- Add more Prisma config patterns - Parse seed command from Prisma config file <!-- - Try to author code and/or docs similar to the rest of the repository - See [DEVELOPMENT.md][1] for development and QA guidelines Through [the CI workflow][2] the changes will be tested in Ubuntu, macOS and Windows. The cha...
diff --git a/packages/knip/fixtures/plugins/prisma/node_modules/prisma/config.js b/packages/knip/fixtures/plugins/prisma/node_modules/prisma/config.js index 0a5018a551..64193d5a69 100644 --- a/packages/knip/fixtures/plugins/prisma/node_modules/prisma/config.js +++ b/packages/knip/fixtures/plugins/prisma/node_modules/pr...
2
2
1
[{"id": "G0", "claim": "The prisma seed2 fixture should import from '@prisma/client2' and the fixture package.json should declare '@prisma/client2' as a dependency, so the second client dependency is actually exercised by the test.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"...
null
webpro-nl__knip__139
webpro-nl/knip
139
defect
1fc1985b3754662df79cb075cf6f9ba4993e7f0b
f47518fbdea07ad0ecb8887eb50802cd8733523e
feat: add ignoreExportsUsedInFile option
Fixes #127.
diff --git a/src/ConfigurationChief.ts b/src/ConfigurationChief.ts index de2733fa73..c9ec579f1e 100644 --- a/src/ConfigurationChief.ts +++ b/src/ConfigurationChief.ts @@ -51,6 +51,7 @@ const defaultConfig: Configuration = { ignore: [], ignoreBinaries: [], ignoreDependencies: [], + ignoreExportsUsedInFile: fal...
2
2
2
[{"id": "G0", "claim": "The option should be possible to restrict to types only, since ignoring used-in-file exports/values (unlike types) changes tree-shaking outcomes.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new exports-in-file test should s...
null
webpro-nl__knip__1390
webpro-nl/knip
1,390
defect
07eef0f50ea8d38b929cbf9268f37a8e4f8eb6c3
bc27a38de082c259def96c4f35b5bacdf9e739e9
Add SWC plugin
Our (Meteor) project uses SWC directly without going through rspack or webpack or some other bundler, which I think is the more common usage model. This adds a plugin to parse and extract dependencies from the `.swcrc` config file.
diff --git a/packages/knip/fixtures/plugins/swc/.swcrc b/packages/knip/fixtures/plugins/swc/.swcrc new file mode 100644 index 0000000000..a5fcd76fe3 --- /dev/null +++ b/packages/knip/fixtures/plugins/swc/.swcrc @@ -0,0 +1,13 @@ +{ + "$schema": "https://swc.rs/schema.json", + "jsc": { + "experimental": { + "pl...
4
4
1
[{"id": "G0", "claim": "Fixtures should not rely on nor influence the root or other packages: undo the committed @swc/core symlink into the pnpm store and the changes to the root pnpm-lock.yaml, and keep any node_modules/* to the bare minimum.", "category": "maintainability", "verdict": "supported", "priority": "P1", "...
null
webpro-nl__knip__1414
webpro-nl/knip
1,414
defect
38c3fdea710387b398b64f0dbad78faa2ab5bce6
196b477de983cae59ceb62e57f32e6e0dc6a5907
#1355 vitepress plugin
Fixes #1355 Added a plugin for [Vitepress](https://vitepress.dev). Setup a Vitepress locally and it seems pretty simple so not much work needed. First time I have added a plugin so let me know if I got something wrong. Changes: - Setup plugin following https://knip.dev/writing-a-plugin#create-a-new-plugin - ...
diff --git a/packages/knip/fixtures/plugins/vitepress/.vitepress/config.mts b/packages/knip/fixtures/plugins/vitepress/.vitepress/config.mts new file mode 100644 index 0000000000..7a6d30afcc --- /dev/null +++ b/packages/knip/fixtures/plugins/vitepress/.vitepress/config.mts @@ -0,0 +1,28 @@ +import { defineConfig } from...
6
5
0
[{"id": "G0", "claim": "The fixture config.mts should have the theme options that are not relevant to the plugin's functionality removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The api-examples.md fixture file should be dropped from the pull requ...
null
webpro-nl__knip__1418
webpro-nl/knip
1,418
defect
727d84c1bdc79a1d7141146cd75c761de70c2042
7867fb5a61ee2e2cbeeb32697271f071adc8d3fe
1289 knex plugin
Closes #1289 Detects database drivers (pg, mysql2, sqlite3, etc.) from knexfile.js client configurations, preventing false positives when these packages are listed as dependencies but only dynamically imported by Knex.
diff --git a/packages/knip/fixtures/plugins/knex/index.ts b/packages/knip/fixtures/plugins/knex/index.ts new file mode 100644 index 0000000000..5f204c3de9 --- /dev/null +++ b/packages/knip/fixtures/plugins/knex/index.ts @@ -0,0 +1,6 @@ +import knex from 'knex'; + +const config = require('./knexfile'); +const db = knex(...
3
3
2
[{"id": "G0", "claim": "Looking at the fixtures, the plugin can do with only resolveConfig, so resolveFromAST should be removed.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "resolveConfig could cast the configs to an array and keep only one block, dedu...
null
webpro-nl__knip__1430
webpro-nl/knip
1,430
defect
7c8cf23088e2b0909de57f6db99b776dc96f44dd
ae0bdce485b240530ca9fc2ba700eea3c344c666
Added TanStack Router Plugin
<!-- - Try to author code and/or docs similar to the rest of the repository - See [DEVELOPMENT.md][1] for development and QA guidelines Through [the CI workflow][2] the changes will be tested in Ubuntu, macOS and Windows. The changes will also be [tested against a number of external projects][3]. [1]: https:...
diff --git a/packages/knip/fixtures/plugins/tanstack-router/package.json b/packages/knip/fixtures/plugins/tanstack-router/package.json new file mode 100644 index 0000000000..df1386c36c --- /dev/null +++ b/packages/knip/fixtures/plugins/tanstack-router/package.json @@ -0,0 +1,13 @@ +{ + "name": "@plugins/tanstack-route...
3
2
1
[{"id": "G0", "claim": "The plugin comment holds nothing to apply, and the schema entries added (including tanstack-start, for which no plugin was added) appear unused and should be removed or explained.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The...
null
webpro-nl__knip__1449
webpro-nl/knip
1,449
defect
5b98269b0ce28890a8a16559846188dd2016bf25
0b11d1fb50ae34f23c78a59c046fa088ed32f5f3
Improved TanStack Router Configs
After testing the TanStack Router plugin on a few different size codes bases in CI and others there are times where we got false positive warnings with exports from the route files. Followed examples from other router set ups in Knip and now treat route files as production entries to skip export analysis. Also makes th...
diff --git a/packages/knip/src/plugins/tanstack-router/index.ts b/packages/knip/src/plugins/tanstack-router/index.ts index 9d6f94e43c..074ec7693f 100644 --- a/packages/knip/src/plugins/tanstack-router/index.ts +++ b/packages/knip/src/plugins/tanstack-router/index.ts @@ -1,5 +1,8 @@ -import type { IsPluginEnabled, Plugi...
2
2
2
[{"id": "G0", "claim": "The generated route tree file (`src/routeTree.gen.{ts,js}`, including the `generatedRouteTree` fallback) should be a production entry rather than a plain `entry`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The plugin shou...
null
webpro-nl__knip__1478
webpro-nl/knip
1,478
defect
6b64ac5b89916869a2361077a51dc28adb4679df
2956d2b3ed54e8777fd144ce42708bfa50f7c144
Added plugin for Serverless framework
I've created the basics of a plugin for Serverless Framework. Serverless Framework config file links to handles for functions which I've added as a productionEntryPoint.
diff --git a/packages/knip/fixtures/plugins/serverless-framework/function-2/function2.ts b/packages/knip/fixtures/plugins/serverless-framework/function-2/function2.ts new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/knip/fixtures/plugins/serverless-framework/function/handler.js b/packages/knip/fi...
3
3
2
[{"id": "G0", "claim": "The handler paths could use toProductionEntry instead of toDeferResolveProductionEntry, since no module resolution is needed unless they could point at an external dependency.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The plu...
null
webpro-nl__knip__1487
webpro-nl/knip
1,487
defect
6b64ac5b89916869a2361077a51dc28adb4679df
59bbe46a9e1d6e1574449cf650931ae4e6fcaac6
feat(vite): detect module entry from index.html
<!-- - Try to author code and/or docs similar to the rest of the repository - See [DEVELOPMENT.md][1] for development and QA guidelines Through [the CI workflow][2] the changes will be tested in Ubuntu, macOS and Windows. The changes will also be [tested against a number of external projects][3]. [1]: https:...
diff --git a/packages/knip/fixtures/plugins/vite3/index.html b/packages/knip/fixtures/plugins/vite3/index.html new file mode 100644 index 0000000000..1c12938703 --- /dev/null +++ b/packages/knip/fixtures/plugins/vite3/index.html @@ -0,0 +1,12 @@ +<!doctype html> +<html lang="en"> + <head> + <meta charset="UTF-8" />...
2
2
0
[{"id": "G0", "claim": "Move the vite plugin helper functions (e.g. getIndexHtmlEntries and its helpers) out of index.ts into helpers.ts.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Run `pnpm format` so the pull request's code (e.g. the isEna...
null
webpro-nl__knip__1523
webpro-nl/knip
1,523
defect
da9472555b28b04eddba703b1dfee69b2cb8b6f9
32abbbfd11c9fed7e946afcde3bb614f25479c33
Fix Yarn (Berry) plugins and binaries reported as unused
<!-- - Try to author code and/or docs similar to the rest of the repository - See [DEVELOPMENT.md][1] for development and QA guidelines Through [the CI workflow][2] the changes will be tested in Ubuntu, macOS and Windows. The changes will also be [tested against a number of external projects][3]. [1]: https:...
diff --git a/packages/knip/fixtures/plugins/yarn-berry/.yarn/plugins/@yarnpkg/plugin-nolyfill.cjs b/packages/knip/fixtures/plugins/yarn-berry/.yarn/plugins/@yarnpkg/plugin-nolyfill.cjs new file mode 100644 index 0000000000..f053ebf797 --- /dev/null +++ b/packages/knip/fixtures/plugins/yarn-berry/.yarn/plugins/@yarnpkg/...
3
3
1
[{"id": "G0", "claim": "resolveConfig hardcodes 'yarn.config.cjs' as an input instead of deriving the inputs from the plugin's entry list, so user entry overrides are ineffective for this file and the file is added even though it is already an entry item; it should be removed/derived from entry.", "category": "design",...
null
webpro-nl__knip__1546
webpro-nl/knip
1,546
defect
5c2cccf2c05108e7f348a55e2d51a99647e8098c
8c3299265f6709286addfac94066ff096b6e969d
feat: add Payload CMS plugin
Added a plugin for [Payload CMS](https://payloadcms.com/). Add `payload.config.ts`, which Payload CMS requires as a configuration file, and `payload-types.ts`, its automatically generated type definitions, to the entry. In Payload CMS configurations, some components are loaded by specifying their path as a string...
diff --git a/packages/knip/fixtures/plugins/payload/migrations/20260218.ts b/packages/knip/fixtures/plugins/payload/migrations/20260218.ts new file mode 100644 index 0000000000..2aaa54e2d9 --- /dev/null +++ b/packages/knip/fixtures/plugins/payload/migrations/20260218.ts @@ -0,0 +1,9 @@ +import { MigrateUpArgs, MigrateD...
3
3
1
[{"id": "G0", "claim": "The code comment should link the Payload configuration overview docs (https://payloadcms.com/docs/configuration/overview) instead of the getting-started page.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Instead of hard-c...
null
webpro-nl__knip__1559
webpro-nl/knip
1,559
defect
fc668f4b59e40caddf8e9904fb50dc59de1a86f8
fd2a80e3cd655c3a26982f4817b39250063c850e
Fix Astro sharpImageService() false positive for unused sharp
This PR fixes a false positive in the Astro plugin when using `sharpImageService()` in `astro.config.*`. Astro requires installing `sharp` when `sharpImageService()` is configured, but Knip did not detect that usage and could report `sharp` as an unused dependency. The Astro plugin now detects `sharpImageService...
diff --git a/packages/knip/fixtures/plugins/astro-sharp-image-service/astro.config.mjs b/packages/knip/fixtures/plugins/astro-sharp-image-service/astro.config.mjs new file mode 100644 index 0000000000..20f1c4cd52 --- /dev/null +++ b/packages/knip/fixtures/plugins/astro-sharp-image-service/astro.config.mjs @@ -0,0 +1,7 ...
4
3
1
[{"id": "G0", "claim": "The plugin should not walk the AST for call expressions at all; merely detecting that `sharpImageService` is imported (from `astro/config`) should be enough to add `sharp`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
webpro-nl__knip__1576
webpro-nl/knip
1,576
defect
de4c7d898f83a52ea80a374d9395bcb109f39c23
c2149c5d402085945d5d0c5de1e8cd529fbc230b
Resolve jsPlugins dependencies in oxlint plugin
## Summary - Add `resolveConfig` to the oxlint plugin to extract npm dependencies from the `jsPlugins` array in `.oxlintrc.json` - Handle both string entries (`"eslint-plugin-security"`) and object entries (`{ "name": "alias", "specifier": "eslint-plugin-foo" }`) - Filter out local file paths (starting with `.` or `/`...
diff --git a/packages/knip/fixtures/plugins/oxlint-js-plugins/.oxlintrc.json b/packages/knip/fixtures/plugins/oxlint-js-plugins/.oxlintrc.json new file mode 100644 index 0000000000..7106c52ef9 --- /dev/null +++ b/packages/knip/fixtures/plugins/oxlint-js-plugins/.oxlintrc.json @@ -0,0 +1,13 @@ +{ + "jsPlugins": [ + ...
3
1
1
[{"id": "G0", "claim": "Local jsPlugins specifiers such as `./local-plugin.mjs` should also be pushed as entries (`toEntry`) so the local plugin file gets picked up, not only external ones as dependencies.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim...
null
webpro-nl__knip__1579
webpro-nl/knip
1,579
defect
a5de2c4e49bda454f0e42b4e5bfae54024d27772
1b63ec561d467d5ff361b752235fde39619c437e
Add openapi-ts plugin
Add an openapi-ts plugin, so that `openapi-ts.config.ts` is recognized as an entrypoint automatically
diff --git a/packages/knip/fixtures/plugins/openapi-ts/node_modules/@hey-api/openapi-ts/bin/run.js b/packages/knip/fixtures/plugins/openapi-ts/node_modules/@hey-api/openapi-ts/bin/run.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/knip/fixtures/plugins/openapi-ts/node_modules/@hey-api/openap...
1
1
0
[{"id": "G0", "claim": "The fixture's dependencies on @hey-api/* packages other than @hey-api/openapi-ts are unneeded, since none of those packages are published to npm and they are not Knip-related.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
webpro-nl__knip__1600
webpro-nl/knip
1,600
defect
5abbc4a7b1097e035ea7f830312d7bda02ad079e
28c10c4cd0fc218884a02c5873f071dc68d4a178
Enable metro plugin when expo is installed
<!-- - Try to author code and/or docs similar to the rest of the repository - See [DEVELOPMENT.md][1] for development and QA guidelines Through [the CI workflow][2] the changes will be tested in Ubuntu, macOS and Windows. The changes will also be [tested against a number of external projects][3]. [1]: https:...
diff --git a/packages/knip/fixtures/plugins/expo4/app/index.tsx b/packages/knip/fixtures/plugins/expo4/app/index.tsx new file mode 100644 index 0000000000..0c11b22e81 --- /dev/null +++ b/packages/knip/fixtures/plugins/expo4/app/index.tsx @@ -0,0 +1,6 @@ +import React from 'react'; +import { View } from 'react-native'; ...
2
2
1
[{"id": "G0", "claim": "The new expo4 test should additionally assert that `counters.files === 0`, so the fixture is known to produce no unused files.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The impact of enabling the Metro plugin via the new 'ex...
null
webpro-nl__knip__1644
webpro-nl/knip
1,644
defect
65e943ccde55ea54c1cd749e577b4bcb4f97e1b4
d38b902ca70cc2c0455e63b99a127d7ed8d16e9a
feat: stencil plugin
Thanks for great work ❤️ ! Adds a simple plugin for StencilJS projects: - `stencil.config.{ts,js}` — project config - `src/**/*.tsx` — component source files (production entries) - Reads `srcDir` from config to support custom source directories - Reads `globalScript` as a production entry - Delegates to the T...
diff --git a/packages/knip/fixtures/plugins/stencil/package.json b/packages/knip/fixtures/plugins/stencil/package.json new file mode 100644 index 0000000000..07af4ad65a --- /dev/null +++ b/packages/knip/fixtures/plugins/stencil/package.json @@ -0,0 +1,6 @@ +{ + "name": "@plugins/stencil", + "dependencies": { + "@s...
1
1
0
[{"id": "G0", "claim": "The '!src/**/*.{spec,e2e}.tsx' ignore patterns should not be added to the stencil plugin's production entry globs, since Knip already excludes test files in production mode.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
webpro-nl__knip__1703
webpro-nl/knip
1,703
defect
ca5545e2a3f262cbb3e9db4705abb4f4264b102f
e2ecdbbbaa55917862e8419d2fb4991d335672b3
feat: add WXT plugin
## Summary - Adds plugin for [WXT](https://wxt.dev/) (Web Extension Framework) - Resolves `modules` array entries in `wxt.config.ts` as dependencies - Recognizes `entrypoints/**/*` as production entry files - Prevents false positive "unused dependency" reports for WXT modules ## Context Based on PR #1580 by @adeli...
diff --git a/packages/knip/fixtures/plugins/wxt/entrypoints/background.ts b/packages/knip/fixtures/plugins/wxt/entrypoints/background.ts new file mode 100644 index 0000000000..bfd212a074 --- /dev/null +++ b/packages/knip/fixtures/plugins/wxt/entrypoints/background.ts @@ -0,0 +1,3 @@ +export default defineBackground(() ...
2
2
0
[{"id": "G0", "claim": "Remove the setup() polyfill defining a global defineConfig, since the fixture imports defineConfig from wxt directly and the global function appears unnecessary.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The link https://wxt....
null
webpro-nl__knip__378
webpro-nl/knip
378
defect
2bd9bf8e84798179513176c57bb4a8f667dd4385
2ffb2a39199cbdb31db02508ed82af2232983abd
vitest: Detect whether coverage is enabled in npm scripts
This fixes #372 by doing base searches for either `--coverage` or `coverage.enabled=true` for commands starting with `vitest`. This should be good enough but does not account for e.g. npx or for overriding the [coverage instrumenter](https://github.com/search?q=--coverage.provider&type=code) in the command line argumen...
diff --git a/packages/knip/fixtures/plugins/vitest-npm-script/package.json b/packages/knip/fixtures/plugins/vitest-npm-script/package.json new file mode 100644 index 0000000000..ed11021920 --- /dev/null +++ b/packages/knip/fixtures/plugins/vitest-npm-script/package.json @@ -0,0 +1,9 @@ +{ + "name": "@fixtures/vitest-n...
2
2
1
[{"id": "G0", "claim": "The npm-script coverage detection should be improved to use a regular expression, because the current startsWith/includes check misses scenarios such as 'SOME_VAR=1 vitest' and 'another/script && vitest'.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced...
null
webpro-nl__knip__408
webpro-nl/knip
408
defect
45ff78c8b5a2283a82e84967255093203c2cf3a5
50d8bb1823507157681b72b8ff7b3f7949bbe6c5
Add LintHTML plugin
Resolves #395
diff --git a/packages/knip/fixtures/plugins/linthtml/.linthtmlrc.js b/packages/knip/fixtures/plugins/linthtml/.linthtmlrc.js new file mode 100644 index 0000000000..7e2c27eb99 --- /dev/null +++ b/packages/knip/fixtures/plugins/linthtml/.linthtmlrc.js @@ -0,0 +1,12 @@ +/** @typedef {import('@linthtml/linthtml').LinterCon...
1
1
1
[{"id": "G0", "claim": "Values that are isInternal() should be returned rather than dropped, e.g. wrapped with toEntryPattern(extend) so they become entry files; otherwise those files might be reported as unused.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
webpro-nl__knip__419
webpro-nl/knip
419
defect
49a68c2cad7e111c9da5da640899e68ea3812e04
7afb699114d78451faf9822f9aedccf107c35f1e
feat: add markdown reporter
this adds markdown reporter that reports the violations in markdown tables. closes #409
diff --git a/packages/knip/src/reporters/index.ts b/packages/knip/src/reporters/index.ts index 8a0dea3f66..3ddf5cf999 100644 --- a/packages/knip/src/reporters/index.ts +++ b/packages/knip/src/reporters/index.ts @@ -2,10 +2,12 @@ import codeowners from './codeowners.js'; import compact from './compact.js'; import json...
4
3
0
[{"id": "G0", "claim": "The markdown report should start with a single document title (e.g. `# Knip Report`) with the issue types as second-level headings.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The table column header should not use the internal...
null
webpro-nl__knip__454
webpro-nl/knip
454
defect
7d6926b81e68262492d438ee4f2c9849373cf19e
3626c9516dbbfc8f69a190d44998125d67fd91be
Add Eleventy data directory as entry pattern
Closes #453.
diff --git a/packages/knip/src/plugins/eleventy/helpers.ts b/packages/knip/src/plugins/eleventy/helpers.ts new file mode 100644 index 0000000000..68e0f5a39e --- /dev/null +++ b/packages/knip/src/plugins/eleventy/helpers.ts @@ -0,0 +1,150 @@ +import type { EleventyConfig } from './types.js'; + +export class DummyElevent...
5
4
3
[{"id": "G0", "claim": "The newly computed data-directory entry pattern is never factored into the existing return logic, so findDependencies does not return it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The 11ty plugin should use toProductionE...
null
webpro-nl__knip__726
webpro-nl/knip
726
defect
349a497e9d5b3ea5d906367a52d14628a92ce299
7439079b108e3f8c09401d6f6047fba87ac037ce
feat(cypress): add support for cypress-multi-reporter
<!-- - Try to author code and/or docs similar to the rest of the repository - Run `npm run format` (from root) - Run `npm test` (from root) Through [the CI workflow][1] the changes will be tested in Ubuntu, macOS and Windows. The changes will also be [tested against a number of external projects][2]. [1]: h...
diff --git a/packages/knip/fixtures/plugins/cypress-multi-reporter/cypress.config.ts b/packages/knip/fixtures/plugins/cypress-multi-reporter/cypress.config.ts new file mode 100644 index 0000000000..1ba1a06a8e --- /dev/null +++ b/packages/knip/fixtures/plugins/cypress-multi-reporter/cypress.config.ts @@ -0,0 +1,15 @@ +i...
4
3
3
[{"id": "G0", "claim": "Consider using the official Cypress types (`import {Cypress} from 'cypress'`) for the plugin instead of inlined types, noting that this would pull in the entire cypress dependency.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "Also...
null
webpro-nl__knip__864
webpro-nl/knip
864
defect
0362c89fc4c65897197b26fdbc9fcab3d234ff8c
d07c978314306984aa458ce79210d7f14cb2c5e0
`yarn.config.cjs` support
<!-- - Try to author code and/or docs similar to the rest of the repository - Run `npm run format` (from root) - Run `npm test` (from root) Through [the CI workflow][1] the changes will be tested in Ubuntu, macOS and Windows. The changes will also be [tested against a number of external projects][2]. [1]: h...
diff --git a/packages/knip/fixtures/plugins/yarn/package.json b/packages/knip/fixtures/plugins/yarn/package.json new file mode 100644 index 0000000000..a27588ec96 --- /dev/null +++ b/packages/knip/fixtures/plugins/yarn/package.json @@ -0,0 +1,7 @@ +{ + "name": "@fixtures/yarn", + "version": "*", + "devDependencies":...
2
2
0
[{"id": "G0", "claim": "The plugin's title should use the official 'Yarn' spelling (title cased) instead of lowercase 'yarn'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The isEnabled check should use the existing `_firstGlob` helper instead ...
null
webpro-nl__knip__922
webpro-nl/knip
922
defect
10575b8afbc0d6cc7a1442d9c28d6fa144b656ea
b6952fb328aa0cf9f32dc27b4f5d672ebe3852fa
Fix vitest reporters with options
Fix #921
diff --git a/packages/knip/fixtures/plugins/vitest7/node_modules/vitest/config.js b/packages/knip/fixtures/plugins/vitest7/node_modules/vitest/config.js new file mode 100644 index 0000000000..64a48e93c2 --- /dev/null +++ b/packages/knip/fixtures/plugins/vitest7/node_modules/vitest/config.js @@ -0,0 +1,5 @@ +function de...
2
2
0
[{"id": "G0", "claim": "The extra `flat()` added to `getExternalReporters` may lead to unexpected reporters if there is a string anywhere; instead of the extra `flat()`, return `reporter` if it is a string or `reporter[0]` for an array (or ignore otherwise).", "category": "design", "verdict": "supported", "priority": "...
null
webrecorder__cdxj-indexer__19
webrecorder/cdxj-indexer
19
defect
97d174352d0014dc999e075d2282ad12d4fed5dc
2a4ead69519e5e9425b46f912c11c58d8c017800
collection records + sort optimizations
- Fix a bug where SpooledTemporaryFile() did not have a max buffer size, resulting in reading everything into memory! - Also add max size (currently 32MB) for amount of CDXJ lines to hold in memory. If size is exceeded, write to temp files and use `heapq.merge` to merge temp files into final output.
diff --git a/cdxj_indexer/bufferiter.py b/cdxj_indexer/bufferiter.py index ee11029..52bff53 100644 --- a/cdxj_indexer/bufferiter.py +++ b/cdxj_indexer/bufferiter.py @@ -91,7 +91,7 @@ def concur_req_resp(rec_1, rec_2): # ============================================================================ def buffer_record_c...
1
1
1
[{"id": "G0", "claim": "Opening the temp files as text with no explicit encoding (\"rt\") in flush() may not give the byte-order sorted CDXJ output, so open() should set an explicit encoding such as encoding=utf-8.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
webrpc__webrpc__247
webrpc/webrpc
247
defect
c02074cbd0f4e456d73441c5870022d04740b3bd
84cf56a8e8e15f96b065f8ec0f6acd4107053dda
Support enum strings
Proposal: https://github.com/webrpc/webrpc/issues/203
diff --git a/_examples/golang-basics/example.gen.go b/_examples/golang-basics/example.gen.go index 15f3dcdb..390d0c85 100644 --- a/_examples/golang-basics/example.gen.go +++ b/_examples/golang-basics/example.gen.go @@ -1,8 +1,8 @@ -// example v0.0.1 0dabb387bb9202ba7b74b34486bbf981ddc08344 +// example v0.0.1 203a73bd42...
1
1
1
[{"id": "G0", "claim": "Generated Go code should drop the pointer for enum values: a non-optional field like `kind: Kind` should generate type `Kind`, not `*Kind`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
webrpc__webrpc__365
webrpc/webrpc
365
defect
61cd55bfc1195be6f84886e02136ed0aac8100db
febe08fcdc64d699d79406de849c965cf3223bfd
Allow to import the same file across multiple files
Right now we can import files multiple times as long as you don't have a circular dependency (go style). But if one file imports another, the type is not available for other files that import it. Take this file dependencies: ``` # file a.rld enum A # file B import a.ridl struct B - a: A # file c.rid...
diff --git a/schema/ridl/enum_parser.go b/schema/ridl/enum_parser.go index df532d9e..abc9275c 100644 --- a/schema/ridl/enum_parser.go +++ b/schema/ridl/enum_parser.go @@ -71,5 +71,6 @@ func parserStateEnum(p *parser) parserState { enumType: newTokenNode(matches[5]), values: []*DefinitionNode{}, comment: par...
4
4
3
[{"id": "G0", "claim": "The committed tests/schema/test.debug.gen.txt now embeds the author's absolute local path (/Users/klaid/...) in the generated Filename fields, which is likely what is failing CI.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G2", "claim": ...
null
webrpc__webrpc__371
webrpc/webrpc
371
defect
b5da4e6e99e05a5f57a2b83bc914876d273508a3
4e2aadb96c30e471a92f2fdace1abf20ba7e3904
Rename ClientDisconnected error to ClientAborted
The new name better describes the error cause and aligns with naming practices in telemetry and JavaScript clients. I'm planning to use it for client-aborted webrpc streams. We don't use it properly yet. While this is technically a breaking change, we keep the error code in tact, so this shouldn't break anything in ...
diff --git a/_examples/golang-basics/admin/admin.gen.go b/_examples/golang-basics/admin/admin.gen.go index e5854bf9..093ae011 100644 --- a/_examples/golang-basics/admin/admin.gen.go +++ b/_examples/golang-basics/admin/admin.gen.go @@ -777,17 +777,17 @@ func ErrorWithCause(rpcErr WebRPCError, cause error) WebRPCError { ...
1
1
0
[{"id": "G0", "claim": "The default error message should read `request aborted by client` instead of the stale `client disconnected` now that the class is named WebrpcClientAborted.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
webrtc-rs__webrtc__342
webrtc-rs/webrtc
342
defect
de6e781ec437198ffe329d68e99b9348b7e83cc6
1bab5e2b97b2f2eaffd2e737125e598ce0a67fe8
[DTLS] Use `RSA_PKCS1_1024_8192_SHA256_FOR_LEGACY_USE_ONLY` for short signatures
Will fix #339
diff --git a/dtls/src/crypto/mod.rs b/dtls/src/crypto/mod.rs index a0f42dbb0..ddd2853d1 100644 --- a/dtls/src/crypto/mod.rs +++ b/dtls/src/crypto/mod.rs @@ -300,7 +300,12 @@ fn verify_signature( SignatureAlgorithm::Rsa if hash_algorithm.hash == HashAlgorithm::Sha1 => { &ring::signature::RSA_PKCS1_...
3
2
1
[{"id": "G0", "claim": "The Sha256 RSA branch should match exactly 128-byte signatures rather than any signature shorter than 256 bytes.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Using 1024-bit keys (the legacy short-signature algorithms) should ...
null
webrtc-rs__webrtc__344
webrtc-rs/webrtc
344
defect
5b79f08aa73caa546bce03742f2f061fbc6e920f
39e8427c5917985bcbaaae907d796b66263a0618
[sctp] make `write` sync
There's no reason for it to be async because it just buffers the data in memory (actual IO is happening in a separate thread).
diff --git a/data/src/data_channel/mod.rs b/data/src/data_channel/mod.rs index 5e509d9a1..e157d7c00 100644 --- a/data/src/data_channel/mod.rs +++ b/data/src/data_channel/mod.rs @@ -118,9 +118,7 @@ impl DataChannel { }) .marshal()?; - stream - .write_sctp(&msg, Paylo...
2
1
0
[{"id": "G0", "claim": "pending_queue.rs should use the locks from `util::sync` instead of the standard-library ones (or at least add a TODO to that effect).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks whether `self.rwnd -= data_len ...
null
webrtc-rs__webrtc__345
webrtc-rs/webrtc
345
defect
d50269a6a30bbed4b36f2155e10fc3ab0a495e02
7ef63b1615b066bf100d673769da4f81d02b6b73
add `PendingQueue::append`
which appends chunks to the back of the pending queue. Consider the following two simultaneous calls to `send_payload_data`: ``` 1. [beginning_fragment1, data2, data3, ending_fragment4] 2. [beginning_fragment5, data6, data7, ending_fragment8] ``` If `push` is used, due to individual locks, it's possible...
diff --git a/sctp/src/association/association_internal.rs b/sctp/src/association/association_internal.rs index 03f8c7dd6..3442d3a33 100644 --- a/sctp/src/association/association_internal.rs +++ b/sctp/src/association/association_internal.rs @@ -2003,10 +2003,8 @@ impl AssociationInternal { return Err(Error...
5
3
1
[{"id": "G0", "claim": "The two `assert!(c.unordered)` / `assert!(!c.unordered)` calls in `append` should have panic messages.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In `append`, the `n_bytes` and `queue_len` counters should be increment...
null
webrtc-rs__webrtc__367
webrtc-rs/webrtc
367
defect
20b59b7a40663c7546b105d7cd698ca4655a1fc4
73c81d6011dea0b95e91bc6d425080f098aa4baf
[SCTP] limit the bytes in the PendingQueue by using a semaphore
As discussed in #360 the pending queue can grow indefinitly if the sender writes packets faster than the association is able to transmit them. This PR solves this by enforcing a limit on the pendig queue. This blocks the sender until enough space is free.
diff --git a/sctp/src/queue/pending_queue.rs b/sctp/src/queue/pending_queue.rs index 1b6ffbe0e..fbcaeafe0 100644 --- a/sctp/src/queue/pending_queue.rs +++ b/sctp/src/queue/pending_queue.rs @@ -1,6 +1,9 @@ use std::{ collections::VecDeque, - sync::atomic::{AtomicBool, AtomicUsize, Ordering}, + sync::{ + ...
4
3
1
[{"id": "G0", "claim": "The hand-rolled PushLimitSemaphore blocks the calling thread without yielding to the tokio runtime and can deadlock the whole runtime if all worker threads block; it should be replaced with tokio's semaphore (or async primitives) instead.", "category": "correctness", "verdict": "supported", "pri...
null