Change the default direction that searching for positions fuzzes when there is not an exact match. See #154.
Support for environments using json2.js for JSON serialization. See #156.
SourceMapConsumer.prototype
methods.SourceMapGenerator
and SourceNode
. See issue
#148 for some discussion and issues #150, #151, and #152 for implementations.SourceNode
s from different versions of the source-map
library couldn't be used in conjunction with each other. See issue #142.Fix a bug with getting the source content of relative sources with a "./" prefix. See issue #145 and Bug 1090768.
Add the SourceMapConsumer.prototype.computeColumnSpans
method to compute the
column span of each mapping.
Add the SourceMapConsumer.prototype.allGeneratedPositionsFor
method to find
all generated positions associated with a given original source and line.
names
mapping property to be an empty string. Issue #121.A third optional parameter was added to SourceNode.fromStringWithSourceMap
to specify a path that relative sources in the second parameter should be
relative to. Issue #105.
If no file property is given to a SourceMapGenerator
, then the resulting
source map will no longer have a null
file property. The property will
simply not exist. Issue #104.
Fixed a bug where consecutive newlines were ignored in SourceNode
s.
Issue #116.
Make SourceNode
work with windows style ("\r\n") newlines. Issue #103.
Fix bug involving source contents and the
SourceMapGenerator.prototype.applySourceMap
. Issue #100.
Fix some edge cases surrounding path joining and URL resolution.
Add a third parameter for relative path to
SourceMapGenerator.prototype.applySourceMap
.
Fix issues with mappings and EOLs.
Fixed a bug where SourceMapConsumer couldn't handle negative relative columns (issue 92).
Fixed test runner to actually report number of failed tests as its process exit code.
Fixed a typo when reporting bad mappings (issue 87).
Delay parsing the mappings in SourceMapConsumer until queried for a source location.
Support Sass source maps (which at the time of writing deviate from the spec in small ways) in SourceMapConsumer.
Do not join source root with a source, when the source is a data URI.
Extend the test runner to allow running single specific test files at a time.
Performance improvements in SourceNode.prototype.walk
and
SourceMapConsumer.prototype.eachMapping
.
Source map browser builds will now work inside Workers.
Better error messages when attempting to add an invalid mapping to a
SourceMapGenerator
.
names
and sources
arrays of source maps
(usually from TypeScript) we are parsing. Fixes github issue 72.file
property is missing in SourceMapConsumer,
we don't use it anyway.file://
URIs. See
https://bugzilla.mozilla.org/show_bug.cgi?id=885597Added missing documentation.
Fixed the generating of empty mappings in SourceNode.