Version 1.0.2
@stackline/trace-mapping
Trace the original position through a source map
Independent maintenance of @jridgewell/trace-mapping 0.3.31. Original authors and licenses are retained.
Installation
# Preserve existing imports with an npm alias
npm install @jridgewell/trace-mapping@npm:@stackline/trace-mapping@1.0.2
# Or use the scoped package name in your imports
npm install @stackline/trace-mapping@1.0.2Node.js: See compatibility notes. Read the compatibility and maintenance notes before migrating.
Usage and API
@stackline/trace-mapping
Trace the original position through a source map.
Documentation | npm | Issues | Repository
Current package version: 1.0.2
Why this package?
@stackline/trace-mapping is the Stackline-maintained distribution of @jridgewell/trace-mapping@0.3.31. It is an independent continuation of @jridgewell/trace-mapping; original authors and licenses remain credited below.
Compatibility
| Item | Value |
|---|---|
| Package | @stackline/trace-mapping@1.0.2 |
| API target | @jridgewell/trace-mapping@0.3.31 |
| Supported Node.js | See supported framework requirements |
| License | MIT |
| Main entry | dist/trace-mapping.umd.js |
| Module entry | dist/trace-mapping.mjs |
| Types | types/trace-mapping.d.cts |
| Runtime dependencies | @jridgewell/resolve-uri, @jridgewell/sourcemap-codec |
Installation
npm install @stackline/trace-mapping
Preserve existing imports and plugin resolution with an npm alias:
npm install @jridgewell/trace-mapping@npm:@stackline/trace-mapping
Usage and API reference
Monorepo for various sourcemap libraries.
Credits and original authors
- Original project: @jridgewell/trace-mapping.
- Justin Ridgewell.
- Copyright 2024 Justin Ridgewell justin@ridgewell.name.
- Stackline maintenance: Alexandro Paixao Marques and Stackline contributors.
Original copyright, license notices and contributor acknowledgements remain part of this distribution. Stackline maintenance does not replace authorship of the original work.
License
MIT. See the license and notice files in the repository.
Community and Links
Use this repository's issue tracker for reproducible bugs and feature requests. Join r/Stackline for examples, usage questions and release discussions.
Upstream issues and maintenance review
Upstream origin and triage
- Original package:
@jridgewell/trace-mapping@0.3.31 - Repository: https://github.com/jridgewell/sourcemaps
- Source commit: https://github.com/jridgewell/sourcemaps/commit/74fc8e11d30641b82e3ca3532cd89477671afeab
- Source directory:
packages/trace-mapping - npm tarball: https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz
- SHA512 integrity:
sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw== - npm last-release age selects maintenance scope; it does not imply no ongoing source development.
Reviewed issues
Primary-source snapshot: 2026-09-29T00:21:55.798319+00:00. Most recently updated 100 open and 30 closed issue/PR entries; PRs removed. This is triage evidence, not a claim of exhaustive review.
Return null for a negative traceSegment line, matching the existing out-of-range behavior (upstream issue 54).
- 39: Type error in
remapping.d.cts - 55: discussion: esm-only
- 54: traceSegment() in trace-mapping doesn't guard against negative line, crashing remapping() when a source map segment has sourceLine: -1
- 53: Stop using
append()in FlattenMap - 38: Deprecate
@ampproject/remapping
The structured snapshot in .stackline/issue-triage.json also records recently closed reports. Issues for unrelated packages in shared monorepositories were qualified as outside this fork’s runtime scope. No maintainer was contacted.
Release files and references
Package bytes, npm provenance and the immutable GitHub release were verified for this version. Security checks describe the reviewed release; documented compatibility risks and upstream reports are not blanket claims of resolution.