Skip to content

Latest commit

 

History

History
296 lines (174 loc) · 6.42 KB

CHANGELOG.md

File metadata and controls

296 lines (174 loc) · 6.42 KB

Change Log for es-in-css

Upcoming...

  • ...

0.7.7

2024-02-05

  • fix: Regression where CompilerOptions.write defaulted to false

0.7.6

2024-02-02

  • feat: Clean up temp files when a compileCSSFromJS process exits mid-flight

0.7.3 – 0.7.5

2024-01-11

  • feat: Add branded types CssString, CssVarString, CssMediaQueryString.
  • Deprecate types:
    • feat: Deprecate type RawCssValue in favor of CssString or string
    • feat: Deprecate type RawCssString in favor of CssString
    • feat: Deprecate type RawCssVarString in favor of CssVarString
    • feat: Deprecate type RawMediaQuery in favor of CssMediaQueryString
  • feat: Add fr unit helper (and FrValue type)
  • docs: Fix outdated links to README in JSDoc comments

0.7.2

2023-08-10

  • fix: Remove css-prettier package name alias, use plain prettier instead

0.7.0 – 0.7.1

2023-04-24

  • BREAKING feat: css helper again auto-joins arrays with space

0.6.0

2023-04-04

  • BREAKING feat: css helper now joins arrays with , , not just space

0.5.27

2023-03-31

  • feat: Remove amp() helper. Future postcss-nested versions will throw

0.5.26

2023-03-30

  • feat: Add temporary/experimental amp() helper as a workaround for postcss-nested issue with root-level & {} blocks

0.5.25

2023-03-29

  • fix: Fix typing issues in color helper and ColorValue type

0.5.24

2023-03-15

  • fix: All VariableOptions properties should be optional

0.5.23

2023-01-17

  • fix(ts): Export StringCompilerOptions
  • fix: Compile using autoprefixer

0.5.21 – 0.5.22

2023-01-04

  • feat: Flag the package as side-effect free via pkg.sideEffects
  • fix: Compiler removes stray ";" characters after curly-brace blocks

0.5.20

2022-11-14

  • feat(ts): Export unit group aliases LengthValue, LayoutRelativeValue, FontRelativeValue

0.5.19

2022-11-03

  • feat(ts): Mark key props of UnitValue and VariablePrinter readonly
  • docs: Improve README by adding VSCode snippets, explaining unitVal better

0.5.17 – 0.5.18

2022-10-21

  • feat: Add unitVal helper that emits a UnitNumber type
  • feat(ts): Export PlainNumber type
  • feat(ts): Add better generics to unitOf()
  • feat: Silently strip invalid characters from custom variable namespaces

0.5.16

2022-10-18

  • feat: Add prop namespace to VariableOptions

0.5.14 – 0.5.15

2022-10-11

  • feat: Add nested option to compiler to disable/configure postcss-nested
  • feat: Add cssVal`` templater alias
  • feat: Mark the media helper as deprecated
  • docs: Improve docs and add JSDoc comments to most methods and properties

0.5.13

2022-10-10

  • fix: Make css`` prefer toString() over valueOf()

0.5.12

2022-10-06

  • fix: Update postcss-nesting plugin to gain essential bugfixes

0.5.10 – 0.5.11

2022-10-05

  • feat: Add str quoted string printer
  • feat: VariableValues.override() now drops properties with false values

0.5.8 – 0.5.9

2022-10-04

  • fix: Cleanup temporary files when compiler hits aborting code errors
  • fix: Add back bin/cjs/cli.js binary, which went AWOL

0.5.7

2022-09-14

  • chore: Add reference paths for easier Intellisense auto-imports of all sub-modules

0.5.6

2022-09-12

  • feat: Add lower-level compiler function compileCSSString
  • docs: Fix issues in README

0.5.5

2022-06-15

  • fix: Change build target to ES2015

0.5.4

2022-06-07

  • chore: Reorganize the contents of the published package

0.5.0 — 0.5.3

2022-06-01

  • BREAKING feat: Bump minimum node version to 16
  • BREAKING feat: Change VariablePrinter to a simple object — with toString and an .or() method for fallbak/default values
  • feat(ts): Alias toString as getName on all basic value printers — to hack a nicer DX when using es-in-css values with styled-components
  • fix: Check for existstence of global.require before clearing cache
  • chore: Add pkg.exports description

0.4.0

2022-05-11

  • BREAKING feat: Make makeVariables accept array of variable names
    • Remove prop declarations from VariableStyles
    • Add method .declare() to VariableStyles
    • Remove props resolveType, isColor from VariableOptions
  • BREAKING feat: Remove introspection prop type from VariablePrinter

0.3.5

2022-05-10

  • feat(ts): Export type VariablePrinter

0.3.4

2022-05-09

  • feat: Add media helper
  • feat(ts): Export branded types RawCssValue and RawMediaQuery

0.3.3

2022-05-09

  • feat: Add unitOf() helper

0.3.2

2022-05-08

  • feat: Make css`` convert null, undefined and false to empty string

0.3.1

2022-05-02

  • feat: Add prop cssName to VariablePrinters

0.3.0

2022-04-19

  • BREAKING feat: Rename makeVariables helper (remove variables)
  • feat: Add makeVariables.isVar()
  • feat(ts): Export branded types RawCssString and RawCssVarString
  • feat(ts): css`` and VariableValues.override() return RawCssString

0.2.10

2022-04-13

  • feat: Add options banner and footer to CompilerOptions
  • fix: Bust node's module cache when dynamically importing the same source
  • fix: Await JS file-writes in compileCSSFromJS

0.2.6 — 0.2.9

2022-04-12

  • feat: Add option redirect to CompilerOptions
  • fix: Compiling input files with absolute paths failed

0.2.4 — 0.2.5

2022-04-11

  • feat: Add compiler module, exporting compileCSS and compileCSSFromJS

0.2.3

2022-04-07

  • feat: Add composition helper variables.join(...varStyles)
  • feat: Make VariableValues.declarations mutable (for inlining overrides)
  • feat: Expand VariableValue to allow VariablePrinter (forwarding type)
  • feat: Add --ext option to the CLI compiler
  • fix: VariableStyles.override()'s input should accept any VariableValues

0.2.0 – 0.2.2

2022-03-17

  • feat: Add simple CLI compiler
  • fix: Patch color library's lossy .hex() method

0.1.1 — 0.1.3

2022-02-20

  • feat: Add color helpers
  • feat: Add angle unit function deg() — and converters from turn, rad and grad
  • feat: Add new VariableOptions methods: resolveType, isColor
  • feat: Add VariablePrinter.type
  • feat: Log warnings on wonky scoped() prefixes (in dev mode)
  • docs: Fix error in code example

0.1.0

2022-02-17

  • feat: Initial release with basic feature set — but no compiler yet