Packages

source-map-js

1.2.4 · 19 Nov 2026BSD-3-Clause312.6M / weekRepositorynpmAtom feed

Your version

11 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 1.x · latest line
  2. 1.2.4

    19 Nov 2026
    • Fix originalPositionFor returning nulls at the first column of a section

      Reported

    • Fix a section's column offset being applied to its second line instead of its first

      This affected sections with both a line and a column offset, in eachMapping, generatedPositionFor, SourceMapGenerator.fromSourceMap and SourceNode.fromStringWithSourceMap.

    • Support allGeneratedPositionsFor

      It threw TypeError: this._findSourceIndex is not a function. It now returns the same results as for the equivalent map without sections, with positions from every section that has the source. generatedPositionFor on nested index maps threw the same error and works now too.

  3. 1.2.3

    18 Nov 2026
    • Fix CSP violation reported in browsers that don't permit unsafe-eval

      Reported by @Viktor-Ivliev in #81. The library no longer uses new Function at all. As a side effect, sorting mappings is ~40% faster on Node 22, 24 and 26: consuming source maps is up to 40% faster, and SourceMapConsumer.fromSourceMap 20–40% faster.

  4. 1.2.2

    30 Sep 2026
    • Security

      Fix denial of service from malicious indexed source maps (CVE-2026-93749)

      Reported

    • Fix crash when executing in browser with CSP script-src that don't permit unsafe-eval

  5. 1.2.1

    8 Sep 2024
    • Fix TS2306 “not a module” errors in type definitions

    • Ensure null source is respected

    • Improve ts declarations to be null-safe

  6. 1.2.0

    19 Mar 2024
    • Add generator options to fromSourceMap

  7. 1.1.0

    17 Mar 2024
    • Do not throw an error since broken prev map is popular issue #20

    • Add ignoreInvalidMapping option

  8. 1.0.3

    17 Mar 2024
    • Use sourceContents when non-null, even if it's an empty string

  9. 1.0.2

    18 Jan 2022
    • Add types for path imports

  10. 1.0.1

    8 Nov 2021
    • Remove cleanComments optimization

  11. 1.0.0

    4 Nov 2021
    • Fix package.json#typings field

    • Reduce memory usage of eachMapping w/ loop

    • Reduce npm package size

  12. 0.6.x
  13. 0.6.2

    7 Feb 2021

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.