[6a3a178] | 1 | # Change Log
|
---|
| 2 |
|
---|
| 3 | ## 0.7.3
|
---|
| 4 |
|
---|
| 5 | * Fix a bug where nested uses of `SourceMapConsumer` could result in a
|
---|
| 6 | `TypeError`. [#338](https://github.com/mozilla/source-map/issues/338)
|
---|
| 7 | [#330](https://github.com/mozilla/source-map/issues/330)
|
---|
| 8 | [#319](https://github.com/mozilla/source-map/issues/319)
|
---|
| 9 |
|
---|
| 10 | ## 0.7.2
|
---|
| 11 |
|
---|
| 12 | * Another 3x speed up in `SourceMapConsumer`. Read about it here:
|
---|
| 13 | http://fitzgeraldnick.com/2018/02/26/speed-without-wizardry.html
|
---|
| 14 |
|
---|
| 15 | ## 0.7.1
|
---|
| 16 |
|
---|
| 17 | * Updated TypeScript typings. [#321][]
|
---|
| 18 |
|
---|
| 19 | [#321]: https://github.com/mozilla/source-map/pull/321
|
---|
| 20 |
|
---|
| 21 | ## 0.7.0
|
---|
| 22 |
|
---|
| 23 | * `SourceMapConsumer` now uses WebAssembly, and is **much** faster! Read about
|
---|
| 24 | it here:
|
---|
| 25 | https://hacks.mozilla.org/2018/01/oxidizing-source-maps-with-rust-and-webassembly/
|
---|
| 26 |
|
---|
| 27 | * **Breaking change:** `new SourceMapConsumer` now returns a `Promise` object
|
---|
| 28 | that resolves to the newly constructed `SourceMapConsumer` instance, rather
|
---|
| 29 | than returning the new instance immediately.
|
---|
| 30 |
|
---|
| 31 | * **Breaking change:** when you're done using a `SourceMapConsumer` instance,
|
---|
| 32 | you must call `SourceMapConsumer.prototype.destroy` on it. After calling
|
---|
| 33 | `destroy`, you must not use the instance again.
|
---|
| 34 |
|
---|
| 35 | * **Breaking change:** `SourceMapConsumer` used to be able to handle lines,
|
---|
| 36 | columns numbers and source and name indices up to `2^53 - 1` (aka
|
---|
| 37 | `Number.MAX_SAFE_INTEGER`). It can now only handle them up to `2^32 - 1`.
|
---|
| 38 |
|
---|
| 39 | * **Breaking change:** The `source-map` library now uses modern ECMAScript-isms:
|
---|
| 40 | `let`, arrow functions, `async`, etc. Use Babel to compile it down to
|
---|
| 41 | ECMAScript 5 if you need to support older JavaScript environments.
|
---|
| 42 |
|
---|
| 43 | * **Breaking change:** Drop support for Node < 8. If you want to support older
|
---|
| 44 | versions of node, please use v0.6 or below.
|
---|
| 45 |
|
---|
| 46 | ## 0.5.6
|
---|
| 47 |
|
---|
| 48 | * Fix for regression when people were using numbers as names in source maps. See
|
---|
| 49 | #236.
|
---|
| 50 |
|
---|
| 51 | ## 0.5.5
|
---|
| 52 |
|
---|
| 53 | * Fix "regression" of unsupported, implementation behavior that half the world
|
---|
| 54 | happens to have come to depend on. See #235.
|
---|
| 55 |
|
---|
| 56 | * Fix regression involving function hoisting in SpiderMonkey. See #233.
|
---|
| 57 |
|
---|
| 58 | ## 0.5.4
|
---|
| 59 |
|
---|
| 60 | * Large performance improvements to source-map serialization. See #228 and #229.
|
---|
| 61 |
|
---|
| 62 | ## 0.5.3
|
---|
| 63 |
|
---|
| 64 | * Do not include unnecessary distribution files. See
|
---|
| 65 | commit ef7006f8d1647e0a83fdc60f04f5a7ca54886f86.
|
---|
| 66 |
|
---|
| 67 | ## 0.5.2
|
---|
| 68 |
|
---|
| 69 | * Include browser distributions of the library in package.json's `files`. See
|
---|
| 70 | issue #212.
|
---|
| 71 |
|
---|
| 72 | ## 0.5.1
|
---|
| 73 |
|
---|
| 74 | * Fix latent bugs in IndexedSourceMapConsumer.prototype._parseMappings. See
|
---|
| 75 | ff05274becc9e6e1295ed60f3ea090d31d843379.
|
---|
| 76 |
|
---|
| 77 | ## 0.5.0
|
---|
| 78 |
|
---|
| 79 | * Node 0.8 is no longer supported.
|
---|
| 80 |
|
---|
| 81 | * Use webpack instead of dryice for bundling.
|
---|
| 82 |
|
---|
| 83 | * Big speedups serializing source maps. See pull request #203.
|
---|
| 84 |
|
---|
| 85 | * Fix a bug with `SourceMapConsumer.prototype.sourceContentFor` and sources that
|
---|
| 86 | explicitly start with the source root. See issue #199.
|
---|
| 87 |
|
---|
| 88 | ## 0.4.4
|
---|
| 89 |
|
---|
| 90 | * Fix an issue where using a `SourceMapGenerator` after having created a
|
---|
| 91 | `SourceMapConsumer` from it via `SourceMapConsumer.fromSourceMap` failed. See
|
---|
| 92 | issue #191.
|
---|
| 93 |
|
---|
| 94 | * Fix an issue with where `SourceMapGenerator` would mistakenly consider
|
---|
| 95 | different mappings as duplicates of each other and avoid generating them. See
|
---|
| 96 | issue #192.
|
---|
| 97 |
|
---|
| 98 | ## 0.4.3
|
---|
| 99 |
|
---|
| 100 | * A very large number of performance improvements, particularly when parsing
|
---|
| 101 | source maps. Collectively about 75% of time shaved off of the source map
|
---|
| 102 | parsing benchmark!
|
---|
| 103 |
|
---|
| 104 | * Fix a bug in `SourceMapConsumer.prototype.allGeneratedPositionsFor` and fuzzy
|
---|
| 105 | searching in the presence of a column option. See issue #177.
|
---|
| 106 |
|
---|
| 107 | * Fix a bug with joining a source and its source root when the source is above
|
---|
| 108 | the root. See issue #182.
|
---|
| 109 |
|
---|
| 110 | * Add the `SourceMapConsumer.prototype.hasContentsOfAllSources` method to
|
---|
| 111 | determine when all sources' contents are inlined into the source map. See
|
---|
| 112 | issue #190.
|
---|
| 113 |
|
---|
| 114 | ## 0.4.2
|
---|
| 115 |
|
---|
| 116 | * Add an `.npmignore` file so that the benchmarks aren't pulled down by
|
---|
| 117 | dependent projects. Issue #169.
|
---|
| 118 |
|
---|
| 119 | * Add an optional `column` argument to
|
---|
| 120 | `SourceMapConsumer.prototype.allGeneratedPositionsFor` and better handle lines
|
---|
| 121 | with no mappings. Issues #172 and #173.
|
---|
| 122 |
|
---|
| 123 | ## 0.4.1
|
---|
| 124 |
|
---|
| 125 | * Fix accidentally defining a global variable. #170.
|
---|
| 126 |
|
---|
| 127 | ## 0.4.0
|
---|
| 128 |
|
---|
| 129 | * The default direction for fuzzy searching was changed back to its original
|
---|
| 130 | direction. See #164.
|
---|
| 131 |
|
---|
| 132 | * There is now a `bias` option you can supply to `SourceMapConsumer` to control
|
---|
| 133 | the fuzzy searching direction. See #167.
|
---|
| 134 |
|
---|
| 135 | * About an 8% speed up in parsing source maps. See #159.
|
---|
| 136 |
|
---|
| 137 | * Added a benchmark for parsing and generating source maps.
|
---|
| 138 |
|
---|
| 139 | ## 0.3.0
|
---|
| 140 |
|
---|
| 141 | * Change the default direction that searching for positions fuzzes when there is
|
---|
| 142 | not an exact match. See #154.
|
---|
| 143 |
|
---|
| 144 | * Support for environments using json2.js for JSON serialization. See #156.
|
---|
| 145 |
|
---|
| 146 | ## 0.2.0
|
---|
| 147 |
|
---|
| 148 | * Support for consuming "indexed" source maps which do not have any remote
|
---|
| 149 | sections. See pull request #127. This introduces a minor backwards
|
---|
| 150 | incompatibility if you are monkey patching `SourceMapConsumer.prototype`
|
---|
| 151 | methods.
|
---|
| 152 |
|
---|
| 153 | ## 0.1.43
|
---|
| 154 |
|
---|
| 155 | * Performance improvements for `SourceMapGenerator` and `SourceNode`. See issue
|
---|
| 156 | #148 for some discussion and issues #150, #151, and #152 for implementations.
|
---|
| 157 |
|
---|
| 158 | ## 0.1.42
|
---|
| 159 |
|
---|
| 160 | * Fix an issue where `SourceNode`s from different versions of the source-map
|
---|
| 161 | library couldn't be used in conjunction with each other. See issue #142.
|
---|
| 162 |
|
---|
| 163 | ## 0.1.41
|
---|
| 164 |
|
---|
| 165 | * Fix a bug with getting the source content of relative sources with a "./"
|
---|
| 166 | prefix. See issue #145 and [Bug 1090768](bugzil.la/1090768).
|
---|
| 167 |
|
---|
| 168 | * Add the `SourceMapConsumer.prototype.computeColumnSpans` method to compute the
|
---|
| 169 | column span of each mapping.
|
---|
| 170 |
|
---|
| 171 | * Add the `SourceMapConsumer.prototype.allGeneratedPositionsFor` method to find
|
---|
| 172 | all generated positions associated with a given original source and line.
|
---|
| 173 |
|
---|
| 174 | ## 0.1.40
|
---|
| 175 |
|
---|
| 176 | * Performance improvements for parsing source maps in SourceMapConsumer.
|
---|
| 177 |
|
---|
| 178 | ## 0.1.39
|
---|
| 179 |
|
---|
| 180 | * Fix a bug where setting a source's contents to null before any source content
|
---|
| 181 | had been set before threw a TypeError. See issue #131.
|
---|
| 182 |
|
---|
| 183 | ## 0.1.38
|
---|
| 184 |
|
---|
| 185 | * Fix a bug where finding relative paths from an empty path were creating
|
---|
| 186 | absolute paths. See issue #129.
|
---|
| 187 |
|
---|
| 188 | ## 0.1.37
|
---|
| 189 |
|
---|
| 190 | * Fix a bug where if the source root was an empty string, relative source paths
|
---|
| 191 | would turn into absolute source paths. Issue #124.
|
---|
| 192 |
|
---|
| 193 | ## 0.1.36
|
---|
| 194 |
|
---|
| 195 | * Allow the `names` mapping property to be an empty string. Issue #121.
|
---|
| 196 |
|
---|
| 197 | ## 0.1.35
|
---|
| 198 |
|
---|
| 199 | * A third optional parameter was added to `SourceNode.fromStringWithSourceMap`
|
---|
| 200 | to specify a path that relative sources in the second parameter should be
|
---|
| 201 | relative to. Issue #105.
|
---|
| 202 |
|
---|
| 203 | * If no file property is given to a `SourceMapGenerator`, then the resulting
|
---|
| 204 | source map will no longer have a `null` file property. The property will
|
---|
| 205 | simply not exist. Issue #104.
|
---|
| 206 |
|
---|
| 207 | * Fixed a bug where consecutive newlines were ignored in `SourceNode`s.
|
---|
| 208 | Issue #116.
|
---|
| 209 |
|
---|
| 210 | ## 0.1.34
|
---|
| 211 |
|
---|
| 212 | * Make `SourceNode` work with windows style ("\r\n") newlines. Issue #103.
|
---|
| 213 |
|
---|
| 214 | * Fix bug involving source contents and the
|
---|
| 215 | `SourceMapGenerator.prototype.applySourceMap`. Issue #100.
|
---|
| 216 |
|
---|
| 217 | ## 0.1.33
|
---|
| 218 |
|
---|
| 219 | * Fix some edge cases surrounding path joining and URL resolution.
|
---|
| 220 |
|
---|
| 221 | * Add a third parameter for relative path to
|
---|
| 222 | `SourceMapGenerator.prototype.applySourceMap`.
|
---|
| 223 |
|
---|
| 224 | * Fix issues with mappings and EOLs.
|
---|
| 225 |
|
---|
| 226 | ## 0.1.32
|
---|
| 227 |
|
---|
| 228 | * Fixed a bug where SourceMapConsumer couldn't handle negative relative columns
|
---|
| 229 | (issue 92).
|
---|
| 230 |
|
---|
| 231 | * Fixed test runner to actually report number of failed tests as its process
|
---|
| 232 | exit code.
|
---|
| 233 |
|
---|
| 234 | * Fixed a typo when reporting bad mappings (issue 87).
|
---|
| 235 |
|
---|
| 236 | ## 0.1.31
|
---|
| 237 |
|
---|
| 238 | * Delay parsing the mappings in SourceMapConsumer until queried for a source
|
---|
| 239 | location.
|
---|
| 240 |
|
---|
| 241 | * Support Sass source maps (which at the time of writing deviate from the spec
|
---|
| 242 | in small ways) in SourceMapConsumer.
|
---|
| 243 |
|
---|
| 244 | ## 0.1.30
|
---|
| 245 |
|
---|
| 246 | * Do not join source root with a source, when the source is a data URI.
|
---|
| 247 |
|
---|
| 248 | * Extend the test runner to allow running single specific test files at a time.
|
---|
| 249 |
|
---|
| 250 | * Performance improvements in `SourceNode.prototype.walk` and
|
---|
| 251 | `SourceMapConsumer.prototype.eachMapping`.
|
---|
| 252 |
|
---|
| 253 | * Source map browser builds will now work inside Workers.
|
---|
| 254 |
|
---|
| 255 | * Better error messages when attempting to add an invalid mapping to a
|
---|
| 256 | `SourceMapGenerator`.
|
---|
| 257 |
|
---|
| 258 | ## 0.1.29
|
---|
| 259 |
|
---|
| 260 | * Allow duplicate entries in the `names` and `sources` arrays of source maps
|
---|
| 261 | (usually from TypeScript) we are parsing. Fixes github issue 72.
|
---|
| 262 |
|
---|
| 263 | ## 0.1.28
|
---|
| 264 |
|
---|
| 265 | * Skip duplicate mappings when creating source maps from SourceNode; github
|
---|
| 266 | issue 75.
|
---|
| 267 |
|
---|
| 268 | ## 0.1.27
|
---|
| 269 |
|
---|
| 270 | * Don't throw an error when the `file` property is missing in SourceMapConsumer,
|
---|
| 271 | we don't use it anyway.
|
---|
| 272 |
|
---|
| 273 | ## 0.1.26
|
---|
| 274 |
|
---|
| 275 | * Fix SourceNode.fromStringWithSourceMap for empty maps. Fixes github issue 70.
|
---|
| 276 |
|
---|
| 277 | ## 0.1.25
|
---|
| 278 |
|
---|
| 279 | * Make compatible with browserify
|
---|
| 280 |
|
---|
| 281 | ## 0.1.24
|
---|
| 282 |
|
---|
| 283 | * Fix issue with absolute paths and `file://` URIs. See
|
---|
| 284 | https://bugzilla.mozilla.org/show_bug.cgi?id=885597
|
---|
| 285 |
|
---|
| 286 | ## 0.1.23
|
---|
| 287 |
|
---|
| 288 | * Fix issue with absolute paths and sourcesContent, github issue 64.
|
---|
| 289 |
|
---|
| 290 | ## 0.1.22
|
---|
| 291 |
|
---|
| 292 | * Ignore duplicate mappings in SourceMapGenerator. Fixes github issue 21.
|
---|
| 293 |
|
---|
| 294 | ## 0.1.21
|
---|
| 295 |
|
---|
| 296 | * Fixed handling of sources that start with a slash so that they are relative to
|
---|
| 297 | the source root's host.
|
---|
| 298 |
|
---|
| 299 | ## 0.1.20
|
---|
| 300 |
|
---|
| 301 | * Fixed github issue #43: absolute URLs aren't joined with the source root
|
---|
| 302 | anymore.
|
---|
| 303 |
|
---|
| 304 | ## 0.1.19
|
---|
| 305 |
|
---|
| 306 | * Using Travis CI to run tests.
|
---|
| 307 |
|
---|
| 308 | ## 0.1.18
|
---|
| 309 |
|
---|
| 310 | * Fixed a bug in the handling of sourceRoot.
|
---|
| 311 |
|
---|
| 312 | ## 0.1.17
|
---|
| 313 |
|
---|
| 314 | * Added SourceNode.fromStringWithSourceMap.
|
---|
| 315 |
|
---|
| 316 | ## 0.1.16
|
---|
| 317 |
|
---|
| 318 | * Added missing documentation.
|
---|
| 319 |
|
---|
| 320 | * Fixed the generating of empty mappings in SourceNode.
|
---|
| 321 |
|
---|
| 322 | ## 0.1.15
|
---|
| 323 |
|
---|
| 324 | * Added SourceMapGenerator.applySourceMap.
|
---|
| 325 |
|
---|
| 326 | ## 0.1.14
|
---|
| 327 |
|
---|
| 328 | * The sourceRoot is now handled consistently.
|
---|
| 329 |
|
---|
| 330 | ## 0.1.13
|
---|
| 331 |
|
---|
| 332 | * Added SourceMapGenerator.fromSourceMap.
|
---|
| 333 |
|
---|
| 334 | ## 0.1.12
|
---|
| 335 |
|
---|
| 336 | * SourceNode now generates empty mappings too.
|
---|
| 337 |
|
---|
| 338 | ## 0.1.11
|
---|
| 339 |
|
---|
| 340 | * Added name support to SourceNode.
|
---|
| 341 |
|
---|
| 342 | ## 0.1.10
|
---|
| 343 |
|
---|
| 344 | * Added sourcesContent support to the customer and generator.
|
---|