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

magic-string

Package Overview
Dependencies
Maintainers
0
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magic-string - npm Package Versions

1
13

0.27.0

Diff

Changelog

Source

0.27.0 (2022-12-03)

Performance Improvements

  • use @jridgewell/sourcemap-codec (e68f3e0)
antfu
published 0.26.7 •

Changelog

Source

0.26.7 (2022-10-09)

Bug Fixes

antfu
published 0.26.6 •

Changelog

Source

0.26.6 (2022-10-05)

Features

  • add update method as safer alternative to overwrite (#212) (9a312e3)
antfu
published 0.26.5 •

Changelog

Source

0.26.5 (2022-09-30)

Bug Fixes

  • update typescript definition file to contain replaceAll() (#224) (45a4921)
antfu
published 0.26.4 •

Changelog

Source

0.26.4 (2022-09-22)

Features

  • fix .replace() when searching string, add .replaceAll() (#222) (04a05bd)

Performance Improvements

  • avoiding use of Object.defineProperty in Chunk constructor (#219) (130794b)
antfu
published 0.26.3 •

Changelog

Source

0.26.3 (2022-08-30)

Performance Improvements

antfu
published 0.26.2 •

Changelog

Source

0.26.2 (2022-05-11)

Bug Fixes

antfu
published 0.26.1 •

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)
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc