@rspack/core 1.3.6 → 1.3.8

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.
Files changed (39) hide show
  1. package/compiled/graceful-fs/index.js +8 -8
  2. package/compiled/zod/index.d.ts +2 -1772
  3. package/compiled/zod/lib/ZodError.d.ts +164 -0
  4. package/compiled/zod/lib/__tests__/Mocker.d.ts +17 -0
  5. package/compiled/zod/lib/benchmarks/datetime.d.ts +5 -0
  6. package/compiled/zod/lib/benchmarks/discriminatedUnion.d.ts +5 -0
  7. package/compiled/zod/lib/benchmarks/index.d.ts +1 -0
  8. package/compiled/zod/lib/benchmarks/ipv4.d.ts +5 -0
  9. package/compiled/zod/lib/benchmarks/object.d.ts +5 -0
  10. package/compiled/zod/lib/benchmarks/primitives.d.ts +5 -0
  11. package/compiled/zod/lib/benchmarks/realworld.d.ts +5 -0
  12. package/compiled/zod/lib/benchmarks/string.d.ts +5 -0
  13. package/compiled/zod/lib/benchmarks/union.d.ts +5 -0
  14. package/compiled/zod/lib/errors.d.ts +5 -0
  15. package/compiled/zod/lib/external.d.ts +6 -0
  16. package/compiled/zod/lib/helpers/enumUtil.d.ts +8 -0
  17. package/compiled/zod/lib/helpers/errorUtil.d.ts +9 -0
  18. package/compiled/zod/lib/helpers/parseUtil.d.ts +78 -0
  19. package/compiled/zod/lib/helpers/partialUtil.d.ts +8 -0
  20. package/compiled/zod/lib/helpers/typeAliases.d.ts +2 -0
  21. package/compiled/zod/lib/helpers/util.d.ts +82 -0
  22. package/compiled/zod/lib/index.d.ts +4 -0
  23. package/compiled/zod/lib/locales/en.d.ts +3 -0
  24. package/compiled/zod/lib/standard-schema.d.ts +102 -0
  25. package/compiled/zod/lib/types.d.ts +1062 -0
  26. package/compiled/zod/package.json +1 -1
  27. package/dist/ChunkGroup.d.ts +10 -0
  28. package/dist/RspackError.d.ts +2 -1
  29. package/dist/builtin-loader/swc/pluginImport.d.ts +1 -1
  30. package/dist/builtin-loader/swc/types.d.ts +632 -631
  31. package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +14 -14
  32. package/dist/config/types.d.ts +15 -2
  33. package/dist/config/utils.d.ts +1 -1
  34. package/dist/config/zod.d.ts +84 -77
  35. package/dist/exports.d.ts +6 -0
  36. package/dist/index.js +676 -604
  37. package/dist/swc.d.ts +5 -0
  38. package/dist/trace/index.d.ts +2 -0
  39. package/package.json +3 -3
package/dist/swc.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ import type { TransformOutput } from "@rspack/binding";
2
+ import type { JsMinifyOptions, Options as TransformOptions } from "../compiled/@swc/types";
3
+ export type { TransformOutput, TransformOptions, JsMinifyOptions };
4
+ export declare function minify(source: string, options?: JsMinifyOptions): Promise<TransformOutput>;
5
+ export declare function transform(source: string, options?: TransformOptions): Promise<TransformOutput>;
@@ -22,12 +22,14 @@ export declare class JavaScriptTracer {
22
22
  static output: string;
23
23
  static session: inspector.Session;
24
24
  static initJavaScriptTrace(layer: string, output: string): void;
25
+ static initCpuProfiler(): void;
25
26
  static cleanupJavaScriptTrace(): Promise<void>;
26
27
  static getTs(): number;
27
28
  static getCommonEv(): {
28
29
  tid: number;
29
30
  pid: number;
30
31
  ts: number;
32
+ cat: string;
31
33
  };
32
34
  static pushEvent(event: ChromeEvent): void;
33
35
  static startAsync(events: ChromeEvent): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/core",
3
- "version": "1.3.6",
3
+ "version": "1.3.8",
4
4
  "webpackVersion": "5.75.0",
5
5
  "license": "MIT",
6
6
  "description": "The fast Rust-based web bundler with webpack-compatible API",
@@ -48,7 +48,7 @@
48
48
  "graceful-fs": "^4.2.11",
49
49
  "prebundle": "^1.3.3",
50
50
  "tsx": "^4.19.3",
51
- "typescript": "^5.7.3",
51
+ "typescript": "^5.8.3",
52
52
  "watchpack": "^2.4.2",
53
53
  "webpack-sources": "3.2.3",
54
54
  "zod": "^3.24.3",
@@ -59,7 +59,7 @@
59
59
  "@module-federation/runtime-tools": "0.13.0",
60
60
  "@rspack/lite-tapable": "1.0.1",
61
61
  "caniuse-lite": "^1.0.30001715",
62
- "@rspack/binding": "1.3.6"
62
+ "@rspack/binding": "1.3.8"
63
63
  },
64
64
  "peerDependencies": {
65
65
  "@swc/helpers": ">=0.5.1"