Prelude Ts Versions Save

Functional programming, immutable collections and FP constructs for typescript and javascript

v1.0.6

1 year ago

v1.0.5

1 year ago

v1.0.4

1 year ago
  • Fix #58 Tuple2 equality is broken

v1.0.3

2 years ago
  • 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

3 years ago
  • fix HashMap hashCode() implementation with complex values (thanks to @Veramone )

v1.0.1

3 years ago
  • 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

4 years ago

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

4 years ago
  • 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

5 years ago

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

5 years ago
  • fix bug #19 Option.ofNullable(0) returns None. Thanks @bwbuchanan for the report!