Skip to content

v0.5.0

Compare
Choose a tag to compare
@kripod kripod released this 20 Apr 11:09
· 85 commits to master since this release

0.5.0 (2020-04-20)

Bug Fixes

  • exported function name for useStyling (c3ec10f)
  • literal union typing issue (d767a44)
  • default-theme: negative letter spacings (1eb7a41)
  • example: encapsulation of TreatProvider (5fabdb2)
  • example: theming (06c435a)
  • meta: package versioning (7955ce7)
  • package: module bundling compat with treat (93f9ba7)
  • auto-convert dynamic property keys and values (4bca582)
  • dynamic style unmounting (ff203cd)
  • escape CSS class names during development (3ec83d0)
  • theme: add missing resolvers (b316434)
  • typings: error when theme is not given (e0d2c29)
  • only fire warnings during development (239edda)
  • package build failure when using ?. or ?? (c691695)
  • rule management in StyleInjector (47a1f93)
  • rule replacement for dynamic styles (5b3ba81)
  • server-side rendering for dynamic styles (fabc4af)
  • ci: package resolution (1f7ebfa)
  • example: plugin build for Next.js (89c6c32)
  • type checking script (b0439ae)

Code Refactoring

  • theme: make specifying scales mandatory (870d040)
  • theme: rename 'resolvers' to 'matchers' (c363cf3)
  • rename defaultTheme to defaultTokens (6684dc5)

Features

  • add experimental useStaticStyling internal (4f095f6)
  • babel-plugin: initial version (#16) (58d3ef6)
  • default-theme: add more letter spacings (3e38eca)
  • injection: hierarchic specificity emulation (2e2e0fd)
  • injector: emulate source declaration order (dc448bc), closes #29
  • theme: add duration scale for animations (42ae12d)
  • add customizable logger, e.g. for Gatsby (a0b47d4)
  • add NullStyleInjector with warnings (5dacdf2)
  • add runtime theme tokens (5c527f0)
  • add support for property aliases (a118792)
  • add useStyling hook (5ac7ef8)
  • allow disabling dynamic style injection (adca16f)
  • autocomplete for themed values and aliases (4718cbd)
  • create gatsby-plugin-glaze package (6aa6fb9)
  • encapsulate TreatProvider and clarify types (55a5718)
  • experimental StyleSheet implementation (92adee8)
  • export important types from package root (ef443c4)
  • server-rendered rule rehydration (887b84a), closes #11
  • support custom shorthands for rules (7fb9903)
  • symmetrize default spacing scale (e15e89a)

improvement

  • shorten generated dynamic class names (1bc3519)

Performance Improvements

  • theme: minify values (c3e779a)
  • apply new StyleSheet (fb61ab0)
  • cSSOM-based dynamic styling (c967d94)
  • don't create a new Map during each rerender (9d4c635)
  • optimize bundled outputs (577eda6)
  • optimize CSS ident escaper RegExp (de97e10)

Reverts

  • "build: use newer compilation target" (9edb8be)
  • remove Box component (871d7e6)
  • remove unused type exports from the entry point (08cc3fd)
  • Revert "chore: improve changelog generation" (ddd7c62)
  • skip versioning gatsby-plugin-glaze-example (2a11211)
  • ci: fix script (00e9dba)
  • ci: set up jobs for testing parallelism (6e49d9a)

BREAKING CHANGES

  • theme: the resolvers key of theme objects (e.g. passed to createTheme) shall be
    renamed to matchers
  • Don't use the types RuntimeTheme, ScaleTokens and StaticTheme anymore.
  • Newly generated dynamic class names differ from existing ones. Rebuild
    server-rendered pages for proper rehydration.
  • theme: No action is required when extending defaultTokens. Otherwise, each scale must be
    specified, as seen in StaticTheme.
  • defaultTheme imports shall be rewritten to defaultTokens
  • Existing CSS rules are not re-instantiated on the client anymore.
  • styles are now managed through CSSOM in production