Skip to content

chore(deps): bump source-map-js from 1.2.1 to 1.2.4 - #42

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/source-map-js-1.2.4
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/source-map-js-1.2.4

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 21, 2026

Copy link
Copy Markdown

Bumps source-map-js from 1.2.1 to 1.2.4.

Release notes

Sourced from source-map-js's releases.

v1.2.4

Index source maps

  • Fix originalPositionFor returning nulls at the first column of a section (#99)

    Reported by @​trackoor in #82.

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

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

  • Support allGeneratedPositionsFor (#105)

    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.

  • Fix generatedPositionFor returning made-up positions (#115)

    It only searched the first section that listed the source, and when that section had no match, it returned the section offset added to null. It now searches all sections, so bias picks the closest mapping across them, and returns nulls when nothing matches.

  • Add computeColumnSpans (#116)

Other fixes

  • Fix generatedPositionFor, allGeneratedPositionsFor and eachMapping with ORIGINAL_ORDER throwing TypeError when a source has no mappings (#100)

    Reported by @​trackoor in #83. This is common in bundles, where a source can be listed after its code was tree-shaken away.

  • Fix allGeneratedPositionsFor returning positions that belong to a different source (#102)

  • Fix lookups throwing RangeError: Maximum call stack size exceeded on source maps with about 200,000 or more sources (#113)

  • Fix SourceNode#replaceRight throwing on a node without children (#114)

TypeScript

  • Fix type definitions that didn't match the runtime, without breaking changes (#117)

    • SourceMapConsumer accepts version as a number, null entries in sourcesContent, a missing names, index maps, JSON strings and the sourceMapUrl argument. Reported by @​linsk1998 in #43; a fix for sourcesContent was proposed by @​lahmatiy in #75.
    • SourceMapConsumer.fromSourceMap is declared, and allGeneratedPositionsFor takes an optional column and returns lastColumn.
    • The skipValidation and ignoreInvalidMapping options of SourceMapGenerator are typed.
    • SourceNode accepts nulls and chunk arrays in the constructor, nested arrays in add and prepend, and a RegExp or a replacer function in replaceRight.

    Return types that would need a breaking change, such as the nulls from originalPositionFor (#30), are documented in comments and left for the next major (#118).

Package

  • Set engines.node to >=6.0.0 (#97)

    The library already failed to load on older Node versions, so this only adds an install warning there.

... (truncated)

Changelog

Sourced from source-map-js's changelog.

1.2.4

Index source maps

  • Fix originalPositionFor returning nulls at the first column of a section (#99)

    Reported by @​trackoor in #82.

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

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

  • Support allGeneratedPositionsFor (#105)

    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.

  • Fix generatedPositionFor returning made-up positions (#115)

    It only searched the first section that listed the source, and when that section had no match, it returned the section offset added to null. It now searches all sections, so bias picks the closest mapping across them, and returns nulls when nothing matches.

  • Add computeColumnSpans (#116)

Other fixes

  • Fix generatedPositionFor, allGeneratedPositionsFor and eachMapping with ORIGINAL_ORDER throwing TypeError when a source has no mappings (#100)

    Reported by @​trackoor in #83. This is common in bundles, where a source can be listed after its code was tree-shaken away.

  • Fix allGeneratedPositionsFor returning positions that belong to a different source (#102)

  • Fix lookups throwing RangeError: Maximum call stack size exceeded on source maps with about 200,000 or more sources (#113)

  • Fix SourceNode#replaceRight throwing on a node without children (#114)

TypeScript

  • Fix type definitions that didn't match the runtime, without breaking changes (#117)

    • SourceMapConsumer accepts version as a number, null entries in sourcesContent, a missing names, index maps, JSON strings and the sourceMapUrl argument. Reported by @​linsk1998 in #43; a fix for sourcesContent was proposed by @​lahmatiy in #75.
    • SourceMapConsumer.fromSourceMap is declared, and allGeneratedPositionsFor takes an optional column and returns lastColumn.
    • The skipValidation and ignoreInvalidMapping options of SourceMapGenerator are typed.
    • SourceNode accepts nulls and chunk arrays in the constructor, nested arrays in add and prepend, and a RegExp or a replacer function in replaceRight.

    Return types that would need a breaking change, such as the nulls from originalPositionFor (#30), are documented in comments and left for the next major (#118).

Package

  • Set engines.node to >=6.0.0 (#97)

    The library already failed to load on older Node versions, so this only adds an install warning there.

... (truncated)

Commits
  • adace91 1.2.4
  • 6ab4ccf changelog for 1.2.4
  • 338d7ad Fix typings that don't match runtime, without breaking changes (#117)
  • 506b293 Add computeColumnSpans to IndexedSourceMapConsumer (#116)
  • 162f685 Search all sections at once in IndexedSourceMapConsumer#generatedPositionFor ...
  • 2a7214f Support allGeneratedPositionsFor on indexed source maps (#105)
  • 83a5133 Apply an index map section's column offset to its first line only (#104)
  • d7aa698 Fix SourceNode#replaceRight on a node without children (#114)
  • fe974a1 Concat original mappings in chunks so huge maps don't overflow the stack (#113)
  • 063a073 Keep allGeneratedPositionsFor results to the requested source (#102)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [source-map-js](https://github.com/7rulnik/source-map-js) from 1.2.1 to 1.2.4.
- [Release notes](https://github.com/7rulnik/source-map-js/releases)
- [Changelog](https://github.com/7rulnik/source-map-js/blob/main/CHANGELOG.md)
- [Commits](7rulnik/source-map-js@v1.2.1...v1.2.4)

---
updated-dependencies:
- dependency-name: source-map-js
  dependency-version: 1.2.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 21, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants