You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

344 lines
9.3 KiB

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