Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10K
increased by91.27%
Maintainers
2
Weekly downloads
 
Created
Source

tracked-maps-and-sets

Note: This addon supports IE 11 or older browsers. If you don't need to support them, you may find tracked-built-ins valuable as well: it adds support for the other standard collection types in JavaScript: objects and arrays.

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.24 or above
  • Ember CLI v2.13 or above
  • Node.js v12 or above

Installation

ember install tracked-maps-and-sets

Usage

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

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

FAQs

Package last updated on 25 Oct 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc