@openclaw/firecrawl-plugin 2026.9.7 → 2026.10.1-beta.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.
- package/dist/.setup/{firecrawl-client-S2gdb9zo.mjs → firecrawl-client-Bqyr6x90.mjs} +58 -104
- package/dist/.setup/{firecrawl-fetch-provider-Cq_h8okw.mjs → firecrawl-fetch-provider-CcYAp_u6.mjs} +1 -1
- package/dist/.setup/{firecrawl-search-provider-DzEHIoq7.mjs → firecrawl-search-provider-lAiZ3IJ5.mjs} +1 -1
- package/dist/api.js +1 -1
- package/dist/index.js +17 -28
- package/dist/web-fetch-contract-api.js +1 -1
- package/dist/web-fetch-provider.js +1 -1
- package/dist/web-search-contract-api.js +1 -1
- package/dist/web-search-provider.js +1 -1
- package/package.json +6 -8
- package/node_modules/zod/LICENSE +0 -21
- package/node_modules/zod/README.md +0 -218
- package/node_modules/zod/compile.cjs +0 -96
- package/node_modules/zod/compile.d.cts +0 -1
- package/node_modules/zod/compile.d.ts +0 -1
- package/node_modules/zod/compile.js +0 -52
- package/node_modules/zod/index.cjs +0 -52
- package/node_modules/zod/index.d.cts +0 -3
- package/node_modules/zod/index.d.ts +0 -3
- package/node_modules/zod/index.js +0 -7
- package/node_modules/zod/locales/index.cjs +0 -36
- package/node_modules/zod/locales/index.d.cts +0 -1
- package/node_modules/zod/locales/index.d.ts +0 -1
- package/node_modules/zod/locales/index.js +0 -1
- package/node_modules/zod/locales/package.json +0 -7
- package/node_modules/zod/mini/index.cjs +0 -51
- package/node_modules/zod/mini/index.d.cts +0 -3
- package/node_modules/zod/mini/index.d.ts +0 -3
- package/node_modules/zod/mini/index.js +0 -3
- package/node_modules/zod/mini/package.json +0 -7
- package/node_modules/zod/package.json +0 -147
- package/node_modules/zod/src/compile.ts +0 -56
- package/node_modules/zod/src/index.ts +0 -7
- package/node_modules/zod/src/locales/index.ts +0 -1
- package/node_modules/zod/src/mini/index.ts +0 -3
- package/node_modules/zod/src/v3/ZodError.ts +0 -340
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
- package/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
- package/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
- package/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
- package/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
- package/node_modules/zod/src/v3/errors.ts +0 -13
- package/node_modules/zod/src/v3/external.ts +0 -6
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
- package/node_modules/zod/src/v3/helpers/util.ts +0 -224
- package/node_modules/zod/src/v3/index.ts +0 -4
- package/node_modules/zod/src/v3/locales/en.ts +0 -124
- package/node_modules/zod/src/v3/standard-schema.ts +0 -113
- package/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
- package/node_modules/zod/src/v3/tests/array.test.ts +0 -71
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
- package/node_modules/zod/src/v3/tests/base.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
- package/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
- package/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
- package/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
- package/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
- package/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
- package/node_modules/zod/src/v3/tests/date.test.ts +0 -32
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
- package/node_modules/zod/src/v3/tests/default.test.ts +0 -112
- package/node_modules/zod/src/v3/tests/description.test.ts +0 -33
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
- package/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
- package/node_modules/zod/src/v3/tests/error.test.ts +0 -586
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
- package/node_modules/zod/src/v3/tests/function.test.ts +0 -261
- package/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
- package/node_modules/zod/src/v3/tests/intersection.test.ts +0 -128
- package/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
- package/node_modules/zod/src/v3/tests/language-server.test.ts +0 -206
- package/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
- package/node_modules/zod/src/v3/tests/map.test.ts +0 -110
- package/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
- package/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
- package/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
- package/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
- package/node_modules/zod/src/v3/tests/number.test.ts +0 -176
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/object.test.ts +0 -431
- package/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
- package/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
- package/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
- package/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
- package/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
- package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -114
- package/node_modules/zod/src/v3/tests/record.test.ts +0 -171
- package/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
- package/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
- package/node_modules/zod/src/v3/tests/set.test.ts +0 -142
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
- package/node_modules/zod/src/v3/tests/string.test.ts +0 -922
- package/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
- package/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
- package/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
- package/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
- package/node_modules/zod/src/v3/tests/void.test.ts +0 -15
- package/node_modules/zod/src/v3/types.ts +0 -5138
- package/node_modules/zod/src/v4/classic/checks.ts +0 -33
- package/node_modules/zod/src/v4/classic/coerce.ts +0 -27
- package/node_modules/zod/src/v4/classic/compat.ts +0 -78
- package/node_modules/zod/src/v4/classic/deep-partial.ts +0 -76
- package/node_modules/zod/src/v4/classic/errors.ts +0 -97
- package/node_modules/zod/src/v4/classic/external.ts +0 -57
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -944
- package/node_modules/zod/src/v4/classic/in-out.ts +0 -45
- package/node_modules/zod/src/v4/classic/index.ts +0 -5
- package/node_modules/zod/src/v4/classic/iso.ts +0 -20
- package/node_modules/zod/src/v4/classic/parse.ts +0 -88
- package/node_modules/zod/src/v4/classic/schemas.ts +0 -2937
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -86
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -402
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -89
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -604
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -572
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -704
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
- package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +0 -76
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
- package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +0 -985
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -92
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -316
- package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +0 -380
- package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +0 -32
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -455
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +0 -221
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -942
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -305
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -917
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -1108
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
- package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -1467
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -391
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +0 -32
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -67
- package/node_modules/zod/src/v4/classic/tests/iban.test.ts +0 -81
- package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +0 -159
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -958
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +0 -319
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -127
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -334
- package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +0 -215
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +0 -39
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -262
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -128
- package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +0 -29
- package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +0 -24
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -342
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -401
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -1006
- package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +0 -235
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -366
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -497
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -144
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +0 -44
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -351
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
- package/node_modules/zod/src/v4/classic/tests/properties.test.ts +0 -141
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -184
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -885
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -707
- package/node_modules/zod/src/v4/classic/tests/redos.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -693
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -190
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -153
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1440
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -124
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -812
- package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -4733
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -378
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -511
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -310
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
- package/node_modules/zod/src/v4/classic/tests/validate.test.ts +0 -645
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
- package/node_modules/zod/src/v4/core/api.ts +0 -1875
- package/node_modules/zod/src/v4/core/checks.ts +0 -1266
- package/node_modules/zod/src/v4/core/compile.ts +0 -2313
- package/node_modules/zod/src/v4/core/core.ts +0 -230
- package/node_modules/zod/src/v4/core/doc.ts +0 -52
- package/node_modules/zod/src/v4/core/errors.ts +0 -543
- package/node_modules/zod/src/v4/core/index.ts +0 -19
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -131
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -934
- package/node_modules/zod/src/v4/core/json-schema.ts +0 -148
- package/node_modules/zod/src/v4/core/memoizer.ts +0 -331
- package/node_modules/zod/src/v4/core/parse.ts +0 -309
- package/node_modules/zod/src/v4/core/regexes.ts +0 -217
- package/node_modules/zod/src/v4/core/registries.ts +0 -105
- package/node_modules/zod/src/v4/core/schemas.ts +0 -5192
- package/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
- package/node_modules/zod/src/v4/core/tests/cached.test.ts +0 -54
- package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +0 -1004
- package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +0 -445
- package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +0 -89
- package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +0 -26
- package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +0 -34
- package/node_modules/zod/src/v4/core/tests/compile.test.ts +0 -2036
- package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +0 -140
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
- package/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +0 -214
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -180
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +0 -72
- package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
- package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +0 -163
- package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
- package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +0 -42
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
- package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +0 -85
- package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +0 -69
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
- package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -105
- package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +0 -46
- package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -125
- package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
- package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +0 -51
- package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +0 -133
- package/node_modules/zod/src/v4/core/to-json-schema.ts +0 -857
- package/node_modules/zod/src/v4/core/util.ts +0 -1280
- package/node_modules/zod/src/v4/core/versions.ts +0 -5
- package/node_modules/zod/src/v4/core/visit.ts +0 -193
- package/node_modules/zod/src/v4/core/zsf.ts +0 -323
- package/node_modules/zod/src/v4/index.ts +0 -4
- package/node_modules/zod/src/v4/locales/ar.ts +0 -120
- package/node_modules/zod/src/v4/locales/az.ts +0 -116
- package/node_modules/zod/src/v4/locales/be.ts +0 -188
- package/node_modules/zod/src/v4/locales/bg.ts +0 -133
- package/node_modules/zod/src/v4/locales/bn.ts +0 -123
- package/node_modules/zod/src/v4/locales/ca.ts +0 -121
- package/node_modules/zod/src/v4/locales/ckb.ts +0 -140
- package/node_modules/zod/src/v4/locales/cs.ts +0 -123
- package/node_modules/zod/src/v4/locales/da.ts +0 -128
- package/node_modules/zod/src/v4/locales/de.ts +0 -121
- package/node_modules/zod/src/v4/locales/el.ts +0 -124
- package/node_modules/zod/src/v4/locales/en.ts +0 -136
- package/node_modules/zod/src/v4/locales/eo.ts +0 -123
- package/node_modules/zod/src/v4/locales/es.ts +0 -145
- package/node_modules/zod/src/v4/locales/fa.ts +0 -131
- package/node_modules/zod/src/v4/locales/fi.ts +0 -126
- package/node_modules/zod/src/v4/locales/fr-CA.ts +0 -121
- package/node_modules/zod/src/v4/locales/fr.ts +0 -139
- package/node_modules/zod/src/v4/locales/gu.ts +0 -123
- package/node_modules/zod/src/v4/locales/he.ts +0 -253
- package/node_modules/zod/src/v4/locales/hi.ts +0 -126
- package/node_modules/zod/src/v4/locales/hr.ts +0 -135
- package/node_modules/zod/src/v4/locales/hu.ts +0 -122
- package/node_modules/zod/src/v4/locales/hy.ts +0 -175
- package/node_modules/zod/src/v4/locales/id.ts +0 -120
- package/node_modules/zod/src/v4/locales/index.ts +0 -63
- package/node_modules/zod/src/v4/locales/is.ts +0 -124
- package/node_modules/zod/src/v4/locales/it.ts +0 -121
- package/node_modules/zod/src/v4/locales/ja.ts +0 -119
- package/node_modules/zod/src/v4/locales/ka.ts +0 -128
- package/node_modules/zod/src/v4/locales/kh.ts +0 -7
- package/node_modules/zod/src/v4/locales/km.ts +0 -124
- package/node_modules/zod/src/v4/locales/kn.ts +0 -126
- package/node_modules/zod/src/v4/locales/ko.ts +0 -126
- package/node_modules/zod/src/v4/locales/lt.ts +0 -243
- package/node_modules/zod/src/v4/locales/mk.ts +0 -123
- package/node_modules/zod/src/v4/locales/ms.ts +0 -120
- package/node_modules/zod/src/v4/locales/ne.ts +0 -128
- package/node_modules/zod/src/v4/locales/nl.ts +0 -126
- package/node_modules/zod/src/v4/locales/nn.ts +0 -121
- package/node_modules/zod/src/v4/locales/no.ts +0 -121
- package/node_modules/zod/src/v4/locales/ota.ts +0 -122
- package/node_modules/zod/src/v4/locales/pl.ts +0 -123
- package/node_modules/zod/src/v4/locales/ps.ts +0 -131
- package/node_modules/zod/src/v4/locales/pt-BR.ts +0 -161
- package/node_modules/zod/src/v4/locales/pt.ts +0 -159
- package/node_modules/zod/src/v4/locales/ro.ts +0 -132
- package/node_modules/zod/src/v4/locales/ru.ts +0 -188
- package/node_modules/zod/src/v4/locales/sk.ts +0 -123
- package/node_modules/zod/src/v4/locales/sl.ts +0 -123
- package/node_modules/zod/src/v4/locales/sv.ts +0 -124
- package/node_modules/zod/src/v4/locales/ta.ts +0 -123
- package/node_modules/zod/src/v4/locales/tg.ts +0 -135
- package/node_modules/zod/src/v4/locales/th.ts +0 -124
- package/node_modules/zod/src/v4/locales/tk.ts +0 -113
- package/node_modules/zod/src/v4/locales/tr.ts +0 -116
- package/node_modules/zod/src/v4/locales/ua.ts +0 -7
- package/node_modules/zod/src/v4/locales/uk.ts +0 -122
- package/node_modules/zod/src/v4/locales/ur.ts +0 -124
- package/node_modules/zod/src/v4/locales/uz.ts +0 -120
- package/node_modules/zod/src/v4/locales/vi.ts +0 -122
- package/node_modules/zod/src/v4/locales/yo.ts +0 -129
- package/node_modules/zod/src/v4/locales/zh-CN.ts +0 -121
- package/node_modules/zod/src/v4/locales/zh-TW.ts +0 -120
- package/node_modules/zod/src/v4/mini/checks.ts +0 -33
- package/node_modules/zod/src/v4/mini/coerce.ts +0 -27
- package/node_modules/zod/src/v4/mini/deep-partial.ts +0 -73
- package/node_modules/zod/src/v4/mini/external.ts +0 -52
- package/node_modules/zod/src/v4/mini/in-out.ts +0 -45
- package/node_modules/zod/src/v4/mini/index.ts +0 -3
- package/node_modules/zod/src/v4/mini/iso.ts +0 -66
- package/node_modules/zod/src/v4/mini/parse.ts +0 -16
- package/node_modules/zod/src/v4/mini/schemas.ts +0 -2051
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -57
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -190
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -158
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -582
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -30
- package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +0 -84
- package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +0 -54
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -41
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -14
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -1146
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -109
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -292
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -341
- package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -396
- package/node_modules/zod/src/v4-mini/index.ts +0 -3
- package/node_modules/zod/v3/ZodError.cjs +0 -167
- package/node_modules/zod/v3/ZodError.d.cts +0 -164
- package/node_modules/zod/v3/ZodError.d.ts +0 -164
- package/node_modules/zod/v3/ZodError.js +0 -143
- package/node_modules/zod/v3/errors.cjs +0 -36
- package/node_modules/zod/v3/errors.d.cts +0 -5
- package/node_modules/zod/v3/errors.d.ts +0 -5
- package/node_modules/zod/v3/errors.js +0 -9
- package/node_modules/zod/v3/external.cjs +0 -41
- package/node_modules/zod/v3/external.d.cts +0 -6
- package/node_modules/zod/v3/external.d.ts +0 -6
- package/node_modules/zod/v3/external.js +0 -6
- package/node_modules/zod/v3/helpers/enumUtil.cjs +0 -21
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
- package/node_modules/zod/v3/helpers/enumUtil.js +0 -1
- package/node_modules/zod/v3/helpers/errorUtil.cjs +0 -28
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.js +0 -6
- package/node_modules/zod/v3/helpers/parseUtil.cjs +0 -143
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
- package/node_modules/zod/v3/helpers/parseUtil.js +0 -109
- package/node_modules/zod/v3/helpers/partialUtil.cjs +0 -21
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
- package/node_modules/zod/v3/helpers/partialUtil.js +0 -1
- package/node_modules/zod/v3/helpers/typeAliases.cjs +0 -21
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.js +0 -1
- package/node_modules/zod/v3/helpers/util.cjs +0 -156
- package/node_modules/zod/v3/helpers/util.d.cts +0 -85
- package/node_modules/zod/v3/helpers/util.d.ts +0 -85
- package/node_modules/zod/v3/helpers/util.js +0 -133
- package/node_modules/zod/v3/index.cjs +0 -52
- package/node_modules/zod/v3/index.d.cts +0 -4
- package/node_modules/zod/v3/index.d.ts +0 -4
- package/node_modules/zod/v3/index.js +0 -4
- package/node_modules/zod/v3/locales/en.cjs +0 -112
- package/node_modules/zod/v3/locales/en.d.cts +0 -3
- package/node_modules/zod/v3/locales/en.d.ts +0 -3
- package/node_modules/zod/v3/locales/en.js +0 -109
- package/node_modules/zod/v3/package.json +0 -7
- package/node_modules/zod/v3/standard-schema.cjs +0 -21
- package/node_modules/zod/v3/standard-schema.d.cts +0 -102
- package/node_modules/zod/v3/standard-schema.d.ts +0 -102
- package/node_modules/zod/v3/standard-schema.js +0 -1
- package/node_modules/zod/v3/types.cjs +0 -3798
- package/node_modules/zod/v3/types.d.cts +0 -1034
- package/node_modules/zod/v3/types.d.ts +0 -1034
- package/node_modules/zod/v3/types.js +0 -3697
- package/node_modules/zod/v4/classic/checks.cjs +0 -53
- package/node_modules/zod/v4/classic/checks.d.cts +0 -1
- package/node_modules/zod/v4/classic/checks.d.ts +0 -1
- package/node_modules/zod/v4/classic/checks.js +0 -1
- package/node_modules/zod/v4/classic/coerce.cjs +0 -66
- package/node_modules/zod/v4/classic/coerce.d.cts +0 -17
- package/node_modules/zod/v4/classic/coerce.d.ts +0 -17
- package/node_modules/zod/v4/classic/coerce.js +0 -17
- package/node_modules/zod/v4/classic/compat.cjs +0 -80
- package/node_modules/zod/v4/classic/compat.d.cts +0 -48
- package/node_modules/zod/v4/classic/compat.d.ts +0 -48
- package/node_modules/zod/v4/classic/compat.js +0 -31
- package/node_modules/zod/v4/classic/deep-partial.cjs +0 -58
- package/node_modules/zod/v4/classic/deep-partial.d.cts +0 -14
- package/node_modules/zod/v4/classic/deep-partial.d.ts +0 -14
- package/node_modules/zod/v4/classic/deep-partial.js +0 -13
- package/node_modules/zod/v4/classic/errors.cjs +0 -102
- package/node_modules/zod/v4/classic/errors.d.cts +0 -29
- package/node_modules/zod/v4/classic/errors.d.ts +0 -29
- package/node_modules/zod/v4/classic/errors.js +0 -57
- package/node_modules/zod/v4/classic/external.cjs +0 -97
- package/node_modules/zod/v4/classic/external.d.cts +0 -19
- package/node_modules/zod/v4/classic/external.d.ts +0 -19
- package/node_modules/zod/v4/classic/external.js +0 -17
- package/node_modules/zod/v4/classic/from-json-schema.cjs +0 -926
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +0 -12
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +0 -12
- package/node_modules/zod/v4/classic/from-json-schema.js +0 -881
- package/node_modules/zod/v4/classic/in-out.cjs +0 -82
- package/node_modules/zod/v4/classic/in-out.d.cts +0 -8
- package/node_modules/zod/v4/classic/in-out.d.ts +0 -8
- package/node_modules/zod/v4/classic/in-out.js +0 -36
- package/node_modules/zod/v4/classic/index.cjs +0 -52
- package/node_modules/zod/v4/classic/index.d.cts +0 -3
- package/node_modules/zod/v4/classic/index.d.ts +0 -3
- package/node_modules/zod/v4/classic/index.js +0 -4
- package/node_modules/zod/v4/classic/iso.cjs +0 -68
- package/node_modules/zod/v4/classic/iso.d.cts +0 -7
- package/node_modules/zod/v4/classic/iso.d.ts +0 -7
- package/node_modules/zod/v4/classic/iso.js +0 -15
- package/node_modules/zod/v4/classic/package.json +0 -7
- package/node_modules/zod/v4/classic/parse.cjs +0 -63
- package/node_modules/zod/v4/classic/parse.d.cts +0 -44
- package/node_modules/zod/v4/classic/parse.d.ts +0 -44
- package/node_modules/zod/v4/classic/parse.js +0 -16
- package/node_modules/zod/v4/classic/schemas.cjs +0 -1676
- package/node_modules/zod/v4/classic/schemas.d.cts +0 -816
- package/node_modules/zod/v4/classic/schemas.d.ts +0 -816
- package/node_modules/zod/v4/classic/schemas.js +0 -1535
- package/node_modules/zod/v4/core/api.cjs +0 -1269
- package/node_modules/zod/v4/core/api.d.cts +0 -335
- package/node_modules/zod/v4/core/api.d.ts +0 -335
- package/node_modules/zod/v4/core/api.js +0 -1107
- package/node_modules/zod/v4/core/checks.cjs +0 -561
- package/node_modules/zod/v4/core/checks.d.cts +0 -294
- package/node_modules/zod/v4/core/checks.d.ts +0 -294
- package/node_modules/zod/v4/core/checks.js +0 -516
- package/node_modules/zod/v4/core/compile.cjs +0 -1908
- package/node_modules/zod/v4/core/compile.d.cts +0 -65
- package/node_modules/zod/v4/core/compile.d.ts +0 -65
- package/node_modules/zod/v4/core/compile.js +0 -1858
- package/node_modules/zod/v4/core/core.cjs +0 -167
- package/node_modules/zod/v4/core/core.d.cts +0 -82
- package/node_modules/zod/v4/core/core.d.ts +0 -82
- package/node_modules/zod/v4/core/core.js +0 -141
- package/node_modules/zod/v4/core/doc.cjs +0 -61
- package/node_modules/zod/v4/core/doc.d.cts +0 -16
- package/node_modules/zod/v4/core/doc.d.ts +0 -16
- package/node_modules/zod/v4/core/doc.js +0 -38
- package/node_modules/zod/v4/core/errors.cjs +0 -317
- package/node_modules/zod/v4/core/errors.d.cts +0 -225
- package/node_modules/zod/v4/core/errors.d.ts +0 -225
- package/node_modules/zod/v4/core/errors.js +0 -267
- package/node_modules/zod/v4/core/index.cjs +0 -70
- package/node_modules/zod/v4/core/index.d.cts +0 -19
- package/node_modules/zod/v4/core/index.d.ts +0 -19
- package/node_modules/zod/v4/core/index.js +0 -19
- package/node_modules/zod/v4/core/json-schema-generator.cjs +0 -122
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +0 -65
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +0 -65
- package/node_modules/zod/v4/core/json-schema-generator.js +0 -99
- package/node_modules/zod/v4/core/json-schema-processors.cjs +0 -929
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +0 -65
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +0 -65
- package/node_modules/zod/v4/core/json-schema-processors.js +0 -843
- package/node_modules/zod/v4/core/json-schema.cjs +0 -21
- package/node_modules/zod/v4/core/json-schema.d.cts +0 -89
- package/node_modules/zod/v4/core/json-schema.d.ts +0 -89
- package/node_modules/zod/v4/core/json-schema.js +0 -1
- package/node_modules/zod/v4/core/memoizer.cjs +0 -360
- package/node_modules/zod/v4/core/memoizer.d.cts +0 -15
- package/node_modules/zod/v4/core/memoizer.d.ts +0 -15
- package/node_modules/zod/v4/core/memoizer.js +0 -311
- package/node_modules/zod/v4/core/package.json +0 -7
- package/node_modules/zod/v4/core/parse.cjs +0 -233
- package/node_modules/zod/v4/core/parse.d.cts +0 -52
- package/node_modules/zod/v4/core/parse.d.ts +0 -52
- package/node_modules/zod/v4/core/parse.js +0 -175
- package/node_modules/zod/v4/core/regexes.cjs +0 -209
- package/node_modules/zod/v4/core/regexes.d.cts +0 -90
- package/node_modules/zod/v4/core/regexes.d.ts +0 -90
- package/node_modules/zod/v4/core/regexes.js +0 -156
- package/node_modules/zod/v4/core/registries.cjs +0 -75
- package/node_modules/zod/v4/core/registries.d.cts +0 -35
- package/node_modules/zod/v4/core/registries.d.ts +0 -35
- package/node_modules/zod/v4/core/registries.js +0 -51
- package/node_modules/zod/v4/core/schemas.cjs +0 -2669
- package/node_modules/zod/v4/core/schemas.d.cts +0 -1273
- package/node_modules/zod/v4/core/schemas.d.ts +0 -1273
- package/node_modules/zod/v4/core/schemas.js +0 -2606
- package/node_modules/zod/v4/core/standard-schema.cjs +0 -21
- package/node_modules/zod/v4/core/standard-schema.d.cts +0 -126
- package/node_modules/zod/v4/core/standard-schema.d.ts +0 -126
- package/node_modules/zod/v4/core/standard-schema.js +0 -1
- package/node_modules/zod/v4/core/to-json-schema.cjs +0 -681
- package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -154
- package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -154
- package/node_modules/zod/v4/core/to-json-schema.js +0 -651
- package/node_modules/zod/v4/core/util.cjs +0 -949
- package/node_modules/zod/v4/core/util.d.cts +0 -278
- package/node_modules/zod/v4/core/util.d.ts +0 -278
- package/node_modules/zod/v4/core/util.js +0 -859
- package/node_modules/zod/v4/core/versions.cjs +0 -27
- package/node_modules/zod/v4/core/versions.d.cts +0 -5
- package/node_modules/zod/v4/core/versions.d.ts +0 -5
- package/node_modules/zod/v4/core/versions.js +0 -5
- package/node_modules/zod/v4/core/visit.cjs +0 -214
- package/node_modules/zod/v4/core/visit.d.cts +0 -30
- package/node_modules/zod/v4/core/visit.d.ts +0 -30
- package/node_modules/zod/v4/core/visit.js +0 -169
- package/node_modules/zod/v4/index.cjs +0 -51
- package/node_modules/zod/v4/index.d.cts +0 -3
- package/node_modules/zod/v4/index.d.ts +0 -3
- package/node_modules/zod/v4/index.js +0 -4
- package/node_modules/zod/v4/locales/ar.cjs +0 -138
- package/node_modules/zod/v4/locales/ar.d.cts +0 -5
- package/node_modules/zod/v4/locales/ar.d.ts +0 -4
- package/node_modules/zod/v4/locales/ar.js +0 -111
- package/node_modules/zod/v4/locales/az.cjs +0 -137
- package/node_modules/zod/v4/locales/az.d.cts +0 -5
- package/node_modules/zod/v4/locales/az.d.ts +0 -4
- package/node_modules/zod/v4/locales/az.js +0 -110
- package/node_modules/zod/v4/locales/be.cjs +0 -195
- package/node_modules/zod/v4/locales/be.d.cts +0 -5
- package/node_modules/zod/v4/locales/be.d.ts +0 -4
- package/node_modules/zod/v4/locales/be.js +0 -168
- package/node_modules/zod/v4/locales/bg.cjs +0 -152
- package/node_modules/zod/v4/locales/bg.d.cts +0 -5
- package/node_modules/zod/v4/locales/bg.d.ts +0 -4
- package/node_modules/zod/v4/locales/bg.js +0 -125
- package/node_modules/zod/v4/locales/bn.cjs +0 -140
- package/node_modules/zod/v4/locales/bn.d.cts +0 -5
- package/node_modules/zod/v4/locales/bn.d.ts +0 -4
- package/node_modules/zod/v4/locales/bn.js +0 -113
- package/node_modules/zod/v4/locales/ca.cjs +0 -139
- package/node_modules/zod/v4/locales/ca.d.cts +0 -5
- package/node_modules/zod/v4/locales/ca.d.ts +0 -4
- package/node_modules/zod/v4/locales/ca.js +0 -112
- package/node_modules/zod/v4/locales/ckb.cjs +0 -160
- package/node_modules/zod/v4/locales/ckb.d.cts +0 -5
- package/node_modules/zod/v4/locales/ckb.d.ts +0 -4
- package/node_modules/zod/v4/locales/ckb.js +0 -133
- package/node_modules/zod/v4/locales/cs.cjs +0 -143
- package/node_modules/zod/v4/locales/cs.d.cts +0 -5
- package/node_modules/zod/v4/locales/cs.d.ts +0 -4
- package/node_modules/zod/v4/locales/cs.js +0 -116
- package/node_modules/zod/v4/locales/da.cjs +0 -147
- package/node_modules/zod/v4/locales/da.d.cts +0 -5
- package/node_modules/zod/v4/locales/da.d.ts +0 -4
- package/node_modules/zod/v4/locales/da.js +0 -120
- package/node_modules/zod/v4/locales/de.cjs +0 -140
- package/node_modules/zod/v4/locales/de.d.cts +0 -5
- package/node_modules/zod/v4/locales/de.d.ts +0 -4
- package/node_modules/zod/v4/locales/de.js +0 -113
- package/node_modules/zod/v4/locales/el.cjs +0 -139
- package/node_modules/zod/v4/locales/el.d.cts +0 -5
- package/node_modules/zod/v4/locales/el.d.ts +0 -4
- package/node_modules/zod/v4/locales/el.js +0 -112
- package/node_modules/zod/v4/locales/en.cjs +0 -152
- package/node_modules/zod/v4/locales/en.d.cts +0 -5
- package/node_modules/zod/v4/locales/en.d.ts +0 -4
- package/node_modules/zod/v4/locales/en.js +0 -125
- package/node_modules/zod/v4/locales/eo.cjs +0 -141
- package/node_modules/zod/v4/locales/eo.d.cts +0 -5
- package/node_modules/zod/v4/locales/eo.d.ts +0 -4
- package/node_modules/zod/v4/locales/eo.js +0 -114
- package/node_modules/zod/v4/locales/es.cjs +0 -163
- package/node_modules/zod/v4/locales/es.d.cts +0 -5
- package/node_modules/zod/v4/locales/es.d.ts +0 -4
- package/node_modules/zod/v4/locales/es.js +0 -136
- package/node_modules/zod/v4/locales/fa.cjs +0 -146
- package/node_modules/zod/v4/locales/fa.d.cts +0 -5
- package/node_modules/zod/v4/locales/fa.d.ts +0 -4
- package/node_modules/zod/v4/locales/fa.js +0 -119
- package/node_modules/zod/v4/locales/fi.cjs +0 -144
- package/node_modules/zod/v4/locales/fi.d.cts +0 -5
- package/node_modules/zod/v4/locales/fi.d.ts +0 -4
- package/node_modules/zod/v4/locales/fi.js +0 -117
- package/node_modules/zod/v4/locales/fr-CA.cjs +0 -139
- package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -5
- package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
- package/node_modules/zod/v4/locales/fr-CA.js +0 -112
- package/node_modules/zod/v4/locales/fr.cjs +0 -156
- package/node_modules/zod/v4/locales/fr.d.cts +0 -5
- package/node_modules/zod/v4/locales/fr.d.ts +0 -4
- package/node_modules/zod/v4/locales/fr.js +0 -129
- package/node_modules/zod/v4/locales/gu.cjs +0 -140
- package/node_modules/zod/v4/locales/gu.d.cts +0 -5
- package/node_modules/zod/v4/locales/gu.d.ts +0 -4
- package/node_modules/zod/v4/locales/gu.js +0 -113
- package/node_modules/zod/v4/locales/he.cjs +0 -248
- package/node_modules/zod/v4/locales/he.d.cts +0 -5
- package/node_modules/zod/v4/locales/he.d.ts +0 -4
- package/node_modules/zod/v4/locales/he.js +0 -221
- package/node_modules/zod/v4/locales/hi.cjs +0 -138
- package/node_modules/zod/v4/locales/hi.d.cts +0 -5
- package/node_modules/zod/v4/locales/hi.d.ts +0 -4
- package/node_modules/zod/v4/locales/hi.js +0 -111
- package/node_modules/zod/v4/locales/hr.cjs +0 -153
- package/node_modules/zod/v4/locales/hr.d.cts +0 -5
- package/node_modules/zod/v4/locales/hr.d.ts +0 -4
- package/node_modules/zod/v4/locales/hr.js +0 -126
- package/node_modules/zod/v4/locales/hu.cjs +0 -140
- package/node_modules/zod/v4/locales/hu.d.cts +0 -5
- package/node_modules/zod/v4/locales/hu.d.ts +0 -4
- package/node_modules/zod/v4/locales/hu.js +0 -113
- package/node_modules/zod/v4/locales/hy.cjs +0 -185
- package/node_modules/zod/v4/locales/hy.d.cts +0 -5
- package/node_modules/zod/v4/locales/hy.d.ts +0 -4
- package/node_modules/zod/v4/locales/hy.js +0 -158
- package/node_modules/zod/v4/locales/id.cjs +0 -138
- package/node_modules/zod/v4/locales/id.d.cts +0 -5
- package/node_modules/zod/v4/locales/id.d.ts +0 -4
- package/node_modules/zod/v4/locales/id.js +0 -111
- package/node_modules/zod/v4/locales/index.cjs +0 -152
- package/node_modules/zod/v4/locales/index.d.cts +0 -63
- package/node_modules/zod/v4/locales/index.d.ts +0 -63
- package/node_modules/zod/v4/locales/index.js +0 -63
- package/node_modules/zod/v4/locales/is.cjs +0 -141
- package/node_modules/zod/v4/locales/is.d.cts +0 -5
- package/node_modules/zod/v4/locales/is.d.ts +0 -4
- package/node_modules/zod/v4/locales/is.js +0 -114
- package/node_modules/zod/v4/locales/it.cjs +0 -140
- package/node_modules/zod/v4/locales/it.d.cts +0 -5
- package/node_modules/zod/v4/locales/it.d.ts +0 -4
- package/node_modules/zod/v4/locales/it.js +0 -113
- package/node_modules/zod/v4/locales/ja.cjs +0 -139
- package/node_modules/zod/v4/locales/ja.d.cts +0 -5
- package/node_modules/zod/v4/locales/ja.d.ts +0 -4
- package/node_modules/zod/v4/locales/ja.js +0 -112
- package/node_modules/zod/v4/locales/ka.cjs +0 -144
- package/node_modules/zod/v4/locales/ka.d.cts +0 -5
- package/node_modules/zod/v4/locales/ka.d.ts +0 -4
- package/node_modules/zod/v4/locales/ka.js +0 -117
- package/node_modules/zod/v4/locales/kh.cjs +0 -12
- package/node_modules/zod/v4/locales/kh.d.cts +0 -5
- package/node_modules/zod/v4/locales/kh.d.ts +0 -5
- package/node_modules/zod/v4/locales/kh.js +0 -5
- package/node_modules/zod/v4/locales/km.cjs +0 -142
- package/node_modules/zod/v4/locales/km.d.cts +0 -5
- package/node_modules/zod/v4/locales/km.d.ts +0 -4
- package/node_modules/zod/v4/locales/km.js +0 -115
- package/node_modules/zod/v4/locales/kn.cjs +0 -143
- package/node_modules/zod/v4/locales/kn.d.cts +0 -5
- package/node_modules/zod/v4/locales/kn.d.ts +0 -4
- package/node_modules/zod/v4/locales/kn.js +0 -116
- package/node_modules/zod/v4/locales/ko.cjs +0 -143
- package/node_modules/zod/v4/locales/ko.d.cts +0 -5
- package/node_modules/zod/v4/locales/ko.d.ts +0 -4
- package/node_modules/zod/v4/locales/ko.js +0 -116
- package/node_modules/zod/v4/locales/lt.cjs +0 -234
- package/node_modules/zod/v4/locales/lt.d.cts +0 -5
- package/node_modules/zod/v4/locales/lt.d.ts +0 -4
- package/node_modules/zod/v4/locales/lt.js +0 -207
- package/node_modules/zod/v4/locales/mk.cjs +0 -141
- package/node_modules/zod/v4/locales/mk.d.cts +0 -5
- package/node_modules/zod/v4/locales/mk.d.ts +0 -4
- package/node_modules/zod/v4/locales/mk.js +0 -114
- package/node_modules/zod/v4/locales/ms.cjs +0 -139
- package/node_modules/zod/v4/locales/ms.d.cts +0 -5
- package/node_modules/zod/v4/locales/ms.d.ts +0 -4
- package/node_modules/zod/v4/locales/ms.js +0 -112
- package/node_modules/zod/v4/locales/ne.cjs +0 -138
- package/node_modules/zod/v4/locales/ne.d.cts +0 -5
- package/node_modules/zod/v4/locales/ne.d.ts +0 -4
- package/node_modules/zod/v4/locales/ne.js +0 -111
- package/node_modules/zod/v4/locales/nl.cjs +0 -142
- package/node_modules/zod/v4/locales/nl.d.cts +0 -5
- package/node_modules/zod/v4/locales/nl.d.ts +0 -4
- package/node_modules/zod/v4/locales/nl.js +0 -115
- package/node_modules/zod/v4/locales/nn.cjs +0 -140
- package/node_modules/zod/v4/locales/nn.d.cts +0 -5
- package/node_modules/zod/v4/locales/nn.d.ts +0 -4
- package/node_modules/zod/v4/locales/nn.js +0 -113
- package/node_modules/zod/v4/locales/no.cjs +0 -140
- package/node_modules/zod/v4/locales/no.d.cts +0 -5
- package/node_modules/zod/v4/locales/no.d.ts +0 -4
- package/node_modules/zod/v4/locales/no.js +0 -113
- package/node_modules/zod/v4/locales/ota.cjs +0 -141
- package/node_modules/zod/v4/locales/ota.d.cts +0 -5
- package/node_modules/zod/v4/locales/ota.d.ts +0 -4
- package/node_modules/zod/v4/locales/ota.js +0 -114
- package/node_modules/zod/v4/locales/package.json +0 -7
- package/node_modules/zod/v4/locales/pl.cjs +0 -141
- package/node_modules/zod/v4/locales/pl.d.cts +0 -5
- package/node_modules/zod/v4/locales/pl.d.ts +0 -4
- package/node_modules/zod/v4/locales/pl.js +0 -114
- package/node_modules/zod/v4/locales/ps.cjs +0 -146
- package/node_modules/zod/v4/locales/ps.d.cts +0 -5
- package/node_modules/zod/v4/locales/ps.d.ts +0 -4
- package/node_modules/zod/v4/locales/ps.js +0 -119
- package/node_modules/zod/v4/locales/pt-BR.cjs +0 -170
- package/node_modules/zod/v4/locales/pt-BR.d.cts +0 -5
- package/node_modules/zod/v4/locales/pt-BR.d.ts +0 -4
- package/node_modules/zod/v4/locales/pt-BR.js +0 -143
- package/node_modules/zod/v4/locales/pt.cjs +0 -169
- package/node_modules/zod/v4/locales/pt.d.cts +0 -5
- package/node_modules/zod/v4/locales/pt.d.ts +0 -4
- package/node_modules/zod/v4/locales/pt.js +0 -142
- package/node_modules/zod/v4/locales/ro.cjs +0 -149
- package/node_modules/zod/v4/locales/ro.d.cts +0 -5
- package/node_modules/zod/v4/locales/ro.d.ts +0 -4
- package/node_modules/zod/v4/locales/ro.js +0 -122
- package/node_modules/zod/v4/locales/ru.cjs +0 -195
- package/node_modules/zod/v4/locales/ru.d.cts +0 -5
- package/node_modules/zod/v4/locales/ru.d.ts +0 -4
- package/node_modules/zod/v4/locales/ru.js +0 -168
- package/node_modules/zod/v4/locales/sk.cjs +0 -143
- package/node_modules/zod/v4/locales/sk.d.cts +0 -5
- package/node_modules/zod/v4/locales/sk.d.ts +0 -4
- package/node_modules/zod/v4/locales/sk.js +0 -116
- package/node_modules/zod/v4/locales/sl.cjs +0 -141
- package/node_modules/zod/v4/locales/sl.d.cts +0 -5
- package/node_modules/zod/v4/locales/sl.d.ts +0 -4
- package/node_modules/zod/v4/locales/sl.js +0 -114
- package/node_modules/zod/v4/locales/sv.cjs +0 -142
- package/node_modules/zod/v4/locales/sv.d.cts +0 -5
- package/node_modules/zod/v4/locales/sv.d.ts +0 -4
- package/node_modules/zod/v4/locales/sv.js +0 -115
- package/node_modules/zod/v4/locales/ta.cjs +0 -142
- package/node_modules/zod/v4/locales/ta.d.cts +0 -5
- package/node_modules/zod/v4/locales/ta.d.ts +0 -4
- package/node_modules/zod/v4/locales/ta.js +0 -115
- package/node_modules/zod/v4/locales/tg.cjs +0 -144
- package/node_modules/zod/v4/locales/tg.d.cts +0 -5
- package/node_modules/zod/v4/locales/tg.d.ts +0 -4
- package/node_modules/zod/v4/locales/tg.js +0 -117
- package/node_modules/zod/v4/locales/th.cjs +0 -142
- package/node_modules/zod/v4/locales/th.d.cts +0 -5
- package/node_modules/zod/v4/locales/th.d.ts +0 -4
- package/node_modules/zod/v4/locales/th.js +0 -115
- package/node_modules/zod/v4/locales/tk.cjs +0 -134
- package/node_modules/zod/v4/locales/tk.d.cts +0 -5
- package/node_modules/zod/v4/locales/tk.d.ts +0 -4
- package/node_modules/zod/v4/locales/tk.js +0 -107
- package/node_modules/zod/v4/locales/tr.cjs +0 -137
- package/node_modules/zod/v4/locales/tr.d.cts +0 -5
- package/node_modules/zod/v4/locales/tr.d.ts +0 -4
- package/node_modules/zod/v4/locales/tr.js +0 -110
- package/node_modules/zod/v4/locales/ua.cjs +0 -12
- package/node_modules/zod/v4/locales/ua.d.cts +0 -5
- package/node_modules/zod/v4/locales/ua.d.ts +0 -5
- package/node_modules/zod/v4/locales/ua.js +0 -5
- package/node_modules/zod/v4/locales/uk.cjs +0 -140
- package/node_modules/zod/v4/locales/uk.d.cts +0 -5
- package/node_modules/zod/v4/locales/uk.d.ts +0 -4
- package/node_modules/zod/v4/locales/uk.js +0 -113
- package/node_modules/zod/v4/locales/ur.cjs +0 -142
- package/node_modules/zod/v4/locales/ur.d.cts +0 -5
- package/node_modules/zod/v4/locales/ur.d.ts +0 -4
- package/node_modules/zod/v4/locales/ur.js +0 -115
- package/node_modules/zod/v4/locales/uz.cjs +0 -140
- package/node_modules/zod/v4/locales/uz.d.cts +0 -5
- package/node_modules/zod/v4/locales/uz.d.ts +0 -4
- package/node_modules/zod/v4/locales/uz.js +0 -113
- package/node_modules/zod/v4/locales/vi.cjs +0 -140
- package/node_modules/zod/v4/locales/vi.d.cts +0 -5
- package/node_modules/zod/v4/locales/vi.d.ts +0 -4
- package/node_modules/zod/v4/locales/vi.js +0 -113
- package/node_modules/zod/v4/locales/yo.cjs +0 -139
- package/node_modules/zod/v4/locales/yo.d.cts +0 -5
- package/node_modules/zod/v4/locales/yo.d.ts +0 -4
- package/node_modules/zod/v4/locales/yo.js +0 -112
- package/node_modules/zod/v4/locales/zh-CN.cjs +0 -141
- package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -5
- package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
- package/node_modules/zod/v4/locales/zh-CN.js +0 -114
- package/node_modules/zod/v4/locales/zh-TW.cjs +0 -139
- package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -5
- package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
- package/node_modules/zod/v4/locales/zh-TW.js +0 -112
- package/node_modules/zod/v4/mini/checks.cjs +0 -54
- package/node_modules/zod/v4/mini/checks.d.cts +0 -1
- package/node_modules/zod/v4/mini/checks.d.ts +0 -1
- package/node_modules/zod/v4/mini/checks.js +0 -1
- package/node_modules/zod/v4/mini/coerce.cjs +0 -71
- package/node_modules/zod/v4/mini/coerce.d.cts +0 -7
- package/node_modules/zod/v4/mini/coerce.d.ts +0 -7
- package/node_modules/zod/v4/mini/coerce.js +0 -22
- package/node_modules/zod/v4/mini/deep-partial.cjs +0 -58
- package/node_modules/zod/v4/mini/deep-partial.d.cts +0 -14
- package/node_modules/zod/v4/mini/deep-partial.d.ts +0 -14
- package/node_modules/zod/v4/mini/deep-partial.js +0 -13
- package/node_modules/zod/v4/mini/external.cjs +0 -95
- package/node_modules/zod/v4/mini/external.d.cts +0 -16
- package/node_modules/zod/v4/mini/external.d.ts +0 -16
- package/node_modules/zod/v4/mini/external.js +0 -16
- package/node_modules/zod/v4/mini/in-out.cjs +0 -82
- package/node_modules/zod/v4/mini/in-out.d.cts +0 -8
- package/node_modules/zod/v4/mini/in-out.d.ts +0 -8
- package/node_modules/zod/v4/mini/in-out.js +0 -36
- package/node_modules/zod/v4/mini/index.cjs +0 -51
- package/node_modules/zod/v4/mini/index.d.cts +0 -3
- package/node_modules/zod/v4/mini/index.d.ts +0 -3
- package/node_modules/zod/v4/mini/index.js +0 -3
- package/node_modules/zod/v4/mini/iso.cjs +0 -83
- package/node_modules/zod/v4/mini/iso.d.cts +0 -22
- package/node_modules/zod/v4/mini/iso.d.ts +0 -22
- package/node_modules/zod/v4/mini/iso.js +0 -34
- package/node_modules/zod/v4/mini/package.json +0 -7
- package/node_modules/zod/v4/mini/parse.cjs +0 -37
- package/node_modules/zod/v4/mini/parse.d.cts +0 -1
- package/node_modules/zod/v4/mini/parse.d.ts +0 -1
- package/node_modules/zod/v4/mini/parse.js +0 -1
- package/node_modules/zod/v4/mini/schemas.cjs +0 -1147
- package/node_modules/zod/v4/mini/schemas.d.cts +0 -480
- package/node_modules/zod/v4/mini/schemas.d.ts +0 -480
- package/node_modules/zod/v4/mini/schemas.js +0 -1002
- package/node_modules/zod/v4/package.json +0 -7
- package/node_modules/zod/v4-mini/index.cjs +0 -51
- package/node_modules/zod/v4-mini/index.d.cts +0 -3
- package/node_modules/zod/v4-mini/index.d.ts +0 -3
- package/node_modules/zod/v4-mini/index.js +0 -3
- package/node_modules/zod/v4-mini/package.json +0 -7
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { expect, test } from "vitest";
|
|
2
|
-
import * as z from "zod/v4";
|
|
3
|
-
|
|
4
|
-
test("locales - uz", () => {
|
|
5
|
-
z.config(z.locales.uz());
|
|
6
|
-
|
|
7
|
-
const invalidType = z.number().safeParse("a");
|
|
8
|
-
expect(invalidType.error!.issues[0].code).toBe("invalid_type");
|
|
9
|
-
expect(invalidType.error!.issues[0].message).toBe("Noto‘g‘ri kirish: kutilgan raqam, qabul qilingan string");
|
|
10
|
-
|
|
11
|
-
const invalidType2 = z.string().safeParse(1);
|
|
12
|
-
expect(invalidType2.error!.issues[0].code).toBe("invalid_type");
|
|
13
|
-
expect(invalidType2.error!.issues[0].message).toBe("Noto‘g‘ri kirish: kutilgan string, qabul qilingan raqam");
|
|
14
|
-
|
|
15
|
-
const invalidValue = z.enum(["a", "b"]).safeParse(1);
|
|
16
|
-
expect(invalidValue.error!.issues[0].code).toBe("invalid_value");
|
|
17
|
-
expect(invalidValue.error!.issues[0].message).toBe('Noto‘g‘ri variant: quyidagilardan biri kutilgan "a"|"b"');
|
|
18
|
-
|
|
19
|
-
const tooBig = z.number().max(10).safeParse(15);
|
|
20
|
-
expect(tooBig.error!.issues[0].code).toBe("too_big");
|
|
21
|
-
expect(tooBig.error!.issues[0].message).toBe("Juda katta: kutilgan number <=10");
|
|
22
|
-
|
|
23
|
-
const tooSmall = z.number().min(10).safeParse(5);
|
|
24
|
-
expect(tooSmall.error!.issues[0].code).toBe("too_small");
|
|
25
|
-
expect(tooSmall.error!.issues[0].message).toBe("Juda kichik: kutilgan number >=10");
|
|
26
|
-
|
|
27
|
-
const invalidFormatRegex = z.string().regex(/abcd/).safeParse("invalid-string");
|
|
28
|
-
expect(invalidFormatRegex.error!.issues[0].code).toBe("invalid_format");
|
|
29
|
-
expect(invalidFormatRegex.error!.issues[0].message).toContain("shabloniga mos kelishi kerak");
|
|
30
|
-
|
|
31
|
-
const invalidFormatStartsWith = z.string().startsWith("abcd").safeParse("invalid-string");
|
|
32
|
-
expect(invalidFormatStartsWith.error!.issues[0].code).toBe("invalid_format");
|
|
33
|
-
expect(invalidFormatStartsWith.error!.issues[0].message).toContain('"abcd" bilan boshlanishi kerak');
|
|
34
|
-
|
|
35
|
-
const notMultipleOf = z.number().multipleOf(3).safeParse(10);
|
|
36
|
-
expect(notMultipleOf.error!.issues[0].code).toBe("not_multiple_of");
|
|
37
|
-
expect(notMultipleOf.error!.issues[0].message).toContain("3 ning karralisi bo‘lishi kerak");
|
|
38
|
-
|
|
39
|
-
const unrecognizedKeys = z.object({ a: z.string(), b: z.number() }).strict().safeParse({ a: "a", b: 1, c: 2 });
|
|
40
|
-
expect(unrecognizedKeys.error!.issues[0].code).toBe("unrecognized_keys");
|
|
41
|
-
expect(unrecognizedKeys.error!.issues[0].message).toContain('Noma’lum kalit: "c"');
|
|
42
|
-
|
|
43
|
-
const invalidUnion = z.union([z.string(), z.number()]).safeParse(true);
|
|
44
|
-
expect(invalidUnion.error!.issues[0].code).toBe("invalid_union");
|
|
45
|
-
expect(invalidUnion.error!.issues[0].message).toBe("Noto‘g‘ri kirish");
|
|
46
|
-
|
|
47
|
-
const tooBigString = z.string().max(5).safeParse("too long string");
|
|
48
|
-
expect(tooBigString.error!.issues[0].code).toBe("too_big");
|
|
49
|
-
expect(tooBigString.error!.issues[0].message).toContain("belgi");
|
|
50
|
-
expect(tooBigString.error!.issues[0].message).toContain("bo‘lishi kerak");
|
|
51
|
-
|
|
52
|
-
const tooSmallArray = z.array(z.string()).min(3).safeParse(["a", "b"]);
|
|
53
|
-
expect(tooSmallArray.error!.issues[0].code).toBe("too_small");
|
|
54
|
-
expect(tooSmallArray.error!.issues[0].message).toContain("element");
|
|
55
|
-
expect(tooSmallArray.error!.issues[0].message).toContain("bo‘lishi kerak");
|
|
56
|
-
|
|
57
|
-
const invalidFormatEndsWith = z.string().endsWith("xyz").safeParse("invalid-string");
|
|
58
|
-
expect(invalidFormatEndsWith.error!.issues[0].code).toBe("invalid_format");
|
|
59
|
-
expect(invalidFormatEndsWith.error!.issues[0].message).toContain('"xyz" bilan tugashi kerak');
|
|
60
|
-
|
|
61
|
-
const invalidFormatIncludes = z.string().includes("test").safeParse("invalid-string");
|
|
62
|
-
expect(invalidFormatIncludes.error!.issues[0].code).toBe("invalid_format");
|
|
63
|
-
expect(invalidFormatIncludes.error!.issues[0].message).toContain('"test" ni o‘z ichiga olishi kerak');
|
|
64
|
-
|
|
65
|
-
const invalidFormatEmail = z.string().email().safeParse("invalid-email");
|
|
66
|
-
expect(invalidFormatEmail.error!.issues[0].code).toBe("invalid_format");
|
|
67
|
-
expect(invalidFormatEmail.error!.issues[0].message).toContain("elektron pochta manzili");
|
|
68
|
-
|
|
69
|
-
const invalidFormatUrl = z.string().url().safeParse("invalid-url");
|
|
70
|
-
expect(invalidFormatUrl.error!.issues[0].code).toBe("invalid_format");
|
|
71
|
-
expect(invalidFormatUrl.error!.issues[0].message).toContain("URL");
|
|
72
|
-
|
|
73
|
-
const unrecognizedKeysMultiple = z
|
|
74
|
-
.object({ a: z.string(), b: z.number() })
|
|
75
|
-
.strict()
|
|
76
|
-
.safeParse({ a: "a", b: 1, c: 2, d: 3 });
|
|
77
|
-
expect(unrecognizedKeysMultiple.error!.issues[0].code).toBe("unrecognized_keys");
|
|
78
|
-
expect(unrecognizedKeysMultiple.error!.issues[0].message).toContain("Noma’lum kalitlar");
|
|
79
|
-
|
|
80
|
-
const invalidElement = z.array(z.string()).safeParse([1, 2, 3]);
|
|
81
|
-
expect(invalidElement.error!.issues[0].code).toBe("invalid_type");
|
|
82
|
-
expect(invalidElement.error!.issues[0].message).toContain("raqam");
|
|
83
|
-
|
|
84
|
-
const tooSmallMap = z
|
|
85
|
-
.map(z.string(), z.string())
|
|
86
|
-
.min(3)
|
|
87
|
-
.safeParse(new Map([["a", "b"]]));
|
|
88
|
-
expect(tooSmallMap.error!.issues[0].code).toBe("too_small");
|
|
89
|
-
expect(tooSmallMap.error!.issues[0].message).toContain("yozuv");
|
|
90
|
-
expect(tooSmallMap.error!.issues[0].message).toContain("bo‘lishi kerak");
|
|
91
|
-
|
|
92
|
-
const tooBigMap = z
|
|
93
|
-
.map(z.string(), z.string())
|
|
94
|
-
.max(2)
|
|
95
|
-
.safeParse(
|
|
96
|
-
new Map([
|
|
97
|
-
["a", "b"],
|
|
98
|
-
["c", "d"],
|
|
99
|
-
["e", "f"],
|
|
100
|
-
])
|
|
101
|
-
);
|
|
102
|
-
expect(tooBigMap.error!.issues[0].code).toBe("too_big");
|
|
103
|
-
expect(tooBigMap.error!.issues[0].message).toContain("yozuv");
|
|
104
|
-
expect(tooBigMap.error!.issues[0].message).toContain("bo‘lishi kerak");
|
|
105
|
-
});
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import * as path from "node:path";
|
|
2
|
-
import { fileURLToPath } from "node:url";
|
|
3
|
-
import { build, transform } from "esbuild";
|
|
4
|
-
import { expect, test } from "vitest";
|
|
5
|
-
import * as core from "zod/v4/core";
|
|
6
|
-
|
|
7
|
-
// Browser polyfills for node globals land as raw text in the bundle's top scope — an esbuild `banner`, a scope-unaware injector — so the bundler never sees the collision and the browser is the first thing to read both declarations. zod must therefore declare none of these names at module scope. The JSON Schema pass shipped an `export function process` for three minors before #6397 reported the white screen it caused.
|
|
8
|
-
const INJECTED = ["process", "Buffer", "global", "__dirname", "__filename"];
|
|
9
|
-
|
|
10
|
-
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
11
|
-
const CLASSIC = path.resolve(here, "../../../index.ts");
|
|
12
|
-
const MINI = path.resolve(here, "../../../mini/index.ts");
|
|
13
|
-
|
|
14
|
-
const polyfills = INJECTED.map((name) => `const ${name} = {};`).join("\n");
|
|
15
|
-
|
|
16
|
-
// toJSONSchema has to be reachable: a bundle that only parses a schema tree-shakes the offending module away and would pass no matter what it declares. `z.core.process` is the pre-rename export name, read as a namespace property so the entry itself declares no `process` binding.
|
|
17
|
-
const ENTRY = `import * as z from "%ENTRY%";\nglobalThis.__out = [z.toJSONSchema(z.string()), z.core.process];`;
|
|
18
|
-
|
|
19
|
-
test.each([
|
|
20
|
-
["classic", CLASSIC],
|
|
21
|
-
["mini", MINI],
|
|
22
|
-
])(
|
|
23
|
-
"a %s bundle reaching toJSONSchema parses beside polyfilled node globals",
|
|
24
|
-
async (_flavor, entrypoint) => {
|
|
25
|
-
const result = await build({
|
|
26
|
-
stdin: { contents: ENTRY.replace("%ENTRY%", entrypoint), loader: "ts", resolveDir: here },
|
|
27
|
-
bundle: true,
|
|
28
|
-
format: "esm",
|
|
29
|
-
target: "es2020",
|
|
30
|
-
write: false,
|
|
31
|
-
logLevel: "silent",
|
|
32
|
-
banner: { js: polyfills },
|
|
33
|
-
});
|
|
34
|
-
const out = result.outputFiles[0]!.text;
|
|
35
|
-
|
|
36
|
-
expect(out).toContain("https://json-schema.org/draft/2020-12/schema");
|
|
37
|
-
|
|
38
|
-
// the banner is appended after esbuild has already renamed its own symbols, so this second pass is where a duplicate surfaces: `The symbol "process" has already been declared`
|
|
39
|
-
await expect(transform(out, { loader: "js", format: "esm" })).resolves.toBeTruthy();
|
|
40
|
-
},
|
|
41
|
-
30000
|
|
42
|
-
);
|
|
43
|
-
|
|
44
|
-
test("the pre-rename `process` export still resolves to the helper", () => {
|
|
45
|
-
expect(core.process).toBe(core.processSchema);
|
|
46
|
-
});
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { expect, test } from "vitest";
|
|
2
|
-
import * as z from "zod/v4";
|
|
3
|
-
|
|
4
|
-
test("record should parse objects with non-function constructor field", () => {
|
|
5
|
-
const schema = z.record(z.string(), z.any());
|
|
6
|
-
|
|
7
|
-
expect(() => schema.parse({ constructor: "string", key: "value" })).not.toThrow();
|
|
8
|
-
|
|
9
|
-
const result1 = schema.parse({ constructor: "string", key: "value" });
|
|
10
|
-
expect(result1).toEqual({ constructor: "string", key: "value" });
|
|
11
|
-
|
|
12
|
-
expect(() => schema.parse({ constructor: 123, key: "value" })).not.toThrow();
|
|
13
|
-
|
|
14
|
-
const result2 = schema.parse({ constructor: 123, key: "value" });
|
|
15
|
-
expect(result2).toEqual({ constructor: 123, key: "value" });
|
|
16
|
-
|
|
17
|
-
expect(() => schema.parse({ constructor: null, key: "value" })).not.toThrow();
|
|
18
|
-
|
|
19
|
-
const result3 = schema.parse({ constructor: null, key: "value" });
|
|
20
|
-
expect(result3).toEqual({ constructor: null, key: "value" });
|
|
21
|
-
|
|
22
|
-
expect(() => schema.parse({ constructor: {}, key: "value" })).not.toThrow();
|
|
23
|
-
|
|
24
|
-
const result4 = schema.parse({ constructor: {}, key: "value" });
|
|
25
|
-
expect(result4).toEqual({ constructor: {}, key: "value" });
|
|
26
|
-
|
|
27
|
-
expect(() => schema.parse({ constructor: [], key: "value" })).not.toThrow();
|
|
28
|
-
|
|
29
|
-
const result5 = schema.parse({ constructor: [], key: "value" });
|
|
30
|
-
expect(result5).toEqual({ constructor: [], key: "value" });
|
|
31
|
-
|
|
32
|
-
expect(() => schema.parse({ constructor: true, key: "value" })).not.toThrow();
|
|
33
|
-
|
|
34
|
-
const result6 = schema.parse({ constructor: true, key: "value" });
|
|
35
|
-
expect(result6).toEqual({ constructor: true, key: "value" });
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
test("record should still work with normal objects", () => {
|
|
39
|
-
const schema = z.record(z.string(), z.string());
|
|
40
|
-
|
|
41
|
-
expect(() => schema.parse({ normalKey: "value" })).not.toThrow();
|
|
42
|
-
|
|
43
|
-
const result1 = schema.parse({ normalKey: "value" });
|
|
44
|
-
expect(result1).toEqual({ normalKey: "value" });
|
|
45
|
-
|
|
46
|
-
expect(() => schema.parse({ key1: "value1", key2: "value2" })).not.toThrow();
|
|
47
|
-
|
|
48
|
-
const result2 = schema.parse({ key1: "value1", key2: "value2" });
|
|
49
|
-
expect(result2).toEqual({ key1: "value1", key2: "value2" });
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
test("record should validate values according to schema even with constructor field", () => {
|
|
53
|
-
const stringSchema = z.record(z.string(), z.string());
|
|
54
|
-
|
|
55
|
-
expect(() => stringSchema.parse({ constructor: "string", key: "value" })).not.toThrow();
|
|
56
|
-
|
|
57
|
-
expect(() => stringSchema.parse({ constructor: 123, key: "value" })).toThrow();
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
test("record should work with different key types and constructor field", () => {
|
|
61
|
-
const enumSchema = z.record(z.enum(["constructor", "key"]), z.string());
|
|
62
|
-
|
|
63
|
-
expect(() => enumSchema.parse({ constructor: "value1", key: "value2" })).not.toThrow();
|
|
64
|
-
|
|
65
|
-
const result = enumSchema.parse({ constructor: "value1", key: "value2" });
|
|
66
|
-
expect(result).toEqual({ constructor: "value1", key: "value2" });
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
test("record should skip non-enumerable own properties", () => {
|
|
70
|
-
const schema = z.record(z.string(), z.string());
|
|
71
|
-
|
|
72
|
-
const input = { key: "value" };
|
|
73
|
-
Object.defineProperty(input, "~standard", {
|
|
74
|
-
value: { validate: () => {}, vendor: "zod", version: 1 },
|
|
75
|
-
enumerable: false,
|
|
76
|
-
writable: false,
|
|
77
|
-
configurable: false,
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
const result = schema.safeParse(input);
|
|
81
|
-
expect(result.success).toBe(true);
|
|
82
|
-
if (result.success) {
|
|
83
|
-
expect(result.data).toEqual({ key: "value" });
|
|
84
|
-
expect("~standard" in result.data).toBe(false);
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
test("record fails on enumerable invalid values even when non-enumerable properties are present", () => {
|
|
89
|
-
const schema = z.record(z.string(), z.string());
|
|
90
|
-
|
|
91
|
-
const input = { key: "value", bad: 123 };
|
|
92
|
-
Object.defineProperty(input, "hidden", {
|
|
93
|
-
value: "should be ignored",
|
|
94
|
-
enumerable: false,
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
const result = schema.safeParse(input);
|
|
98
|
-
expect(result.success).toBe(false);
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
test("record validates enumerable Symbol keys and skips non-enumerable Symbol keys", () => {
|
|
102
|
-
const enumerableSym = Symbol.for("included");
|
|
103
|
-
const nonEnumerableSym = Symbol.for("hidden");
|
|
104
|
-
const schema = z.record(z.symbol(), z.string());
|
|
105
|
-
|
|
106
|
-
const input: Record<symbol, unknown> = { [enumerableSym]: "value" };
|
|
107
|
-
Object.defineProperty(input, nonEnumerableSym, {
|
|
108
|
-
value: 123,
|
|
109
|
-
enumerable: false,
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
const result = schema.safeParse(input);
|
|
113
|
-
expect(result.success).toBe(true);
|
|
114
|
-
if (result.success) {
|
|
115
|
-
expect(result.data[enumerableSym]).toBe("value");
|
|
116
|
-
expect(Object.prototype.hasOwnProperty.call(result.data, nonEnumerableSym)).toBe(false);
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
|
|
120
|
-
test("z.json() accepts z.toJSONSchema() output (issue #5714)", () => {
|
|
121
|
-
const schema = z.object({ name: z.string() });
|
|
122
|
-
const jsonSchema = z.toJSONSchema(schema);
|
|
123
|
-
|
|
124
|
-
expect(z.json().safeParse(jsonSchema).success).toBe(true);
|
|
125
|
-
});
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from "vitest";
|
|
2
|
-
import * as z from "zod/v4";
|
|
3
|
-
|
|
4
|
-
describe("Recursive Tuples Regression #5089", () => {
|
|
5
|
-
it("creates recursive tuple without crash", () => {
|
|
6
|
-
expect(() => {
|
|
7
|
-
const y = z.lazy((): any => z.tuple([y, y]).or(z.string()));
|
|
8
|
-
}).not.toThrow();
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
it("parses recursive tuple data correctly", () => {
|
|
12
|
-
const y = z.lazy((): any => z.tuple([y, y]).or(z.string()));
|
|
13
|
-
|
|
14
|
-
// Base case
|
|
15
|
-
expect(y.parse("hello")).toBe("hello");
|
|
16
|
-
|
|
17
|
-
// Recursive cases
|
|
18
|
-
expect(() => y.parse(["a", "b"])).not.toThrow();
|
|
19
|
-
expect(() => y.parse(["a", ["b", "c"]])).not.toThrow();
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
it("matches #5089 expected behavior", () => {
|
|
23
|
-
// Exact code from the issue
|
|
24
|
-
expect(() => {
|
|
25
|
-
const y = z.lazy((): any => z.tuple([y, y]).or(z.string()));
|
|
26
|
-
y.parse(["a", ["b", "c"]]);
|
|
27
|
-
}).not.toThrow();
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
it("handles workaround pattern", () => {
|
|
31
|
-
// Alternative pattern from issue discussion
|
|
32
|
-
expect(() => {
|
|
33
|
-
const y = z.lazy((): any => z.string().or(z.lazy(() => z.tuple([y, y]))));
|
|
34
|
-
y.parse(["a", ["b", "c"]]);
|
|
35
|
-
}).not.toThrow();
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
it("recursive arrays still work (comparison)", () => {
|
|
39
|
-
const y = z.lazy((): any => z.array(y).or(z.string()));
|
|
40
|
-
|
|
41
|
-
expect(y.parse("hello")).toBe("hello");
|
|
42
|
-
expect(y.parse(["hello", "world"])).toEqual(["hello", "world"]);
|
|
43
|
-
expect(y.parse(["a", ["b", "c"]])).toEqual(["a", ["b", "c"]]);
|
|
44
|
-
});
|
|
45
|
-
});
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import * as path from "node:path";
|
|
2
|
-
import { fileURLToPath } from "node:url";
|
|
3
|
-
import { build } from "esbuild";
|
|
4
|
-
import { expect, test } from "vitest";
|
|
5
|
-
|
|
6
|
-
// These declarations are unreachable from a minimal schema, but esbuild only drops them because of details that read as noise: `@__PURE__` annotations, and the `anchor()` helper in regexes.ts that exists solely because esbuild will not drop an annotated call whose argument interpolates a variable. Inlining the helper or deleting an annotation silently puts them back with no other test going red.
|
|
7
|
-
//
|
|
8
|
-
// Rollup drops all of these regardless, so a rollup fixture would report no difference and prove nothing. This has to run under esbuild.
|
|
9
|
-
|
|
10
|
-
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
11
|
-
const MINI = path.resolve(here, "../../../mini/index.ts");
|
|
12
|
-
const CLASSIC = path.resolve(here, "../../../index.ts");
|
|
13
|
-
|
|
14
|
-
async function bundle(entrypoint: string, source: string): Promise<string> {
|
|
15
|
-
const result = await build({
|
|
16
|
-
stdin: {
|
|
17
|
-
contents: source.replace("%ENTRY%", entrypoint),
|
|
18
|
-
loader: "ts",
|
|
19
|
-
resolveDir: here,
|
|
20
|
-
},
|
|
21
|
-
bundle: true,
|
|
22
|
-
minify: true,
|
|
23
|
-
format: "esm",
|
|
24
|
-
target: "es2020",
|
|
25
|
-
treeShaking: true,
|
|
26
|
-
write: false,
|
|
27
|
-
logLevel: "silent",
|
|
28
|
-
});
|
|
29
|
-
return result.outputFiles[0]!.text;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
test("a minimal zod/mini schema drops the declarations it cannot reach", async () => {
|
|
33
|
-
const out = await bundle(MINI, `import * as z from "%ENTRY%";\nconsole.log(z.boolean().parse(true));`);
|
|
34
|
-
|
|
35
|
-
// Sanity check: the schema itself is present, so an empty bundle cannot pass this test.
|
|
36
|
-
expect(out).toContain("boolean");
|
|
37
|
-
|
|
38
|
-
expect(out, "core.ts `$brand` lost its @__PURE__ annotation").not.toContain("zod_brand");
|
|
39
|
-
expect(out, "util.ts `NUMBER_FORMAT_RANGES` escaped its @__PURE__ IIFE").not.toContain("MAX_SAFE_INTEGER");
|
|
40
|
-
expect(out, "regexes.ts `date` is pinned again — was `anchor()` inlined?").not.toContain("02-29");
|
|
41
|
-
}, 30000);
|
|
42
|
-
|
|
43
|
-
// `registries.ts` is dropped from the mini module graph entirely, so its two symbols are absent there before and after. Classic is the entrypoint that exercises them.
|
|
44
|
-
test("a minimal classic schema drops the registry symbols", async () => {
|
|
45
|
-
const out = await bundle(CLASSIC, `import * as z from "%ENTRY%";\nconsole.log(z.boolean().parse(true));`);
|
|
46
|
-
|
|
47
|
-
expect(out).toContain("boolean");
|
|
48
|
-
|
|
49
|
-
expect(out, "registries.ts `$output` lost its @__PURE__ annotation").not.toContain("ZodOutput");
|
|
50
|
-
expect(out, "registries.ts `$input` lost its @__PURE__ annotation").not.toContain("ZodInput");
|
|
51
|
-
}, 30000);
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { afterEach, beforeEach, describe, expect, test, vi } from "vitest";
|
|
2
|
-
|
|
3
|
-
const URLDescriptor = Object.getOwnPropertyDescriptor(globalThis, "URL")!;
|
|
4
|
-
const NativeURL = globalThis.URL;
|
|
5
|
-
const canParseDescriptor = Object.getOwnPropertyDescriptor(NativeURL, "canParse")!;
|
|
6
|
-
const parseDescriptor = Object.getOwnPropertyDescriptor(NativeURL, "parse")!;
|
|
7
|
-
|
|
8
|
-
function restoreURL() {
|
|
9
|
-
Object.defineProperty(globalThis, "URL", URLDescriptor);
|
|
10
|
-
Object.defineProperty(NativeURL, "canParse", canParseDescriptor);
|
|
11
|
-
Object.defineProperty(NativeURL, "parse", parseDescriptor);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
describe("URL parser fallbacks", () => {
|
|
15
|
-
beforeEach(() => {
|
|
16
|
-
restoreURL();
|
|
17
|
-
vi.resetModules();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
afterEach(restoreURL);
|
|
21
|
-
|
|
22
|
-
test("uses the boolean and object APIs on modern runtimes", async () => {
|
|
23
|
-
const canParse = vi.spyOn(NativeURL, "canParse");
|
|
24
|
-
const URLStatic = NativeURL as typeof URL & { parse: (input: string) => URL | null };
|
|
25
|
-
const parse = vi.spyOn(URLStatic, "parse");
|
|
26
|
-
const z = await import("../../index.js");
|
|
27
|
-
|
|
28
|
-
expect(z.validate(z.url(), "https://example.com")).toBe(true);
|
|
29
|
-
expect(canParse).toHaveBeenCalledOnce();
|
|
30
|
-
expect(parse).not.toHaveBeenCalled();
|
|
31
|
-
|
|
32
|
-
canParse.mockClear();
|
|
33
|
-
expect(z.validate(z.url({ normalize: true }), "https://example.com")).toBe(true);
|
|
34
|
-
expect(parse).toHaveBeenCalledOnce();
|
|
35
|
-
expect(canParse).not.toHaveBeenCalled();
|
|
36
|
-
|
|
37
|
-
parse.mockClear();
|
|
38
|
-
expect(z.validate(z.ipv6(), "2001:db8::1")).toBe(true);
|
|
39
|
-
expect(canParse).toHaveBeenCalledOnce();
|
|
40
|
-
expect(parse).not.toHaveBeenCalled();
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
test("URL fast-path selection preserves live option getter reads", async () => {
|
|
44
|
-
const z = await import("../../index.js");
|
|
45
|
-
const postProcessor = z.core.globalConfig.postProcessor;
|
|
46
|
-
z.core.globalConfig.postProcessor = undefined;
|
|
47
|
-
try {
|
|
48
|
-
for (const inherited of [false, true]) {
|
|
49
|
-
const schema = z.url();
|
|
50
|
-
const target = inherited ? Object.create(Object.getPrototypeOf(schema.def)) : schema.def;
|
|
51
|
-
let reads = 0;
|
|
52
|
-
Object.defineProperty(target, "hostname", {
|
|
53
|
-
get: () => (++reads === 1 ? /^example\.com$/ : undefined),
|
|
54
|
-
});
|
|
55
|
-
if (inherited) Object.setPrototypeOf(schema.def, target);
|
|
56
|
-
expect(z.validate(schema, "https://example.com")).toBe(false);
|
|
57
|
-
expect(reads).toBe(2);
|
|
58
|
-
reads = 0;
|
|
59
|
-
expect(schema.safeParse("https://example.com").success).toBe(false);
|
|
60
|
-
expect(reads).toBe(2);
|
|
61
|
-
}
|
|
62
|
-
} finally {
|
|
63
|
-
z.core.globalConfig.postProcessor = postProcessor;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
test("the exported object parser still returns a URL", async () => {
|
|
68
|
-
const { parseURLObject } = await import("../schemas.js");
|
|
69
|
-
const result = parseURLObject("https://example.com", {});
|
|
70
|
-
expect(result).toBeInstanceOf(NativeURL);
|
|
71
|
-
if (typeof result === "number") expect.unreachable();
|
|
72
|
-
expect(result.hostname).toBe("example.com");
|
|
73
|
-
expect(parseURLObject("invalid", {})).toBe(2);
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
test("falls back when URL.canParse is absent", async () => {
|
|
77
|
-
Reflect.deleteProperty(NativeURL, "canParse");
|
|
78
|
-
const z = await import("../../index.js");
|
|
79
|
-
const cases = [
|
|
80
|
-
[z.url(), "https://example.com", "not a url"],
|
|
81
|
-
[z.ipv6(), "2001:db8::1", "not-an-ip"],
|
|
82
|
-
[z.cidrv6(), "2001:db8::/32", "not-an-ip/32"],
|
|
83
|
-
] as const;
|
|
84
|
-
|
|
85
|
-
for (const [schema, valid, invalid] of cases) {
|
|
86
|
-
for (const subject of [schema, z.compile(schema)]) {
|
|
87
|
-
expect(z.validate(subject, valid)).toBe(true);
|
|
88
|
-
expect(z.validate(subject, invalid)).toBe(false);
|
|
89
|
-
expect(subject.safeParse(valid).success).toBe(true);
|
|
90
|
-
expect(subject.safeParse(invalid).success).toBe(false);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
test("falls back when URL.parse is absent", async () => {
|
|
96
|
-
Reflect.deleteProperty(NativeURL, "parse");
|
|
97
|
-
const z = await import("../../index.js");
|
|
98
|
-
const cases = [
|
|
99
|
-
[z.url({ normalize: true }), "https://example.com", "not a url"],
|
|
100
|
-
[z.url({ hostname: /^example\.com$/ }), "https://example.com", "https://other.com"],
|
|
101
|
-
[z.httpUrl(), "https://example.com", "mailto:a@example.com"],
|
|
102
|
-
] as const;
|
|
103
|
-
|
|
104
|
-
for (const [schema, valid, invalid] of cases) {
|
|
105
|
-
for (const subject of [schema, z.compile(schema)]) {
|
|
106
|
-
expect(z.validate(subject, valid)).toBe(true);
|
|
107
|
-
expect(z.validate(subject, invalid)).toBe(false);
|
|
108
|
-
expect(subject.safeParse(valid).success).toBe(true);
|
|
109
|
-
expect(subject.safeParse(invalid).success).toBe(false);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
test("rejects without a global URL constructor", async () => {
|
|
115
|
-
const z = await import("../../index.js");
|
|
116
|
-
const cases = [
|
|
117
|
-
[z.url(), "https://example.com"],
|
|
118
|
-
[z.url({ normalize: true }), "https://example.com"],
|
|
119
|
-
[z.ipv6(), "2001:db8::1"],
|
|
120
|
-
[z.cidrv6(), "2001:db8::/32"],
|
|
121
|
-
] as const;
|
|
122
|
-
const subjects = cases.flatMap(([schema, input]) => [
|
|
123
|
-
[schema, input] as const,
|
|
124
|
-
[z.compile(schema), input] as const,
|
|
125
|
-
]);
|
|
126
|
-
Object.defineProperty(globalThis, "URL", { configurable: true, value: undefined });
|
|
127
|
-
|
|
128
|
-
for (const [schema, input] of subjects) {
|
|
129
|
-
expect(z.validate(schema, input)).toBe(false);
|
|
130
|
-
expect(schema.safeParse(input).success).toBe(false);
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
});
|