@procedures/sqlite 0.32.0 → 0.34.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,36 @@
1
1
  # @procedures/sqlite
2
2
 
3
+ ## 0.34.0
4
+
5
+ ### Patch Changes
6
+
7
+ - fa1a61a: Less boilerplate in each procedure definition (dedupe review F1, tracker item O58).
8
+
9
+ PATCH (pre-1.0): this change adds exports and deprecates names. It removes no export and changes no behavior.
10
+
11
+ - `@procedures/client` has the new export `typed<T>()`. It is the one pass-through schema that gives only the type `T`.
12
+ - `@procedures/client` has the new export `definePackage(name, procedures, requires?)`. It gives `{ module, register }` and registers nothing at the call. The new type `PackageDefinition` is its result.
13
+ - `zodAdapter` is deprecated. `input()` and `output()` take each Standard Schema and infer its type, so a zod schema goes in directly.
14
+ - `typedAnySchema` and `outputSchema` are deprecated. Use `typed<T>()`. They give the same pass-through schema.
15
+ - The procedures of the packages give their zod schemas to `input()` and `output()` directly. The `.build() as AnyProcedure` casts are gone. The schemas, the types of the exports and the validation do not change.
16
+ - `mark procedure new` writes `.input(<Name>InputSchema)` and `.output(<Name>OutputSchema)`, without `zodAdapter`.
17
+
18
+ Migration:
19
+
20
+ - The site, MiniMongo, Graph and jarvis: no change at this time. The deprecated names work until the next MINOR.
21
+ - Before the next MINOR, replace `zodAdapter<T>(schema)` with `schema`. To keep the check of a schema against a type, write `const schema: z.ZodType<T> = ...`.
22
+ - Before the next MINOR, replace `typedAnySchema<T>()` and `outputSchema<T>()` with `typed<T>()`.
23
+ - A parse-only object (`{ parse }`) in `zodAdapter` becomes a Standard Schema with a `~standard` property.
24
+ - Updated dependencies [d4376c2]
25
+ - Updated dependencies [fa1a61a]
26
+ - @procedures/client@0.34.0
27
+
28
+ ## 0.33.0
29
+
30
+ ### Patch Changes
31
+
32
+ - @procedures/client@0.33.0
33
+
3
34
  ## 0.32.0
4
35
 
5
36
  ### Patch Changes