🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

tracked-maps-and-sets

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tracked-maps-and-sets

The default blueprint for ember-cli addons.

3.0.0
Source
npm
Version published
Weekly downloads
22K
-10.58%
Maintainers
2
Weekly downloads
 
Created
Source

tracked-maps-and-sets

This addon provides tracked versions of JavaScript's Maps and Sets:

import {
  TrackedMap,
  TrackedWeakMap,
  TrackedSet,
  TrackedWeakSet,
} from 'tracked-maps-and-sets';

These classes have the same APIs as their native equivalents, but reading from them or writing to them will be tracked, allowing you to use them in your Ember apps and have changes automatically propagate!

Compatibility

  • Ember.js v3.16 or above
  • Ember CLI v2.13 or above
  • Node.js v10 or above

Installation

ember install tracked-maps-and-sets

Usage

See the MDN documentation for each class to learn more about it:

  • Map
  • WeakMap
  • Set
  • WeakSet

All public APIs are the same, and they will also return true in instanceof checks against the base datatype.

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

Keywords

ember-addon

FAQs

Package last updated on 03 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts