@rsbuild/core 1.3.20 → 1.3.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,13 @@
1
1
  export type Falsy = false | null | undefined;
2
2
  export type OneOrMany<T> = T | T[];
3
3
  export type MaybePromise<T> = T | Promise<T>;
4
- export type DeepReadonly<T> = keyof T extends never ? T : {
5
- readonly [k in keyof T]: DeepReadonly<T[k]>;
4
+ /**
5
+ * Creates a type with readonly properties at the first and second levels only.
6
+ */
7
+ export type TwoLevelReadonly<T> = keyof T extends never ? T : {
8
+ readonly [k in keyof T]: T[k] extends object ? {
9
+ readonly [p in keyof T[k]]: T[k][p];
10
+ } : T[k];
6
11
  };
7
12
  export type ConfigChain<T> = OneOrMany<T | ((config: T) => T | void)>;
8
13
  export type ConfigChainWithContext<T, Ctx> = OneOrMany<T | ((config: T, ctx: Ctx) => T | void)>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/core",
3
- "version": "1.3.20",
3
+ "version": "1.3.21",
4
4
  "description": "The Rspack-based build tool.",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "bugs": {
@@ -46,17 +46,17 @@
46
46
  "types.d.ts"
47
47
  ],
48
48
  "dependencies": {
49
- "@rspack/core": "1.3.10",
49
+ "@rspack/core": "1.3.11",
50
50
  "@rspack/lite-tapable": "~1.0.1",
51
51
  "@swc/helpers": "^0.5.17",
52
52
  "core-js": "~3.42.0",
53
53
  "jiti": "^2.4.2"
54
54
  },
55
55
  "devDependencies": {
56
- "@rslib/core": "0.7.0",
56
+ "@rslib/core": "0.7.1",
57
57
  "@types/connect": "3.4.38",
58
58
  "@types/cors": "^2.8.18",
59
- "@types/node": "^22.15.17",
59
+ "@types/node": "^22.15.19",
60
60
  "@types/on-finished": "2.3.4",
61
61
  "@types/webpack-bundle-analyzer": "4.7.0",
62
62
  "@types/ws": "^8.18.1",
@@ -1,6 +0,0 @@
1
- import type { InspectConfigOptions, InspectConfigResult, Rspack } from '../types';
2
- import { type InitConfigsOptions } from './initConfigs';
3
- export declare function inspectConfig({ context, pluginManager, rsbuildOptions, bundlerConfigs, inspectOptions, }: InitConfigsOptions & {
4
- inspectOptions?: InspectConfigOptions;
5
- bundlerConfigs?: Rspack.Configuration[];
6
- }): Promise<InspectConfigResult<'rspack'>>;