NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #126 most downloaded on npm
Modify strings, generate sourcemaps
Latest stable
1.4.5
Last release 23 days ago
27 Oct 2026
Ships unpredictably
gaps range from 2 weeks to 9 months
Nearly every release is documented
notes for 55 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
139 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
Breaking change - source.indentStr is null if no lines are indented. Use source.getIndentString() for the old behaviour (guess, and if no lines are in…
source.indentStr is null if no lines are indented. Use source.getIndentString() for the old behaviour (guess, and if no lines are indented, return \t)bundle.getIndentString() ignores sources with no indented lines when guessing indentation (#3)source.trimLines() removes empty lines from start/end of source, leaving other whitespace untouched
source.trimLines() removes empty lines from start/end of source, leaving other whitespace untouchedYour coding agent can read these notes before it upgrades. Set up the MCP server →
Performance improvement - adjustments are only made when necessary
Single spaces are ignored when guessing indentation - experience shows these are more likely to be e.g. JSDoc comments than actual indentation
bundle.addSource() can take an indentExclusionRanges option* Empty lines are not indented
Fixes edge case with bundle sourcemaps
Make sources paths in sourcemaps relative to options.file
sources paths in sourcemaps relative to options.file* Minor fix for bundle.indent()
bundle.indent()Implement MagicString.Bundle for concatenating magic strings
MagicString.Bundle for concatenating magic strings* Fix sourcemap encoding
Better performance when indenting large chunks of code
Sourcemaps generated with s.generateMap() have a toUrl() method that generates a DataURI
s.generateMap() have a toUrl() method that generates a DataURIImplement s.insert( index, content ) - roughly equivalent to s.replace( index, index, content )
s.insert( index, content ) - roughly equivalent to s.replace( index, index, content )* Version bump for npm's benefit
s.indent({ exclude: [ x, y ] }) prevents lines between (original) characters x and y from being indented. Multiple exclusion ranges are also supported
s.indent({ exclude: [ x, y ] }) prevents lines between (original) characters x and y from being indented. Multiple exclusion ranges are also supported (e.g. exclude: [[a, b], [c, d]])s.locate() doesn't throw out-of-bound error if index is equal to original string's length
s.locate() doesn't throw out-of-bound error if index is equal to original string's lengths.trim() returns this (i.e. is chainable)
s.trim() returns this (i.e. is chainable)* Implement s.trim()
s.trim()* First release
One column per quarter.