@procedures/mark 0.46.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 +47 -0
- package/README.md +7 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/bin.d.ts +3 -0
- package/dist/bin.d.ts.map +1 -1
- package/dist/bin.js +6 -1
- package/dist/bin.js.map +1 -1
- package/dist/cli.d.ts +8 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +44 -4
- package/dist/cli.js.map +1 -1
- package/dist/compile-cache.d.ts +31 -0
- package/dist/compile-cache.d.ts.map +1 -0
- package/dist/compile-cache.js +45 -0
- package/dist/compile-cache.js.map +1 -0
- package/dist/ecosystem.d.ts +26 -2
- package/dist/ecosystem.d.ts.map +1 -1
- package/dist/ecosystem.js +106 -8
- package/dist/ecosystem.js.map +1 -1
- package/dist/manifest-build.js +3 -2
- package/dist/manifest-build.js.map +1 -1
- package/dist/manifest.d.ts +17 -6
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +15 -8
- package/dist/manifest.js.map +1 -1
- package/dist/manifest.json +1054 -120
- package/dist/print.d.ts.map +1 -1
- package/dist/print.js +9 -1
- package/dist/print.js.map +1 -1
- package/package.json +52 -52
- package/src/bin.ts +7 -1
- package/src/cli.ts +44 -4
- package/src/compile-cache.ts +51 -0
- package/src/ecosystem.ts +115 -8
- package/src/manifest-build.ts +3 -2
- package/src/manifest.ts +27 -8
- package/src/print.ts +11 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,52 @@
|
|
|
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
|
+
|
|
3
50
|
## 0.46.0
|
|
4
51
|
|
|
5
52
|
### 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
|
|
501
|
+
import * as z from "zod";
|
|
496
502
|
|
|
497
503
|
const libNew = defineProcedure({
|
|
498
504
|
path: ["lib", "new"],
|