Repository navigation
npm-v0.5.1
·
245 commits
to main
since this release
Fixed
- Reading a
.deckor.figcould parse unrelated memory instead of the file.canvas.figwas handed to the parser asnew Uint8Array(buf.buffer), which discards a Buffer'sbyteOffsetandbyteLength.readFileSyncroutinely returns a Buffer that is a view into a shared pool — in one observed case a 26,643-byte file sat at offset 960 of a 65,536-byte backing buffer — so the parser received the whole pool from offset 0 and read whatever happened to be adjacent in memory. Symptoms varied with pool contents:Unknown prelude: …,Offset is outside the bounds of the DataView, or silently wrong data. Because pooling depends on allocation history, failures moved between runs and between files, which made it look like unrelated flakiness in several commands (inspect,list-text,create-deck,deck-to-fig, and the rasterizer). It affected any file whose read happened to be pooled, not any particular size or format.
Changed
packageManageris pinned to npm. The repo trackspackage-lock.json, but straypnpm-lock.yaml/pnpm-workspace.yamlfiles had appeared alongside it, leaving the toolchain ambiguous and local installs resolving stale versions.
npm install -g openfig-cli