openpencil/packages
MrHard 02fd53a8e0
fix(core): load fontoxpath under Node's ESM loader (#824)
* fix(core): load fontoxpath under Node's ESM loader

fontoxpath is CommonJS, so Node exposes its exports only on default and openpencil query / MCP query_nodes failed with 'evaluateXPathToNodes is not a function'. Closes #787.

* test(tools): run an XPath query in the package runtime smoke check

The Bun-run unit tests take fontoxpath's named exports, so they never covered the Node fallback to default.

* test(tools): also run matchByXPath in the XPath smoke scenario

* refactor(core): import fontoxpath types through one namespace import

---------

Co-authored-by: mrhard9090 <moltrax88@gmail.com>
Co-authored-by: Danila Poyarkov <dev@dannote.net>
2026-10-06 11:44:16 +00:00
..
cli feat: write variables as a CSS token stylesheet (#856) 2026-10-04 18:15:52 +00:00
core fix(core): load fontoxpath under Node's ESM loader (#824) 2026-10-06 11:44:16 +00:00
demos
design-jsx fix: share CSS value parsing between dom-css and design JSX (#910) 2026-10-05 17:02:43 +00:00
docs feat(collab)!: sync layer trees as a CRDT and open each room in its own tab (#902) 2026-10-06 10:40:25 +00:00
dom-css fix: share CSS value parsing between dom-css and design JSX (#910) 2026-10-05 17:02:43 +00:00
emit refactor: rename @open-pencil/codegen to @open-pencil/emit (#822) 2026-10-04 11:22:20 +00:00
fig fix(fig): write text glyphs from the layout the renderer draws (#928) 2026-10-06 11:37:02 +00:00
harness fix(harness): start Pi sessions with MCP tools under Node (#897) 2026-10-05 17:21:50 +00:00
kiwi test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
mcp test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
pen feat(scene-graph)!: make a stroke a paint (#864) 2026-10-04 13:38:05 +04:00
scene-graph fix(fig): write text glyphs from the layout the renderer draws (#928) 2026-10-06 11:37:02 +00:00
vue fix(canvas): show every top-level frame's name and select frames by it (#930) 2026-10-06 11:37:46 +00:00