flow-enums-runtime
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -0,1 +1,4 @@ | ||
# 0.0.6 | ||
- Update README documentation | ||
# 0.0.5 | ||
@@ -2,0 +5,0 @@ - `.members()` on a mirrored enum now returns an iterator (not just an iterable), matching non-mirrored enums |
@@ -14,3 +14,3 @@ /** | ||
// Map from an enum object to a set of its values. | ||
// Map from an enum object to a reverse map of its values to names | ||
var reverseMapCache = typeof WeakMap === 'function' ? new WeakMap() : new Map(); | ||
@@ -17,0 +17,0 @@ |
{ | ||
"name": "flow-enums-runtime", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Runtime to be use with the Flow Enums transform.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
flow-enums-runtime | ||
================== | ||
This is the runtime used with the Flow Enums Babel transform. | ||
This is the runtime used with the [Flow Enums](https://flow.org/en/docs/enums/) [Babel transform](https://www.npmjs.com/package/babel-plugin-transform-flow-enums). | ||
Install this package in your regular dependencies, as it is required and used by the output of the Flow Enums transform at runtime. | ||
Read more about how to [enable Flow Enums in your project](https://flow.org/en/docs/enums/enabling-enums/). | ||
### Requirements | ||
This package requires support (either natively or through a polyfill) for [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) | ||
and [Array.prototype.values](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/values). | ||
Support for [WeakMap](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap) is suggested, | ||
but not required (will fall back to `Map` instead if not present). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12205
16
1