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
- Maintenance status: Evidence of ongoing activity exists (upstream push on 2026-05-10), but the published updates appear to have paused after v1.2.1 (2024-09-08), which is over a year ago relative to today (2026-06-09).
- Update cadence: Notable clustering in early 2024 (v1.1.0 and v1.0.3/v1.0.2 on 2024-03-17), a later update in Sep 2024 (v1.2.1). After that, there are no summarized published updates despite a later upstream push in 2026.
AI summary generated
Recent updates
v1.2.1
Release 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
v1.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
This 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.
Featuresv1.0.3
Release v1.0.3 updates source content lookup behavior in the IndexedSourceMapConsumer. It ensures that source contents provided as an empty string are treated as valid non-null content and can be returned to callers.
v1.0.2
Release v1.0.2 only documents a TypeScript typings change, described as adding types for path imports. The actual diff shows a much broader rewrite of the TypeScript declaration file (source-map.d.ts), including restructuring how the module is declared and expanding the exported type surface.
Featuresv1.0.1
Release v1.0.1 primarily updates the package publish/build configuration by removing the cleanComments optimization. No library API or type/interface changes are shown in the diff.
v1.0.0
Version 1.0.0 introduces a breaking change to how bundled files are referenced in the package. It also includes internal improvements aimed at reducing memory usage per eachMapping, and reducing overall npm package size, with a fix to the package.json typings field.
Breaking