5 * Fix for regression when people were using numbers as names in source maps. See
10 * Fix "regression" of unsupported, implementation behavior that half the world
11 happens to have come to depend on. See #235.
13 * Fix regression involving function hoisting in SpiderMonkey. See #233.
17 * Large performance improvements to source-map serialization. See #228 and #229.
21 * Do not include unnecessary distribution files. See
22 commit ef7006f8d1647e0a83fdc60f04f5a7ca54886f86.
26 * Include browser distributions of the library in package.json's `files`. See
31 * Fix latent bugs in IndexedSourceMapConsumer.prototype._parseMappings. See
32 ff05274becc9e6e1295ed60f3ea090d31d843379.
36 * Node 0.8 is no longer supported.
38 * Use webpack instead of dryice for bundling.
40 * Big speedups serializing source maps. See pull request #203.
42 * Fix a bug with `SourceMapConsumer.prototype.sourceContentFor` and sources that
43 explicitly start with the source root. See issue #199.
47 * Fix an issue where using a `SourceMapGenerator` after having created a
48 `SourceMapConsumer` from it via `SourceMapConsumer.fromSourceMap` failed. See
51 * Fix an issue with where `SourceMapGenerator` would mistakenly consider
52 different mappings as duplicates of each other and avoid generating them. See
57 * A very large number of performance improvements, particularly when parsing
58 source maps. Collectively about 75% of time shaved off of the source map
61 * Fix a bug in `SourceMapConsumer.prototype.allGeneratedPositionsFor` and fuzzy
62 searching in the presence of a column option. See issue #177.
64 * Fix a bug with joining a source and its source root when the source is above
65 the root. See issue #182.
67 * Add the `SourceMapConsumer.prototype.hasContentsOfAllSources` method to
68 determine when all sources' contents are inlined into the source map. See
73 * Add an `.npmignore` file so that the benchmarks aren't pulled down by
74 dependent projects. Issue #169.
76 * Add an optional `column` argument to
77 `SourceMapConsumer.prototype.allGeneratedPositionsFor` and better handle lines
78 with no mappings. Issues #172 and #173.
82 * Fix accidentally defining a global variable. #170.
86 * The default direction for fuzzy searching was changed back to its original
89 * There is now a `bias` option you can supply to `SourceMapConsumer` to control
90 the fuzzy searching direction. See #167.
92 * About an 8% speed up in parsing source maps. See #159.
94 * Added a benchmark for parsing and generating source maps.
98 * Change the default direction that searching for positions fuzzes when there is
99 not an exact match. See #154.
101 * Support for environments using json2.js for JSON serialization. See #156.
105 * Support for consuming "indexed" source maps which do not have any remote
106 sections. See pull request #127. This introduces a minor backwards
107 incompatibility if you are monkey patching `SourceMapConsumer.prototype`
112 * Performance improvements for `SourceMapGenerator` and `SourceNode`. See issue
113 #148 for some discussion and issues #150, #151, and #152 for implementations.
117 * Fix an issue where `SourceNode`s from different versions of the source-map
118 library couldn't be used in conjunction with each other. See issue #142.
122 * Fix a bug with getting the source content of relative sources with a "./"
123 prefix. See issue #145 and [Bug 1090768](bugzil.la/1090768).
125 * Add the `SourceMapConsumer.prototype.computeColumnSpans` method to compute the
126 column span of each mapping.
128 * Add the `SourceMapConsumer.prototype.allGeneratedPositionsFor` method to find
129 all generated positions associated with a given original source and line.
133 * Performance improvements for parsing source maps in SourceMapConsumer.
137 * Fix a bug where setting a source's contents to null before any source content
138 had been set before threw a TypeError. See issue #131.
142 * Fix a bug where finding relative paths from an empty path were creating
143 absolute paths. See issue #129.
147 * Fix a bug where if the source root was an empty string, relative source paths
148 would turn into absolute source paths. Issue #124.
152 * Allow the `names` mapping property to be an empty string. Issue #121.
156 * A third optional parameter was added to `SourceNode.fromStringWithSourceMap`
157 to specify a path that relative sources in the second parameter should be
158 relative to. Issue #105.
160 * If no file property is given to a `SourceMapGenerator`, then the resulting
161 source map will no longer have a `null` file property. The property will
162 simply not exist. Issue #104.
164 * Fixed a bug where consecutive newlines were ignored in `SourceNode`s.
169 * Make `SourceNode` work with windows style ("\r\n") newlines. Issue #103.
171 * Fix bug involving source contents and the
172 `SourceMapGenerator.prototype.applySourceMap`. Issue #100.
176 * Fix some edge cases surrounding path joining and URL resolution.
178 * Add a third parameter for relative path to
179 `SourceMapGenerator.prototype.applySourceMap`.
181 * Fix issues with mappings and EOLs.
185 * Fixed a bug where SourceMapConsumer couldn't handle negative relative columns
188 * Fixed test runner to actually report number of failed tests as its process
191 * Fixed a typo when reporting bad mappings (issue 87).
195 * Delay parsing the mappings in SourceMapConsumer until queried for a source
198 * Support Sass source maps (which at the time of writing deviate from the spec
199 in small ways) in SourceMapConsumer.
203 * Do not join source root with a source, when the source is a data URI.
205 * Extend the test runner to allow running single specific test files at a time.
207 * Performance improvements in `SourceNode.prototype.walk` and
208 `SourceMapConsumer.prototype.eachMapping`.
210 * Source map browser builds will now work inside Workers.
212 * Better error messages when attempting to add an invalid mapping to a
213 `SourceMapGenerator`.
217 * Allow duplicate entries in the `names` and `sources` arrays of source maps
218 (usually from TypeScript) we are parsing. Fixes github issue 72.
222 * Skip duplicate mappings when creating source maps from SourceNode; github
227 * Don't throw an error when the `file` property is missing in SourceMapConsumer,
228 we don't use it anyway.
232 * Fix SourceNode.fromStringWithSourceMap for empty maps. Fixes github issue 70.
236 * Make compatible with browserify
240 * Fix issue with absolute paths and `file://` URIs. See
241 https://bugzilla.mozilla.org/show_bug.cgi?id=885597
245 * Fix issue with absolute paths and sourcesContent, github issue 64.
249 * Ignore duplicate mappings in SourceMapGenerator. Fixes github issue 21.
253 * Fixed handling of sources that start with a slash so that they are relative to
254 the source root's host.
258 * Fixed github issue #43: absolute URLs aren't joined with the source root
263 * Using Travis CI to run tests.
267 * Fixed a bug in the handling of sourceRoot.
271 * Added SourceNode.fromStringWithSourceMap.
275 * Added missing documentation.
277 * Fixed the generating of empty mappings in SourceNode.
281 * Added SourceMapGenerator.applySourceMap.
285 * The sourceRoot is now handled consistently.
289 * Added SourceMapGenerator.fromSourceMap.
293 * SourceNode now generates empty mappings too.
297 * Added name support to SourceNode.
301 * Added sourcesContent support to the customer and generator.