Skip to content

Commit 5d763c0

Browse files
committed
Version 2.0.0
Release summary: Dropped support for Node.js 6, removed a bunch of deprecated and outdated methods, replaced remaining ES5-style classes with ES6 classes, and added changelog and utility methods for `Iterator`. Changelog: Added: - CHANGELOG.md file. - `Iterator#collectWith()` now returns the provided object. - `Iterator#toObject()` to collect iterable into an Object similar to `Object.fromEntries()`. - `common.iterEntries()`, `common.iterKeys()`, `common.iterValues()` utility methods. Changed: - Expose `AuthenticationStrength`'s `compliance` number property instead of `strength` string. - Replaced ES5-style classes and iheritance with ES6 classes for `Cache` and `EnhancedEmitter`. - Signature of `merger()` in `mergeObjects()` to also contain the merging key. Removed: - Dropped support for Node.js 6. - Outdated `inherits()` method (in favor of `util.inherits()` available in Node.js). - Multiple deprecated functions: - `common.ip2int()` - replace with `common.ipToInt()` - `common.cb()` - replace with `common.once()` - `common.extractCallback()` - replace with `common.unsafeCallback()` - `common.cbUnsafe()` - replace with `common.unsafeCallback()` - `common.cbExtract()` - replace with `common.safeCallback()` - `common.crcSID()` - replace with `common.crcToken()` - `common.generateSID()` - replace with `common.generateToken()` - `common.validateSID()` - replace with `common.validateToken()` - Functions that can be replaced with `util.deprecate()` available in Node.js: - `common.deprecate()` - `common.alias()` Fixed: - Functions `common.clone()`, `common.deleteByPath()`, and `common.mergeObjects()` throwing when used on objects without prototype. PR-URL: #281
1 parent e5d0b28 commit 5d763c0

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ and this project adheres to
88

99
## [Unreleased][unreleased]
1010

11+
## [2.0.0][] - 2019-04-26
12+
1113
### Added
1214

1315
- This CHANGELOG.md file.
@@ -143,7 +145,8 @@ and this project adheres to
143145

144146
- The first stable version of the `@metarhia/common` package.
145147

146-
[unreleased]: https://github.com/metarhia/common/compare/v1.5.0...HEAD
148+
[unreleased]: https://github.com/metarhia/common/compare/v2.0.0...HEAD
149+
[2.0.0]: https://github.com/metarhia/common/compare/v1.5.0...v2.0.0
147150
[1.5.0]: https://github.com/metarhia/common/compare/v1.4.2...v1.5.0
148151
[1.4.2]: https://github.com/metarhia/common/compare/v1.4.1...v1.4.2
149152
[1.4.1]: https://github.com/metarhia/common/compare/v1.4.0...v1.4.1

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metarhia/common",
3-
"version": "1.5.0",
3+
"version": "2.0.0",
44
"author": "Timur Shemsedinov <[email protected]>",
55
"description": "Metarhia Common Library",
66
"license": "MIT",

0 commit comments

Comments
 (0)