diff --git a/.changeset/drop-deno-docs.md b/.changeset/drop-deno-docs.md deleted file mode 100644 index 2d4db29..0000000 --- a/.changeset/drop-deno-docs.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"enumwaii": patch ---- - -Drop Deno from the documented runtime support. The ESM entry is no longer tested under Deno, so the README lists only Node.js, Bun, and Cloudflare Workers. diff --git a/.changeset/native-zod-enum.md b/.changeset/native-zod-enum.md deleted file mode 100644 index 6940375..0000000 --- a/.changeset/native-zod-enum.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"enumwaii": major -"eslint-plugin-enumwaii": patch ---- - -`emToZodSchema` now returns a native Zod `z.enum` built from the declaration's member object instead of a `z.custom` schema. Its output is still the branded member union, and it now converts with `z.toJSONSchema`, so it works in MCP and model tool definitions without casting a rebuilt `z.enum`. - -Breaking changes for consumers: - -- The `zod` peer range is now `^4.0.0`. Zod 3 is no longer supported by `enumwaii/zod`. -- The return type is `z.ZodEnum<...>` instead of `z.ZodType<...>`. It is still assignable to `z.ZodType` of the branded union, and it adds `.enum`, `.options`, `.extract()` and `.exclude()`. -- An invalid value now fails with an `invalid_value` issue (with `values`) instead of a `custom` issue. The message stays `Expected one of: ...`. - -`prefer-native-schema-adapters` now says in its report that the adapter keeps the branded output type. diff --git a/.changeset/quiet-pumas-refresh.md b/.changeset/quiet-pumas-refresh.md deleted file mode 100644 index 18ff808..0000000 --- a/.changeset/quiet-pumas-refresh.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"eslint-plugin-enumwaii": patch ---- - -Require `@typescript-eslint/utils` 8.71.2 or newer within the 8.x line, matching the version the rules are now built and tested against. diff --git a/packages/enumwaii/CHANGELOG.md b/packages/enumwaii/CHANGELOG.md index 448b6fa..ef7b12f 100644 --- a/packages/enumwaii/CHANGELOG.md +++ b/packages/enumwaii/CHANGELOG.md @@ -1,5 +1,23 @@ # enumwaii +## 2.0.0 + +### Major Changes + +- [#39](https://github.com/CatOfJupit3r/enumwaii/pull/39) [`40a2adc`](https://github.com/CatOfJupit3r/enumwaii/commit/40a2adc46cb251b0bdaf3c1f089500148f0fbab0) - `emToZodSchema` now returns a native Zod `z.enum` built from the declaration's member object instead of a `z.custom` schema. Its output is still the branded member union, and it now converts with `z.toJSONSchema`, so it works in MCP and model tool definitions without casting a rebuilt `z.enum`. + + Breaking changes for consumers: + + - The `zod` peer range is now `^4.0.0`. Zod 3 is no longer supported by `enumwaii/zod`. + - The return type is `z.ZodEnum<...>` instead of `z.ZodType<...>`. It is still assignable to `z.ZodType` of the branded union, and it adds `.enum`, `.options`, `.extract()` and `.exclude()`. + - An invalid value now fails with an `invalid_value` issue (with `values`) instead of a `custom` issue. The message stays `Expected one of: ...`. + + `prefer-native-schema-adapters` now says in its report that the adapter keeps the branded output type. + +### Patch Changes + +- [#45](https://github.com/CatOfJupit3r/enumwaii/pull/45) [`047f8a7`](https://github.com/CatOfJupit3r/enumwaii/commit/047f8a71ccfa33362f7b535e68fcaab6b123e344) - Drop Deno from the documented runtime support. The ESM entry is no longer tested under Deno, so the README lists only Node.js, Bun, and Cloudflare Workers. + ## 1.2.0 ### Minor Changes diff --git a/packages/enumwaii/package.json b/packages/enumwaii/package.json index 9e9003e..4c447a4 100644 --- a/packages/enumwaii/package.json +++ b/packages/enumwaii/package.json @@ -1,6 +1,6 @@ { "name": "enumwaii", - "version": "1.2.0", + "version": "2.0.0", "description": "String enums that know where they belong", "keywords": [ "enum", diff --git a/packages/eslint-plugin-enumwaii/CHANGELOG.md b/packages/eslint-plugin-enumwaii/CHANGELOG.md index d115949..0ad22a7 100644 --- a/packages/eslint-plugin-enumwaii/CHANGELOG.md +++ b/packages/eslint-plugin-enumwaii/CHANGELOG.md @@ -1,5 +1,21 @@ # eslint-plugin-enumwaii +## 1.2.1 + +### Patch Changes + +- [#39](https://github.com/CatOfJupit3r/enumwaii/pull/39) [`40a2adc`](https://github.com/CatOfJupit3r/enumwaii/commit/40a2adc46cb251b0bdaf3c1f089500148f0fbab0) - `emToZodSchema` now returns a native Zod `z.enum` built from the declaration's member object instead of a `z.custom` schema. Its output is still the branded member union, and it now converts with `z.toJSONSchema`, so it works in MCP and model tool definitions without casting a rebuilt `z.enum`. + + Breaking changes for consumers: + + - The `zod` peer range is now `^4.0.0`. Zod 3 is no longer supported by `enumwaii/zod`. + - The return type is `z.ZodEnum<...>` instead of `z.ZodType<...>`. It is still assignable to `z.ZodType` of the branded union, and it adds `.enum`, `.options`, `.extract()` and `.exclude()`. + - An invalid value now fails with an `invalid_value` issue (with `values`) instead of a `custom` issue. The message stays `Expected one of: ...`. + + `prefer-native-schema-adapters` now says in its report that the adapter keeps the branded output type. + +- [#34](https://github.com/CatOfJupit3r/enumwaii/pull/34) [`9e29667`](https://github.com/CatOfJupit3r/enumwaii/commit/9e296673c3de9cc4036c87b95aed45b37ea5e30c) - Require `@typescript-eslint/utils` 8.71.2 or newer within the 8.x line, matching the version the rules are now built and tested against. + ## 1.2.0 ### Minor Changes diff --git a/packages/eslint-plugin-enumwaii/package.json b/packages/eslint-plugin-enumwaii/package.json index 5806ee3..c42ec49 100644 --- a/packages/eslint-plugin-enumwaii/package.json +++ b/packages/eslint-plugin-enumwaii/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-enumwaii", - "version": "1.2.0", + "version": "1.2.1", "description": "ESLint and Oxlint-compatible rules for enumwaii", "keywords": [ "eslint",