@ingcreators/annot-core 0.3.0 → 0.3.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,44 @@
1
1
  # @ingcreators/annot-core
2
2
 
3
+ ## 0.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - b47d896: **Publish the `./element-tree` subpath** — the published tarball now
8
+ serves `@ingcreators/annot-core/element-tree` (Tier A screen-capture
9
+ model + YAML / JSON serializers + walk/find utilities).
10
+
11
+ ### Root cause
12
+
13
+ `@ingcreators/annot-playwright`'s built `dist/index.js` externalises
14
+ its `@ingcreators/annot-core/element-tree` import, but core's
15
+ `publishConfig.exports` only mapped `.`, `./xmp-bytes`, and
16
+ `./styles/*` — the subpath resolved in the workspace (dev `exports`
17
+ map to `src/`) and failed for every registry consumer:
18
+
19
+ ```
20
+ Error: Package subpath './element-tree' is not defined by "exports"
21
+ in .../node_modules/@ingcreators/annot-core/package.json imported
22
+ from .../@ingcreators/annot-playwright/dist/index.js
23
+ ```
24
+
25
+ First observed in the workflow-app docs tour after the 0.4.1
26
+ publish repaired the `writeFile` dist crash — `playwright test`
27
+ now dies at config load before any test runs.
28
+
29
+ ### Fix
30
+ - `vite.config.ts` gains an `element-tree` library entry
31
+ (`src/element-tree/index.ts` → `dist/element-tree.js`).
32
+ - `publishConfig.exports` maps `./element-tree` to the built JS +
33
+ the emitted `dist/element-tree/index.d.ts`.
34
+
35
+ ### Verification
36
+ - `pnpm --filter @ingcreators/annot-core build` emits
37
+ `dist/element-tree.js` + `dist/element-tree/index.d.ts`.
38
+ - Packed tarball installed into a scratch project resolves
39
+ `import("@ingcreators/annot-core/element-tree")` and exposes the
40
+ full serializer / walk surface.
41
+
3
42
  ## 0.3.0
4
43
 
5
44
  ### Minor Changes