Releases: elycruz/rollup-plugin-sass
Releases · elycruz/rollup-plugin-sass
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