Comparing version 1.9.0 to 1.9.1
@@ -0,1 +1,8 @@ | ||
## [1.9.1](https://github.com/adobe/ferrum/compare/v1.9.0...v1.9.1) (2021-05-17) | ||
### Bug Fixes | ||
* take, tryTake now support all containers ([7915b49](https://github.com/adobe/ferrum/commit/7915b4952c620de84f88d370b119a55e868891da)), closes [#193](https://github.com/adobe/ferrum/issues/193) | ||
# [1.9.0](https://github.com/adobe/ferrum/compare/v1.8.0...v1.9.0) (2021-04-16) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "ferrum", | ||
"version": "1.9.0", | ||
"version": "1.9.1", | ||
"description": "Features from the rust language in javascript: Provides Traits/Type classes & an advanced library for working with sequences/iterators in js.", | ||
@@ -36,8 +36,8 @@ "main": "src/index.js", | ||
"@semantic-release/release-notes-generator": "9.0.2", | ||
"ajv": "8.1.0", | ||
"ajv": "8.2.0", | ||
"codecov": "3.8.1", | ||
"commitizen": "4.2.3", | ||
"commitizen": "4.2.4", | ||
"cz-conventional-changelog": "3.3.0", | ||
"docdash": "git+https://github.com/koraa/docdash.git", | ||
"eslint": "7.24.0", | ||
"eslint": "7.25.0", | ||
"eslint-config-airbnb": "18.2.1", | ||
@@ -58,3 +58,3 @@ "eslint-plugin-header": "3.1.1", | ||
"semantic-release": "17.4.2", | ||
"object-hash": "^2.1.1" | ||
"object-hash": "2.1.1" | ||
}, | ||
@@ -61,0 +61,0 @@ "renovate": { |
@@ -28,2 +28,3 @@ <a name="ferrum"></a> | ||
- [Change Log](#change-log) | ||
- [1.9.0](#190) | ||
- [1.8.0](#180) | ||
@@ -65,3 +66,4 @@ - [1.7.0](#170) | ||
It supports [user defined hash functions]() (e.g. blake2 instead of xxhash). | ||
It supports [user defined hash functions](https://www.ferrumjs.org/module-hashing-Hasher.html) | ||
(e.g. blake2 instead of xxhash). | ||
Support for all of the standard types is provided out of the box and | ||
@@ -650,2 +652,9 @@ [support for user defined types](https://www.ferrumjs.org/module-hashing-Hashable.html) | ||
### 1.9.0 | ||
* Hashable Trait & Hash tables ([3a86070](https://github.com/adobe/ferrum/commit/3a86070336d9a7f165e1d1d15b7858a0c1391c89)) | ||
* apply1(), let_in(), call() ([3a86070](https://github.com/adobe/ferrum/commit/3a86070336d9a7f165e1d1d15b7858a0c1391c89)) | ||
* create(), createFrom(), builder() ([3a86070](https://github.com/adobe/ferrum/commit/3a86070336d9a7f165e1d1d15b7858a0c1391c89)) | ||
### 1.8.0 | ||
@@ -652,0 +661,0 @@ |
@@ -30,10 +30,10 @@ /* | ||
const { encode: utf8encode } = require('fastestsmallesttextencoderdecoder'); | ||
const { first, map, second, each, Into, join, list, iter, all } = require('./sequence.js'); | ||
const { isdef, ifdef, type, typename, createFrom } = require('./typesafe.js'); | ||
const { withFunctionName, curry, mutate } = require('./functional.js'); | ||
const { Trait } = require('./trait.js'); | ||
const { first, map, second, each, Into, join, list, iter, all } = require('./sequence'); | ||
const { isdef, ifdef, type, typename, createFrom } = require('./typesafe'); | ||
const { withFunctionName, curry, mutate } = require('./functional'); | ||
const { Trait } = require('./trait'); | ||
const { | ||
_typedArrays, _maybeURL, assertEquals, size, Size, Equals, eq, Get, Has, | ||
Assign, Delete, Pairs, Shallowclone, Deepclone, deepclone, | ||
} = require('./stdtraits.js'); | ||
} = require('./stdtraits'); | ||
@@ -1233,4 +1233,9 @@ const { assign } = Object; | ||
/** | ||
* Key/Value container. Similar to the ES6 [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map). | ||
* Key/Value container. | ||
* | ||
* Implements the same interface ES6 [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map), | ||
* except that keys are compared based on equality using a hash function and not based on identity. | ||
* | ||
* Iterates its elements in insertion order. | ||
* | ||
* ```js | ||
@@ -1248,2 +1253,4 @@ * const assert = require('assert'); | ||
* | ||
* Iteration order is defined to be the order of insertation | ||
* | ||
* # Version history | ||
@@ -1598,4 +1605,9 @@ * | ||
/** | ||
* Key/Value container. Similar to the ES6 [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set). | ||
* Container that makes sure it contains each element just one time. | ||
* | ||
* Implements the same interface ES6 [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set), | ||
* except that keys are compared based on equality using a hash function and not based on identity. | ||
* | ||
* Iterates its elements in insertion order. | ||
* | ||
* ```js | ||
@@ -1602,0 +1614,0 @@ * const assert = require('assert'); |
@@ -1439,5 +1439,6 @@ /* | ||
const Nothing = Symbol('Nothing'); | ||
const it = iter(seq); | ||
return pipe( | ||
range0(no), | ||
map(() => tryNext(seq, Nothing)), | ||
map(() => tryNext(it, Nothing)), | ||
takeUntilVal(Nothing), | ||
@@ -1460,7 +1461,6 @@ list, | ||
*/ | ||
const take = curry('take', (seq, no) => pipe( | ||
range0(no), | ||
map(() => next(seq)), | ||
list, | ||
)); | ||
const take = curry('take', (seq, no) => { | ||
const it = iter(seq); | ||
return list(map(range0(no), (_) => next(it))); | ||
}); | ||
@@ -1478,7 +1478,6 @@ /** | ||
*/ | ||
const takeWithFallback = curry('takeWithFallback', (seq, no, fallback) => pipe( | ||
concat(range0(no)), | ||
map(() => tryNext(seq, fallback)), | ||
list, | ||
)); | ||
const takeWithFallback = curry('takeWithFallback', (seq, no, fallback) => { | ||
const it = iter(seq); | ||
return list(map(range0(no), (_) => tryNext(it, fallback))); | ||
}); | ||
@@ -1485,0 +1484,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
276682
7088
719