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

babel-plugin-transform-replace-object-assign

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-replace-object-assign - npm Package Versions

2.0.0

Diff

Changelog

Source

2.0.0

  • Official support for stable babel v7! :tada:

  • Chores (via #8):

    • Replaced deprecated @babel/preset-es2015 with @babel/preset-env
    • Updated babel related dependencies to stable Babel v7 release
    • Updated other development dependencies (mocha, all-contributors-cli)
neilgabbadon
published 2.0.0-beta.0 •

Changelog

Source

2.0.0-beta.0

  • Via #3:
    • Updated dependencies.
    • New plugin implementation for Babel v7.
    • Use @babel/helper-module-imports so the output is either ESM or CJS depending if sourceType is module or script, fixing #1.
    • Added @babel/core peer dependency, as Babel does for official plugins.
    • Disabled and ignored package-lock.json.
    • Replaced lodash.assign in readme examples with object-assign to demo defaults.
    • New way to register Babel for Mocha tests.
neilgabbadon
published 1.0.0 •

Changelog

Source

1.0.0

  • The plugin configuration is now optional. If no configuration is provided, the Object.assign implementation will be replaced with object-assign.

    This will replace Object.assign with object-assign:

    {
      "plugins": [["transform-replace-object-assign"]]
    }
    
  • Breaking change: The plugin configuration no longer supports passing a string module name. If you want to provide a custom Object.assign implementation, you must provide an object config with the name of the module specified in the moduleSpecifier key.

    This:

    {
      "plugins": [["transform-replace-object-assign", "custom-module"]]
    }
    

    Should be changed to this:

    {
      "plugins": [
        [
          "transform-replace-object-assign",
          { "moduleSpecifier": "custom-module" }
        ]
      ]
    }
    

Thanks to @jaydenseric for proposing these changes in preparation for babel v7.

neilgabbadon
published 0.2.1 •

Changelog

Source

0.2.1

There were no code changes in this release. This patch fixed some documentation errors in README.md so that it would show in the npm registry.

neilgabbadon
published 0.2.0 •

Changelog

Source

0.2.0

First release of this plugin! :smile:

View the README.md to learn how it works!

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