0.0.8 • Published 6 years ago

immutable-like-deep-proxy v0.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

coverage lines coverage functions coverage branches coverage statements

Immutable-like-deep-proxy

This is an implementation of deep proxy with a twist. Unlike the most popular deep proxy package out there this one caches nested proxies and avoids regenerating them on each get. There are also some additional features which come in handy for me in my other projects, like:

  1. History tracking and navigation
  2. Global keys
  3. Custom trap handlers
  4. Special modes like skip history, batch changes, quick access and more.
  5. Object change signalling without new references

Performance issues

This is a graph showing the difference in milliseconds (y axis) needed to perform various number (x axis) of sets, gets and deletes (orange, blue and red, respectively) between an object created with this package and a regular one.

withHistory

This one measures the same thing but without history tracking

withoutHistory

Use cases

This package is obviously not meant to be used in situations requiring outstanding read and write performance. It has been developed primarily for a GUI object editor and many of the existing features stem directly from this use-case. If you want to perform millions of operations, do not use this package.

Usage

This package is under active development. This section will be added as soon as the first stable version (presumably 1.0.0) is released.

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago