Releases: ghivert/sketch
v3.1.2
v3.1.1
What's Changed
- Bugfix - Fixes in CSS generation - "sketch_css" by @josevictorferreira in #29
- support updated lustre 4.6.0 by @Guria in #31
- Remove outdated documentation by @ghivert in #33
- Change way to use
sketch.compose
, to have a more consistent output.
New Contributors
- @josevictorferreira made their first contribution in #29
- @Guria made their first contribution in #31
Full Changelog: v3.1.0...v3.1.1
v3.1.0
v3.0.2
What's Changed
- Hide the Erlang target on JS. Fix bug where the JS target was not able to compile.
Full Changelog: v3.0.1...v3.0.2
v3.0.1
What's Changed
- fix:
size.percent_
returnPct
instead ofPx
by @kwshi in #22 - Add ephemeral caches on BEAM by @ghivert in #24. Sketch is now usable in the exact same way on the Erlang target as well as on the JS target.
New Contributors
Full Changelog: v3.0.0...v3.0.1
v3.0.0
3.0.0 — New Major Version 🎉
Sketch undergo a major rewrite, switching from being a Lustre-focused package, to a generic CSS-in-Gleam package. Sketch is now split across multiple packages: sketch
, sketch_css
& sketch_lustre
.
Inspired by Gleam, Sketch has now an agnostic core, able to target any project and any compile target, and has few packages specialised for frameworks and libraries to integrate it in a transparent way! This step starts first with the split of Lustre features from the core to its own package, sketch_lustre
. This change should help building on top of Sketch, and allow everyone to use the package, in the way they like. Sketch favours diversity!
Changes
- Deprecations are removed.
- Remove the mechanism of "virtual stylesheet", because browsers optimise for static CSS. Every class pushed in
Cache
is now memoised. - Add every possible non-experimental CSS properties.
- Split Lustre bits to
sketch_lustre
. sketch_css
allows to generate a CSS stylesheet from Sketch styles.- Class ID change from guess (with magic) to
string.inspect
(without magic, in a deterministic way). Overhead is really low (few milliseconds at most). sketch.Class
now contains its string representation, allowing for quicker lookup in cache.- Lustre mechanism switch from injecting styles in globalised
Cache
to an additional tree walk before render (likeelm-css
). This is transparent for the user, and should not be felt as a change anyway (time to render differs from a bunch of milliseconds).
Full Changelog: v2.3.0...v3.0.0
v2.3.0
What's Changed
- Add the utility functions in
sketch/lustre/element
to create easily view functions in Lustre, Sketch-enhanced!
Full Changelog: v2.2.2...v2.3.0
v2.2.2
v2.2.1
What's Changed
- Small bugfix on class name generation to push in the virtual stylesheet.
Full Changelog: v2.2.0...v2.2.1
v2.2.0
What's Changed
- A tiny release, including the missing property
float
!
Full Changelog: v2.1.0...v2.2.0