Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deps): update all non-major dependencies (#814)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@codemirror/language](https://togithub.com/codemirror/language) | [`6.8.0` -> `6.9.0`](https://renovatebot.com/diffs/npm/@codemirror%2flanguage/6.8.0/6.9.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@codemirror%2flanguage/6.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@codemirror%2flanguage/6.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@codemirror%2flanguage/6.8.0/6.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@codemirror%2flanguage/6.8.0/6.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) | [`18.17.5` -> `18.17.6`](https://renovatebot.com/diffs/npm/@types%2fnode/18.17.5/18.17.6) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/18.17.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/18.17.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/18.17.5/18.17.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/18.17.5/18.17.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/typescript-eslint) | [`6.3.0` -> `6.4.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2feslint-plugin/6.3.0/6.4.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@typescript-eslint%2feslint-plugin/6.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@typescript-eslint%2feslint-plugin/6.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@typescript-eslint%2feslint-plugin/6.3.0/6.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@typescript-eslint%2feslint-plugin/6.3.0/6.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@typescript-eslint/parser](https://togithub.com/typescript-eslint/typescript-eslint) | [`6.3.0` -> `6.4.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2fparser/6.3.0/6.4.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@typescript-eslint%2fparser/6.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@typescript-eslint%2fparser/6.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@typescript-eslint%2fparser/6.3.0/6.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@typescript-eslint%2fparser/6.3.0/6.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [antd](https://ant.design) ([source](https://togithub.com/ant-design/ant-design)) | [`5.8.3` -> `5.8.4`](https://renovatebot.com/diffs/npm/antd/5.8.3/5.8.4) | [![age](https://developer.mend.io/api/mc/badges/age/npm/antd/5.8.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/antd/5.8.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/antd/5.8.3/5.8.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/antd/5.8.3/5.8.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [dotenv-cli](https://togithub.com/entropitor/dotenv-cli) | [`7.2.1` -> `7.3.0`](https://renovatebot.com/diffs/npm/dotenv-cli/7.2.1/7.3.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/dotenv-cli/7.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/dotenv-cli/7.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/dotenv-cli/7.2.1/7.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/dotenv-cli/7.2.1/7.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [eslint-plugin-import](https://togithub.com/import-js/eslint-plugin-import) | [`2.28.0` -> `2.28.1`](https://renovatebot.com/diffs/npm/eslint-plugin-import/2.28.0/2.28.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/eslint-plugin-import/2.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/eslint-plugin-import/2.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/eslint-plugin-import/2.28.0/2.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/eslint-plugin-import/2.28.0/2.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [node-mocks-http](https://togithub.com/howardabrams/node-mocks-http) | [`1.12.2` -> `1.13.0`](https://renovatebot.com/diffs/npm/node-mocks-http/1.12.2/1.13.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/node-mocks-http/1.13.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/node-mocks-http/1.13.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/node-mocks-http/1.12.2/1.13.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/node-mocks-http/1.12.2/1.13.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [postcss](https://postcss.org/) ([source](https://togithub.com/postcss/postcss)) | [`8.4.27` -> `8.4.28`](https://renovatebot.com/diffs/npm/postcss/8.4.27/8.4.28) | [![age](https://developer.mend.io/api/mc/badges/age/npm/postcss/8.4.28?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/postcss/8.4.28?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/postcss/8.4.27/8.4.28?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/postcss/8.4.27/8.4.28?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [ts-proto](https://togithub.com/stephenh/ts-proto) | [`1.156.3` -> `1.156.7`](https://renovatebot.com/diffs/npm/ts-proto/1.156.3/1.156.7) | [![age](https://developer.mend.io/api/mc/badges/age/npm/ts-proto/1.156.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/ts-proto/1.156.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/ts-proto/1.156.3/1.156.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/ts-proto/1.156.3/1.156.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [tslib](https://www.typescriptlang.org/) ([source](https://togithub.com/Microsoft/tslib)) | [`2.6.1` -> `2.6.2`](https://renovatebot.com/diffs/npm/tslib/2.6.1/2.6.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/tslib/2.6.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/tslib/2.6.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/tslib/2.6.1/2.6.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/tslib/2.6.1/2.6.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [zod](https://zod.dev) ([source](https://togithub.com/colinhacks/zod)) | [`3.21.4` -> `3.22.2`](https://renovatebot.com/diffs/npm/zod/3.21.4/3.22.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.22.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.22.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.21.4/3.22.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.21.4/3.22.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>codemirror/language (@​codemirror/language)</summary> ### [`v6.9.0`](https://togithub.com/codemirror/language/blob/HEAD/CHANGELOG.md#690-2023-08-16) [Compare Source](https://togithub.com/codemirror/language/compare/6.8.0...6.9.0) ##### Bug fixes Make `getIndentation` return null, rather than 0, when there is no syntax tree available. ##### New features The new `preparePlaceholder` option to `codeFolding` makes it possible to display contextual information in a folded range placeholder widget. </details> <details> <summary>typescript-eslint/typescript-eslint (@​typescript-eslint/eslint-plugin)</summary> ### [`v6.4.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#640-2023-08-14) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.3.0...v6.4.0) ##### Bug Fixes - **eslint-plugin:** \[non-nullable-type-assertion-style] consider operator precedence when fixing ([#​7289](https://togithub.com/typescript-eslint/typescript-eslint/issues/7289)) ([bad37a2](https://togithub.com/typescript-eslint/typescript-eslint/commit/bad37a22025b718a10e70cc84b9847eb41f723d0)) - **eslint-plugin:** \[strict-boolean-expressions] replace dangerous fixer with suggestions ([#​7394](https://togithub.com/typescript-eslint/typescript-eslint/issues/7394)) ([ad8401a](https://togithub.com/typescript-eslint/typescript-eslint/commit/ad8401a5970441258cc4440a01a3acf35d861171)) You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website. </details> <details> <summary>typescript-eslint/typescript-eslint (@​typescript-eslint/parser)</summary> ### [`v6.4.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#640-2023-08-14) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.3.0...v6.4.0) **Note:** Version bump only for package [@​typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website. </details> <details> <summary>ant-design/ant-design (antd)</summary> ### [`v5.8.4`](https://togithub.com/ant-design/ant-design/releases/tag/5.8.4) [Compare Source](https://togithub.com/ant-design/ant-design/compare/5.8.3...5.8.4) - ColorPicker - 🐞 Fix the cursor jumps when entering lowercase English letters in the ColorPicker color value input box. [#​44137](https://togithub.com/ant-design/ant-design/pull/44137) [@​gouge666](https://togithub.com/gouge666) - 🐞 Fix the ColorPicker style is deformed under different sizes. [#​44273](https://togithub.com/ant-design/ant-design/pull/44273) [@​kouchao](https://togithub.com/kouchao) - 🐞 Fix Descriptions throwing `key is not a prop` error message. [#​44278](https://togithub.com/ant-design/ant-design/pull/44278) [@​RedJue](https://togithub.com/RedJue) - 🐞 Fix the node is still rendered when Pagination `itemRender` is customized to `null`. [#​44226](https://togithub.com/ant-design/ant-design/pull/44226) - 🐞 Fix Modal in Dropdown `menu.items`, rapid mouse movement when expanding Modal will make Dropdown reopen. [#​44204](https://togithub.com/ant-design/ant-design/pull/44204) - DatePicker - 💄 Fix DatePicker content is not centered. [#​44245](https://togithub.com/ant-design/ant-design/pull/44245) [@​Zian502](https://togithub.com/Zian502) - 💄 Optimize DatePicker selection range style. [#​44206](https://togithub.com/ant-design/ant-design/pull/44206) [@​kiner-tang](https://togithub.com/kiner-tang) - 💄 Fix clicking on the Tabs area on the mobile terminal triggers a color change. [#​44200](https://togithub.com/ant-design/ant-design/pull/44200) [@​yilaikesi](https://togithub.com/yilaikesi) - RTL - 💄 Fix the numbers in the Badge are also RTL when the text direction of the page is RTL. [#​43998](https://togithub.com/ant-design/ant-design/pull/43998) [@​NotEvenANeko](https://togithub.com/NotEvenANeko) *** - ColorPicker - 🐞 修复 ColorPicker 色值输入框输入小写英文字母时光标跳动的问题。[#​44137](https://togithub.com/ant-design/ant-design/pull/44137) [@​gouge666](https://togithub.com/gouge666) - 🐞 修复 ColorPicker 在不同尺寸下样式变形的问题。[#​44273](https://togithub.com/ant-design/ant-design/pull/44273) [@​kouchao](https://togithub.com/kouchao) - 🐞 修复 Descriptions 抛出 `key is not a prop` 的错误提示。[#​44278](https://togithub.com/ant-design/ant-design/pull/44278) [@​RedJue](https://togithub.com/RedJue) - 🐞 修复 Pagination `itemRender` 自定义为 `null` 时,仍然渲染节点的问题。[#​44226](https://togithub.com/ant-design/ant-design/pull/44226) - 🐞 修复 Modal 在 Dropdown `menu.items` 中,展开 Modal 时快速移动鼠标会使 Dropdown 重新打开的问题。[#​44204](https://togithub.com/ant-design/ant-design/pull/44204) - DatePicker - 💄 修复 DatePicker 内容不居中问题。[#​44245](https://togithub.com/ant-design/ant-design/pull/44245) [@​Zian502](https://togithub.com/Zian502) - 💄 优化 DatePicker 中范围选择区域样式。[#​44206](https://togithub.com/ant-design/ant-design/pull/44206) [@​kiner-tang](https://togithub.com/kiner-tang) - 💄 修复移动端点击 Tabs 区域触发颜色改变的问题。[#​44200](https://togithub.com/ant-design/ant-design/pull/44200) [@​yilaikesi](https://togithub.com/yilaikesi) - RTL - 💄 修复了当页面的文字方向为 RTL 时 Badge 里面的数字也是 RTL 的问题。[#​43998](https://togithub.com/ant-design/ant-design/pull/43998) [@​NotEvenANeko](https://togithub.com/NotEvenANeko) </details> <details> <summary>entropitor/dotenv-cli (dotenv-cli)</summary> ### [`v7.3.0`](https://togithub.com/entropitor/dotenv-cli/releases/tag/v7.3.0) [Compare Source](https://togithub.com/entropitor/dotenv-cli/compare/v7.2.1...v7.3.0) - [https://github.com/entropitor/dotenv-cli/pull/93](https://togithub.com/entropitor/dotenv-cli/pull/93): Don't allow cascade and override together as they are incompatible - [https://github.com/entropitor/dotenv-cli/pull/94](https://togithub.com/entropitor/dotenv-cli/pull/94): Bump dotenv so DOTENV_KEY feature is supported </details> <details> <summary>import-js/eslint-plugin-import (eslint-plugin-import)</summary> ### [`v2.28.1`](https://togithub.com/import-js/eslint-plugin-import/blob/HEAD/CHANGELOG.md#2281---2023-08-18) [Compare Source](https://togithub.com/import-js/eslint-plugin-import/compare/v2.28.0...v2.28.1) ##### Fixed - \[`order`]: revert breaking change to single nested group (\[[#​2854](https://togithub.com/import-js/eslint-plugin-import/issues/2854)], thanks \[[@​yndajas](https://togithub.com/yndajas)]) ##### Changed - \[Docs] remove duplicate fixable notices in docs (\[[#​2850](https://togithub.com/import-js/eslint-plugin-import/issues/2850)], thanks \[[@​bmish](https://togithub.com/bmish)]) </details> <details> <summary>howardabrams/node-mocks-http (node-mocks-http)</summary> ### [`v1.13.0`](https://togithub.com/howardabrams/node-mocks-http/blob/HEAD/HISTORY.md#v-1130) [Compare Source](https://togithub.com/howardabrams/node-mocks-http/compare/v1.12.2...v1.13.0) - Add Request async iterator [Issue #​278][278]. [278]: https://togithub.com/eugef/node-mocks-http/issues/278 </details> <details> <summary>postcss/postcss (postcss)</summary> ### [`v8.4.28`](https://togithub.com/postcss/postcss/blob/HEAD/CHANGELOG.md#8428) [Compare Source](https://togithub.com/postcss/postcss/compare/8.4.27...8.4.28) - Fixed `Root.source.end` for better source map (by Romain Menke). - Fixed `Result.root` types when `process()` has no parser. </details> <details> <summary>stephenh/ts-proto (ts-proto)</summary> ### [`v1.156.7`](https://togithub.com/stephenh/ts-proto/blob/HEAD/CHANGELOG.md#11567-2023-08-18) [Compare Source](https://togithub.com/stephenh/ts-proto/compare/v1.156.6...v1.156.7) ##### Bug Fixes - always use Map for int64 keys ([#​708](https://togithub.com/stephenh/ts-proto/issues/708)) ([#​905](https://togithub.com/stephenh/ts-proto/issues/905)) ([cf2fb59](https://togithub.com/stephenh/ts-proto/commit/cf2fb59de20f8a60ead23294439dacbdbe6dfc14)) ### [`v1.156.6`](https://togithub.com/stephenh/ts-proto/blob/HEAD/CHANGELOG.md#11566-2023-08-16) [Compare Source](https://togithub.com/stephenh/ts-proto/compare/v1.156.5...v1.156.6) ##### Bug Fixes - use correct imports for optional fields ([#​904](https://togithub.com/stephenh/ts-proto/issues/904)) ([fa13ec7](https://togithub.com/stephenh/ts-proto/commit/fa13ec752c6564af045081548f5fc5cabb687151)) ### [`v1.156.5`](https://togithub.com/stephenh/ts-proto/blob/HEAD/CHANGELOG.md#11565-2023-08-15) [Compare Source](https://togithub.com/stephenh/ts-proto/compare/v1.156.4...v1.156.5) ##### Bug Fixes - remove-enum-prefix for nested enums ([#​903](https://togithub.com/stephenh/ts-proto/issues/903)) ([efdbf47](https://togithub.com/stephenh/ts-proto/commit/efdbf476b26c49c1bc56f9404f49667f2acc1f8b)) ### [`v1.156.4`](https://togithub.com/stephenh/ts-proto/blob/HEAD/CHANGELOG.md#11564-2023-08-15) [Compare Source](https://togithub.com/stephenh/ts-proto/compare/v1.156.3...v1.156.4) ##### Bug Fixes - enum default value when remove-enum-prefix and string-enum both on ([#​902](https://togithub.com/stephenh/ts-proto/issues/902)) ([594b137](https://togithub.com/stephenh/ts-proto/commit/594b137cdffbf6256b9d0ee6bb82822ce22c7b94)) </details> <details> <summary>Microsoft/tslib (tslib)</summary> ### [`v2.6.2`](https://togithub.com/microsoft/tslib/releases/tag/v2.6.2): tslib 2.6.2 [Compare Source](https://togithub.com/Microsoft/tslib/compare/v2.6.1...v2.6.2) ##### What's Changed - Fix path to `exports["module"]["types"]` by [@​andrewbranch](https://togithub.com/andrewbranch) in [https://github.com/microsoft/tslib/pull/217](https://togithub.com/microsoft/tslib/pull/217) **Full Changelog**: microsoft/tslib@v2.6.1...v2.6.2 </details> <details> <summary>colinhacks/zod (zod)</summary> ### [`v3.22.2`](https://togithub.com/colinhacks/zod/releases/tag/v3.22.2) [Compare Source](https://togithub.com/colinhacks/zod/compare/v3.22.1...v3.22.2) ##### Commits: - [`13d9e6b`](https://togithub.com/colinhacks/zod/commit/13d9e6bda286cbd4c1b177171273695d8309e5de) Fix lint - [`0d49f10`](https://togithub.com/colinhacks/zod/commit/0d49f10b3c25a8e4cbb6534cc0773b195c56d06d) docs: add typeschema to ecosystem ([#​2626](https://togithub.com/colinhacks/zod/issues/2626)) - [`8e4af7b`](https://togithub.com/colinhacks/zod/commit/8e4af7b56df6f2e3daf0dd825b986f1d963025ce) X to Zod: add app.quicktype.io ([#​2668](https://togithub.com/colinhacks/zod/issues/2668)) - [`792b3ef`](https://togithub.com/colinhacks/zod/commit/792b3ef0d41c144cd10641c6966b98dae1222d82) Fix superrefine types ### [`v3.22.1`](https://togithub.com/colinhacks/zod/releases/tag/v3.22.1) [Compare Source](https://togithub.com/colinhacks/zod/compare/v3.22.0...v3.22.1) #### Commits: Fix handing of `this` in ZodFunction schemas. The parse logic for function schemas now requires the `Reflect` API. ```ts const methodObject = z.object({ property: z.number(), method: z.function().args(z.string()).returns(z.number()), }); const methodInstance = { property: 3, method: function (s: string) { return s.length + this.property; }, }; const parsed = methodObject.parse(methodInstance); parsed.method("length=8"); // => 11 (8 length + 3 property) ``` - [`932cc47`](https://togithub.com/colinhacks/zod/commit/932cc472d2e66430d368a409b8d251909d7d8d21) Initial prototype fix for issue [#​2651](https://togithub.com/colinhacks/zod/issues/2651) ([#​2652](https://togithub.com/colinhacks/zod/issues/2652)) - [`0a055e7`](https://togithub.com/colinhacks/zod/commit/0a055e726ac210ef6efc69aa70cd2491767f6060) 3.22.1 ### [`v3.22.0`](https://togithub.com/colinhacks/zod/releases/tag/v3.22.0) [Compare Source](https://togithub.com/colinhacks/zod/compare/v3.21.4...v3.22.0) #### `ZodReadonly` This release introduces `ZodReadonly` and the `.readonly()` method on `ZodType`. Calling `.readonly()` on any schema returns a `ZodReadonly` instance that wraps the original schema. The new schema parses all inputs using the original schema, then calls `Object.freeze()` on the result. The inferred type is also marked as `readonly`. ```ts const schema = z.object({ name: string }).readonly(); type schema = z.infer<typeof schema>; // Readonly<{name: string}> const result = schema.parse({ name: "fido" }); result.name = "simba"; // error ``` The inferred type uses TypeScript's built-in readonly types when relevant. ```ts z.array(z.string()).readonly(); // readonly string[] z.tuple([z.string(), z.number()]).readonly(); // readonly [string, number] z.map(z.string(), z.date()).readonly(); // ReadonlyMap<string, Date> z.set(z.string()).readonly(); // ReadonlySet<Promise<string>> ``` #### Commits: - [`6dad907`](https://togithub.com/colinhacks/zod/commit/6dad90785398885f7b058f5c0760d5ae5476b833) Comments - [`56ace68`](https://togithub.com/colinhacks/zod/commit/56ace682e4cc89132c034a3ae2c13b2d5b1a0115) Fix deno test - [`3809d54`](https://togithub.com/colinhacks/zod/commit/3809d54fc8c5dd0a0ce367bd2575fe3fdadf087d) Add superforms - [`d1ad522`](https://togithub.com/colinhacks/zod/commit/d1ad5221900af640bc3093a2fb0476ec0c94953e) Add transloadit - [`a3bb701`](https://togithub.com/colinhacks/zod/commit/a3bb701757127ffe05e773a2e449136b9b7efcb3) Testing on Typescript 5.0 ([#​2221](https://togithub.com/colinhacks/zod/issues/2221)) - [`51e14be`](https://togithub.com/colinhacks/zod/commit/51e14beeab2f469fcbf18e3df44653e1643f5487) docs: update deprecated link ([#​2219](https://togithub.com/colinhacks/zod/issues/2219)) - [`a263814`](https://togithub.com/colinhacks/zod/commit/a263814fc430db8d47430cd2884d2cea6b11c671) fixed Datetime & IP TOC links - [`502384e`](https://togithub.com/colinhacks/zod/commit/502384e56fe2b1f8173735df6c3b0d41bce04edc) docs: add mobx-zod-form to form integrations ([#​2299](https://togithub.com/colinhacks/zod/issues/2299)) - [`a8be450`](https://togithub.com/colinhacks/zod/commit/a8be4500851923aa865e009fe9c2855e80482047) docs: Add `zocker` to Ecosystem section ([#​2416](https://togithub.com/colinhacks/zod/issues/2416)) - [`15de22a`](https://togithub.com/colinhacks/zod/commit/15de22a3ba6144c7d8d2276e8e56174bcdfa7225) Allow subdomains and hyphens in `ZodString.email` ([#​2274](https://togithub.com/colinhacks/zod/issues/2274)) - [`00f5783`](https://togithub.com/colinhacks/zod/commit/00f5783602ccbe423deb0dbd76ecf13a276bc54d) Add `zod-openapi` to ecosystem ([#​2434](https://togithub.com/colinhacks/zod/issues/2434)) - [`0a17340`](https://togithub.com/colinhacks/zod/commit/0a17340e9fc4b909d10ca3687b6bc6454903ff21) docs: fix minor typo ([#​2439](https://togithub.com/colinhacks/zod/issues/2439)) - [`60a2134`](https://togithub.com/colinhacks/zod/commit/60a21346086d32ca9f39efc2771f5db37c835c03) Add masterborn - [`0a90ed1`](https://togithub.com/colinhacks/zod/commit/0a90ed1461dafa62ff50ce0d5d5434fd4a2a4a20) chore: move `exports.types` field to first spot @​ package.json. ([#​2443](https://togithub.com/colinhacks/zod/issues/2443)) - [`67f35b1`](https://togithub.com/colinhacks/zod/commit/67f35b16692ca33fd48adfec9ae83b9514f8a4b7) docs: allow Zod to be used in dev tools at site ([#​2432](https://togithub.com/colinhacks/zod/issues/2432)) - [`6795c57`](https://togithub.com/colinhacks/zod/commit/6795c574b1d34f6e95ae891f96d8b219b98ace92) Fix not working Deno doc link. ([#​2428](https://togithub.com/colinhacks/zod/issues/2428)) - [`37e9c55`](https://togithub.com/colinhacks/zod/commit/37e9c550460e4edd144da90d903e878c119c5cc1) Generalize uuidRegex - [`0969950`](https://togithub.com/colinhacks/zod/commit/09699501ff6218b3b0a7e382eca3c02a8226ce13) adds ctx to preprocess ([#​2426](https://togithub.com/colinhacks/zod/issues/2426)) - [`af08390`](https://togithub.com/colinhacks/zod/commit/af08390139cf9fd4fc9e398b60a39191bf224076) fix: super refinement function types ([#​2420](https://togithub.com/colinhacks/zod/issues/2420)) - [`36fef58`](https://togithub.com/colinhacks/zod/commit/36fef58410f4b2c9e79edabae2fc567a4aee13a7) Make email regex reasonable ([#​2157](https://togithub.com/colinhacks/zod/issues/2157)) - [`f627d14`](https://togithub.com/colinhacks/zod/commit/f627d14d3bfe3a680ac0d54705b2e63daa912aed) Document canary - [`e06321c`](https://togithub.com/colinhacks/zod/commit/e06321c15d22082e47c7c111a92ec7b3e104c644) docs: add tapiduck to API libraries ([#​2410](https://togithub.com/colinhacks/zod/issues/2410)) - [`11e507c`](https://togithub.com/colinhacks/zod/commit/11e507c4d3bf4ad3ab2057a0122168ed0048a2c4) docs: add ts as const example in zod enums ([#​2412](https://togithub.com/colinhacks/zod/issues/2412)) - [`5427565`](https://togithub.com/colinhacks/zod/commit/5427565c347a14056bc60e3ffd800b98753952bc) docs: add zod-fixture to mocking ecosystem ([#​2409](https://togithub.com/colinhacks/zod/issues/2409)) - [`d3bf7e6`](https://togithub.com/colinhacks/zod/commit/d3bf7e60a8eb706c4c63a9a91fd66565b82883cf) docs: add `zodock` to mocking ecosystem ([#​2394](https://togithub.com/colinhacks/zod/issues/2394)) - [`2270ae5`](https://togithub.com/colinhacks/zod/commit/2270ae563f7f14bed770f75d9c252880794fa71f) remove "as any" casts in createZodEnum ([#​2332](https://togithub.com/colinhacks/zod/issues/2332)) - [`00bdd0a`](https://togithub.com/colinhacks/zod/commit/00bdd0a7ffdf495af14e67ae1396c85a282c38dd) fix proto pollution vulnerability ([#​2239](https://togithub.com/colinhacks/zod/issues/2239)) - [`a3c5256`](https://togithub.com/colinhacks/zod/commit/a3c525658bc43edf40747a99b8f882d8d3d1e0c7) Fix error_handling unrecognized_keys example - [`4f75cbc`](https://togithub.com/colinhacks/zod/commit/4f75cbc682199a5411189f9cd9abba9af4924746) Adds getters to Map for key + value ([#​2356](https://togithub.com/colinhacks/zod/issues/2356)) - [`ca7b032`](https://togithub.com/colinhacks/zod/commit/ca7b03222764496d72085b1178fa22f4a57fe579) FMC ([#​2346](https://togithub.com/colinhacks/zod/issues/2346)) - [`6fec8bd`](https://togithub.com/colinhacks/zod/commit/6fec8bd3407f463f157522a3979b4d202870ba4c) docs: fix typo in link fragment ([#​2329](https://togithub.com/colinhacks/zod/issues/2329)) - [`16f90bd`](https://togithub.com/colinhacks/zod/commit/16f90bd22b465aca9a1fbad09248d80aa93fd824) Update README.md - [`2c80250`](https://togithub.com/colinhacks/zod/commit/2c802507d92d2d2e15be959695b1de78b896bfcb) Update readme - [`eaf64e0`](https://togithub.com/colinhacks/zod/commit/eaf64e09ba1a87dd6bf348fb97061894a01242d2) Update sponsors - [`c576311`](https://togithub.com/colinhacks/zod/commit/c5763112e2912390f3317d738e4261fa8747494e) Update readme - [`5e23b4f`](https://togithub.com/colinhacks/zod/commit/5e23b4fae4715c7391f9ceb4369421a034851b4c) Add `*.md` pattern to prettier ([#​2476](https://togithub.com/colinhacks/zod/issues/2476)) - [`898dced`](https://togithub.com/colinhacks/zod/commit/898dced470f1045b5469543abd2f427a713d93eb) Revamp tests - [`6309322`](https://togithub.com/colinhacks/zod/commit/6309322a28545e316299f8b9a36f43132d347300) Update test runners - [`c0aece1`](https://togithub.com/colinhacks/zod/commit/c0aece1672d1442d69ce1991142af8f16ed20ecb) Add vitest config - [`73a5610`](https://togithub.com/colinhacks/zod/commit/73a5610186c413872153e8dcac76c4c4f23dfe4e) Update script - [`8d8e1a2`](https://togithub.com/colinhacks/zod/commit/8d8e1a2d306cecaf3d8cb88f32fe3e130a834f9f) Fix deno test bug - [`9eb2508`](https://togithub.com/colinhacks/zod/commit/9eb2508fac78cc36faefd050e9616bb6d34814c1) Clean up configs - [`cfbc7b3`](https://togithub.com/colinhacks/zod/commit/cfbc7b3f6714ced250dd4053822faf472bf1828e) Fix root jest config - [`8677f68`](https://togithub.com/colinhacks/zod/commit/8677f688b0ab1bb5991e90744f46a15082772bd6) docs(comparison-yup): Yup added partial() and deepPartial() in v1 ([#​2603](https://togithub.com/colinhacks/zod/issues/2603)) - [`fb00edd`](https://togithub.com/colinhacks/zod/commit/fb00edd04ca338b8d791a96dead161076538c6c2) docs: add VeeValidate form library for Vue.js ([#​2578](https://togithub.com/colinhacks/zod/issues/2578)) - [`ab8e717`](https://togithub.com/colinhacks/zod/commit/ab8e71793431eeb163613007c134132e6c2ab078) docs: fix typo in z.object ([#​2570](https://togithub.com/colinhacks/zod/issues/2570)) - [`d870407`](https://togithub.com/colinhacks/zod/commit/d870407a020f9518fbae662f9f48a9aba005a3e2) docs: fix incomplete Records example ([#​2579](https://togithub.com/colinhacks/zod/issues/2579)) - [`5adae24`](https://togithub.com/colinhacks/zod/commit/5adae24e9b2fc98fc679defa8f78e4142d4c3451) docs: add conform form integration ([#​2577](https://togithub.com/colinhacks/zod/issues/2577)) - [`8b8ab3e`](https://togithub.com/colinhacks/zod/commit/8b8ab3e79691ebafbb9aac3ce089eaf0dcd6d8fe) Update README.md ([#​2562](https://togithub.com/colinhacks/zod/issues/2562)) - [`6aab901`](https://togithub.com/colinhacks/zod/commit/6aab9016873c12be08d19bcc097b3e5ba4c9d6fe) fix typo test name ([#​2542](https://togithub.com/colinhacks/zod/issues/2542)) - [`81a89f5`](https://togithub.com/colinhacks/zod/commit/81a89f593f4d6b05f770bbb3ad0fc98075f468dd) Update nullish documentation to correct chaining order ([#​2457](https://togithub.com/colinhacks/zod/issues/2457)) - [`78a4090`](https://togithub.com/colinhacks/zod/commit/78a409012a4dc34a455f5c4a7e028ca47c921e1b) docs: update comparison with `runtypes` ([#​2536](https://togithub.com/colinhacks/zod/issues/2536)) - [`1ecd624`](https://togithub.com/colinhacks/zod/commit/1ecd6241ef97b33ce229b49f1346ffeee5d0ba74) Fix prettier - [`981d4b5`](https://togithub.com/colinhacks/zod/commit/981d4b5e272e7e35ff44a31fbb5e8e90594b1933) Add ZodReadonly ([#​2634](https://togithub.com/colinhacks/zod/issues/2634)) - [`fba438c`](https://togithub.com/colinhacks/zod/commit/fba438cddea800b081a15aefc8b1efea2eccf7af) 3.22.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "on sunday" in timezone Asia/Shanghai, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/PKUHPC/SCOW). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi40My4yIiwidXBkYXRlZEluVmVyIjoiMzYuNDMuMiIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- Loading branch information