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

Upgrade webpack-sources to version 2.3.1 #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

depfu[bot]
Copy link

@depfu depfu bot commented Jul 21, 2021

Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ webpack-sources (1.4.3 → 2.3.1) · Repo

Release Notes

2.3.1

Performance

  • fix type bug in CachedSource which lead to bad hashing performance

2.3.0

Performance

  • add caching to node and listMap

2.2.0

Performance

  • add caching to updateHash

2.1.1

Performance

  • fix a performance bug when processing minimized files with SourceMaps

2.1.0

Bugfixes

  • Some Sources use to return an empty SourceMap instead of null as map
    • They correctly return null instead now

2.0.1

Bugfixes

  • fix crash with source "." is not in SourceMap

2.0.0

API

Additions

  • add buffer method to Source
  • add SizeOnlySource
  • expose everything needed for serialization as public methods
  • add CompatSource
  • add support for a lazy function as original Source for CachedSource

Removals

  • remove node and listNode methods from public API
  • remove LineToLineMappedSource

Bugfixes

  • ConcatSource falls back to sourceAndMap when node() or listMap() is not available
  • PrefixSource do no longer insert prefix in the middle of the line in some cases
  • fix updateHash for SourceMapSource
  • fix crash when Source in CachedSource returns null map

Performance:

  • avoid unnecessary sorting in ReplaceSource
  • make exports lazy
  • cache utf-8 conversion
  • allow keeping Buffer instead of string and only convert it lazily
  • add optimization step to ConcatSource which converts strings to RawSources (which cache)
  • cache Buffers instead of string in CachedSource cache for map()

Changes

  • increase minimum node.js version to 10.13

Other

  • add Source types to hash

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 64 commits:


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)
Go to the Depfu Dashboard to see the state of your dependencies and to customize how Depfu works.

@depfu depfu bot added the depfu label Jul 21, 2021
@vercel
Copy link

vercel bot commented Jul 21, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/linbudu599/nx-plugins/GJPWz64xvdmdEzNuFN2qWvSqy3JE
✅ Preview: https://nx-plugins-git-depfu-updatenpmwebpack-sources-231-linbudu599.vercel.app

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