openpencil/packages/core
w4c-agent a9409e653a fix(core): write .fig without Web Crypto on a non-secure origin
- Probe `crypto.subtle` instead of `crypto` before computing the SHA-1 font
  digest. `crypto` exists in every browser, but `crypto.subtle` is only
  exposed in a secure context (https, or http on localhost).
- The headless canvas is served over plain http on the compose network, so
  the old check passed and `crypto.subtle.digest` threw
  "Cannot read properties of undefined (reading 'digest')", aborting every
  save_file call and the backend's turn-end export, which left the project's
  designs/*.fig file stale.
- Fall back to the existing empty digest so save and export keep working
  where Web Crypto is unavailable.
2026-09-23 22:44:52 +03:00
..
assets fix(fonts): include bundled Arabic fallback asset 2026-05-18 01:04:29 +03:00
src fix(core): write .fig without Web Crypto on a non-secure origin 2026-09-23 22:44:52 +03:00
package.json refactor(canvas): adopt immutable CanvasKit paths (#554) 2026-08-18 23:09:45 +03:00
tsconfig.json refactor(kiwi): split schema text from runtime 2026-05-21 14:54:12 +03:00
tsdown.config.ts refactor: standardize acronym casing 2026-08-10 15:48:16 +03:00