Socket
Socket
Sign inDemoInstall

magic-string

Package Overview
Dependencies
1
Maintainers
4
Versions
114
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1245
12Next

0.26.1

Diff

Changelog

Source

0.26.1 (2022-03-03)

Bug Fixes

  • replace: match replacer function signature with spec (902541f)
antfu
published 0.26.0 •

Changelog

Source

0.26.0 (2022-03-03)

BREAKING CHANGES

  • Support of Node.js v10 is dropped. Now magic-string requires Node.js v12 or higher. (#204)
  • ESM bundle is now shipped with .mjs extension (#197)
-  "module": "dist/magic-string.es.js",
+  "module": "dist/magic-string.es.mjs",
+  "exports": {
+    "./package.json": "./package.json",
+    ".": {
+      "import": "./dist/magic-string.es.mjs",
+      "require": "./dist/magic-string.cjs.js"
+    }
+  },

Features

antfu
published 0.25.9 •

Changelog

Source

0.25.9 (2022-03-03)

Bug Fixes

  • allowed overwrite across moved content preceded by split (#192) (403fa86)
  • types: make options partial by default (2815e77)
  • use defineProperty for appending prop in storeName (#194) (96b7cd3)
antfu
published 0.25.8 •

Changelog

Source

0.25.8 (2022-03-02)

Bug Fixes

  • types: mark MagicString options as optional (#183) (15c3e66)
rich_harris
published 0.25.7 •

Changelog

Source

0.25.7

  • fix bundle mappings after remove and move in multiple sources (#172)
rich_harris
published 0.25.6 •

Changelog

Source

0.25.6

  • Use bitwise operators for small performance boost (#171)
rich_harris
published 0.25.5 •

Changelog

Source

0.25.5

  • Use a bitset to reduce memory consumption (#167)
rich_harris
published 0.25.4 •

Changelog

Source

0.25.4

  • Clone intro and outro (#162)
mourner
published 0.25.3 •

Changelog

Source

0.25.3

  • Fix typing of SourceMap.version.
rich_harris
published 0.25.2 •

Changelog

Source

0.25.2

  • Remove deprecated new Buffer(...)
  • Handle characters outside Latin1 range when generating a sourcemap in browser (#154)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc