# @ungap/weakrefs

> WeakRef and FinalizationGroup for IE11+

Latest version **0.2.0** (published 2020-05-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install @ungap/weakrefs
pnpm add @ungap/weakrefs
yarn add @ungap/weakrefs
bun add @ungap/weakrefs
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2020-05-02 |
| First published | 2019-07-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Andrea Giammarchi |
| Maintainers | webreflection |
| Keywords | WeakRef, FinalizationGroup, polyfill, sham |

## Links

- npm: https://www.npmjs.com/package/@ungap/weakrefs
- Repository: https://github.com/ungap/weakrefs
- Homepage: https://github.com/ungap/weakrefs#readme
- Issues: https://github.com/ungap/weakrefs/issues
- npm.io page: https://npm.io/package/@ungap/weakrefs

## Recent versions

- 0.2.0 (latest) — 2020-05-02
- 0.1.0 — 2019-07-09
- 0.0.0 — 2019-07-09

## README

# weakrefs

[![Build Status](https://travis-ci.com/ungap/weakrefs.svg?branch=master)](https://travis-ci.com/ungap/weakrefs) [![Coverage Status](https://coveralls.io/repos/github/ungap/weakrefs/badge.svg?branch=master)](https://coveralls.io/github/ungap/weakrefs?branch=master) [![Greenkeeper badge](https://badges.greenkeeper.io/ungap/weakrefs.svg)](https://greenkeeper.io/) ![WebReflection status](https://offline.report/status/webreflection.svg)


The [WeakRef and FinalizationGroup](https://github.com/tc39/proposal-weakrefs) polyfill/sham `*`

  * CDN global patch via https://unpkg.com/@ungap/weakrefs
  * ESM via `import {WeakRef, FinalizationGroup} from '@ungap/weakrefs'`
  * CJS via `const {WeakRef, FinalizationGroup} = require('@ungap/weakrefs')`

`*` The implementation uses `WeakMap` and it does not actually trigger the `FinalizationGroup` callback, unless explicitly asked via `fg.cleanupSome(fn)`.


### ⚠ Webpack Users

If you have issues just requiring `@ungap/weakrefs`, be sure you require `@ungap/weakrefs/cjs` instead.

No issue should happen if you just `import` the module instead.

---
_Source: https://npm.io/package/@ungap/weakrefs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
