---
title: "source-map-js 1.3.0 Breaking Changes on npm | Since.dev"
description: "What each source-map-js release removed, renamed or changed: 36 breaking changes in 4 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/source-map-js
last_updated: 2026-12-04
---

# 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

Latest version `1.3.0`, released November 29, 2026. [Source repository](https://github.com/7rulnik/source-map-js)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [1.0.3](#v-1-0-3) to [1.3.0](#v-1-3-0): 35 breaking changes in 3 versions.

## source-map-js 1.3.0 breaking changes

source-map-js 1.3.0, released November 29, 2026: 4 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](https://github.com/7rulnik/source-map-js/releases/tag/v1.3.0)
- **Behavior changed** `sourceContentFor`  

A source in the map with no content now returns null; a source not in the map still throws. [github.com](https://github.com/7rulnik/source-map-js/releases/tag/v1.3.0)
- **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](https://github.com/7rulnik/source-map-js/releases/tag/v1.3.0)
- **Behavior changed** `SourceMapGenerator.fromSourceMap`  

A generator created with SourceMapGenerator.fromSourceMap() writes the consumer's ignored sources to ignoreList in its output. [github.com](https://github.com/7rulnik/source-map-js/releases/tag/v1.3.0)

## source-map-js 1.2.4 breaking changes

source-map-js 1.2.4, released November 19, 2026: 10 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](https://github.com/7rulnik/source-map-js/releases/tag/v1.2.4)
- **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](https://www.npmjs.com/package/source-map-js/v/1.2.4)
- **Signature changed** `SourceMapConsumer.constructor`  

Was constructor(rawSourceMap: RawSourceMap); now constructor(rawSourceMap: RawSourceMapInput | RawIndexMap | string, sourceMapUrl?: string). [npmjs.com](https://www.npmjs.com/package/source-map-js/v/1.2.4)
- **Signature changed** `SourceMapGenerator.constructor`  

Was constructor(startOfSourceMap?: StartOfSourceMap); now constructor(startOfSourceMap?: SourceMapGeneratorOptions). [npmjs.com](https://www.npmjs.com/package/source-map-js/v/1.2.4)
- **Signature changed** `SourceMapGenerator.fromSourceMap`  

Was static fromSourceMap(sourceMapConsumer: SourceMapConsumer, startOfSourceMap?: StartOfSourceMap): SourceMapGenerator; now static fromSourceMap(sourceMapConsumer: SourceMapConsumer, startOfSourceMap?: SourceMapGeneratorOptions)... [npmjs.com](https://www.npmjs.com/package/source-map-js/v/1.2.4)
- **Signature changed** `SourceNode.add`  

Was add(chunk: string): void; now add(chunk: SourceNodeChunk): void. [npmjs.com](https://www.npmjs.com/package/source-map-js/v/1.2.4)
- **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](https://www.npmjs.com/package/source-map-js/v/1.2.4)
- **Signature changed** `SourceNode.prepend`  

Was prepend(chunk: string): void; now prepend(chunk: SourceNodeChunk): void. [npmjs.com](https://www.npmjs.com/package/source-map-js/v/1.2.4)
- **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](https://www.npmjs.com/package/source-map-js/v/1.2.4)
- **Signature changed** `SourceNode.toStringWithSourceMap`  

Was toStringWithSourceMap(startOfSourceMap?: StartOfSourceMap): CodeWithSourceMap; now toStringWithSourceMap(startOfSourceMap?: SourceMapGeneratorOptions): CodeWithSourceMap. [npmjs.com](https://www.npmjs.com/package/source-map-js/v/1.2.4)

## source-map-js 1.2.1 breaking changes

source-map-js 1.2.1, released September 8, 2024: 21 breaking changes.

- **Removed** `'source-map-js'`  

'source-map-js' was removed in source-map-js 1.2.1 [npmjs.com](https://www.npmjs.com/package/source-map-js/v/1.2.1)
- **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](https://www.npmjs.com/package/source-map-js/v/1.2.1)
- **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](https://www.npmjs.com/package/source-map-js/v/1.2.1)
- **Removed** `'source-map-js/lib/source-node'`  

'source-map-js/lib/source-node' was removed in source-map-js 1.2.1 [npmjs.com](https://www.npmjs.com/package/source-map-js/v/1.2.1)
- **Renamed** `'source-map-js'.CodeWithSourceMap`  

Use CodeWithSourceMap instead. [npmjs.com](https://www.npmjs.com/package/source-map-js/v/1.2.1)
- **Renamed** `'source-map-js'.FindPosition`  

Use FindPosition instead. [npmjs.com](https://www.npmjs.com/package/source-map-js/v/1.2.1)
- **Renamed** `'source-map-js'.LineRange`  

Use LineRange instead. [npmjs.com](https://www.npmjs.com/package/source-map-js/v/1.2.1)
- **Renamed** `'source-map-js'.MappedPosition`  

Use MappedPosition instead. [npmjs.com](https://www.npmjs.com/package/source-map-js/v/1.2.1)
- **Renamed** `'source-map-js'.Mapping`  

Use Mapping instead. [npmjs.com](https://www.npmjs.com/package/source-map-js/v/1.2.1)
- **Renamed** `'source-map-js'.MappingItem`  

Use MappingItem instead. [npmjs.com](https://www.npmjs.com/package/source-map-js/v/1.2.1)

And 11 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## source-map-js 1.0.3 breaking changes

source-map-js 1.0.3, released March 17, 2024: 1 breaking change.

- **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](https://github.com/7rulnik/source-map-js/releases/tag/v1.0.3)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
