2.0.3 • Published 1 year ago
@krakenjs/cross-domain-safe-weakmap v2.0.3
Cross Domain Safe WeakMap
WeakMap shim that works with cross-domain windows. Uses native WeakMap when available.
Installation
As of version 2 this package will be published under the @krakenjs
scope.
npm install @krakenjs/cross-domain-safe-weakmap
Rationale
Storing references to window objects is memory-expensive, even after those window objects have closed.
Existing WeakMap shims hang an object of the WeakMap key. This poses a problem when dealing with cross-domain windows, where setting or getting any key other than a pre-defined set of readonly values, will throw a cross-origin error.
3.0.0-alpha.2
1 year ago
3.0.0-typescript.1
1 year ago
3.0.0-alpha.1
2 years ago
2.0.3
2 years ago
2.0.2
2 years ago
2.0.0
2 years ago