mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-03 10:37:48 +09:00
## Summary Upgrades colorjs.io from v0.5.x to v0.6.x and adopts the new functional API to fix TypeScript compatibility issues and reduce bundle size. ## Breaking Changes in v0.6 This release includes two major changes from colorjs.io that required code updates: 1. `null` instead of `NaN` for "none" values — Coordinates now use `number | null` instead of the custom `Number` instance that previously used `"none"` strings. This eliminates runtime casting and improves TypeScript DX. 2. Plain numbers instead of `Number` objects — Coordinates are now plain number primitives rather than `Number` objects with parsing metadata, improving performance and bundle size. ## Changes Made - Upgraded colorjs.io to v0.6.x - Adopted functional API (`/fn` entry point) for tree-shakeable imports and reduced bundle size - Updated coordinate handling to use `number | null` directly instead of custom `Number` instances with `"none"` values - Removed runtime casting previously required for TypeScript compatibility - Aligned with engramma and hdr-color-input — both already use the functional style, enabling code deduplication ## Migration Notes See [colorjs.io v0.6.0 release notes](https://github.com/color-js/color.js/releases/tag/v0.6.0) for full details on the breaking changes.
CSS Data
Generated configs and collections from mdn-data into consumable form.