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