Releases: elycruz/rollup-plugin-sass
Releases · elycruz/rollup-plugin-sass
1.12.19
What's Changed
- maintenance: (node fs module) deprecation warnings removal and annotations by @elycruz in #111
- fix: rollup, and @rollup/pluginutils, version ranges update. by @elycruz in #113
- fix: rollup, and @rollup/pluginutils, version ranges update by @elycruz in #114
Full Changelog: 1.12.18...1.12.19
Maintenance Release
What's Changed
Maintenance updates:
- Patched index.test, and scripts/*-downlevel-dts script, to use
fs.rm
method, if available (later versions of node v18, etc.), else usefs.rmdir
one - The latter is deprecated in later versions of node, and will throw errors when removed (in later versions of node). - Annotated some
@ts-ignore
s. - Added notes on dart-sass legacy API, and legacy importer functions.
Depedabot security updates:
- Merged dependabot security update #107 by @elycruz in #108
- Bump qs from 6.5.2 to 6.5.3 by @dependabot in #109
- Bump json5 from 2.2.0 to 2.2.3 by @dependabot in #110
Full Changelog: 1.12.17...1.12.18
Enjoy!
1.12.15
Hi all,
In this release we provide one bug fix (to a recently unnoticed duplicate css bug), and a test suite where we test out, and show, how to extract sass variables to resulting *.js modules.
What's Changed
- Issue #72 exports sass vars feature by @elycruz in #104
- issue-#72 Tests, example fix/approach, to issue #72, and a patch to uncaught 'duplicate css' bug by @elycruz in #105
Full Changelog: 1.12.14...1.12.15
Thank you, and
Happy Coding!
- rollup-plugin-sass admins
Dependency Updates and Watch Feature
In this Release
- dev-deps - Upgraded packages reported to having vulnerabilities to their safe versions.
- dev-deps - Updated 'ava' version to allow builds on certain versions (there was a "moderate" vulnerability in ava that was blocking our package from being built on *nix systems see #97 ).
- dev-deps - Updated typescript version and added 'downlevel-dts' version of the project's '*.d.ts' files (the whole typescript backward compatibility setup is now in place).
- plugin - Updated our plugin's custom 'sass file' importer to enforce file load order in the defined 'async' importer - the async importer can sometimes load files out of order, which could result in sass content being compiled in incorrect order (when using the plugin's
output
(as a function) feature) - This enforces the load order by chaining each legacy importerdone
call to a promise (which chained, and awaited for, on subsequent importer calls). - plugin - Merged in changes related to #96 "Add sass files to rollup watch list" - forces files to be added to rollup's watch list, when rollup is running in 'watch' mode.
Merged PRs
- Add all imported SASS files to the "watch" list by @xenobytezero in #96
- issue-#97 and #98 - Fix vulnerable dependencies by @elycruz in #99
Thank you to our Contributers!
New Contributors
- @xenobytezero made their first contribution in #96
Full Changelog: 1.2.12...1.12.13
Typescript Downgrade and Node 16 (CI/CD) Race Condition Fix
In this release:
Fixes:
- #89 - (CI/CD) Race condition, in Node 16, fixed. Code in plugin implementation (surrounding
sass
module custom importer) now enforcessync
calls toresolve
module ensuring the same behavior across current versions of node.
Improvements:
- #90 - Downgraded typescript version for library to ensure that *.d.ts files that are output are compatible with older versions of typescripts (namely for projects that use typescript versions as far back as typescript version 3.5.3).
--End of notes
Happy coding!
@elycruz
Dependency updates and option defaults patch
Fixes
- commit 12c7e33-837ad0aaaf - #81 - Changed 'rollup-pluginutils' back to '@rollup/pluginutils' - Ensures we don't break applications that were already using new, allowed, formats for 'include' and 'exclude' props (via @rollup/pluginutils, which allows 'RegExp', as well as 'string | string[]', for these props).
- Updated plugin source to ensure we have defaults for 'include' and 'exclude' options, even when merged, incoming options contain 'undefined' values set directly, for these props - feature was previously removed, it is now re-added in this commit.
Repo to Typescript and Deps Remove
In this release:
- babel*, pify, fs-extra, and @rollup/pluginutils dependencies removed - Less requirements to use the plugin, less surface area for hassle - mostly in terms of dependency tree version conflicts etc..
- Updated sources and tests to use typescript - Makes code easier to understand and update.
- Separated code units into their own units, functions etc., within plugin source - Makes code easier to follow/work with.
- Fixed bug where default sass importer was partially async and sync all at once - Since file loading is dependent on the OS file contents don't always complete their loading process in the same order - Indices are now associated with importer calls and are used when storing file id/content objects, internally - Ensures file output concatenations, always, happen in the correct order.
Happy coding!
@elycruz