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

fast-copy

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-copy - npm Package Versions

234

3.0.2

Diff

Changelog

Source

3.0.2

  • #95 - Add support for objects that have a prototype with no constructor
planttheidea
published 3.0.1 •

Changelog

Source

3.0.1

  • #78 - Work when running Node process with --disable-proto=throw (thanks @castarco)
planttheidea
published 3.0.0 •

Changelog

Source

3.0.0

Breaking changes

  • Exports are now always named, so the .default suffix is required when accessing
    • CommonJS in Node => const copy = require('fast-copy').default;
    • UMD global via CDN => const copy = globalThis['fast-copy'].default;
  • copy.strict is no longer available; it is now available as the explicit copyStrict named import
  • Options have been removed
    • isStrict option has been replaced with importing the separate copyStrict method
    • realm has been removed entirely, as instanceof is no longer used internally
  • The FastCopy namespace in typings has been removed in favor of explicit import of available types

Enhancements

  • Support exports option, to have bettern handling for different environments (ESM vs CJS vs UMD) and improve tree-shaking when supported
  • Can now create a custom copier (either standard or strict), allowing maximum performance for specific use-cases
  • Small speed improvements when handling certain object types

Bug fixes

  • Correctly handle primitive wrappers, e.g. new String('foo')
planttheidea
published 3.0.0-beta.8 •

planttheidea
published 3.0.0-beta.7 •

planttheidea
published 3.0.0-beta.6 •

planttheidea
published 3.0.0-beta.5 •

planttheidea
published 3.0.0-beta.4 •

planttheidea
published 3.0.0-beta.3 •

planttheidea
published 3.0.0-beta.2 •

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