Packages

webpack-sources

3.7.1 · 18 Nov 2026MIT85.2M / weekRepositoryHomepagenpmAtom feed

Upgrading webpack-sources From 3.0.2 to 3.7.1

23 releases in betweennotes for 22

  1. 3.0.2yours
  2. 22 releases
  3. 3.7.1target
?
changes to make
0
advisories fixed
15+
new
19+
fixes

Counted from 22 of 23 release notes. Advisories are counted from the advisory database, in full.

Release by release

  1. 3.7.1

    18 Nov 20261 fix
    • Fixed

      Keep a RawSource created from a Buffer with convertToString intact after clearCache(). Its only copy of the content was dropped, so size() and updateHash() threw on sources webpack restored from the filesystem cache. Bytes that are not valid UTF-8 are now kept as they were.

  2. 3.7.0

    30 Oct 20261 new · 1 fix
    • New

      Add util.sourceMap.originalPositionFor to find the original position of a generated one.

    • Fixed

      Keep an empty string in sourcesContent instead of dropping it.

  3. 3.6.0

    26 Sep 20261 new · 1 fix
    • New

      Add map({ scopes: true }), emitting the source map scopes field from the bindings a source declares.

    • Fixed

      Create a cached source's map cache only once a map is asked for.

  4. 3.5.3

    24 Sep 20261 fix
    • Fixed

      Hand out a recorded hash update as buffers, so cached data carries no big string.

  5. 3.5.2

    24 Sep 20261 new
    • New

      Hash a string-backed source without materializing its buffer

  6. 3.5.1

    6 Jul 20262 new · 2 fixes
    • New

      Stream potential tokens in OriginalSource instead of materialising an array

    • New

      Use lookup table in splitIntoPotentialTokens for faster character classification

    • Fixed

      Reduce allocations and CPU in map() / sourceAndMap(): mappings are serialized into a reused byte buffer instead of per-mapping strings, ReplaceSource verifies original content through a line-offset index instead of splitting sources into line arrays, and ReplaceSource.streamChunks emits position-only chunks and returns the final source directly when finalSource is requested.

    • Fixed

      Skip sorting ReplaceSource replacements when they were added in order.

  7. 3.5.0

    22 May 20261 new
    • New

      Add clearCache(options?, visited?) method to Source that recursively releases cached data (CachedSource cached maps/buffers/strings, SourceMapSource parsed/serialized map caches, and dual-buffer caches in leaf sources). Lets consumers like webpack's SourceMapDevToolPlugin reclaim memory between chunks rather than accumulating per-task source map data across an entire build. Options: maps (default true) drops cached source maps; source (default true) drops cached source/buffer copies — pass false to keep source available for downstream plugins; parsedMap (default false) additionally drops the parsed object form on SourceMapSource instances when a buffer or string form survives (the combination { maps: true, source: false, parsedMap: true } matches the SourceMapDevToolPlugin call shape in webpack/webpack#20963). The optional visited WeakSet deduplicates the walk when the same child is reachable through multiple parents (e.g. modules shared across chunks).

  8. 3.4.1

    29 Apr 20261 new
    • New

      Implements more effective buffers and buffer for ReplaceSource and improve performance in other places.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.