All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
28.2.0 (2022-06-20)
- css-to-js: use const (18e07f8)
28.1.4 (2022-06-16)
28.1.3 (2022-06-15)
28.1.2 (2022-05-25)
- rollup: generated JS always uses clean names (#847) (3bf231d), closes #846
- safer </script> regexes (#835) (ca589f6)
28.1.1 (2022-04-08)
28.1.0 (2022-03-11)
28.0.0 (2022-02-25)
- svelte: Having both
<style type="text/m-css">
and a<link>
element in a component will no longer throw.<style>
takes precedence over<link>
. - svelte: Previous all
<style>
tags would be transformed, now only ones that havetype="text/m-css"
on them will be transformed.
27.2.0 (2022-02-13)
27.1.1 (2022-02-09)
27.1.0 (2022-02-03)
- processor: cleaning up (897a2c5)
- svelte: support non .css extensions (8bf5a18)
- test-utils: don't try to check non-strings (4fb497e)
- webpack: remove deprecated cjs option (3489907)
- css-to-js: extract css-to-js from rollup (85aac89)
- vite: vite plugin (46c80da)
- www: m-css.com on sveltekit (d434f92)
27.0.3 (2021-12-17)
-
- Only supports
postcss@8
and higher
- Only supports
composes
and@values
that reference other entries will need to be listed in dependency order.
27.0.2 (2021-07-18)
27.0.1 (2021-07-18)
27.0.0 (2021-07-06)
- @composes working again (f48bc5f)
- @keyframes can be anywhere (b6dddc7)
- remove postcss as dep (ca67c39)
- Add .warnings to processor (eb0e117)
-
- Requires
postcss@8
be installed alongside to function.
- Requires
26.0.0 (2021-02-25)
- postcss@8 drops support for node version 6.x, 8.x, 11.x, and 13.x.
25.8.2 (2020-09-02)
- processor: don't scope @keyframes contents (#781) (dd41bf1)
25.8.1 (2020-07-30)
25.8.0 (2020-06-29)
25.7.0 (2020-05-15)
25.6.0 (2020-04-21)
- processor: better error :external can't find a file (469c859)
- processor: better error when importing missing @value (0d06afa)
- rewriter: don't explode on external chunks (#749) (be741bb), closes #688
- rollup: walk full tree for dependencies (#748) (3ba7c3e)
- svelte: case-sensitive matching on (#744) (8577e3f), closes #711
- webpack: don't try to emit if there were errors (#725) (e9de291), closes #724
- www: better font, faster load (0237987)
- www: corrected font sizing (b97149e)
- core: Add support for aliasing values (#737) (597c1ae), closes #719 #736
- rollup: rollup@2 compat (#733) (361bd4e)
- website: port site to svelte3 (35e7a96)
25.5.0 (2020-03-09)
- processor: better error :external can't find a file (469c859)
- processor: better error when importing missing @value (0d06afa)
- webpack: don't try to emit if there were errors (#725) (e9de291), closes #724
- www: better font, faster load (0237987)
- www: corrected font sizing (b97149e)
- website: port site to svelte3 (35e7a96)
25.4.1 (2020-02-12)
Note: Version bump only for package modular-css
25.4.0 (2020-02-05)
25.3.1 (2020-01-23)
25.3.0 (2019-11-26)
25.2.0 (2019-10-30)
- Custom file reader api (#671) (f1865c9)
- processor: add processor.resolve() (#681) (2c5a51d), closes #679
- exportDefault flag for webpack loader (#680) (0179f99)
25.1.0 (2019-09-23)
25.0.0 (2019-09-16)
- use this.emitFile() API from rollup (#666) (108a4a1)
- www: stub out module since resolve-from uses it now (e11947c)
- www: trying this again... (b3d9221)
- support from global for composes (#669) (0a7996e)
- processor: allow composes anywhere in a rule (#646) (31b57a2), closes #645
- rollup-rewriter: let loader option be a function (#667) (a57cddf)
- stylelint-config: add @modular-css/stylelint-config package (#637) (bc3b711)
- processor: previously
modular-css
would require thatcomposes
be the first declaration in a rule. This restriction has been removed due to better solutions for enforcing that behavior existing now (stylelint-order).
24.2.2 (2019-07-08)
- generate parsers before publishing (2c72008)
24.2.0 (2019-07-06)
24.1.0 (2019-06-17)
24.0.1 (2019-05-29)
24.0.0 (2019-05-08)
- processor: It was causing massive slowdowns to synchronously resolve files using
true-case-path
, and making it async wasn't a guaranteed win either. So it's removed, which should solve #581 pretty neatly. Instead now there's a warning if two files are included that differ in case only. It can be disabled by settingdupewarn : false
as part of the config object.
23.0.6 (2019-04-30)
23.0.5 (2019-04-09)
23.0.4 (2019-04-03)
23.0.3 (2019-03-29)
- don't mutate arrays while iterating (0f63ea2)
23.0.2 (2019-03-29)
Note: Version bump only for package modular-css
23.0.1 (2019-03-29)
23.0.0 (2019-03-28)
- Previously missing css.fooga references would be left as-is, now they're wrapped in quotes to prevent them from causing JS errors. If you want missing classes to break things you should enable strict mode. Also no longer injecting a
<script>
block just to import css if there isn't already a<script>
block defined in the module.
22.3.0 (2019-03-20)
22.2.0 (2019-03-07)
22.1.4 (2019-02-16)
- add homepage & repo directory fields (f9c1606)
22.1.3 (2019-02-10)
- add repo link to header (b47c1ad), closes #564
- add some spacing after content (d84579a)
- clean up netlify deploys (#566) (39c11d5)
- flatten out all static calc()s (4518d75)
- try to get netlify to use node@10 (955c4f6)
22.1.2 (2019-02-09)
22.1.1 (2019-02-06)
- force rollup output to use .css (#563) (8f4348e)
- work around rollup-pluginutils globbing cwd (4c0bdd8)
22.1.0 (2019-02-06)
- invalidate files when they're changed (cb34c08)
- log file invalidations (0b1476e)
- remove newlines after composes (#561) (23569dc)
- new website (#557) (059fd7a)
- processor.normalize() & corrected chunking logic (#562) (e0c5eee), closes #559 #560
- svelte processor arg & improved test coverage (#558) (7655d72)
22.0.2 (2019-01-28)
22.0.1 (2019-01-27)
22.0.0 (2019-01-25)
- Bundles will now have a
assets
anddynamicAssets
array on them, and the metadata file will now contain anassets
anddynamicAssets
keys on them as well.
Both assets
and dynamicAssets
will only contain assets directly required by the bundle, instead of the bundle and all its dependencies.
21.2.1 (2019-01-24)
21.2.0 (2019-01-24)
21.1.2 (2019-01-23)
21.1.1 (2019-01-21)
21.1.0 (2019-01-21)
21.0.1 (2019-01-18)
21.0.0 (2019-01-18)
- The previous release would stick all unreferenced CSS at the beginning of the first bundle. This was a mistake, and has been rectified.
20.0.1 (2019-01-16)
20.0.0 (2019-01-15)
- Source maps are written directly to the filesystem now, instead of going through rollup's asset pipeline. This is due to some limitations inherent in how the asset pipeline works and may be changed back once those can be resolved.
19.2.0 (2019-01-11)
19.1.0 (2019-01-10)
- better error if resolver returns bad file (513c2a9)
- check for files via processor.has() (b5a539b), closes #533
- remove random async from processor.string (d5ca5c0)
- rollup outputs non .css files in the correct order (2b8fec6)
- add processor.has to check for known files (df5ac6f)
19.0.0 (2019-01-01)
- [email protected] support (#532) (1fab777)
- requires [email protected]
18.0.0 (2018-12-22)
- changed rollup plugin CSS output so it better matches rollup output chunk format & bumped minimum rollup version to 0.68.0
17.1.2 (2018-11-26)
17.1.1 (2018-11-08)
- tweak value support in svelte preprocessor (7cc0f22)
17.1.0 (2018-10-24)
17.0.0 (2018-10-22)
- if you want to remove files as they're re-processed (for standalone usage, for instance), you'll now need to pass
{ clean : true }
.
16.2.0 (2018-10-12)
16.1.0 (2018-09-21)
16.0.0 (2018-09-01)
- move all packages under modular-css org (50341f7)
- All package names have changed!
15.0.1 (2018-08-29)
15.0.0 (2018-08-28)
- deps: update dependency meow to v5 (#495) (e92795f)
- deps: update dependency postcss-url to v8 (#497) (b270db5)
- run after plugins against files serially (#508) (14bae1d)
- Named json output (#509) (e32a4b3), closes #485
- Use [email protected]'s watchChange event (#511) (510b662)
Processor
instances must be instantiated withnew
, they're no longer auto-instantiating- The default file name when
json : true
has changed from whatever the CSS file was called toexports.json
14.4.0 (2018-08-10)
14.3.0 (2018-08-09)
14.2.1 (2018-08-01)
14.2.0 (2018-07-25)
14.1.0 (2018-07-18)
14.0.1 (2018-07-16)
14.0.0 (2018-07-13)
- Common chunks will only be created if necessary now.
13.0.0 (2018-07-13)
- Rollup rebuilds in watch mode (#449) (d2eefec)
- support no assetFileNames configuration (#448) (9e495dc), closes #447
Processor.remove()
no longer removes the specified files AND their dependencies.
12.1.3 (2018-07-05)
- Actually fix erroneous deletes from rollup (caee07d)
12.1.2 (2018-07-05)
12.1.1 (2018-07-05)
12.1.0 (2018-06-26)
12.0.2 (2018-06-22)
12.0.1 (2018-06-13)
- .emitAsset() can't be called twice now (24e6562)
12.0.0 (2018-06-08)
modular-css-svelte
no longer has a custom rollup integration, usemodular-css-rollup
insteadmodular-css-rollup
now supports acommon
option that will handle outputting any CSS that was removed from chunks due to treeshaking.modular-css-rollup
accepts a newprocessor
option that is expected to be a fully-configured & instantiated instance ofProcessor
frommodular-css-core
.
11.0.0 (2018-06-07)
- support for [email protected] api (#429) (f731e9b)
- This will break compatibility with all versions of rollup < 0.60.0
10.1.0 (2018-06-03)
10.0.0 (2018-05-02)
- Processor.remove now always returns an array. If nothing was removed the array will be empty.
9.0.0 (2018-04-25)
- svelte v2 support (9c48aef)
- svelte template syntax changed in v2, and it is now the only supported syntax.
8.2.0 (2018-03-08)
8.1.1 (2018-02-21)
Note: Version bump only for package modular-css-root
8.1.0 (2018-02-21)
8.0.3 (2018-02-21)
8.0.2 (2018-02-16)
8.0.0 (2018-02-09)
- Values will now be exported alongside composed classes
7.2.0 (2017-12-13)
7.1.0 (2017-12-11)
- onwrite not returning the promise (9ab15de)
7.0.0 (2017-11-16)
- To prevent
postcss-url
from running you now specifyrewrite: false
instead of defining anafter
segment.