@rspack/core 1.4.0-rc.0 → 1.4.1

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.
@@ -7,10 +7,9 @@
7
7
  * Copyright (c) JS Foundation and other contributors
8
8
  * https://github.com/webpack/webpack/blob/main/LICENSE
9
9
  */
10
- import { inspect } from "node:util";
10
+ import type { DependencyLocation } from "@rspack/binding";
11
11
  import type { Chunk } from "../Chunk";
12
12
  import type { Module } from "../Module";
13
- type DependencyLocation = any;
14
13
  export declare class WebpackError extends Error {
15
14
  loc?: DependencyLocation;
16
15
  file?: string;
@@ -18,6 +17,5 @@ export declare class WebpackError extends Error {
18
17
  module?: Module;
19
18
  details?: string;
20
19
  hideStack?: boolean;
21
- [inspect.custom](): string;
22
20
  }
23
21
  export default WebpackError;
@@ -2,8 +2,8 @@ import type { z } from "zod/v4";
2
2
  export declare class ValidationError extends Error {
3
3
  constructor(message: string);
4
4
  }
5
- export declare function validate<T extends z.ZodType>(opts: any, schema: T, options?: {
5
+ export declare function validate<T extends z.ZodType>(opts: any, createSchema: () => T, options?: {
6
6
  output?: boolean;
7
7
  strategy?: "strict" | "loose-unrecognized-keys" | "loose-silent" | "loose";
8
8
  }): string | null;
9
- export declare function isValidate<T extends z.ZodType>(opts: any, schema: T): boolean;
9
+ export declare function isValidate<T extends z.ZodType>(opts: any, createSchema: () => T): boolean;
package/dist/worker.js CHANGED
@@ -184,19 +184,23 @@ var __webpack_modules__ = {
184
184
  j: ()=>createHash
185
185
  });
186
186
  let external_node_crypto_namespaceObject = require("node:crypto");
187
- var _computedKey, external_node_crypto_default = __webpack_require__.n(external_node_crypto_namespaceObject);
188
- _computedKey = __webpack_require__("node:util").inspect.custom;
189
- let lib_WebpackError = class extends Error {
187
+ var external_node_crypto_default = __webpack_require__.n(external_node_crypto_namespaceObject), external_node_util_ = __webpack_require__("node:util");
188
+ class WebpackError_WebpackError extends Error {
190
189
  loc;
191
190
  file;
192
191
  chunk;
193
192
  module;
194
193
  details;
195
194
  hideStack;
196
- [_computedKey]() {
195
+ }
196
+ Object.defineProperty(WebpackError_WebpackError.prototype, external_node_util_.inspect.custom, {
197
+ value: function() {
197
198
  return this.stack + (this.details ? `\n${this.details}` : "");
198
- }
199
- }, CURRENT_METHOD_REGEXP = /at ([a-zA-Z0-9_.]*)/;
199
+ },
200
+ enumerable: !1,
201
+ configurable: !0
202
+ });
203
+ let WebpackError = WebpackError_WebpackError, CURRENT_METHOD_REGEXP = /at ([a-zA-Z0-9_.]*)/;
200
204
  function createMessage(method) {
201
205
  return `Abstract method${method ? ` ${method}` : ""}. Must be overridden.`;
202
206
  }
@@ -207,7 +211,7 @@ var __webpack_modules__ = {
207
211
  this.message = match?.[1] ? createMessage(match[1]) : createMessage();
208
212
  }
209
213
  }
210
- class AbstractMethodError extends lib_WebpackError {
214
+ class AbstractMethodError extends WebpackError {
211
215
  constructor(){
212
216
  super(new Message().message), this.name = "AbstractMethodError";
213
217
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/core",
3
- "version": "1.4.0-rc.0",
3
+ "version": "1.4.1",
4
4
  "webpackVersion": "5.75.0",
5
5
  "license": "MIT",
6
6
  "description": "The fast Rust-based web bundler with webpack-compatible API",
@@ -57,7 +57,7 @@
57
57
  "dependencies": {
58
58
  "@module-federation/runtime-tools": "0.15.0",
59
59
  "@rspack/lite-tapable": "1.0.1",
60
- "@rspack/binding": "1.4.0-rc.0"
60
+ "@rspack/binding": "1.4.1"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "@swc/helpers": ">=0.5.1"