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.

changelog.md 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. ### Version 0.5.3 (2019-12-28) ###
  2. - Fixed: base64 encoded source maps now correctly decodes as utf-8. Previously,
  3. non-ASCII characters could end up garbled. Thanks to ZHAO Jinxiang
  4. (@xiaoxiangmoe)! (Note: This fix does not work in old evironments not
  5. supporting both `TextDecoder` and `Uint8Array`.)
  6. - Improved: Reduced size of the npm package.
  7. ### Version 0.5.2 (2018-05-10) ###
  8. - Improved: Updated the version range of `atob` to disallow depending on `2.0.3`
  9. which as a [security
  10. vulnerability](https://snyk.io/test/npm/atob/2.0.3?severity=high&severity=medium&severity=low).
  11. ### Version 0.5.1 (2017-10-21) ###
  12. - Fixed: URLs are now decoded before being passed to `read` in Node.js. This
  13. allows reading files with spaces, for example.
  14. - Fixed: Missing or empty `sources` fields (such as `sources: []`) in source
  15. maps are now handled. Previously, such source maps would cause crashes or
  16. callbacks never bing called. Now, an empty result is produced:
  17. ```js
  18. sourcesResolved: [],
  19. sourcesContent: []
  20. ```
  21. ### Version 0.5.0 (2016-02-28) ###
  22. - Improved: Errors now have a `sourceMapData` property that contain as much as
  23. possible of the intended result of the function up until the error occurred.
  24. - Changed: `resolveSources` and `resolve`, as well as their `*Sync`
  25. alternatives, no longer fail when one single source fails to be fetched.
  26. Instead, the `sourcesContent` array in the result object will contain error
  27. objects for all failed sources, and strings otherwise. (Backwards-incompatible
  28. change.)
  29. ### Version 0.4.0 (2015-08-29) ###
  30. - Removed: The `ignoreSourceRoot` option of `resolveSources`. It has been
  31. replaced with `sourceRoot: false`. (Backwards-incompatible change.)
  32. - Added: The `sourceRoot` option of `resolveSources`. It not only allows to
  33. ignore the source root, it also lets you replace it.
  34. - Added: The `parseMapToJSON` method.
  35. - Added: The `resolve` method now accepts `null, mapUrl, ...` as arguments, in
  36. addition to the existing signature, which will read `mapUrl` instead of
  37. looking for a sourceMappingURL in the code.
  38. ### Version 0.3.1 (2014-08-16) ###
  39. - Improved: Updated the source-map-url dependency to 0.3.0.
  40. ### Version 0.3.0 (2014-07-02) ###
  41. - Removed: Argument checking. It’s not worth it. (Possibly
  42. backwards-incompatible change.)
  43. - Added: The `sourceRoot` property of source maps may now be ignored, which can
  44. be useful when resolving sources outside of the browser.
  45. - Added: It is now possible to resolve only the URLs of sources, without
  46. reading them.
  47. ### Version 0.2.0 (2014-06-22) ###
  48. - Changed: The result of `resolveSources` is now an object, not an array. The
  49. old result array is available in the `sourcesContent` property.
  50. (Backwards-incompatible change.)
  51. - Changed: `sources` has been renamed to `sourcesContent` in the result object
  52. of `resolve`. (Backwards-incompatible change.)
  53. - Added: `resolveSources` now also returns all sources fully resolved, in the
  54. `sourcesResolved` property.
  55. - Added: The result object of `resolve` now contains the `sourcesResolved`
  56. property from `resolveSources`.
  57. ### Version 0.1.4 (2014-06-16) ###
  58. - Fixed: `sourcesContent` was mis-typed as `sourceContents`, which meant that
  59. the `sourcesContent` property of source maps never was used when resolving
  60. sources.
  61. ### Version 0.1.3 (2014-05-06) ###
  62. - Only documentation and meta-data changes.
  63. ### Version 0.1.2 (2014-03-23) ###
  64. - Improved: Source maps starting with `)]}'` are now parsed correctly. The spec
  65. allows source maps to start with that character sequence to prevent XSSI
  66. attacks.
  67. ### Version 0.1.1 (2014-03-06) ###
  68. - Improved: Make sourceRoot resolving more sensible.
  69. A source root such as `/scripts/subdir` is now treated as `/scripts/subdir/`
  70. — that is, as a directory called “subdir”, not a file called “subdir”.
  71. Pointing to a file as source root does not makes sense.
  72. ### Version 0.1.0 (2014-03-03) ###
  73. - Initial release.