Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency lilconfig to v3 #2079

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Conversation

czi-developer-foundations
Copy link
Collaborator

This PR contains the following updates:

Package Type Change
lilconfig dependencies ^2.1.0 -> ^3.1.2

Release Notes

antonk52/lilconfig

v3.1.2: Webpack friendly

Compare Source

The new changes make lilconfig work as expected when a nodejs app is bundled using webpack.

Thanks @​CHC383

v3.1.1: Security release

Compare Source

  1. Fix security vulnerability by migrating from typescript to javascript with TSDoc comments. See #​48
  2. Use tabs instead of spaces

Due to how typescript compilation works I had to use eval() to have a dynamic import in project compiled to commonjs in v3.1.0. Eval call introduced a security vulnerability as it was pointed out to me by kind people from Secfault Security. As there is currently no way to make typescript output dynamic import with a commonjs target I migrated the source code to be in javascript. This means that the code in this repository is the code that gets published to npm. The package still includes first party typescript types in index.d.ts file that gets published as well. The runtime code now uses TSDoc annotations to maintain type safety.

v3.1.0: Support ESM config files (async api only)

Compare Source

Lilconfig now supports loading ESM configuration files.

ESM configs can be searched or loaded via async API only.

ESM syntax can be valid in either

  • .js and .mjs files in projects with "type": "module" in package.json
  • .mjs files in projects that use commonjs

Thanks for pushing this feature @​marekdedic

v3.0.0: Cache support

Compare Source

BREAKING CHANGES

  • Cache support enabled by default
  • Drop support for Node v10 & v12

New cache feature

Lilconfig now can cache results in between searches within the same nodejs process. If you are reusing the searcher to look up configuration files, you will get much faster configuration lookups.

Otherwise you can disable it in options using the new cache key

lilconfig('myapp', {cache: false})

  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

Copy link

codecov bot commented Oct 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.10%. Comparing base (c109f52) to head (d70d0e2).
Report is 8 commits behind head on next.

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #2079   +/-   ##
=======================================
  Coverage   97.10%   97.10%           
=======================================
  Files         111      111           
  Lines        2766     2766           
  Branches      738      738           
=======================================
  Hits         2686     2686           
  Misses         77       77           
  Partials        3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

size-limit report 📦

Path Size
components 92.69 KB (0%)
styles 28.82 KB (0%)

@booc0mtaco booc0mtaco merged commit 6f720a4 into next Oct 21, 2024
13 checks passed
@booc0mtaco booc0mtaco deleted the renovate/lilconfig-3.x branch October 21, 2024 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants