Skip to content

Releases: MetaMask/swappable-obj-proxy

2.3.0

06 Dec 13:07
7f954a5

Choose a tag to compare

Added

  • Export EventEmitterLike type (#56)

2.2.0

15 Jan 21:07
04552cb

Choose a tag to compare

Changed

  • Only migrate events that were added via the proxy (#53)
    • Previously the proxy assumed that all events on the target were added via the proxy, so they would be migrated when the proxy target changed. This introduced bugs when the target was used directly, or when two proxies pointed at the same target.
    • Effectively this change adds support for using the target independently of the proxy, and for using multiple proxies for the same event emitter.

2.1.0

24 Feb 21:06
c9fcaeb

Choose a tag to compare

Added

  • Convert this library to TypeScript (#27)
    • You should now be able to use this library in a TypeScript codebase without having to provide your own types.

2.0.0

17 Feb 21:47
07d4a8c

Choose a tag to compare

Added

  • Re-release of this package
    • This package was previously released under swappable-obj-proxy (latest version: 1.1.0). We've begun the version history of @metamask/swappable-obj-proxy at 2.0.0 in order to prevent any confusion. Past releases of swappable-obj-proxy are not explicitly recorded, but can be traced through the commit history. All entries after this line are new additions since the previous release.
  • Support proxying instances of class that reference private fields (#10)
  • Add type definitions for TypeScript projects (#13)