chore: version packages#55
Merged
Merged
Conversation
fd5a557 to
e91fddc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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@0.11.0
Minor Changes
#54
88be8a4Thanks @tenphi! -glaze.color()now defaults tomode: 'auto'across every input form, so non-string inputs adapt between light and dark like an ordinary theme color instead of being preserved verbatim with a linear dark mapping.{ h, s, l }), RGB tuple ([r, g, b]), and structured form ({ hue, saturation, lightness, ... }) now default tomode: 'auto'with snapshotted scaling{ lightLightness: globalConfig.lightLightness, darkLightness: globalConfig.darkLightness }. The dark variant is Möbius-inverted intoglobalConfig.darkLightness(default[15, 95]), and the light variant is mapped throughglobalConfig.lightLightness(default[10, 100]) — exactly the same windows a theme color uses.rgb()/hsl()/okhsl()/oklch()) is unchanged. It already defaulted tomode: 'auto'with{ lightLightness: false, darkLightness: [lo, 100] }, preserving the#000↔#fffflip.Behavior change (minor bump):
glaze.color({ hue: H, saturation: S, lightness: 80 }).resolve()(and the equivalent object / tuple forms) now produces a near-darkdark.l(e.g. ~0.42forlightness: 80under defaults) instead of staying near0.79.light.lfor object / tuple / structured inputs is now mapped throughglobalConfig.lightLightnessrather than preserved verbatim (e.g.lightness: 0now resolves tolight.l ≈ 0.10by default).{ mode: 'fixed' }on the input or in the overrides. To restore the previous "preserve light lightness verbatim" behavior, pass{ lightLightness: false }as the trailingscalingargument.The new scaling shape is also reflected in
token.export()snapshots — object / tuple / structured tokens now serialize{ lightLightness: [10, 100], darkLightness: [15, 95] }(with the liveglobalConfigvalues frozen at create time) instead of{ lightLightness: false, darkLightness: [15, 95] }. Rehydration viaglaze.colorFrom()round-trips byte-for-byte.