Skip to content

ungap/weakrefs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

weakrefs

Build Status Coverage Status Greenkeeper badge WebReflection status

The WeakRef and FinalizationGroup 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.

About

WeakRef and FinalizationGroup "polyfill"

Resources

License

Stars

Watchers

Forks

Packages

No packages published