Skip to content

chore: version packages - #95

Merged
tenphi merged 1 commit into
mainfrom
changeset-release/main
Aug 18, 2026
Merged

chore: version packages#95
tenphi merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@tenphi/glaze@2.0.0

Major Changes

  • #94 a50183d Thanks @tenphi! - Breaking: the format* writers now take s / l / t on the 0–1 scale the Glaze converters return.

    formatOkhsl, formatOkhst, formatRgb, formatHsl, and formatOklch took 0–100 percentages while resolve(), variantToOkhsl, srgbToOkhsl, oklabToOkhsl, and okhslToSrgb all return 0–1 — so composing a producer with a writer was off by 100x and failed silently, since 0.7 is a legal percentage and the result was a valid CSS string naming a near-black color. The library now speaks one scale end to end. (toTone / fromTone still speak the 0–100 tone axis the authoring API takes — divide by 100 before handing a tone to formatOkhst.)

    Drop the * 100 at the call site (formatOkhst(v.h, v.s, v.t)); a leftover one now warns instead of shifting the color quietly. Every export method — css(), tokens(), tasty(), json(), dtcg(), tailwind(), glaze.format() — emits the same colors as before: they were compensating internally, and dropping the redundant ×100 ÷100 round-trip only moves float noise (visible nowhere except the meaningless hue term of a fully-desaturated hsl() string).

@github-actions
github-actions Bot force-pushed the changeset-release/main branch from ba521be to fc5e23a Compare August 18, 2026 13:35
@tenphi
tenphi merged commit b832db2 into main Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant