@dudousxd/nestjs-codegen 0.2.1 → 0.3.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @dudousxd/nestjs-codegen
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b0fcd58: BREAKING (0.x minor bump): `validation` is now a required config field, and the zod
8
+ adapter is no longer bundled in core.
9
+
10
+ - `zodAdapter` is no longer exported from `@dudousxd/nestjs-codegen`. Import it from
11
+ `@dudousxd/nestjs-codegen-zod` instead.
12
+ - The `validation: 'zod'` string shortcut no longer resolves — like `'valibot'` and
13
+ `'arktype'`, the string forms now throw, directing you to install the adapter
14
+ package and pass the instance.
15
+ - `validation` must be provided. Both `loadConfig` (config file) and `resolveConfig`
16
+ (`NestjsCodegenModule.forRoot`) throw a clear `ConfigError` when it is missing.
17
+
18
+ Migration:
19
+
20
+ ```ts
21
+ import { zodAdapter } from "@dudousxd/nestjs-codegen-zod";
22
+
23
+ export default defineConfig({
24
+ validation: zodAdapter,
25
+ // ...
26
+ });
27
+ ```
28
+
29
+ Adapters now advertise raw-zod passthrough via the new optional
30
+ `ValidationAdapter.acceptsRawZodSource` capability (set only by `zodAdapter`),
31
+ decoupling `emit-forms` from a hardcoded `'zod'` name check.
32
+
3
33
  ## 0.2.1
4
34
 
5
35
  ### Patch Changes