- ...
2024-02-05
- fix: Regression where
CompilerOptions.write
defaulted tofalse
2024-02-02
- feat: Clean up temp files when a
compileCSSFromJS
process exits mid-flight
2024-01-11
- feat: Add branded types
CssString
,CssVarString
,CssMediaQueryString
. - Deprecate types:
- feat: Deprecate type
RawCssValue
in favor ofCssString
orstring
- feat: Deprecate type
RawCssString
in favor ofCssString
- feat: Deprecate type
RawCssVarString
in favor ofCssVarString
- feat: Deprecate type
RawMediaQuery
in favor ofCssMediaQueryString
- feat: Deprecate type
- feat: Add
fr
unit helper (andFrValue
type) - docs: Fix outdated links to README in JSDoc comments
2023-08-10
- fix: Remove
css-prettier
package name alias, use plainprettier
instead
2023-04-24
- BREAKING feat:
css
helper again auto-joins arrays with space
2023-04-04
- BREAKING feat:
css
helper now joins arrays with,
, not just space
2023-03-31
- feat: Remove
amp()
helper. Futurepostcss-nested
versions will throw
2023-03-30
- feat: Add temporary/experimental
amp()
helper as a workaround forpostcss-nested
issue with root-level& {}
blocks
2023-03-29
- fix: Fix typing issues in
color
helper andColorValue
type
2023-03-15
- fix: All
VariableOptions
properties should be optional
2023-01-17
- fix(ts): Export
StringCompilerOptions
- fix: Compile using autoprefixer
2023-01-04
- feat: Flag the package as side-effect free via
pkg.sideEffects
- fix: Compiler removes stray ";" characters after curly-brace blocks
2022-11-14
- feat(ts): Export unit group aliases
LengthValue
,LayoutRelativeValue
,FontRelativeValue
2022-11-03
- feat(ts): Mark key props of
UnitValue
andVariablePrinter
readonly - docs: Improve README by adding VSCode snippets, explaining
unitVal
better
2022-10-21
- feat: Add
unitVal
helper that emits aUnitNumber
type - feat(ts): Export
PlainNumber
type - feat(ts): Add better generics to
unitOf()
- feat: Silently strip invalid characters from custom variable
namespace
s
2022-10-18
- feat: Add prop
namespace
toVariableOptions
2022-10-11
- feat: Add
nested
option to compiler to disable/configurepostcss-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
2022-10-10
- fix: Make
css``
prefertoString()
overvalueOf()
2022-10-06
- fix: Update
postcss-nesting
plugin to gain essential bugfixes
2022-10-05
- feat: Add
str
quoted string printer - feat:
VariableValues.override()
now drops properties withfalse
values
2022-10-04
- fix: Cleanup temporary files when compiler hits aborting code errors
- fix: Add back
bin/cjs/cli.js
binary, which went AWOL
2022-09-14
- chore: Add reference paths for easier Intellisense auto-imports of all sub-modules
2022-09-12
- feat: Add lower-level compiler function
compileCSSString
- docs: Fix issues in README
2022-06-15
- fix: Change build target to ES2015
2022-06-07
- chore: Reorganize the contents of the published package
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
asgetName
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
2022-05-11
- BREAKING feat: Make
makeVariables
accept array of variable names- Remove prop
declarations
fromVariableStyles
- Add method
.declare()
toVariableStyles
- Remove props
resolveType
,isColor
fromVariableOptions
- Remove prop
- BREAKING feat: Remove introspection prop
type
fromVariablePrinter
2022-05-10
- feat(ts): Export type
VariablePrinter
2022-05-09
- feat: Add
media
helper - feat(ts): Export branded types
RawCssValue
andRawMediaQuery
2022-05-09
- feat: Add
unitOf()
helper
2022-05-08
- feat: Make
css``
convertnull
,undefined
andfalse
to empty string
2022-05-02
- feat: Add prop
cssName
toVariablePrinter
s
2022-04-19
- BREAKING feat: Rename
makeVariables
helper (removevariables
) - feat: Add
makeVariables.isVar()
- feat(ts): Export branded types
RawCssString
andRawCssVarString
- feat(ts):
css``
andVariableValues.override()
returnRawCssString
2022-04-13
- feat: Add options
banner
andfooter
toCompilerOptions
- fix: Bust node's module cache when dynamically importing the same source
- fix: Await JS file-writes in
compileCSSFromJS
2022-04-12
- feat: Add option
redirect
toCompilerOptions
- fix: Compiling input files with absolute paths failed
2022-04-11
- feat: Add
compiler
module, exportingcompileCSS
andcompileCSSFromJS
2022-04-07
- feat: Add composition helper
variables.join(...varStyles)
- feat: Make
VariableValues.declarations
mutable (for inlining overrides) - feat: Expand
VariableValue
to allowVariablePrinter
(forwardingtype
) - feat: Add
--ext
option to the CLI compiler - fix:
VariableStyles.override()
's input should accept anyVariableValues
2022-03-17
- feat: Add simple CLI compiler
- fix: Patch
color
library's lossy.hex()
method
2022-02-20
- feat: Add
color
helpers - feat: Add angle unit function
deg()
— and converters fromturn
,rad
andgrad
- 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
2022-02-17
- feat: Initial release with basic feature set — but no compiler yet