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.

100 lines
3.5 KiB

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