Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

magic-string

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magic-string - npm Package Versions

rich_harris
published 0.11.2 •

Changelog

Source

0.11.2

  • Support sourcemaps with moved content
rich_harris
published 0.11.1 •

Changelog

Source

0.11.1

  • Use findIndex helper for 0.12 support
rich_harris
published 0.11.0 •

Changelog

Source

0.11.0

  • Add experimental move() method
  • Refactor internals to support move()
rich_harris
published 0.11.0-alpha •

rich_harris
published 0.10.2 •

Changelog

Source

0.10.2

  • Do not overwrite inserts at the end of patched ranges (#35)
rich_harris
published 0.10.1 •

Changelog

Source

0.10.1

  • Zero-length inserts are not removed on adjacent overwrites
rich_harris
published 0.10.0 •

Changelog

Source

0.10.0

  • Complete rewrite, resulting in ~40x speed increase (#30)
  • Breaking – magicString.locate and locateOrigin are deprecated
  • More forgiving rules about contiguous patches, and which ranges are valid with magicString.slice(...)
rich_harris
published 0.9.1 •

Changelog

Source

0.9.1

  • Update deps
rich_harris
published 0.9.0 •

Changelog

Source

0.9.0

  • Update build process
rich_harris
published 0.8.0 •

Changelog

Source

0.8.0

  • Add an ES6 build, change default UMD build to CommonJS (but keeping existing UMD build with bundled dependencies)
  • Make properties non-enumerable, for cleaner logging
  • Update dependencies