|
| 1 | +diff --git a/v4/classic/external.cjs b/v4/classic/external.cjs |
| 2 | +index ee133825d44ab44b86dd8aef6bd985653ebde06c..ea74468d20c2371f9c4d8941467e3b7fe93a00ef 100644 |
| 3 | +--- a/v4/classic/external.cjs |
| 4 | ++++ b/v4/classic/external.cjs |
| 5 | +@@ -29,7 +29,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) { |
| 6 | + return (mod && mod.__esModule) ? mod : { "default": mod }; |
| 7 | + }; |
| 8 | + Object.defineProperty(exports, "__esModule", { value: true }); |
| 9 | +-exports.coerce = exports.iso = exports.ZodISODuration = exports.ZodISOTime = exports.ZodISODate = exports.ZodISODateTime = exports.locales = exports.fromJSONSchema = exports.toJSONSchema = exports.NEVER = exports.util = exports.TimePrecision = exports.flattenError = exports.formatError = exports.prettifyError = exports.treeifyError = exports.regexes = exports.clone = exports.$brand = exports.$input = exports.$output = exports.config = exports.registry = exports.globalRegistry = exports.core = void 0; |
| 10 | ++exports.coerce = exports.iso = exports.ZodISODuration = exports.ZodISOTime = exports.ZodISODate = exports.ZodISODateTime = exports.fromJSONSchema = exports.toJSONSchema = exports.NEVER = exports.util = exports.TimePrecision = exports.flattenError = exports.formatError = exports.prettifyError = exports.treeifyError = exports.regexes = exports.clone = exports.$brand = exports.$input = exports.$output = exports.config = exports.registry = exports.globalRegistry = exports.core = void 0; |
| 11 | + exports.core = __importStar(require("../core/index.cjs")); |
| 12 | + __exportStar(require("./schemas.cjs"), exports); |
| 13 | + __exportStar(require("./checks.cjs"), exports); |
| 14 | +@@ -60,7 +60,7 @@ var json_schema_processors_js_1 = require("../core/json-schema-processors.cjs"); |
| 15 | + Object.defineProperty(exports, "toJSONSchema", { enumerable: true, get: function () { return json_schema_processors_js_1.toJSONSchema; } }); |
| 16 | + var from_json_schema_js_1 = require("./from-json-schema.cjs"); |
| 17 | + Object.defineProperty(exports, "fromJSONSchema", { enumerable: true, get: function () { return from_json_schema_js_1.fromJSONSchema; } }); |
| 18 | +-exports.locales = __importStar(require("../locales/index.cjs")); |
| 19 | ++// locales removed from barrel |
| 20 | + // iso |
| 21 | + // must be exported from top-level |
| 22 | + // https://github.com/colinhacks/zod/issues/4491 |
| 23 | +diff --git a/v4/classic/external.js b/v4/classic/external.js |
| 24 | +index 9567900bbb57099481c0ea5864fbf697d62021a5..98ee2af29038deca6c38c46c24d5fb14725e40f0 100644 |
| 25 | +--- a/v4/classic/external.js |
| 26 | ++++ b/v4/classic/external.js |
| 27 | +@@ -11,7 +11,7 @@ config(en()); |
| 28 | + export { globalRegistry, registry, config, $output, $input, $brand, clone, regexes, treeifyError, prettifyError, formatError, flattenError, TimePrecision, util, NEVER, } from "../core/index.js"; |
| 29 | + export { toJSONSchema } from "../core/json-schema-processors.js"; |
| 30 | + export { fromJSONSchema } from "./from-json-schema.js"; |
| 31 | +-export * as locales from "../locales/index.js"; |
| 32 | ++// locales removed from barrel |
| 33 | + // iso |
| 34 | + // must be exported from top-level |
| 35 | + // https://github.com/colinhacks/zod/issues/4491 |
| 36 | +diff --git a/v4/core/index.cjs b/v4/core/index.cjs |
| 37 | +index c3fa303104a191d142a5212f69e7954cba3606a7..44bdc3437c6a88971c1c85b63024213880fe0fff 100644 |
| 38 | +--- a/v4/core/index.cjs |
| 39 | ++++ b/v4/core/index.cjs |
| 40 | +@@ -26,7 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) { |
| 41 | + return result; |
| 42 | + }; |
| 43 | + Object.defineProperty(exports, "__esModule", { value: true }); |
| 44 | +-exports.JSONSchema = exports.JSONSchemaGenerator = exports.toJSONSchema = exports.locales = exports.regexes = exports.util = void 0; |
| 45 | ++exports.JSONSchema = exports.JSONSchemaGenerator = exports.toJSONSchema = exports.regexes = exports.util = void 0; |
| 46 | + __exportStar(require("./core.cjs"), exports); |
| 47 | + __exportStar(require("./parse.cjs"), exports); |
| 48 | + __exportStar(require("./errors.cjs"), exports); |
| 49 | +@@ -35,7 +35,7 @@ __exportStar(require("./checks.cjs"), exports); |
| 50 | + __exportStar(require("./versions.cjs"), exports); |
| 51 | + exports.util = __importStar(require("./util.cjs")); |
| 52 | + exports.regexes = __importStar(require("./regexes.cjs")); |
| 53 | +-exports.locales = __importStar(require("../locales/index.cjs")); |
| 54 | ++// locales removed from barrel |
| 55 | + __exportStar(require("./registries.cjs"), exports); |
| 56 | + __exportStar(require("./doc.cjs"), exports); |
| 57 | + __exportStar(require("./api.cjs"), exports); |
| 58 | +diff --git a/v4/core/index.js b/v4/core/index.js |
| 59 | +index d334515bf004600f2e55ff85e3730f1b2f2ff703..4ff979844ba18d012893064b01889bf70ec245c8 100644 |
| 60 | +--- a/v4/core/index.js |
| 61 | ++++ b/v4/core/index.js |
| 62 | +@@ -6,7 +6,7 @@ export * from "./checks.js"; |
| 63 | + export * from "./versions.js"; |
| 64 | + export * as util from "./util.js"; |
| 65 | + export * as regexes from "./regexes.js"; |
| 66 | +-export * as locales from "../locales/index.js"; |
| 67 | ++// locales removed from barrel |
| 68 | + export * from "./registries.js"; |
| 69 | + export * from "./doc.js"; |
| 70 | + export * from "./api.js"; |
| 71 | +diff --git a/v4/mini/external.cjs b/v4/mini/external.cjs |
| 72 | +index 0d0079d94d94010b51abe23042418adbc6077b7f..fd3acb42a12dde65f383eb2c3f46a9108dd8c865 100644 |
| 73 | +--- a/v4/mini/external.cjs |
| 74 | ++++ b/v4/mini/external.cjs |
| 75 | +@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { |
| 76 | + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); |
| 77 | + }; |
| 78 | + Object.defineProperty(exports, "__esModule", { value: true }); |
| 79 | +-exports.coerce = exports.ZodMiniISODuration = exports.ZodMiniISOTime = exports.ZodMiniISODate = exports.ZodMiniISODateTime = exports.iso = exports.locales = exports.toJSONSchema = exports.NEVER = exports.util = exports.TimePrecision = exports.flattenError = exports.formatError = exports.prettifyError = exports.treeifyError = exports.regexes = exports.clone = exports.$brand = exports.$input = exports.$output = exports.config = exports.registry = exports.globalRegistry = exports.core = void 0; |
| 80 | ++exports.coerce = exports.ZodMiniISODuration = exports.ZodMiniISOTime = exports.ZodMiniISODate = exports.ZodMiniISODateTime = exports.iso = exports.toJSONSchema = exports.NEVER = exports.util = exports.TimePrecision = exports.flattenError = exports.formatError = exports.prettifyError = exports.treeifyError = exports.regexes = exports.clone = exports.$brand = exports.$input = exports.$output = exports.config = exports.registry = exports.globalRegistry = exports.core = void 0; |
| 81 | + exports.core = __importStar(require("../core/index.cjs")); |
| 82 | + __exportStar(require("./parse.cjs"), exports); |
| 83 | + __exportStar(require("./schemas.cjs"), exports); |
| 84 | +@@ -49,7 +49,7 @@ Object.defineProperty(exports, "util", { enumerable: true, get: function () { re |
| 85 | + Object.defineProperty(exports, "NEVER", { enumerable: true, get: function () { return index_js_1.NEVER; } }); |
| 86 | + var json_schema_processors_js_1 = require("../core/json-schema-processors.cjs"); |
| 87 | + Object.defineProperty(exports, "toJSONSchema", { enumerable: true, get: function () { return json_schema_processors_js_1.toJSONSchema; } }); |
| 88 | +-exports.locales = __importStar(require("../locales/index.cjs")); |
| 89 | ++// locales removed from barrel |
| 90 | + /** A special constant with type `never` */ |
| 91 | + // export const NEVER = {} as never; |
| 92 | + // iso |
| 93 | +diff --git a/v4/mini/external.js b/v4/mini/external.js |
| 94 | +index d6523c153e213be110c21b370164b5eca1cdf744..7a1addf9ce6e331e56c943867bf04cf199745145 100644 |
| 95 | +--- a/v4/mini/external.js |
| 96 | ++++ b/v4/mini/external.js |
| 97 | +@@ -4,7 +4,7 @@ export * from "./schemas.js"; |
| 98 | + export * from "./checks.js"; |
| 99 | + export { globalRegistry, registry, config, $output, $input, $brand, clone, regexes, treeifyError, prettifyError, formatError, flattenError, TimePrecision, util, NEVER, } from "../core/index.js"; |
| 100 | + export { toJSONSchema } from "../core/json-schema-processors.js"; |
| 101 | +-export * as locales from "../locales/index.js"; |
| 102 | ++// locales removed from barrel |
| 103 | + /** A special constant with type `never` */ |
| 104 | + // export const NEVER = {} as never; |
| 105 | + // iso |
0 commit comments