@parcel/css
1.14.0 · 8 Sep 2022MPL-2.020.3k / weekRepositoryHomepagenpmAtom feed
33 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
1.14.0
8 Sep 2022Add types for wasm init default export – @deckchairlabs
Match the spec so that feature-* in
@font-facetech()becomes plural – @yisiblCSS-wide keywords and none in
@keyframescannot remove quotes – @yisibl
We are excited to announce that Parcel CSS is now called Lightning CSS! ⚡ This new name makes it clear that the project can be used outside of Parcel, with other build tools, or even standalone.
We also have a brand new website showcasing some of the features, along with the WASM-based playground at lightningcss.dev. This will expand over time to include more documentation and examples.
Going forward, new releases will be under the
lightningcssnpm package and Rust crate. The@parcel/csspackage still exists on npm for backward compatibility, but now re-exportslightningcss. Theparcel_cssRust crate is deprecated - please uselightningcssgoing forward.New features
This release also includes several new features, including major improvements to the bundler.
Custom JS resolver
The node bindings now include a new
bundleAsyncfunction in addition to the existingbundlefunction.bundleAsyncruns the bundler asynchronously in a background thread, and returns a promise that lets you know when it has completed. In addition,bundleAsyncsupports custom JavaScript-based resolvers, which allow you to customize the resolution behavior for@importspecifiers, and provide the contents of files from a source other than the file system.let {code, map} = await css.bundleAsync({ filename: 'style.css', minify: true, resolver: { read(filePath) { return fs.readFileSync(filePath, 'utf8'); }, resolve(specifier, from) { return path.resolve(path.dirname(from), specifier); } } });Note that providing a resolver can negatively affect performance, so only do so when you need to customize things.
CSS modules bundling
Dependencies in CSS modules are now also bundled. For example, the
composesproperty allows you to reference another file. These will now be bundled, and the resolved class name will be included in the output JSON as well.Bug fixes
Add types for wasm init default export – @deckchairlabs
Match the spec so that feature-* in
@font-facetech()becomes plural – @yisiblCSS-wide keywords and none in
@keyframescannot remove quotes – @yisibl
1.13.1
2 Sep 2022Reading the note…
1.13.0
22 Aug 2022Reading the note…
1.12.2
31 Jul 2022Reading the note…
1.12.1
31 Jul 2022Reading the note…
1.12.0
14 Jul 2022Reading the note…
1.11.2
8 Jul 2022Reading the note…
1.11.1
8 Jul 2022Reading the note…
1.11.0
7 Jul 2022Reading the note…
1.10.1
16 Jun 2022Reading the note…
1.10.0
11 Jun 2022Reading the note…
1.9.0
25 May 2022Reading the note…
1.8.3
12 May 2022Reading the note…
1.8.2
30 Apr 2022Reading the note…
1.8.1
11 Apr 2022Reading the note…
1.8.0
7 Apr 2022Reading the note…
1.7.4
31 Mar 2022Reading the note…
1.7.3
24 Mar 2022Reading the note…
1.7.2
22 Mar 2022Reading the note…
1.7.1
20 Mar 2022Reading the note…
1.7.0
19 Mar 2022Reading the note…
1.6.0
10 Mar 2022Reading the note…
1.5.0
2 Mar 2022Reading the note…
1.4.0
23 Feb 2022Reading the note…
1.3.2
16 Feb 2022Reading the note…
1.3.1
14 Feb 2022Reading the note…
1.3.0
14 Feb 2022Reading the note…
1.2.0
31 Jan 2022Reading the note…
1.1.0
20 Jan 2022Reading the note…
1.0.3
17 Jan 2022Reading the note…
1.0.2
14 Jan 2022Reading the note…
1.0.1
13 Jan 2022Reading the note…
1.0.0
12 Jan 2022Reading the note…
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.