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

Update readdirp to address deprecation, inline noop2, and update minor versions #17

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kisaragi-hiu
Copy link

@kisaragi-hiu kisaragi-hiu commented Jun 1, 2023

  1. Currently, copy-template-dir depends on [email protected], which depends on [email protected] → snapdragon → source-map-resolve (deprecated). This is unnecessary; this PR fixes it by updating readdirp to 3.6.0.

    This might be considered a breaking change though, as readdirp 3.x raised the minimum Node version to 8.x.

  2. This PR also inlines noop2 (function () {}) - this arguably saves 420.5 MiB of unnecessary bandwidth per week (3289 bytes * 134076 weekly downloads of copy-template-dir as of 2023-06-02).

  3. Additionally, I also updated the declared minor versions of other dependencies, as well as updating Standard to latest. This did not introduce any formatting changes.

Minor version updates, and updating Standard to the latest major
version.

Updating Standard to latest does not introduce any formatting changes.
This would arguably save 420.5 MiB of npmjs.com bandwidth: the
installed size of noop2 (3289 bytes) * 134076 weekly downloads (as of
2023-06-02).
The signature has changed. file.parentDir was also removed (in
<paulmillr/readdirp@b2db33>), but it was
simply defined as the parent of file.path, and can be replaced as
such.

This also addresses deprecation warnings coming from
[email protected] -> snapdragon -> source-map-resolve. This is in fact
the main motivation for this change.

This might be considered a breaking change, as the minimum Node.js
version of [email protected] is 8.10.0.
@kisaragi-hiu kisaragi-hiu changed the title Update readdirp to remove indirect dependency on source-map-resolve, and other dependency improvements Update readdirp to address deprecation, and other dependency improvements Sep 8, 2023
@kisaragi-hiu kisaragi-hiu changed the title Update readdirp to address deprecation, and other dependency improvements Update readdirp to address deprecation, inline noop2, and update minor versions Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant