Source-map-js is a Node-focused library that can generate and consume source maps, mapping between minified (generated) code locations and original source positions. It provides APIs like SourceMapConsumer and SourceMapGenerator to look up original positions from generated lines and columns, and to build or serialize source maps from mappings.
Project status
- The upstream repo appears actively maintained, with a very recent upstream push on 2026-05-10, even though the latest summarized tagged updates are from 2024 (v1.2.1, v1.2.0, v1.1.0).
- Apparent update cadence (based only on the summarized version history): updates occurred roughly every few months in early 2024 (v1.1.0 in 2024-03-17, v1.2.0 in 2024-03-19), and then less frequently after that (next summarized update, v1.2.1, on 2024-09-08).
AI summary generated Today
Recent updates
v1.2.1
9/8/2024Release v1.2.1 focuses on TypeScript declaration fixes and null-safety when consuming source maps. It also changes runtime behavior to avoid computing a source URL when the mapping source is null, and updates the public typing surface to better reflect nullable fields.
v1.2.0
3/19/2024v1.2.0 extends `SourceMapGenerator.fromSourceMap` to accept a second argument, which is forwarded to the underlying `SourceMapGenerator` constructor. Release notes and README both document this new optional parameter.
Featuresv1.1.0
3/17/2024This release introduces a new `ignoreInvalidMapping` option on `SourceMapGenerator` v1.1.0. When enabled, invalid mappings that would normally throw during validation are instead ignored and a warning may be logged.
Features