Skip to content

Releases: emmanueltouzery/prelude-ts

1.0.6

10 Jan 16:54
Compare
Choose a tag to compare

1.0.5

05 Nov 11:49
Compare
Choose a tag to compare
  • 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

27 May 18:18
Compare
Choose a tag to compare
  • Fix #58 Tuple2 equality is broken

v1.0.3

12 Jul 15:46
Compare
Choose a tag to compare
  • Switch custom node object inspection to use Symbol.for -- fixes inspection in the node REPL and also at least bundling with vite -- thanks to @wuzzeb

v1.0.2

27 Nov 18:14
Compare
Choose a tag to compare
  • fix HashMap hashCode() implementation with complex values (thanks to @veramone )

v1.0.1

25 Nov 19:16
Compare
Choose a tag to compare
  • fixes #47 hashmap & hashset had trivial hashcode collisions, were taking only the last element into account (thanks @veramone for the report)
  • fixes #45 make allMatch a type guard

v1.0.0

03 May 09:01
Compare
Choose a tag to compare

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:

also:

  • reduce the size of the npm packages (thanks to @aleksei-berezkin )
  • increase version of the list dependency

v0.8.3

04 Sep 04:45
Compare
Choose a tag to compare
  • 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

19 Nov 20:05
7169951
Compare
Choose a tag to compare

Prelude-ts now requires typescript 3.1 or newer.

  • rename project from prelude.ts to prelude-ts (fixes #20). The old project prelude.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

25 Oct 20:07
Compare
Choose a tag to compare
  • fix bug #19 Option.ofNullable(0) returns None. Thanks @bwbuchanan for the report!