# cross-domain-safe-weakmap

> Cross domain safe WeakMap.

Latest version **1.0.29** (published 2021-07-15) · 0 weekly downloads

## Install

```sh
npm install cross-domain-safe-weakmap
pnpm add cross-domain-safe-weakmap
yarn add cross-domain-safe-weakmap
bun add cross-domain-safe-weakmap
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.29 |
| Published | 2021-07-15 |
| First published | 2017-03-31 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 121.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 289 |
| Maintainers | bluepnume |
| Keywords | template |

## Links

- npm: https://www.npmjs.com/package/cross-domain-safe-weakmap
- Repository: https://github.com/krakenjs/grumbler
- Homepage: https://github.com/krakenjs/grumbler#readme
- Issues: https://github.com/krakenjs/grumbler/issues
- npm.io page: https://npm.io/package/cross-domain-safe-weakmap

## Dependencies (1)

- [cross-domain-utils](https://npm.io/package/cross-domain-utils.md) ^2.0.0

## Recent versions

- 1.0.29 (latest) — 2021-07-15
- 1.0.28 — 2020-10-02
- 1.0.27 — 2019-10-15
- 1.0.26 — 2019-08-07
- 1.0.25 — 2019-05-03
- 1.0.24 — 2019-05-02
- 1.0.23 — 2018-12-06
- 1.0.22 — 2018-10-02
- 1.0.21 — 2018-09-27
- 1.0.20 — 2018-04-19
- 1.0.19 — 2017-10-14
- 1.0.18 — 2017-10-11
- 1.0.17 — 2017-09-08
- 1.0.16 — 2017-09-07
- 1.0.15 — 2017-08-31
- … 14 more at https://npm.io/package/cross-domain-safe-weakmap/versions

## README

Cross Domain Safe WeakMap
-------------------------

WeakMap shim that works with cross-domain windows. Uses native WeakMap when available.

### 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.

---
_Source: https://npm.io/package/cross-domain-safe-weakmap · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
