[6a3a178] | 1 | ### Version 0.4.1 (2021-02-01) ###
|
---|
| 2 |
|
---|
| 3 | - Improved: The package is now about 50% smaller, by excluding unnecessary
|
---|
| 4 | files. Thanks to Piotr Kuczynski (@pkuczynski)!
|
---|
| 5 |
|
---|
| 6 | ### Version 0.4.0 (2015-11-12) ###
|
---|
| 7 |
|
---|
| 8 | - Changed: sourceMappingURL comments used to be matched only when placed at
|
---|
| 9 | the end of the script. However, since several commonly used JavaScript
|
---|
| 10 | libraries do not follow this convention and all popular web browsers accept
|
---|
| 11 | non-trailing comments, this has been revised.
|
---|
| 12 |
|
---|
| 13 | So now non-trailing SourceMappingURL comments are matched as well.
|
---|
| 14 |
|
---|
| 15 |
|
---|
| 16 | ### Version 0.3.0 (2014-08-16) ###
|
---|
| 17 |
|
---|
| 18 | - Changed: sourceMappingURL comments used to be matched only if they appeared
|
---|
| 19 | on their own line. However, the spec only says:
|
---|
| 20 |
|
---|
| 21 | > The generated code may include a line at the end of the source, with the following form:
|
---|
| 22 | >
|
---|
| 23 | > //# sourceMappingURL=<url>
|
---|
| 24 |
|
---|
| 25 | So now they are matched also when they appear on the same line as code.
|
---|
| 26 |
|
---|
| 27 | - Removed: The `.set()` method. I couldn’t decide how it should work
|
---|
| 28 | considering the above change. Moreover, it was unnecessarily complex (and
|
---|
| 29 | would have gotten worse) for very little gain. It is much easier to run
|
---|
| 30 | `.remove()` if needed, and then simply `code += "\n//# sourceMappingURL=" +
|
---|
| 31 | url` (using the appropriate comment syntax and newline). KISS.
|
---|
| 32 |
|
---|
| 33 | - Changed: The `.insertBefore()` method now always inserts the string exactly
|
---|
| 34 | before the sourceMappingURL comment; not before the newline before the
|
---|
| 35 | comment (if any). Moreover, it does not ensure that the comment will be on a
|
---|
| 36 | new line anymore. This is up to the caller. KISS.
|
---|
| 37 |
|
---|
| 38 | - Changed: The `.remove()` method no longer removes the newline before the
|
---|
| 39 | sourceMappingURL (if any).
|
---|
| 40 |
|
---|
| 41 | - Changed: Renamed `.get()` to `.getFrom()`.
|
---|
| 42 | - Changed: Renamed `.remove()` to `.removeFrom()`.
|
---|
| 43 |
|
---|
| 44 | - Added: The `.existsIn()` method.
|
---|
| 45 |
|
---|
| 46 |
|
---|
| 47 | ### Version 0.2.0 (2014-02-23) ###
|
---|
| 48 |
|
---|
| 49 | - Changed: A space is no longer inserted before the closing comment syntax. If
|
---|
| 50 | such a space is desired, it needs to be put in the closing comment syntax
|
---|
| 51 | itself (such as `["/*", " */"]` instead of `["/*", "*/"]`). (Backwards
|
---|
| 52 | incompatible change.)
|
---|
| 53 |
|
---|
| 54 |
|
---|
| 55 | ### Version 0.1.0 (2014-02-22) ###
|
---|
| 56 |
|
---|
| 57 | - Initial release.
|
---|