Socket
Socket
Sign inDemoInstall

fast-copy

Package Overview
Dependencies
0
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
234Next

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 •

234Next
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