Skip to content

Commit

Permalink
chore(deps): update npm dev dependencies (#6429)
Browse files Browse the repository at this point in the history
chore: update

Co-authored-by: SoonIter <sooniter@gmail.com>
  • Loading branch information
renovate[bot] and SoonIter authored Oct 31, 2024
1 parent acc312d commit bfb2209
Show file tree
Hide file tree
Showing 18 changed files with 1,424 additions and 955 deletions.
4 changes: 2 additions & 2 deletions crates/rspack_fs_node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test:local": "jest"
},
"devDependencies": {
"@napi-rs/cli": "2.18.0",
"memfs": "4.8.1"
"@napi-rs/cli": "2.18.4",
"memfs": "4.14.0"
}
}
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,29 +53,29 @@
"pnpm": "9.12.3"
},
"devDependencies": {
"@biomejs/biome": "1.8.0",
"@biomejs/biome": "1.9.4",
"@jest/reporters": "29.7.0",
"@microsoft/api-extractor": "7.47.10",
"@microsoft/api-extractor": "7.47.11",
"@microsoft/api-extractor-model": "7.29.8",
"@rspack/cli": "workspace:*",
"@taplo/cli": "^0.7.0",
"@types/is-ci": "^3.0.4",
"@types/jest": "29.5.12",
"@types/jest": "29.5.14",
"@types/node": "^20.12.7",
"@types/rimraf": "3.0.2",
"check-dependency-version-consistency": "^4.1.0",
"commander": "12.0.0",
"commander": "12.1.0",
"cross-env": "^7.0.3",
"husky": "^9.0.0",
"is-ci": "3.0.1",
"jest": "29.7.0",
"jest-cli": "29.7.0",
"jest-environment-node": "29.7.0",
"lint-staged": "^15.0.0",
"prettier": "3.2.5",
"prettier": "3.3.3",
"prettier-2": "npm:prettier@2.8.8",
"rimraf": "3.0.2",
"ts-jest": "29.1.2",
"ts-jest": "29.2.5",
"typescript": "^5.6.3",
"webpack": "^5.94.0",
"webpack-cli": "5.1.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-rspack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"create-rstack": "1.0.6"
},
"devDependencies": {
"@rslib/core": "0.0.12",
"@rslib/core": "0.0.15",
"typescript": "^5.6.3"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"@babel/core": "^7.22.20",
"@babel/preset-react": "^7.22.15",
"@playwright/test": "1.47.0",
"core-js": "3.36.1",
"core-js": "3.38.1",
"@rspack/core": "workspace:*",
"@rspack/dev-server": "1.0.5",
"@rspack/dev-server": "1.0.9",
"@rspack/plugin-react-refresh": "1.0.0",
"@swc/helpers": "0.5.13",
"@types/fs-extra": "11.0.4",
Expand Down
6 changes: 3 additions & 3 deletions packages/rspack-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"dependencies": {
"@discoveryjs/json-ext": "^0.5.7",
"@rspack/dev-server": "1.0.5",
"@rspack/dev-server": "1.0.9",
"colorette": "2.0.19",
"exit-hook": "^4.0.0",
"interpret": "^3.1.1",
Expand All @@ -44,12 +44,12 @@
},
"devDependencies": {
"@rspack/core": "workspace:*",
"@rslib/core": "0.0.12",
"@rslib/core": "0.0.15",
"@types/interpret": "^1.1.3",
"@types/rechoir": "^0.6.1",
"@types/semver": "^7.5.6",
"@types/webpack-bundle-analyzer": "^4.6.0",
"@types/yargs": "17.0.32",
"@types/yargs": "17.0.33",
"concat-stream": "^2.0.0",
"cross-env": "^7.0.3",
"execa": "^5.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/rspack-cli/src/commands/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ async function getPreviewConfig(
static: {
directory: options.dir
? path.join(item.context ?? process.cwd(), options.dir)
: item.output?.path ??
path.join(item.context ?? process.cwd(), defaultRoot),
: (item.output?.path ??
path.join(item.context ?? process.cwd(), defaultRoot)),
publicPath: options.publicPath ?? "/"
},
port: options.port ?? 8080,
Expand Down
12 changes: 6 additions & 6 deletions packages/rspack-test-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"jest-serializer-path": "^0.1.15",
"jest-snapshot": "29.7.0",
"jsdom": "^25.0.0",
"memfs": "4.8.1",
"memfs": "4.14.0",
"mkdirp": "0.5.6",
"path-serializer": "0.1.2",
"pretty-format": "29.7.0",
Expand All @@ -74,12 +74,12 @@
"@monaco-editor/react": "^4.6.0",
"@rspack/cli": "workspace:*",
"@rspack/core": "workspace:*",
"@rspack/plugin-preact-refresh": "1.0.0",
"@rspack/plugin-preact-refresh": "1.1.0",
"@rspack/plugin-react-refresh": "1.0.0",
"@swc/helpers": "0.5.13",
"@swc/plugin-remove-console": "^3.0.0",
"@types/babel__generator": "7.6.8",
"@types/babel__traverse": "7.20.5",
"@types/babel__traverse": "7.20.6",
"@types/fs-extra": "11.0.4",
"@types/jsdom": "^21.1.7",
"@types/react": "^18.2.48",
Expand All @@ -93,14 +93,14 @@
"coffee-loader": "^5.0.0",
"coffeescript": "^2.5.1",
"copy-webpack-plugin": "5.1.2",
"core-js": "3.36.1",
"core-js": "3.38.1",
"css-loader": "^6.11.0",
"file-loader": "^6.2.0",
"html-loader": "^5.0.0",
"html-webpack-plugin": "^5.5.0",
"less-loader": "^12.2.0",
"lodash": "^4.17.21",
"monaco-editor": "0.47.0",
"monaco-editor": "0.52.0",
"monaco-editor-webpack-plugin": "7.1.0",
"normalize.css": "^8.0.0",
"postcss-loader": "^8.0.0",
Expand All @@ -114,7 +114,7 @@
"sass-loader": "^16.0.0",
"source-map-loader": "^5.0.0",
"style-loader": "^4.0.0",
"terser": "5.27.2",
"terser": "5.36.0",
"typescript": "^5.6.3",
"wast-loader": "^1.12.1"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/rspack-test-tools/src/helper/util/checkSourceMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ export default async function checkSourceMap(
for (const id in toSearch) {
const isSearchConfig =
typeof toSearch[id] === "object" && toSearch[id] !== null;
const outId = isSearchConfig ? toSearch[id].outId ?? id : id;
const outId = isSearchConfig ? (toSearch[id].outId ?? id) : id;
const checkColumn = isSearchConfig
? toSearch[id].checkColumn ?? _checkColumn
? (toSearch[id].checkColumn ?? _checkColumn)
: _checkColumn;
const inSource = isSearchConfig ? toSearch[id].inSource : toSearch[id];

Expand Down
39 changes: 31 additions & 8 deletions packages/rspack/etc/core.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,15 @@ interface BaseModuleConfig {
// @public (undocumented)
interface BaseResolveRequest {
// (undocumented)
descriptionFileData?: object;
__innerRequest?: string;
// (undocumented)
__innerRequest_relativePath?: string;
// (undocumented)
__innerRequest_request?: string;
// (undocumented)
context?: object;
// (undocumented)
descriptionFileData?: JsonObject;
// (undocumented)
descriptionFilePath?: string;
// (undocumented)
Expand Down Expand Up @@ -2468,20 +2476,35 @@ interface JsMinifyOptions {
}

// @public (undocumented)
type JsonArray = JsonValue[];
type JsonArray = JsonValue_2[];

// @public (undocumented)
type JsonObject = {
[Key in string]: JsonValue;
type JsonObject = { [index: string]: JsonValue } & {
[index: string]:
| undefined
| null
| string
| number
| boolean
| JsonObject
| JsonValue[];
};

// @public (undocumented)
type JsonObject_2 = {
[Key in string]: JsonValue_2;
} & {
[Key in string]?: JsonValue | undefined;
[Key in string]?: JsonValue_2 | undefined;
};

// @public (undocumented)
type JsonPrimitive = string | number | boolean | null;

// @public (undocumented)
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
type JsonValue = null | string | number | boolean | JsonObject | JsonValue[];

// @public (undocumented)
type JsonValue_2 = JsonPrimitive | JsonObject_2 | JsonArray;

// @public (undocumented)
type KnownAssetInfo = {
Expand Down Expand Up @@ -4329,10 +4352,10 @@ type ReadFileSync = {
type ReadJson = (path: PathOrFileDescriptor, callback: ReadJsonCallback) => void;

// @public (undocumented)
type ReadJsonCallback = (err: NodeJS.ErrnoException | Error | null, data?: JsonObject) => void;
type ReadJsonCallback = (err: NodeJS.ErrnoException | Error | null, data?: JsonObject_2) => void;

// @public (undocumented)
type ReadJsonSync = (path: PathOrFileDescriptor) => JsonObject;
type ReadJsonSync = (path: PathOrFileDescriptor) => JsonObject_2;

// @public (undocumented)
type Readlink = {
Expand Down
8 changes: 4 additions & 4 deletions packages/rspack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@
"directory": "packages/rspack"
},
"devDependencies": {
"@swc/core": "1.4.0",
"@swc/core": "1.7.40",
"@swc/types": "0.1.12",
"@types/graceful-fs": "4.1.9",
"@types/watchpack": "^2.4.0",
"@types/webpack-sources": "3.2.3",
"browserslist": "^4.21.3",
"cross-env": "^7.0.3",
"enhanced-resolve": "5.12.0",
"graceful-fs": "4.2.10",
"enhanced-resolve": "5.17.1",
"graceful-fs": "4.2.11",
"json-parse-even-better-errors": "^3.0.0",
"prebundle": "^1.1.0",
"tsc-alias": "^1.8.8",
Expand All @@ -67,7 +67,7 @@
"webpack-dev-server": "5.0.4",
"webpack-sources": "3.2.3",
"zod": "^3.23.8",
"zod-validation-error": "3.3.1"
"zod-validation-error": "3.4.0"
},
"dependencies": {
"@module-federation/runtime-tools": "0.5.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/rspack/src/Compilation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import type { InputFileSystem } from "./util/fs";
import type Hash from "./util/hash";
import { memoizeValue } from "./util/memoize";
import { JsSource } from "./util/source";
export { type AssetInfo } from "./util/AssetInfo";
export type { AssetInfo } from "./util/AssetInfo";

export type Assets = Record<string, Source>;
export interface Asset {
Expand Down
8 changes: 4 additions & 4 deletions packages/rspack/src/exports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ import { createHash } from "./util/createHash";
export const util = { createHash, cleverMerge };

export { default as EntryOptionPlugin } from "./lib/EntryOptionPlugin";
export { type OutputFileSystem } from "./util/fs";
export type { OutputFileSystem } from "./util/fs";

///// Internal Plugins /////
export type { BannerPluginArgument } from "./builtin-plugin";
Expand Down Expand Up @@ -275,9 +275,9 @@ export type {
SwcLoaderTsParserConfig
} from "./builtin-loader/swc/index";

export {
type LoaderOptions as LightningcssLoaderOptions,
type FeatureOptions as LightningcssFeatureOptions
export type {
LoaderOptions as LightningcssLoaderOptions,
FeatureOptions as LightningcssFeatureOptions
} from "./builtin-loader/lightningcss/index";

///// Experiments Stuff /////
Expand Down
2 changes: 1 addition & 1 deletion packages/rspack/src/loader-runner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ export async function runLoaders(
loaderContext.version = 2;
loaderContext.sourceMap = compiler.options.devtool
? isUseSourceMap(compiler.options.devtool)
: context._module.useSourceMap ?? false;
: (context._module.useSourceMap ?? false);
loaderContext.mode = compiler.options.mode;
Object.assign(loaderContext, compiler.options.loader);

Expand Down
Loading

2 comments on commit bfb2209

@rspack-bot
Copy link

Choose a reason for hiding this comment

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

📝 Benchmark detail: Open

Name Base (2024-10-31 02f0c85) Current Change
10000_big_production-mode + exec 49.3 s ± 1.56 s 48.3 s ± 1.07 s -2.14 %
10000_development-mode + exec 2.12 s ± 33 ms 2.07 s ± 14 ms -2.58 %
10000_development-mode_hmr + exec 638 ms ± 4.3 ms 644 ms ± 2.8 ms +0.87 %
10000_production-mode + exec 2.69 s ± 41 ms 2.63 s ± 27 ms -2.26 %
arco-pro_development-mode + exec 1.79 s ± 73 ms 1.75 s ± 66 ms -2.39 %
arco-pro_development-mode_hmr + exec 428 ms ± 1.1 ms 427 ms ± 1.2 ms -0.19 %
arco-pro_production-mode + exec 3.21 s ± 130 ms 3.2 s ± 68 ms -0.30 %
arco-pro_production-mode_generate-package-json-webpack-plugin + exec 3.25 s ± 68 ms 3.26 s ± 75 ms +0.19 %
threejs_development-mode_10x + exec 1.62 s ± 20 ms 1.62 s ± 16 ms -0.52 %
threejs_development-mode_10x_hmr + exec 770 ms ± 13 ms 777 ms ± 11 ms +0.99 %
threejs_production-mode_10x + exec 5.01 s ± 27 ms 5.02 s ± 49 ms +0.23 %

@rspack-bot
Copy link

Choose a reason for hiding this comment

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

📝 Ran ecosystem CI: Open

suite result
modernjs ✅ success
_selftest ✅ success
rspress ✅ success
rslib ✅ success
rsbuild ✅ success
examples ✅ success
devserver ✅ success

Please sign in to comment.