Releases: emmanueltouzery/prelude-ts
Releases · emmanueltouzery/prelude-ts
1.0.6
- Fix bug #74, equals() bug when using null values. thanks to @jorge-fernandez for reporting.
1.0.5
- improved HashMap.hashCode() implementation inspired by Clojure thanks to @fmw -- see #67
- throw an Error instead of a string when there's a contract violation thanks to @malcolmredheron -- see #65
- Enable usage as an npm github dependency thanks to @malcolmredheron -- see 5df18ad
v1.0.4
v1.0.3
v1.0.2
v1.0.1
v1.0.0
1.0.0 is fully compatible with 0.8.x, the API was not broken. The version change is more to signal that prelude-ts is stable software.
new APIs:
- Either.recoverWith, similar to Future.recoverWith.
- Vector.findLast and findIndex (thanks to @aleksei-berezkin )
- Vector.replaceFirst, Vector.replaceAll
- Vector.indexOf
- Option.orCall (thanks to @gabebw )
also:
- reduce the size of the npm packages (thanks to @aleksei-berezkin )
- increase version of the list dependency
v0.8.3
- fix some apidoc/README dead links
- reduce a little the equality section in the README
- add Seq.takeRightWhile
- HashMap: allow valueIterable to be iterated more than once (#27, thanks @wuzzeb)
- fix tests of Vector equality which were not effective anymore (#28 thanks @Hraun)
- upgrade list dependency to the latest version
- build with typescript 3.6
- make HashSet.flatMap consistent with what we do with Vector for instance => accept only HashSet from the callback. Slight change in theory, but in practice we have only one ISet implementation for now, so no real effect.
v0.8.2
Prelude-ts now requires typescript 3.1 or newer.
- rename project from
prelude.ts
toprelude-ts
(fixes #20). The old projectprelude.ts
is still available but deprecated. - add
Seq.removeAll
- in toString(), if the element does not have a toString() implementation, we fall back to JSON.stringify(). However that one can throw if the structure has cycles! Avoid the cycles now.
- fix deprecation warning in node 0.10: was using the old 'inspect' mechanism: migrate to the new system, which is supported it seems since node 0.6 (tested with 0.8)
- add new static function
Vector.zip
,LinkedList.zip
,Stream.zip
on top of the instance method, which can take any number of input iterables (the instance method can only zip two iterables). We now depend on typescript 3.1+ - new test: make sure that links in the README/User Guide are working fine (are not 404 for instance)
v0.8.1
- fix bug #19 Option.ofNullable(0) returns None. Thanks @bwbuchanan for the report!