# Changelog

## 2.0.17 · 2026-01-23

- Changed from [`globby`](https://www.npmjs.com/package/globby) to [Node.js’s `fs.glob()`](https://nodejs.org/docs/latest/api/fs.html#fspromisesglobpattern-options).

## 2.0.12 · 2025-09-04

- Added support for `` html`___` `` in `` css`___` ``.

## 2.0.9 · 2025-02-03

- Simplify implementation. The problem is that Prettier only provides an asynchronous API, and Babel plugins must be synchronous. The previous solution was to do two passes on the code: the first pass identified the uses of `` css`___` ``/`` javascript`___` ``, then Prettier was called asynchronously, and the second pass would transform the uses of `` css`___` ``/`` javascript`___` ``. The new solution uses `make-synchronized` to call Prettier synchronously from within the plugin. Benchmarks suggest that the new solution is slightly slower, because `make-synchronized` works by creating a worker thread and there’s an overhead of communicating data back and forth, but the overhead seems to be small and it’s worth for the simplicity of the implementation.

## 2.0.7 · 2025-01-07

- **Breaking change:** Removed the `event` parameter from JavaScript extracted from `javascript="___"` attributes. Compatible with `@radically-straightforward/javascript@4.0.8`.

## 2.0.1 · 2024-06-12

- Fixed an issue in which nested CSS expressions weren’t extracted correctly.

## 2.0.0 · 2024-06-08

- **Breaking Change:** Renamed command-line parameters `--file-to-copy-with-hash` and `--file-to-copy-without-hash` into `--copy-with-hash` and `--copy-without-hash`.
- Added defaults for globs `--file-to-copy-with-hash` and `--file-to-copy-without-hash`.

## 1.0.5 · 2024-06-03

- Silenced warning from PostCSS:

  > Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.

## 1.0.4 · 2024-06-03

- Added support for CSS function `light-dark()` with [PostCSS Light Dark Function](https://github.com/csstools/postcss-plugins/tree/88bdf6b0a1411d863c43f6c1b990e09a300a8811/plugins/postcss-light-dark-function).

## 1.0.3 · 2024-05-01

- Update dependencies.

## 1.0.2 · 2024-04-09

- Removed the `define`d `process` from esbuild’s configuration. It led to issues with Tippy.js.

## 1.0.1 · 2024-04-01

- In esbuild, [`define`d](https://esbuild.github.io/api/#define) `process` to be `undefined`, which lets packages (for example, `@radically-straightforward/utilities`) differentiate between Node.js and the browser.

## 1.0.0 · 2024-03-31

- Initial release with support for extracting CSS and browser JavaScript, creating a bundle (with esbuild), and copying files adding hashes to their names.
