@procedures/mark 0.45.0 → 0.47.1

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,70 @@
1
1
  # @procedures/mark
2
2
 
3
+ ## 0.47.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [f845c6d]
8
+ - @procedures/client@0.47.1
9
+ - @procedures/lib@0.47.1
10
+ - @procedures/cli-kit@0.47.1
11
+ - @procedures/cli-run@0.47.1
12
+ - @procedures/fs@0.47.1
13
+ - @procedures/pnpm@0.47.1
14
+ - @procedures/procedure@0.47.1
15
+ - @procedures/peer@0.47.1
16
+ - @procedures/shell@0.47.1
17
+ - @procedures/vitest@0.47.1
18
+ - @procedures/mcp-dev-tools@0.47.1
19
+ - @procedures/server@0.47.1
20
+
21
+ ## 0.47.0
22
+
23
+ ### Patch Changes
24
+
25
+ - ff06c60: O90: the `mark` executable enables the compile cache of Node.js before it loads the CLI. The cache folder is `mark/compile-cache` in the cache folder of the user. In CI, one call took 1019 ms with no cache and 754 ms with a warm cache. `NODE_COMPILE_CACHE` and `NODE_DISABLE_COMPILE_CACHE` still control the cache.
26
+ - d987202: A call of `mark` loads only the packages of its path (roadmap O93). `ProcedureRegistry` gets an optional resolver, `resolve(path)` and `loadAll()`. `createLazyRegistry()` makes a registry that loads a package at the first lookup of one of its paths. A procedure that reads or writes the registry gets each package first. The manifest of `mark` (version 3) has the packages of each command. The packages `ws` and `cli-table3` load at their first use. The sync methods of the registry and the eager registries do not change.
27
+ - e913014: Each module imports zod with `import * as z from "zod"`, not `import { z } from "zod"`. With the old form, an esbuild bundle got each locale of zod: 264 kB of minified code (esbuild metafile of the journey worker of the site). The Vite build of the site gives the same worker files with both forms. The procedure scaffolder writes the new form in `types.ts`. The API and the behavior stay the same.
28
+ - Updated dependencies [c9125a8]
29
+ - Updated dependencies [335728b]
30
+ - Updated dependencies [d987202]
31
+ - Updated dependencies [45a737f]
32
+ - Updated dependencies [d77e9e8]
33
+ - Updated dependencies [e913014]
34
+ - Updated dependencies [2f0c7b0]
35
+ - Updated dependencies [ad70c38]
36
+ - Updated dependencies [47819c6]
37
+ - @procedures/client@0.47.0
38
+ - @procedures/cli-kit@0.47.0
39
+ - @procedures/cli-run@0.47.0
40
+ - @procedures/fs@0.47.0
41
+ - @procedures/lib@0.47.0
42
+ - @procedures/peer@0.47.0
43
+ - @procedures/pnpm@0.47.0
44
+ - @procedures/procedure@0.47.0
45
+ - @procedures/server@0.47.0
46
+ - @procedures/shell@0.47.0
47
+ - @procedures/vitest@0.47.0
48
+ - @procedures/mcp-dev-tools@0.47.0
49
+
50
+ ## 0.46.0
51
+
52
+ ### Patch Changes
53
+
54
+ - Updated dependencies [10dcc3c]
55
+ - @procedures/client@0.46.0
56
+ - @procedures/cli-kit@0.46.0
57
+ - @procedures/cli-run@0.46.0
58
+ - @procedures/fs@0.46.0
59
+ - @procedures/lib@0.46.0
60
+ - @procedures/pnpm@0.46.0
61
+ - @procedures/procedure@0.46.0
62
+ - @procedures/peer@0.46.0
63
+ - @procedures/shell@0.46.0
64
+ - @procedures/vitest@0.46.0
65
+ - @procedures/mcp-dev-tools@0.46.0
66
+ - @procedures/server@0.46.0
67
+
3
68
  ## 0.45.0
4
69
 
5
70
  ### Patch Changes
package/README.md CHANGED
@@ -95,6 +95,12 @@ node packages/mark/dist/cli.js --help
95
95
  - Node.js >= 22.0.0
96
96
  - pnpm (the version of the workspace `packageManager` field)
97
97
 
98
+ ### The compile cache
99
+
100
+ The `mark` executable enables the compile cache of Node.js (22.1 and later) before it loads the CLI. The second and later runs read the compiled code from the cache. In CI, one `mark` call took 1019 ms with no cache and 754 ms with a warm cache. The first run after an install, or after a change of a file, writes the cache and takes approximately 170 ms more.
101
+
102
+ The cache folder is `mark/compile-cache` in the cache folder of the user: `$XDG_CACHE_HOME` or `~/.cache` on Linux, `~/Library/Caches` on macOS and `%LOCALAPPDATA%` on Windows. Set `NODE_COMPILE_CACHE=<folder>` to use a different folder, or `NODE_DISABLE_COMPILE_CACHE=1` to turn the cache off. If the folder cannot be written, `mark` runs with no cache.
103
+
98
104
  ## Execution Flow
99
105
 
100
106
  ```mermaid
@@ -492,7 +498,7 @@ A package that does not load gives one warning line. A package that is not built
492
498
  **Example register.js:**
493
499
  ```typescript
494
500
  import { defineProcedure } from "@procedures/client";
495
- import { z } from "zod";
501
+ import * as z from "zod";
496
502
 
497
503
  const libNew = defineProcedure({
498
504
  path: ["lib", "new"],