Files
zod/package.json
T
Colin McDonnellandGitHub 4fda7a42c9 v4.0.6 (#4941)
* Fix File reference issues. Fixes #4880. Fixes #4933.

* Relax metadata constraint to object. Fixes #4929

* Clean up partialRecord implementation. Closes #4882.

* Fixes catch handling in object schemas. Fixes #4883.

* Add treeshake case

* Document optionality changes

* Fix docs build

* Do not return empty metadata objects. Fixed #4885

* Escape non-string literal patterns. Closes #4894

* Surface continuable errors preferentially in unions. Fixes #4896

* Drop private modifier. Fixes #4903

* Simplify object parsing. Closes #4900

* Clean up .caught

* Make message a non-getter. Closes #4901.

* Standardize behavior of transform and preprocess. Closes #4910

* Clean up docs

* Fix extend for recursive objects. Fixes #4931

* Make object methods work with recursive types. Closes #4931 again

* Improve laziness of object methods

* Make standardschema FailureResult work with prettifyError. Closes #4914.

* Do not use normalized URLs by default. Add normalize flag to ZodURL. Closes #4906

* Tweak URL docs. Closes #4959

* 4.0.6
2025-07-23 15:31:04 -07:00

89 lines
2.5 KiB
JSON

{
"private": true,
"type": "module",
"packageManager": "[email protected]",
"repository": {
"type": "git",
"url": "git+https://github.com/colinhacks/zod.git"
},
"bugs": {
"url": "https://github.com/colinhacks/zod/issues"
},
"support": {
"backing": {
"npm-funding": true
}
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.4",
"@biomejs/biome": "^1.9.4",
"@types/benchmark": "^2.1.5",
"@types/semver": "^7.7.0",
"arktype": "^2.1.19",
"benchmark": "^2.1.4",
"chalk": "^5.4.1",
"console-table-printer": "^2.12.1",
"esbuild": "^0.25.5",
"execa": "^9.5.2",
"globby": "^14.1.0",
"husky": "^9.1.7",
"jsr": "^0.12.4",
"lint-staged": "^16.1.0",
"mitata": "^0.1.14",
"prettier": "^3.5.3",
"recheck": "^4.5.0",
"@web-std/file": "^3.0.3",
"rolldown": "1.0.0-beta.18",
"rollup": "^4.39.0",
"semver": "^7.7.2",
"supershy": "^1.0.0",
"tinybench": "^2.9.0",
"ts-morph": "^14.0.0",
"tsdown": "^0.12.8",
"tslib": "^2.8.1",
"tsx": "^4.19.3",
"typescript": "^5.5.4",
"vitest": "^2.1.9",
"zod": "workspace:*",
"zod3": "npm:zod@~3.24.0",
"zshy": "^0.0.14"
},
"lint-staged": {
"packages/*/src/**/*.ts": [
"biome format --no-errors-on-unmatched --write",
"biome lint --no-errors-on-unmatched --write"
],
"packages/*/**/*.json": [
"biome format --no-errors-on-unmatched --write",
"biome lint --no-errors-on-unmatched --write"
],
"packages/*/**/*.md": [
"prettier --ignore-unknown --write"
]
},
"scripts": {
"fix": "pnpm run format && pnpm run lint",
"format": "biome check --write .",
"format:check": "biome check .",
"lint": "biome lint --write .",
"lint:check": "biome lint .",
"clean": "pnpm run -r clean",
"build": "pnpm run -r --filter '!@zod/docs' build",
"test:watch": "vitest",
"test": "vitest run",
"prepublishOnly": "pnpm run test && pnpm run build",
"dev": "tsx --conditions @zod/source",
"dev:watch": "tsx --conditions @zod/source --watch",
"dev:play": "pnpm dev play.ts",
"bench": "tsx --conditions @zod/source packages/bench/index.ts",
"moltar": "pnpm bench object-moltar",
"prepare": "husky",
"postbuild": "biome format --write .",
"publish:jsr": "jsr publish --dry-run",
"bundle:rollup": "rollup -c",
"bundle:esbuild": "esbuild --bundle ./scratch/input.ts --outfile=./scratch/out_esbuild.js --bundle --format=esm",
"check:semver": "tsx scripts/check-semver.ts"
}
}