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
Last release 11 days ago
23 Sep 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
136 releases · first in 2014
Keep the outro when splitting a removed chunk - by @wahidrizka in #358 (2a665)
One column per quarter.
Flush the shared encoder buffer at the end of every drain - by @wahidrizka in #356 (f682c)
Add affinity option to move() - by @antfubot in #351 (f849b)
Return an empty slice when the end index resolves to zero - by @wahidrizka in #346 (55319)
No significant changes View changes on GitHub
No significant changes
$ substitutions in replace as String.prototype does (#340) (cd05874)append/prepend (#343) (18986e0)includeContent in Bundle (#165) (ead0c08)Trim the separators between sources - by @wahidrizka in #333 (1bb4c)
replace and replaceAll - by @theRizwan in #335 (b6a53)hasChanged reports a change when an edit spans a chunk boundary - by @theRizwan in #331 (811de)
hasChanged reports a change when an edit spans a chunk boundary - by @theRizwan in #331 (811de)Count separators in Bundle#isEmpty - by @wahidrizka in #327 (0bc98)
Introduce MagicStringError with concise, consistent messages - by @antfubot in #324 (57080)
Validate update() range and show indices in range errors - by @wahidrizka in #318 (7c0b6)
Trim replacements longer than the range they replace - by @sarathfrancis90 in #312 (ec1a1)
The version was bumped to v1.0.0 instead of v0.31 to distinguish this breaking change, and since magic-string has been verified by the ecosystem for o…
In magic-string v1.0.0, it's now pure ESM, and the type declarations are built from the TypeScript source. This means the previous CJS, UMD, and IIFE builds are now dropped as we believe the ecosystem is moving forward for ESM. The version was bumped to v1.0.0 instead of v0.31 to distinguish this breaking change, and since magic-string has been verified by the ecosystem for over a decade, the API is stable enough to be marked as v1.
Genreated changelogs:
No significant changes View changes on GitHub
No significant changes
chore: release v0.30.19
chore: release v0.30.18
chore: release v0.30.18
remove problematic type: module
type: module (092697b)missing mapping after a line break with hires: 'boundary'
add sideEffects: false to package.json
Include debugId in SourceMap types
Add support for sourcemap debugId property
### Performance Improvements * skip line break mappings
not use negative indices for remove in empty string
### Bug Fixes * types: improve chainable types
avoid create uncessary overrides for replace
replace (a1b857c)handle last empty line correctly when using update/overwrite
### Features * new reset method
support Web Workers by using the global btoa
### Bug Fixes * update sourcesContent type
trim replaced content with space
### Features * hires boundary
null is invalid for sources and file
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
avoid mutating provided options
add update method as safer alternative to overwrite
update typescript definition file to contain replaceAll()
fix .replace() when searching string, add .replaceAll()
### Performance Improvements * delay guess encoded
### Bug Fixes * specify types in exports
replace: match replacer function signature with spec
Nothing published for this version
types: mark MagicString options as optional
fix bundle mappings after remove and move in multiple sources
Use bitwise operators for small performance boost
Use a bitset to reduce memory consumption
* Clone intro and outro
intro and outro (#162)Fix typing of SourceMap.version.
SourceMap.version.Remove deprecated new Buffer(...)
new Buffer(...)Additional types for index.d.ts
Fix trimming chunks with intro/outro
Add lastLine and lastChar methods
lastLine and lastChar methods (#142)Fix CJS/ES bundles inlining sourcemap-codec in 0.23.2.
* Add generateDecodedMap methods
generateDecodedMap methods (#134)* Performance
Use sourcemap-codec for improved performance
sourcemap-codec for improved performance (#133)Add TypeScript interfaces used by rollup
Your coding agent can read these notes before it upgrades. Set up the MCP server →