Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update crates #9012

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -61,7 +61,11 @@
"miette",
"rkyv",
"rspack_resolver",
"inventory"
"inventory",
"opentelemetry",
"opentelemetry_sdk",
"opentelemetry-otlp",
"tracing-opentelemetry"
]
},
{
@@ -114,7 +118,11 @@
"owo-colors",
"miette",
"rkyv",
"inventory"
"inventory",
"opentelemetry",
"opentelemetry_sdk",
"opentelemetry-otlp",
"tracing-opentelemetry"
],
enabled: false
},
510 changes: 246 additions & 264 deletions Cargo.lock

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -31,8 +31,8 @@ anyhow = { version = "1.0.95", features = ["backtrace"] }
anymap = { package = "anymap3", version = "1.0.1" }
async-recursion = { version = "1.1.1" }
async-scoped = { version = "0.9.0" }
async-trait = { version = "0.1.84" }
bitflags = { version = "2.6.0" }
async-trait = { version = "0.1.86" }
bitflags = { version = "2.8.0" }
camino = { version = "1.1.9" }
concat-string = { version = "1.0.1" }
cow-utils = { version = "0.1.3" }
@@ -46,36 +46,36 @@ glob = { version = "0.3.2" }
hashlink = { version = "0.10.0" }
heck = { version = "0.5.0" }
hex = { version = "0.4.3" }
indexmap = { version = "2.7.0" }
indexmap = { version = "2.7.1" }
indoc = { version = "2.0.5" }
itertools = { version = "0.14.0" }
json = { version = "0.12.4" }
lightningcss = { version = "1.0.0-alpha.63" }
linked_hash_set = { version = "0.1.5" }
mimalloc = { version = "0.1.44", package = "mimalloc-rspack" }
mime_guess = { version = "2.0.5" }
once_cell = { version = "1.20.2" }
once_cell = { version = "1.20.3" }
parcel_sourcemap = { version = "2.1.1" }
paste = { version = "1.0.15" }
path-clean = { version = "1.0.1" }
pathdiff = { version = "0.2.3" }
pollster = { version = "0.4.0" }
proc-macro2 = { version = "1.0.92" }
proc-macro2 = { version = "1.0.93" }
quote = { version = "1.0.38" }
rayon = { version = "1.10.0" }
regex = { version = "1.11.1" }
ropey = "1.6.1"
rspack_resolver = { features = ["package_json_raw_json_api"], version = "0.5.0" }
rspack_sources = { version = "0.4.4" }
rustc-hash = { version = "2.1.0" }
rustc-hash = { version = "2.1.1" }
serde = { version = "1.0.217" }
serde_json = { version = "1.0.134" }
serde_json = { version = "1.0.138" }
simd-json = { version = "0.14.3" }
smol_str = { version = "0.3.0" }
stacker = { version = "0.1.17" }
sugar_path = { version = "1.2.0", features = ["cached_current_dir"] }
syn = { version = "2.0.95" }
tokio = { version = "1.42.0" }
syn = { version = "2.0.98" }
tokio = { version = "1.43.0" }
tracing = { version = "0.1.41" }
tracing-subscriber = { version = "0.3.19" }
unicase = { version = "2.8.1" }
2 changes: 1 addition & 1 deletion crates/rspack_core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ bitflags = { workspace = true }
cow-utils = { workspace = true }
dashmap = { workspace = true, features = ["rayon"] }
derive_more = { workspace = true, features = ["debug"] }
dyn-clone = "1.0.17"
dyn-clone = "1.0.18"
either = { workspace = true }
futures = { workspace = true }
hashlink = { workspace = true }
2 changes: 1 addition & 1 deletion crates/rspack_hash/Cargo.toml
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ repository = "https://github.com/web-infra-dev/rspack"
version = "0.2.0"

[dependencies]
data-encoding = { version = "2.6.0" }
data-encoding = { version = "2.7.0" }
md4 = "0.10.2"
rspack_cacheable = { workspace = true }
smol_str = { workspace = true }
2 changes: 1 addition & 1 deletion crates/rspack_hook/Cargo.toml
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ version = "0.2.0"

[dependencies]
async-trait = { workspace = true }
futures-concurrency = "7.6.2"
futures-concurrency = "7.6.3"
rspack_error = { workspace = true }
rspack_macros = { workspace = true }
rustc-hash = { workspace = true }
2 changes: 1 addition & 1 deletion crates/rspack_loader_swc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -39,7 +39,7 @@ swc = { workspace = true, features = ["manual-tokio-runtime
swc_config = { workspace = true }
swc_core = { workspace = true, features = ["base", "ecma_ast", "common"] }
tracing = { workspace = true }
url = "2.5.0"
url = "2.5.4"

[build-dependencies]
cargo_toml = { version = "0.21.0" }
2 changes: 1 addition & 1 deletion crates/rspack_macros_test/Cargo.toml
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ rspack_macros = { workspace = true }
rspack_util = { workspace = true }
tokio = { workspace = true, features = ["macros"] }
tracing = { workspace = true }
trybuild = { version = "1.0.101", features = ["diff"] }
trybuild = { version = "1.0.103", features = ["diff"] }

[package.metadata.cargo-shear]
ignored = ["tracing", "rspack_cacheable"]
2 changes: 1 addition & 1 deletion crates/rspack_napi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -9,6 +9,6 @@ version = "0.2.0"

[dependencies]
napi = { workspace = true, features = ["async", "tokio_rt", "serde-json", "napi4", "anyhow"] }
oneshot = "0.1.8"
oneshot = "0.1.10"
rspack_error = { workspace = true }
tokio = { workspace = true, features = ["rt", "rt-multi-thread", "macros", "test-util", "parking_lot"] }
2 changes: 1 addition & 1 deletion crates/rspack_plugin_progress/Cargo.toml
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ version = "0.2.0"

[dependencies]
async-trait = { workspace = true }
indicatif = "0.17.9"
indicatif = "0.17.11"
rspack_collections = { workspace = true }
rspack_core = { workspace = true }
rspack_error = { workspace = true }
2 changes: 1 addition & 1 deletion crates/rspack_plugin_wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ rspack_util = { workspace = true }
serde_json = { workspace = true }
swc_core = { workspace = true, features = ["__ecma"] }
tracing = { workspace = true }
wasmparser = "0.222.0"
wasmparser = "0.225.0"

[package.metadata.cargo-shear]
ignored = ["tracing"]
2 changes: 1 addition & 1 deletion crates/rspack_regex/Cargo.toml
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ version = "0.2.0"
cow-utils = { workspace = true }
napi = { workspace = true }
regex-syntax = { version = "0.8.5", default-features = false, features = ["std"] }
regress = "0.10.1"
regress = "0.10.3"
rspack_cacheable = { workspace = true }
rspack_error = { workspace = true }
swc_core = { workspace = true, features = ["ecma_ast"] }
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@ runtime modules 1.61 KiB
[no exports]
[used exports unknown]
Rspack compiled successfully (d02a6857e8f1f969)
Rspack compiled successfully (cf19676f793c3a02)
`;

exports[`new code splitting stats output new code splitting stats output/builtin-swc-loader-parse-error should print correct stats for: NewCodeSplittingStatsOutput 1`] = `
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@ Object {
main.js,
],
filteredModules: undefined,
hash: 50f4182a210ae3fc,
hash: c6f680119fd3921a,
id: 909,
idHints: Array [],
initial: true,
@@ -179,7 +179,7 @@ Object {
errorsCount: 0,
filteredAssets: undefined,
filteredModules: undefined,
hash: 59afbeeb2d3dd524,
hash: e4bb95da12f74e78,
modules: Array [
Object {
assets: Array [],
@@ -330,7 +330,7 @@ Object {
main.js,
],
filteredModules: undefined,
hash: b0c3f5be812244f9,
hash: 95d6cb1fb934ad43,
id: 909,
idHints: Array [],
initial: true,
@@ -718,7 +718,7 @@ Object {
errorsCount: 0,
filteredAssets: undefined,
filteredModules: undefined,
hash: 869653cdb9b09f07,
hash: 1b13f514bc6652d6,
modules: Array [
Object {
assets: Array [],
@@ -1521,7 +1521,7 @@ Object {
files: Array [
main.js,
],
hash: 50f4182a210ae3fc,
hash: c6f680119fd3921a,
id: 909,
idHints: Array [],
initial: true,
@@ -1661,7 +1661,7 @@ Object {
main.js,
],
filteredModules: undefined,
hash: e813d411c0f3d316,
hash: d2903648b14c84db,
id: 909,
idHints: Array [],
initial: true,
@@ -2030,7 +2030,7 @@ exports.c = require("./c?c=3");,
errorsCount: 0,
filteredAssets: undefined,
filteredModules: undefined,
hash: 27d6c5d54c85318d,
hash: 07a989d85c9b6539,
modules: Array [
Object {
assets: Array [],
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@ runtime modules 1.61 KiB
[no exports]
[used exports unknown]
Rspack compiled successfully (d02a6857e8f1f969)
Rspack compiled successfully (cf19676f793c3a02)
`;

exports[`statsOutput statsOutput/builtin-swc-loader-parse-error should print correct stats for 1`] = `
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
```js title=dynamic-1_js-_5ebd0.js
```js title=dynamic-1_js-_af6f0.js
"use strict";
(self['webpackChunkwebpack'] = self['webpackChunkwebpack'] || []).push([["dynamic-1_js-_5ebd0"], {
(self['webpackChunkwebpack'] = self['webpackChunkwebpack'] || []).push([["dynamic-1_js-_af6f0"], {
"./dynamic-1.js": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* ESM import */var _shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./shared.js");
/* ESM import */var _shared__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_shared__WEBPACK_IMPORTED_MODULE_0__);

__webpack_require__.e(/* import() */ "dynamic-2_js-_72240").then(__webpack_require__.bind(__webpack_require__, "./dynamic-2.js"));
__webpack_require__.e(/* import() */ "dynamic-2_js-_89260").then(__webpack_require__.bind(__webpack_require__, "./dynamic-2.js"));
console.log("dynamic-1");


@@ -15,15 +15,15 @@ console.log("dynamic-1");
}]);
```

```js title=dynamic-1_js-_5ebd1.js
(self['webpackChunkwebpack'] = self['webpackChunkwebpack'] || []).push([["dynamic-1_js-_5ebd1"], {
```js title=dynamic-1_js-_af6f1.js
(self['webpackChunkwebpack'] = self['webpackChunkwebpack'] || []).push([["dynamic-1_js-_af6f1"], {
"./dynamic-1.js": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* ESM import */var _shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./shared.js");
/* ESM import */var _shared__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_shared__WEBPACK_IMPORTED_MODULE_0__);

__webpack_require__.e(/* import() */ "dynamic-2_js-_72240").then(__webpack_require__.bind(__webpack_require__, "./dynamic-2.js"));
__webpack_require__.e(/* import() */ "dynamic-2_js-_89260").then(__webpack_require__.bind(__webpack_require__, "./dynamic-2.js"));
console.log("dynamic-1");


@@ -37,15 +37,15 @@ console.log("shared");
}]);
```

```js title=dynamic-2_js-_72240.js
```js title=dynamic-2_js-_89260.js
"use strict";
(self['webpackChunkwebpack'] = self['webpackChunkwebpack'] || []).push([["dynamic-2_js-_72240"], {
(self['webpackChunkwebpack'] = self['webpackChunkwebpack'] || []).push([["dynamic-2_js-_89260"], {
"./dynamic-2.js": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* ESM import */var _shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./shared.js");
/* ESM import */var _shared__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_shared__WEBPACK_IMPORTED_MODULE_0__);

__webpack_require__.e(/* import() */ "dynamic-1_js-_5ebd0").then(__webpack_require__.bind(__webpack_require__, "./dynamic-1.js"));
__webpack_require__.e(/* import() */ "dynamic-1_js-_af6f0").then(__webpack_require__.bind(__webpack_require__, "./dynamic-1.js"));
console.log("dynamic-2");


@@ -54,15 +54,15 @@ console.log("dynamic-2");
}]);
```

```js title=dynamic-2_js-_72241.js
(self['webpackChunkwebpack'] = self['webpackChunkwebpack'] || []).push([["dynamic-2_js-_72241"], {
```js title=dynamic-2_js-_89261.js
(self['webpackChunkwebpack'] = self['webpackChunkwebpack'] || []).push([["dynamic-2_js-_89261"], {
"./dynamic-2.js": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* ESM import */var _shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./shared.js");
/* ESM import */var _shared__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_shared__WEBPACK_IMPORTED_MODULE_0__);

__webpack_require__.e(/* import() */ "dynamic-1_js-_5ebd0").then(__webpack_require__.bind(__webpack_require__, "./dynamic-1.js"));
__webpack_require__.e(/* import() */ "dynamic-1_js-_af6f0").then(__webpack_require__.bind(__webpack_require__, "./dynamic-1.js"));
console.log("dynamic-2");


@@ -79,8 +79,8 @@ console.log("shared");
```js title=main.js
(self['webpackChunkwebpack'] = self['webpackChunkwebpack'] || []).push([["main"], {
"./index.js": (function (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
__webpack_require__.e(/* import() */ "dynamic-1_js-_5ebd1").then(__webpack_require__.bind(__webpack_require__, "./dynamic-1.js"));
__webpack_require__.e(/* import() */ "dynamic-2_js-_72241").then(__webpack_require__.bind(__webpack_require__, "./dynamic-2.js"));
__webpack_require__.e(/* import() */ "dynamic-1_js-_af6f1").then(__webpack_require__.bind(__webpack_require__, "./dynamic-1.js"));
__webpack_require__.e(/* import() */ "dynamic-2_js-_89261").then(__webpack_require__.bind(__webpack_require__, "./dynamic-2.js"));
console.log("index");


Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```js title=a_js-_c18a0.js
(self['webpackChunkwebpack'] = self['webpackChunkwebpack'] || []).push([["a_js-_c18a0"], {
```js title=a_js-_62a90.js
(self['webpackChunkwebpack'] = self['webpackChunkwebpack'] || []).push([["a_js-_62a90"], {
"./a.js": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
@@ -25,8 +25,8 @@ console.log("i-1");
}]);
```

```js title=a_js-_c18a1.js
(self['webpackChunkwebpack'] = self['webpackChunkwebpack'] || []).push([["a_js-_c18a1"], {
```js title=a_js-_62a91.js
(self['webpackChunkwebpack'] = self['webpackChunkwebpack'] || []).push([["a_js-_62a91"], {
"./a.js": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
@@ -67,7 +67,7 @@ console.log("i-1");
/* ESM import */var _i_1__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_i_1__WEBPACK_IMPORTED_MODULE_1__);


__webpack_require__.e(/* import() */ "a_js-_c18a1").then(__webpack_require__.bind(__webpack_require__, "./a.js"));
__webpack_require__.e(/* import() */ "a_js-_62a91").then(__webpack_require__.bind(__webpack_require__, "./a.js"));
console.log("index");


@@ -101,7 +101,7 @@ console.log("i-2");
/* ESM import */var _i_2__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_i_2__WEBPACK_IMPORTED_MODULE_1__);


__webpack_require__.e(/* import() */ "a_js-_c18a0").then(__webpack_require__.bind(__webpack_require__, "./a.js"));
__webpack_require__.e(/* import() */ "a_js-_62a90").then(__webpack_require__.bind(__webpack_require__, "./a.js"));
console.log("index");


Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ __webpack_require__.r(__webpack_exports__);
/* ESM import */var _exist__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./exist.js");
/* ESM import */var _exist__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_exist__WEBPACK_IMPORTED_MODULE_0__);

__webpack_require__.e(/* import() */ "shared_js-_5ce21").then(__webpack_require__.bind(__webpack_require__, "./shared.js"));
__webpack_require__.e(/* import() */ "shared_js-_38af1").then(__webpack_require__.bind(__webpack_require__, "./shared.js"));


}),
@@ -39,16 +39,16 @@ __webpack_require__.e(/* import() */ "shared_js-_5ce21").then(__webpack_require_
```js title=parent-2_js.js
(self['webpackChunkwebpack'] = self['webpackChunkwebpack'] || []).push([["parent-2_js"], {
"./parent-2.js": (function (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
__webpack_require__.e(/* import() */ "shared_js-_5ce20").then(__webpack_require__.bind(__webpack_require__, "./shared.js"));
__webpack_require__.e(/* import() */ "shared_js-_38af0").then(__webpack_require__.bind(__webpack_require__, "./shared.js"));


}),

}]);
```

```js title=shared_js-_5ce20.js
(self['webpackChunkwebpack'] = self['webpackChunkwebpack'] || []).push([["shared_js-_5ce20"], {
```js title=shared_js-_38af0.js
(self['webpackChunkwebpack'] = self['webpackChunkwebpack'] || []).push([["shared_js-_38af0"], {
"./exist.js": (function () {
console.log("exist");

@@ -69,9 +69,9 @@ console.log("shared");
}]);
```

```js title=shared_js-_5ce21.js
```js title=shared_js-_38af1.js
"use strict";
(self['webpackChunkwebpack'] = self['webpackChunkwebpack'] || []).push([["shared_js-_5ce21"], {
(self['webpackChunkwebpack'] = self['webpackChunkwebpack'] || []).push([["shared_js-_38af1"], {
"./shared.js": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* ESM import */var _exist__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./exist.js");
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
ERROR in ./app.js
× Module parse failed:
╰─▶ × JavaScript parsing error: Expression expected
╭─[4:32]
╰─▶ × JavaScript parsing error: Unterminated regexp literal
╭─[4:31]
2 │ createElement() {}
3 │ };
4 │ export const App = () => <div></div>;
· ─────
· ─────
╰────

help:
@@ -27,37 +27,37 @@ ERROR in ./app.js
ERROR in ./app.js
× Module parse failed:
╰─▶ × JavaScript parsing error: Expression expected
╭─[4:30]
╭─[4:32]
2 │ createElement() {}
3 │ };
4 │ export const App = () => <div></div>;
· ─
· ────
╰────

help:
You may need an appropriate loader to handle this file type.

ERROR in ./app.js
× Module parse failed:
╰─▶ × JavaScript parsing error: Unterminated regexp literal
╭─[4:31]
╰─▶ × JavaScript parsing error: Expression expected
╭─[4:30]
2 │ createElement() {}
3 │ };
4 │ export const App = () => <div></div>;
· ─────
· ─
╰────

help:
You may need an appropriate loader to handle this file type.

ERROR in ./app.jsx
× Module parse failed:
╰─▶ × JavaScript parsing error: Expression expected
╭─[4:32]
╰─▶ × JavaScript parsing error: Unterminated regexp literal
╭─[4:31]
2 │ createElement() {}
3 │ };
4 │ export const App = () => <div></div>;
· ─────
· ─────
╰────

help:
@@ -79,24 +79,24 @@ ERROR in ./app.jsx
ERROR in ./app.jsx
× Module parse failed:
╰─▶ × JavaScript parsing error: Expression expected
╭─[4:30]
╭─[4:32]
2 │ createElement() {}
3 │ };
4 │ export const App = () => <div></div>;
· ─
· ────
╰────

help:
You may need an appropriate loader to handle this file type.

ERROR in ./app.jsx
× Module parse failed:
╰─▶ × JavaScript parsing error: Unterminated regexp literal
╭─[4:31]
╰─▶ × JavaScript parsing error: Expression expected
╭─[4:30]
2 │ createElement() {}
3 │ };
4 │ export const App = () => <div></div>;
· ─────
· ─
╰────

help:
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
ERROR in ./index.js
× Module parse failed:
╰─▶ × JavaScript parsing error: Expression expected
╭─[5:0]
╰─▶ × JavaScript parsing error: 'const' declarations must be initialized
╭─[2:6]
1 │ const CONST = 9000 % 2;
2 │ const D {
· ─
3 │ d = 10
4 │ g = CONST
5 │ }
· ─
╰────

help:
You may need an appropriate loader to handle this file type.

ERROR in ./index.js
× Module parse failed:
╰─▶ × JavaScript parsing error: 'const' declarations must be initialized
╭─[2:6]
1 │ const CONST = 9000 % 2;
2 │ const D {
· ─
╰─▶ × JavaScript parsing error: Expression expected
╭─[5:0]
3 │ d = 10
4 │ g = CONST
5 │ }
· ─
╰────

help:
Original file line number Diff line number Diff line change
@@ -11,21 +11,21 @@ ERROR in ./non-recoverable.js

ERROR in ./recoverable.js
× Module parse failed:
╰─▶ × JavaScript parsing error: 'const' declarations must be initialized
╰─▶ × JavaScript parsing error: Expected a semicolon
╭────
1 │ const foo {};
· ──
·
╰────

help:
You may need an appropriate loader to handle this file type.

ERROR in ./recoverable.js
× Module parse failed:
╰─▶ × JavaScript parsing error: Expected a semicolon
╰─▶ × JavaScript parsing error: 'const' declarations must be initialized
╭────
1 │ const foo {};
·
· ──
╰────

help:
Original file line number Diff line number Diff line change
@@ -12,20 +12,6 @@ ERROR in ./a.js
help:
You may need an appropriate loader to handle this file type.

ERROR in ./a.js
× Module parse failed:
╰─▶ × JavaScript parsing error: Expected a semicolon
╭─[2:9]
1 │ const CONST = 9000 % 2;
2 │ const D {
· ─
3 │ // Comma is required, but parser can recover because of the newline.
4 │ d = 10
╰────

help:
You may need an appropriate loader to handle this file type.

ERROR in ./a.js
× Module parse failed:
╰─▶ × JavaScript parsing error: Expression expected
@@ -39,13 +25,13 @@ ERROR in ./a.js
help:
You may need an appropriate loader to handle this file type.

ERROR in ./b.js
ERROR in ./a.js
× Module parse failed:
╰─▶ × JavaScript parsing error: 'const' declarations must be initialized
╭─[2:7]
╰─▶ × JavaScript parsing error: Expected a semicolon
╭─[2:9]
1 │ const CONST = 9000 % 2;
2 │ const D {
· ─
·
3 │ // Comma is required, but parser can recover because of the newline.
4 │ d = 10
╰────
@@ -55,11 +41,11 @@ ERROR in ./b.js

ERROR in ./b.js
× Module parse failed:
╰─▶ × JavaScript parsing error: Expected a semicolon
╭─[2:9]
╰─▶ × JavaScript parsing error: 'const' declarations must be initialized
╭─[2:7]
1 │ const CONST = 9000 % 2;
2 │ const D {
·
· ─
3 │ // Comma is required, but parser can recover because of the newline.
4 │ d = 10
╰────
@@ -80,13 +66,13 @@ ERROR in ./b.js
help:
You may need an appropriate loader to handle this file type.

ERROR in ./c.js
ERROR in ./b.js
× Module parse failed:
╰─▶ × JavaScript parsing error: 'const' declarations must be initialized
╭─[2:7]
╰─▶ × JavaScript parsing error: Expected a semicolon
╭─[2:9]
1 │ const CONST = 9000 % 2;
2 │ const D {
· ─
·
3 │ // Comma is required, but parser can recover because of the newline.
4 │ d = 10
╰────
@@ -96,11 +82,11 @@ ERROR in ./c.js

ERROR in ./c.js
× Module parse failed:
╰─▶ × JavaScript parsing error: Expected a semicolon
╭─[2:9]
╰─▶ × JavaScript parsing error: 'const' declarations must be initialized
╭─[2:7]
1 │ const CONST = 9000 % 2;
2 │ const D {
·
· ─
3 │ // Comma is required, but parser can recover because of the newline.
4 │ d = 10
╰────
@@ -121,13 +107,13 @@ ERROR in ./c.js
help:
You may need an appropriate loader to handle this file type.

ERROR in ./d.js
ERROR in ./c.js
× Module parse failed:
╰─▶ × JavaScript parsing error: 'const' declarations must be initialized
╭─[2:7]
╰─▶ × JavaScript parsing error: Expected a semicolon
╭─[2:9]
1 │ const CONST = 9000 % 2;
2 │ const D {
· ─
·
3 │ // Comma is required, but parser can recover because of the newline.
4 │ d = 10
╰────
@@ -137,11 +123,11 @@ ERROR in ./d.js

ERROR in ./d.js
× Module parse failed:
╰─▶ × JavaScript parsing error: Expected a semicolon
╭─[2:9]
╰─▶ × JavaScript parsing error: 'const' declarations must be initialized
╭─[2:7]
1 │ const CONST = 9000 % 2;
2 │ const D {
·
· ─
3 │ // Comma is required, but parser can recover because of the newline.
4 │ d = 10
╰────
@@ -162,13 +148,13 @@ ERROR in ./d.js
help:
You may need an appropriate loader to handle this file type.

ERROR in ./e.js
ERROR in ./d.js
× Module parse failed:
╰─▶ × JavaScript parsing error: 'const' declarations must be initialized
╭─[2:7]
╰─▶ × JavaScript parsing error: Expected a semicolon
╭─[2:9]
1 │ const CONST = 9000 % 2;
2 │ const D {
· ─
·
3 │ // Comma is required, but parser can recover because of the newline.
4 │ d = 10
╰────
@@ -178,11 +164,11 @@ ERROR in ./e.js

ERROR in ./e.js
× Module parse failed:
╰─▶ × JavaScript parsing error: Expected a semicolon
╭─[2:9]
╰─▶ × JavaScript parsing error: 'const' declarations must be initialized
╭─[2:7]
1 │ const CONST = 9000 % 2;
2 │ const D {
·
· ─
3 │ // Comma is required, but parser can recover because of the newline.
4 │ d = 10
╰────
@@ -203,13 +189,13 @@ ERROR in ./e.js
help:
You may need an appropriate loader to handle this file type.

ERROR in ./f.js
ERROR in ./e.js
× Module parse failed:
╰─▶ × JavaScript parsing error: 'const' declarations must be initialized
╭─[2:7]
╰─▶ × JavaScript parsing error: Expected a semicolon
╭─[2:9]
1 │ const CONST = 9000 % 2;
2 │ const D {
· ─
·
3 │ // Comma is required, but parser can recover because of the newline.
4 │ d = 10
╰────
@@ -219,11 +205,11 @@ ERROR in ./f.js

ERROR in ./f.js
× Module parse failed:
╰─▶ × JavaScript parsing error: Expected a semicolon
╭─[2:9]
╰─▶ × JavaScript parsing error: 'const' declarations must be initialized
╭─[2:7]
1 │ const CONST = 9000 % 2;
2 │ const D {
·
· ─
3 │ // Comma is required, but parser can recover because of the newline.
4 │ d = 10
╰────
@@ -244,13 +230,13 @@ ERROR in ./f.js
help:
You may need an appropriate loader to handle this file type.

ERROR in ./g.js
ERROR in ./f.js
× Module parse failed:
╰─▶ × JavaScript parsing error: 'const' declarations must be initialized
╭─[2:7]
╰─▶ × JavaScript parsing error: Expected a semicolon
╭─[2:9]
1 │ const CONST = 9000 % 2;
2 │ const D {
· ─
·
3 │ // Comma is required, but parser can recover because of the newline.
4 │ d = 10
╰────
@@ -260,11 +246,11 @@ ERROR in ./g.js

ERROR in ./g.js
× Module parse failed:
╰─▶ × JavaScript parsing error: Expected a semicolon
╭─[2:9]
╰─▶ × JavaScript parsing error: 'const' declarations must be initialized
╭─[2:7]
1 │ const CONST = 9000 % 2;
2 │ const D {
·
· ─
3 │ // Comma is required, but parser can recover because of the newline.
4 │ d = 10
╰────
@@ -284,3 +270,17 @@ ERROR in ./g.js

help:
You may need an appropriate loader to handle this file type.

ERROR in ./g.js
× Module parse failed:
╰─▶ × JavaScript parsing error: Expected a semicolon
╭─[2:9]
1 │ const CONST = 9000 % 2;
2 │ const D {
· ─
3 │ // Comma is required, but parser can recover because of the newline.
4 │ d = 10
╰────

help:
You may need an appropriate loader to handle this file type.
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
```javascript
Array [
Object {
"main.20af8dc95eedc570.js": (() => { // webpackBootstrap
"main.aa6afac1fee0ff8f.js": (() => { // webpackBootstrap
var __webpack_modules__ = ({
600: (function (module) {
module.exports = "This is hook"
2 changes: 1 addition & 1 deletion packages/rspack-test-tools/tests/statsAPICases/basic.js
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ module.exports = {
entry ./fixtures/a
cjs self exports reference self [585] ./fixtures/a.js
Rspack compiled successfully (59afbeeb2d3dd524)
Rspack compiled successfully (e4bb95da12f74e78)
`);
}
};
4 changes: 2 additions & 2 deletions packages/rspack-test-tools/tests/statsAPICases/chunks.js
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ module.exports = {
chunkB.js,
],
filteredModules: undefined,
hash: 64feb0c0aec6d474,
hash: 636eec4881d562f4,
id: 250,
idHints: Array [],
initial: false,
@@ -150,7 +150,7 @@ module.exports = {
main.js,
],
filteredModules: undefined,
hash: 8aed47a5120d1613,
hash: 4318af6f986bae26,
id: 909,
idHints: Array [],
initial: true,
2 changes: 1 addition & 1 deletion tasks/release-check/Cargo.toml
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ license.workspace = true
repository.workspace = true

[dependencies]
toml = { version = "0.8.19"}
toml = { version = "0.8.20"}
miette = { version = "7.2.0", features = ["fancy"] }
thiserror = "1.0.69"

Original file line number Diff line number Diff line change
@@ -77,7 +77,7 @@ __webpack_require__.e = function (chunkId) {
// webpack/runtime/get_full_hash
(() => {
__webpack_require__.h = function () {
return "f4608fdcfef13de69f10";
return "39576f62d07123a78353";
};

})();
Original file line number Diff line number Diff line change
@@ -39,8 +39,8 @@ __webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
b: () => (/* reexport */ b_namespaceObject),
a: () => (/* reexport */ a_namespaceObject),
b: () => (/* reexport */ b_namespaceObject),
c: () => (/* reexport */ c_1)
});
// NAMESPACE OBJECT: ./a.css
Original file line number Diff line number Diff line change
@@ -89,7 +89,7 @@ __webpack_require__.e = function (chunkId) {
// return url for filenames not based on template

// return url for filenames based on template
return "" + chunkId + ".$" + {"\\css\\chunk": "b1b844425027e2012f17","\\js\\chunk": "033244835a8df445c8ec",}[chunkId] + "$.js";
return "" + chunkId + ".$" + {"\\css\\chunk": "5a29d842e68749c5f1e2","\\js\\chunk": "79d8332ec70e291aa96c",}[chunkId] + "$.js";
};

})();
@@ -100,14 +100,14 @@ __webpack_require__.e = function (chunkId) {
// return url for filenames not based on template

// return url for filenames based on template
return "" + chunkId + ".$" + "045b86c2c3fee05a882a" + "$.css";
return "" + chunkId + ".$" + "96d5b67ad821ba8cab6d" + "$.css";
};

})();
// webpack/runtime/get_full_hash
(() => {
__webpack_require__.h = function () {
return "da63e7bb2bfca29ff73b";
return "352f977022a36cc77711";
};

})();
42 changes: 21 additions & 21 deletions tests/webpack-test/__snapshots__/StatsTestCases.basictest.js.snap
Original file line number Diff line number Diff line change
@@ -336,12 +336,12 @@ Rspack x.x.x compiled successfully in X.23"
`;

exports[`StatsTestCases should print correct stats for commons-plugin-issue-4980 1`] = `
"asset app.824f7ad4e050d52c-1.js 52 bytes [emitted] [immutable] (name: app)
"asset app.65cf6affbf0cd0c0-1.js 52 bytes [emitted] [immutable] (name: app)
orphan modules 205 bytes [orphan] 3 modules
./entry-1.js 67 bytes [built] [code generated]
Rspack x.x.x compiled successfully in X.23
asset app.05ce3dc57a31149c-2.js 52 bytes [emitted] [immutable] (name: app)
asset app.61e784f58e359016-2.js 52 bytes [emitted] [immutable] (name: app)
orphan modules 212 bytes [orphan] 3 modules
./entry-2.js 67 bytes [built] [code generated]
Rspack x.x.x compiled successfully in X.23"
@@ -497,8 +497,8 @@ Rspack x.x.x compiled successfully in X.23"
`;

exports[`StatsTestCases should print correct stats for immutable 1`] = `
"asset 7d308f468b6a0d1b.js 10.4 KiB [emitted] [immutable] (name: main)
asset 7342054f673663df.js 167 bytes [emitted] [immutable]"
"asset 740788fdff79d6ed.js 10.4 KiB [emitted] [immutable] (name: main)
asset 1c0222a0ac19cf1f.js 167 bytes [emitted] [immutable]"
`;

exports[`StatsTestCases should print correct stats for import-context-filter 1`] = `
@@ -581,32 +581,32 @@ Rspack x.x.x compiled with 2 warnings"
`;
exports[`StatsTestCases should print correct stats for issue-7577 1`] = `
"asset a-runtime~main-8ed37b9e446eb01b.js 3.69 KiB [emitted] [immutable] (name: runtime~main)
"asset a-runtime~main-5f65213afaf17c09.js 3.69 KiB [emitted] [immutable] (name: runtime~main)
asset a-main-f9892dc0f961d982.js 387 bytes [emitted] [immutable] (name: main)
asset a-all-a_js-cace9eea394248e7.js 128 bytes [emitted] [immutable] (id hint: all)
Entrypoint main 4.19 KiB = a-runtime~main-8ed37b9e446eb01b.js 3.69 KiB a-all-a_js-cace9eea394248e7.js 128 bytes a-main-f9892dc0f961d982.js 387 bytes
asset a-all-a_js-918a9036f0cd242b.js 128 bytes [emitted] [immutable] (id hint: all)
Entrypoint main 4.19 KiB = a-runtime~main-5f65213afaf17c09.js 3.69 KiB a-all-a_js-918a9036f0cd242b.js 128 bytes a-main-f9892dc0f961d982.js 387 bytes
runtime modules 2.59 KiB 3 modules
./a.js 18 bytes [built] [code generated]
Rspack x.x.x compiled successfully in X.23
asset b-runtime~main-d374c52d52a8c105.js 4.38 KiB [emitted] [immutable] (name: runtime~main)
asset b-all-b_js-f689e3be6ed05e06.js 453 bytes [emitted] [immutable] (id hint: all)
asset b-runtime~main-8a8cd486e9842284.js 4.38 KiB [emitted] [immutable] (name: runtime~main)
asset b-all-b_js-9c8883a8b9b3d692.js 453 bytes [emitted] [immutable] (id hint: all)
asset b-main-a97968a81f0fafdb.js 420 bytes [emitted] [immutable] (name: main)
asset b-vendors-node_modules_vendor_js-8e4df31a4698ceb4.js 173 bytes [emitted] [immutable] (id hint: vendors)
Entrypoint main 5.41 KiB = b-runtime~main-d374c52d52a8c105.js 4.38 KiB b-vendors-node_modules_vendor_js-8e4df31a4698ceb4.js 173 bytes b-all-b_js-f689e3be6ed05e06.js 453 bytes b-main-a97968a81f0fafdb.js 420 bytes
asset b-vendors-node_modules_vendor_js-01281488ed24fc05.js 173 bytes [emitted] [immutable] (id hint: vendors)
Entrypoint main 5.41 KiB = b-runtime~main-8a8cd486e9842284.js 4.38 KiB b-vendors-node_modules_vendor_js-01281488ed24fc05.js 173 bytes b-all-b_js-9c8883a8b9b3d692.js 453 bytes b-main-a97968a81f0fafdb.js 420 bytes
runtime modules 3.17 KiB 5 modules
cacheable modules 40 bytes
./b.js 17 bytes [built] [code generated]
./node_modules/vendor.js 23 bytes [built] [code generated]
Rspack x.x.x compiled successfully in X.23
assets by chunk 862 bytes (id hint: all)
asset c-all-b_js-b683c5304b71900e.js 480 bytes [emitted] [immutable] (id hint: all)
asset c-all-c_js-2c876c6ecab93d9b.js 382 bytes [emitted] [immutable] (id hint: all)
asset c-runtime~main-cf6fa4193cfaab7e.js 11.1 KiB [emitted] [immutable] (name: runtime~main)
asset c-main-1b0ba12f79ed8053.js 643 bytes [emitted] [immutable] (name: main)
asset c-vendors-node_modules_vendor_js-8e4df31a4698ceb4.js 173 bytes [emitted] [immutable] (id hint: vendors)
Entrypoint main 12.1 KiB = c-runtime~main-cf6fa4193cfaab7e.js 11.1 KiB c-all-c_js-2c876c6ecab93d9b.js 382 bytes c-main-1b0ba12f79ed8053.js 643 bytes
asset c-all-b_js-1655a389a0bf9852.js 480 bytes [emitted] [immutable] (id hint: all)
asset c-all-c_js-b08d5b511c537202.js 382 bytes [emitted] [immutable] (id hint: all)
asset c-runtime~main-970964ed7997197f.js 11.1 KiB [emitted] [immutable] (name: runtime~main)
asset c-main-6841207d93383d6a.js 643 bytes [emitted] [immutable] (name: main)
asset c-vendors-node_modules_vendor_js-01281488ed24fc05.js 173 bytes [emitted] [immutable] (id hint: vendors)
Entrypoint main 12.1 KiB = c-runtime~main-970964ed7997197f.js 11.1 KiB c-all-c_js-b08d5b511c537202.js 382 bytes c-main-6841207d93383d6a.js 643 bytes
runtime modules 9.73 KiB 13 modules
cacheable modules 101 bytes
./c.js 61 bytes [built] [code generated]
@@ -1458,8 +1458,8 @@ exports[`StatsTestCases should print correct stats for runtime-specific-used-exp
asset production-a.js 10.6 KiB [emitted] (name: a)
asset production-b.js 10.6 KiB [emitted] (name: b)
asset production-dx_js.js 843 bytes [emitted]
asset production-dw_js-_b3b00.js 834 bytes [emitted]
asset production-dw_js-_b3b01.js 834 bytes [emitted]
asset production-dw_js-_ec0f0.js 834 bytes [emitted]
asset production-dw_js-_ec0f1.js 834 bytes [emitted]
asset production-dy_js.js 827 bytes [emitted]
asset production-dz_js.js 827 bytes [emitted]
asset production-c.js 45 bytes [emitted] (name: c)
@@ -1488,11 +1488,11 @@ exports[`StatsTestCases should print correct stats for runtime-specific-used-exp
chunk (runtime: c) production-c.js (c) 9 bytes [entry] [rendered]
./c.js 9 bytes [built] [code generated]
[no exports used]
chunk (runtime: a) production-dw_js-_b3b00.js 168 bytes [rendered]
chunk (runtime: a) production-dw_js-_ec0f0.js 168 bytes [rendered]
./dw.js 46 bytes [built] [code generated]
./module.js?chunk 122 bytes [dependent] [built] [code generated]
[only some exports used: identity, w, x, y, z]
chunk (runtime: b) production-dw_js-_b3b01.js 168 bytes [rendered]
chunk (runtime: b) production-dw_js-_ec0f1.js 168 bytes [rendered]
./dw.js 46 bytes [built] [code generated]
./module.js?chunk 122 bytes [dependent] [built] [code generated]
[only some exports used: identity, w, x, y, z]