@cedx/enum
Advanced tools
Comparing version 3.3.0 to 4.0.0
# Changelog | ||
## Version [4.0.0](https://github.com/cedx/enum.js/compare/v3.3.0...v4.0.0) | ||
- Breaking change: dropped the `get` prefix from the `getEntries()`, `getNames()` and `getValues()` methods of the enumerated types. | ||
## Version [3.3.0](https://github.com/cedx/enum.js/compare/v3.2.0...v3.3.0) | ||
@@ -4,0 +7,0 @@ - Added a user guide based on [MkDocs](http://www.mkdocs.org). |
@@ -31,8 +31,8 @@ 'use strict'; | ||
static coerce(value, defaultValue = null) { return Enum.coerce(enumType, value, defaultValue); } | ||
static entries() { return Enum.getEntries(enumType); } | ||
static isDefined(value) { return Enum.isDefined(enumType, value); } | ||
static getEntries() { return Enum.getEntries(enumType); } | ||
static getIndex(value) { return Enum.getIndex(enumType, value); } | ||
static getName(value) { return Enum.getName(enumType, value); } | ||
static getNames() { return Enum.getNames(enumType); } | ||
static getValues() { return Enum.getValues(enumType); } | ||
static names() { return Enum.getNames(enumType); } | ||
static values() { return Enum.getValues(enumType); } | ||
/* eslint-enable require-jsdoc */ | ||
@@ -39,0 +39,0 @@ }; |
@@ -10,3 +10,3 @@ { | ||
"repository": "cedx/enum.js", | ||
"version": "3.3.0", | ||
"version": "4.0.0", | ||
"devDependencies": { | ||
@@ -13,0 +13,0 @@ "@cedx/coveralls": "^5.1.0", |
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
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
10892