Repository navigation
Releases
Releases · nstepien/ecij
v0.7.0
Immutable
release. Only release title and notes can be modified.
What's Changed
⚠️ Projects tested with Vitest now need Vitest 5 or later, which ecij declares as an optionalvitestpeer dependency (^5.0.0) (#122)- Installing ecij in a project on Vitest 4 now fails with a peer dependency conflict
- Upgrade to Vitest 5, or stay on ecij 0.6 until then
- Projects that don't use Vitest are not affected
- Fixed Vitest 5 test runs failing from the second run on with
Cannot find module '….css'(#122)- Vitest's
fsModuleCache, on by default, reused transformed modules without running ecij, so their stylesheets were missing - Vitest no longer caches the modules that reference
ecijon disk, sofsModuleCache: falseworkarounds can be removed
- Vitest's
- Fixed
csstemplates left untransformed in modules whose language differs from their file extension, like JSX in a.jsfile with Rolldown'smoduleTypes: { '.js': 'jsx' }(#125)- Modules are now parsed as the language the bundler assigned them
- Improved performance when a module interpolates several values from the same module, like design tokens, which is now resolved, loaded, and parsed once per transform instead of once per value (#124)
- The package now includes source maps for
dist/index.jsanddist/index.d.ts, and thesrc/index.tsthey point to, so debuggers and Go to Definition can show the source (#121) - Corrected the documentation shown in editors for
css, which now says that onlyconstbindings resolve (#119)
Full Changelog: v0.6.0...v0.7.0
v0.6.0
Immutable
release. Only release title and notes can be modified.
What's Changed
⚠️ Interpolations no longer resolveletandvarbindings, onlyconstbindings (#79)- This applies to values and class names, whether declared in the same module or imported
- A template that interpolates a
letorvarbinding is skipped with anUNRESOLVED_INTERPOLATIONwarning, and itscsscall throws at runtime csstemplates assigned to aletorvarare still extracted, though their binding cannot be interpolated- Declare these bindings with
constinstead - See the new Static resolution section of the README
- Added support for aliased
cssimports, likeimport { css as styled } from 'ecij'(#79) - Added support for more
constbindings in interpolations, in the same module or imported (#79)- Signed numbers, like
const offset = -5 - Other bindings that resolve, like
const accent = brand
- Signed numbers, like
- Fixed missing styles in the build output when
optimization.inlineConstistrueor{ mode: 'all' }in a package with"sideEffects": false(#87, #98)- Class names are now emitted as
(() => "css-1a2b3c4d")(), which minifiers fold back into plain strings
- Class names are now emitted as
- Fixed builds hanging when modules interpolate each other's class names (#102)
- Fixed stale CSS in the Vite dev server after editing a module whose values or class names other modules interpolate (#104)
- Fixed a memory leak that grew with every parsed file, noticeable in long-running dev servers and watch mode (#109)
- Fixed interpolations resolving to the wrong binding in some scopes (#79)
- Parameter defaults no longer see the declarations of the function body
- Templates assigned to a
varnow see the bindings of the block they are in
- Fixed bindings exported under several names, which only resolved under the last one (#79)
- Templates whose
csstag is shadowed by a local binding are no longer extracted (#79)- This changes the class names of the templates that follow them in the same module
- Improved performance with hook filters, so Rolldown and Vite only call the plugin for the modules it handles (#99)
- Improved the documentation shown in editors for
css,ecij(), and its options (#84) - Added Vite Plugin Registry metadata, which marks Rollup as incompatible (#82)
- Documented the tsdown setup, which needs
@tsdown/cssto bundle the extracted CSS (#99)
Full Changelog: v0.5.0...v0.6.0
v0.5.0
Immutable
release. Only release title and notes can be modified.
What's Changed
⚠️ Added rolldown and vite peer dependency version ranges (#22, #76, #80)rolldown:^1.2.0, requiredvite:^8.2.0, optional
- Added support for JS sourcemaps (#78)
- Added variable scoping and shadowing support (#14)
- Added support for inline string/number literals in CSS interpolations (#59)
- Configuration options (
include,exclude, andclassPrefix) now accept an explicitundefinedto better supportexactOptionalPropertyTypesin TypeScript, andnull(#21) - Skipped CSS extraction failures are now logged as warnings (#58)
Full Changelog: v0.4.1...v0.5.0
v0.4.1
Immutable
release. Only release title and notes can be modified.
What's Changed
- Fixed missing styles in build output in some cases (#9)
Full Changelog: v0.4.0...v0.4.1
v0.4.0
Immutable
release. Only release title and notes can be modified.
What's Changed
- Removed
@rolldown/pluginutilsandoxc-parserdependenciesecijnow imports utils fromrolldowndirectlyecijnow has nodependencies⚠️ An updated version ofrolldownis expected,ecijhas been tested against[email protected]
Full Changelog: v0.3.0...v0.4.0
v0.3.0
Immutable
release. Only release title and notes can be modified.
- Various fixes, optimizations, and correctness improvements
⚠️ In some cases the CSS may be output in a different order compared to the previous version's output
Full Changelog: v0.2.0...v0.3.0
v0.2.0
Immutable
release. Only release title and notes can be modified.
- Added support for number literals in template string interpolations
- Added support for
include/excludeconfiguration settings, with defaults - Marked the package as having no side-effects
Full Changelog: v0.1.1...v0.2.0
v0.1.1
Renamed package to ecij
Full Changelog: v0.1.0...v0.1.1
v0.1.0
Initial release
Full Changelog: https://github.com/nstepien/ecij/commits/v0.1.0