NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #2484 most downloaded on npm
Tools for working with sourceMappingURL comments.
Last release 6 years ago
no release in 18 months
Release timing varies
gaps range from 6 months to 5.2 years
Unknown
no stable releases
5 versions withdrawn
withdrawn after publishing
13 years old
5 releases · first in 2014
Improved: The package is now about 50% smaller, by excluding unnecessary files. Thanks to Piotr Kuczynski (@pkuczynski)!
Changed: sourceMappingURL comments used to be matched only when placed at the end of the script. However, since several commonly used JavaScript libra
Changed: sourceMappingURL comments used to be matched only when placed at the end of the script. However, since several commonly used JavaScript libraries do not follow this convention and all popular web browsers accept non-trailing comments, this has been revised.
So now non-trailing SourceMappingURL comments are matched as well.
One column per quarter.
Changed: sourceMappingURL comments used to be matched only if they appeared on their own line. However, the spec only says:
Changed: sourceMappingURL comments used to be matched only if they appeared on their own line. However, the spec only says:
The generated code may include a line at the end of the source, with the following form:
//# sourceMappingURL=<url>
So now they are matched also when they appear on the same line as code.
Removed: The .set() method. I couldn’t decide how it should work
considering the above change. Moreover, it was unnecessarily complex (and
would have gotten worse) for very little gain. It is much easier to run
.remove() if needed, and then simply code += "\n//# sourceMappingURL=" + url (using the appropriate comment syntax and newline). KISS.
Changed: The .insertBefore() method now always inserts the string exactly
before the sourceMappingURL comment; not before the newline before the
comment (if any). Moreover, it does not ensure that the comment will be on a
new line anymore. This is up to the caller. KISS.
Changed: The .remove() method no longer removes the newline before the
sourceMappingURL (if any).
Changed: Renamed .get() to .getFrom().
Changed: Renamed .remove() to .removeFrom().
Added: The .existsIn() method.
…as ["/*", " */"] instead of ["/*", "*/"]). (Backwards incompatible change.)
["/*", " */"] instead of ["/*", "*/"]). (Backwards
incompatible change.)'source-mapping-url' was already taken. Doh!
'source-mapping-url' was already taken. Doh!
Your coding agent can read these notes before it upgrades. Set up the MCP server →