5 * Performance improvements for `SourceMapGenerator` and `SourceNode`. See issue
6 #148 for some discussion and issues #150, #151, and #152 for implementations.
10 * Fix an issue where `SourceNode`s from different versions of the source-map
11 library couldn't be used in conjunction with each other. See issue #142.
15 * Fix a bug with getting the source content of relative sources with a "./"
16 prefix. See issue #145 and [Bug 1090768](bugzil.la/1090768).
18 * Add the `SourceMapConsumer.prototype.computeColumnSpans` method to compute the
19 column span of each mapping.
21 * Add the `SourceMapConsumer.prototype.allGeneratedPositionsFor` method to find
22 all generated positions associated with a given original source and line.
26 * Performance improvements for parsing source maps in SourceMapConsumer.
30 * Fix a bug where setting a source's contents to null before any source content
31 had been set before threw a TypeError. See issue #131.
35 * Fix a bug where finding relative paths from an empty path were creating
36 absolute paths. See issue #129.
40 * Fix a bug where if the source root was an empty string, relative source paths
41 would turn into absolute source paths. Issue #124.
45 * Allow the `names` mapping property to be an empty string. Issue #121.
49 * A third optional parameter was added to `SourceNode.fromStringWithSourceMap`
50 to specify a path that relative sources in the second parameter should be
51 relative to. Issue #105.
53 * If no file property is given to a `SourceMapGenerator`, then the resulting
54 source map will no longer have a `null` file property. The property will
55 simply not exist. Issue #104.
57 * Fixed a bug where consecutive newlines were ignored in `SourceNode`s.
62 * Make `SourceNode` work with windows style ("\r\n") newlines. Issue #103.
64 * Fix bug involving source contents and the
65 `SourceMapGenerator.prototype.applySourceMap`. Issue #100.
69 * Fix some edge cases surrounding path joining and URL resolution.
71 * Add a third parameter for relative path to
72 `SourceMapGenerator.prototype.applySourceMap`.
74 * Fix issues with mappings and EOLs.
78 * Fixed a bug where SourceMapConsumer couldn't handle negative relative columns
81 * Fixed test runner to actually report number of failed tests as its process
84 * Fixed a typo when reporting bad mappings (issue 87).
88 * Delay parsing the mappings in SourceMapConsumer until queried for a source
91 * Support Sass source maps (which at the time of writing deviate from the spec
92 in small ways) in SourceMapConsumer.
96 * Do not join source root with a source, when the source is a data URI.
98 * Extend the test runner to allow running single specific test files at a time.
100 * Performance improvements in `SourceNode.prototype.walk` and
101 `SourceMapConsumer.prototype.eachMapping`.
103 * Source map browser builds will now work inside Workers.
105 * Better error messages when attempting to add an invalid mapping to a
106 `SourceMapGenerator`.
110 * Allow duplicate entries in the `names` and `sources` arrays of source maps
111 (usually from TypeScript) we are parsing. Fixes github issue 72.
115 * Skip duplicate mappings when creating source maps from SourceNode; github
120 * Don't throw an error when the `file` property is missing in SourceMapConsumer,
121 we don't use it anyway.
125 * Fix SourceNode.fromStringWithSourceMap for empty maps. Fixes github issue 70.
129 * Make compatible with browserify
133 * Fix issue with absolute paths and `file://` URIs. See
134 https://bugzilla.mozilla.org/show_bug.cgi?id=885597
138 * Fix issue with absolute paths and sourcesContent, github issue 64.
142 * Ignore duplicate mappings in SourceMapGenerator. Fixes github issue 21.
146 * Fixed handling of sources that start with a slash so that they are relative to
147 the source root's host.
151 * Fixed github issue #43: absolute URLs aren't joined with the source root
156 * Using Travis CI to run tests.
160 * Fixed a bug in the handling of sourceRoot.
164 * Added SourceNode.fromStringWithSourceMap.
168 * Added missing documentation.
170 * Fixed the generating of empty mappings in SourceNode.
174 * Added SourceMapGenerator.applySourceMap.
178 * The sourceRoot is now handled consistently.
182 * Added SourceMapGenerator.fromSourceMap.
186 * SourceNode now generates empty mappings too.
190 * Added name support to SourceNode.
194 * Added sourcesContent support to the customer and generator.