source-map-js breaking changes
source-map-js 1.3.0 (November 29, 2026) is its newest release with breaking changes, 4 of them. The first: Behavior changed originalPositionFor. Every breaking API change we have recorded in source-map-js on npm: 36 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 1.3.0, released November 29, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
source-map-js 1.3.0 breaking changes
- Behavior changed
originalPositionFor
A mapping with a negative original line or column now returns no original position instead of line 0 or a negative column. github.com - Behavior changed
sourceContentFor
A source in the map with no content now returns null; a source not in the map still throws. github.com - Behavior changed
SourceMapConsumer.file
SourceMapConsumer#file now returns the map's file on index source maps; a non-string file is read as null. github.com - Behavior changed
SourceMapGenerator.fromSourceMap
A generator created with SourceMapGenerator.fromSourceMap() writes the consumer's ignored sources to ignoreList in its output. github.com
source-map-js 1.2.4 breaking changes
- Behavior changed
generatedPositionFor
Previously it searched only the first section listing the source and could return a made-up position. It now searches all sections, picks the closest mapping by bias, and returns nulls when nothing matches, so code relying on the old... github.com - Signature changed
SourceMapConsumer.allGeneratedPositionsFor
Was allGeneratedPositionsFor(originalPosition: MappedPosition): Position[]; now allGeneratedPositionsFor(originalPosition: MappedPosition | {source: string; line: number; column?: number}): Array<Position & {lastColumn?: number | null}>. npmjs.com - Signature changed
SourceMapConsumer.constructor
Was constructor(rawSourceMap: RawSourceMap); now constructor(rawSourceMap: RawSourceMapInput | RawIndexMap | string, sourceMapUrl?: string). npmjs.com - Signature changed
SourceMapGenerator.constructor
Was constructor(startOfSourceMap?: StartOfSourceMap); now constructor(startOfSourceMap?: SourceMapGeneratorOptions). npmjs.com - Signature changed
SourceMapGenerator.fromSourceMap
Was static fromSourceMap(sourceMapConsumer: SourceMapConsumer, startOfSourceMap?: StartOfSourceMap): SourceMapGenerator; now static fromSourceMap(sourceMapConsumer: SourceMapConsumer, startOfSourceMap?: SourceMapGeneratorOptions)... npmjs.com - Signature changed
SourceNode.add
Was add(chunk: string): void; now add(chunk: SourceNodeChunk): void. npmjs.com - Signature changed
SourceNode.constructor
Was constructor(line: number, column: number, source: string) constructor(line: number, column: number, source: string, chunk?: string, name?: string); now constructor(line: number | null, column: number | null, source: string | null... npmjs.com - Signature changed
SourceNode.prepend
Was prepend(chunk: string): void; now prepend(chunk: SourceNodeChunk): void. npmjs.com - Signature changed
SourceNode.replaceRight
Was replaceRight(pattern: string, replacement: string): SourceNode; now replaceRight(pattern: string | RegExp, replacement: string | ((substring: string, ...args: any[]) => string)): SourceNode. npmjs.com - Signature changed
SourceNode.toStringWithSourceMap
Was toStringWithSourceMap(startOfSourceMap?: StartOfSourceMap): CodeWithSourceMap; now toStringWithSourceMap(startOfSourceMap?: SourceMapGeneratorOptions): CodeWithSourceMap. npmjs.com
source-map-js 1.2.1 breaking changes
- Removed
'source-map-js'
'source-map-js' was removed in source-map-js 1.2.1 npmjs.com - Removed
'source-map-js/lib/source-map-consumer'
'source-map-js/lib/source-map-consumer' was removed in source-map-js 1.2.1 npmjs.com - Removed
'source-map-js/lib/source-map-generator'
'source-map-js/lib/source-map-generator' was removed in source-map-js 1.2.1 npmjs.com - Removed
'source-map-js/lib/source-node'
'source-map-js/lib/source-node' was removed in source-map-js 1.2.1 npmjs.com - Renamed
'source-map-js'.CodeWithSourceMap
Use CodeWithSourceMap instead. npmjs.com - Renamed
'source-map-js'.FindPosition
Use FindPosition instead. npmjs.com - Renamed
'source-map-js'.LineRange
Use LineRange instead. npmjs.com - Renamed
'source-map-js'.MappedPosition
Use MappedPosition instead. npmjs.com - Renamed
'source-map-js'.Mapping
Use Mapping instead. npmjs.com - Renamed
'source-map-js'.MappingItem
Use MappingItem instead. npmjs.com
And 11 more in this version. Sign up to see every change
source-map-js 1.0.3 breaking changes
- Behavior changed
An empty string in sourceContents is now used as the source content rather than being treated as missing, so code that relied on the fallback may get different output. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.