I've updated lilconfig library to v3. There were 2 breaking changes in the library that do not affect this package:
Dropped support for node v10 and v12
Searcher results are cached between calls to searcher.search() (by default)
I can see that postcss-load-config has node v14 as min supported version. And since searcher (lilconfig('postcss', options)) is created on every call to rc function the new cache functionality won't be leveraged as the cache is stored in the searcher which gets recreated on every call. Thus this update does not require any updates to the code.
Ideally we would also set cache: false to the searcher's option to skip unnecessary caching.
I only found two places where this package's function is called
postcss-cli doesn't seem to require any changes. Uses up to date version of this package.
gulp-postcss which uses an 3.0.0 older version of this package, current is 4.0.1.
Commit Message Summary (CHANGELOG)
update lilconfig to v3.0.0
Type
[ ] CI
[ ] Fix
[ ] Perf
[ ] Docs
[ ] Test
[x] Chore
[ ] Style
[ ] Build
[ ] Feature
[ ] Refactor
SemVer
[x] Fix (:label: Patch)
[ ] Feature (:label: Minor)
[ ] Breaking Change (:label: Major)
Issues
Fixes #1
Checklist
[x] Lint and unit tests pass with my changes
[ ] I have added tests that prove my fix is effective/works
[ ] I have added necessary documentation (if appropriate)
[ ] Any dependent changes are merged and published in downstream modules
Hi, lilconfig maintainer here đ
I have recently released a new major version that is fully compatible with how it is currently used.
Notable Changes
I've updated lilconfig library to v3. There were 2 breaking changes in the library that do not affect this package:
searcher.search()
(by default)I can see that postcss-load-config has node v14 as min supported version. And since searcher (
lilconfig('postcss', options)
) is created on every call torc
function the new cache functionality won't be leveraged as the cache is stored in the searcher which gets recreated on every call. Thus this update does not require any updates to the code.Ideally we would also set
cache: false
to the searcher's option to skip unnecessary caching.I only found two places where this package's function is called
Commit Message Summary (CHANGELOG)
Type
SemVer
Issues
#1
Checklist