@procedures/schedule 0.33.0 → 0.35.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,50 @@
1
1
  # @procedures/schedule
2
2
 
3
+ ## 0.35.0
4
+
5
+ ### Patch Changes
6
+
7
+ - @procedures/client@0.35.0
8
+ - @procedures/fs@0.35.0
9
+ - @procedures/store@0.35.0
10
+
11
+ ## 0.34.0
12
+
13
+ ### Patch Changes
14
+
15
+ - fa1a61a: Less boilerplate in each procedure definition (dedupe review F1, tracker item O58).
16
+
17
+ PATCH (pre-1.0): this change adds exports and deprecates names. It removes no export and changes no behavior.
18
+
19
+ - `@procedures/client` has the new export `typed<T>()`. It is the one pass-through schema that gives only the type `T`.
20
+ - `@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.
21
+ - `zodAdapter` is deprecated. `input()` and `output()` take each Standard Schema and infer its type, so a zod schema goes in directly.
22
+ - `typedAnySchema` and `outputSchema` are deprecated. Use `typed<T>()`. They give the same pass-through schema.
23
+ - 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.
24
+ - `mark procedure new` writes `.input(<Name>InputSchema)` and `.output(<Name>OutputSchema)`, without `zodAdapter`.
25
+
26
+ Migration:
27
+
28
+ - The site, MiniMongo, Graph and jarvis: no change at this time. The deprecated names work until the next MINOR.
29
+ - 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> = ...`.
30
+ - Before the next MINOR, replace `typedAnySchema<T>()` and `outputSchema<T>()` with `typed<T>()`.
31
+ - A parse-only object (`{ parse }`) in `zodAdapter` becomes a Standard Schema with a `~standard` property.
32
+ - 67a53ea: The atomic writes use `writeFileAtomic()` of `@procedures/fs/files` (dedupe review F3, tracker item O59).
33
+
34
+ PATCH (pre-1.0): this change is internal. It changes no export and no signature.
35
+
36
+ - `fs.write.json`, the file store of `@procedures/schedule`, the manifest of `mark` and the `current.json` record of `@procedures/node/fresh-bundle` replace their own temporary file and rename with `writeFileAtomic()` or `writeFileAtomicSync()`.
37
+ - Each write now flushes the file to the disk. On Windows, a locked target gets more tries of the rename, for 2 seconds.
38
+ - A replaced file keeps the permissions of the old file. A symlink target stays a symlink, and the write goes to the file of the link.
39
+ - The temporary file has the name `.<name>.<16 hex digits>.tmp` in the folder of the target.
40
+ - `@procedures/schedule`, `@procedures/mark` and `@procedures/node` declare `@procedures/fs` in `dependencies`.
41
+ - Updated dependencies [d4376c2]
42
+ - Updated dependencies [fa1a61a]
43
+ - Updated dependencies [67a53ea]
44
+ - @procedures/client@0.34.0
45
+ - @procedures/store@0.34.0
46
+ - @procedures/fs@0.34.0
47
+
3
48
  ## 0.33.0
4
49
 
5
50
  ### Patch Changes