Skip to content

Releases: emmanueltouzery/prelude-ts

v0.8.0

21 Oct 14:12
Compare
Choose a tag to compare

0.8.0 breaks API compatibility but mostly for Future and if you used lifting. The rest stays the same except for really minor changes.
With 0.8.0, prelude.ts now requires Typescript 3.0.

Future

Everything else

  • add HashMap & HashSet .forEach()
  • some apidoc improvements
  • fix #15 [api change] Option.getOrThrow() should take Error as argument -- thanks @bwbuchanan
  • fix #12: [api change] move FunctionX.liftOption to Option.lift, FunctionX.liftNullable to Option.liftNullable, FunctionX.liftEither to Either.lift. Thanks @qm3ster for the tip for the implementation. This requires TS3.0
  • upgrade to funkia/list 2.0.16 and have the Vector using Funkia list again as a backend (we already had list for the backend of Vector in the past but had to revert it due to bugs in list in 0.7.10).
  • Add fuzzer to Seq to try to find possible bugs
  • add IMap.toJsMap & ISet.toJsSet.

v0.7.13

06 Sep 17:39
Compare
Choose a tag to compare
  • fix bug #17 -- Vector.appendAll() could crash in certain circumstances (depending on the length of the vector and the length of the iterable you would add) -- thanks @bwbuchanan for the report!

v0.7.12

31 Aug 05:17
Compare
Choose a tag to compare
  • fixes #14 Vector.map on empty vector (thanks to @bwbuchanan for reporting)

v0.7.11

31 Aug 05:15
Compare
Choose a tag to compare
  • fixes #13 -- support findAny on an empty HashMap (thanks to @bwbuchanan for reporting)

v0.7.10

23 Aug 21:23
Compare
Choose a tag to compare

Unfortunately a bug was discovered in the list library that prelude.ts depends on since version 0.7.7. So we're reverting to the Vector implementation that prelude had in version 0.7.6 which was free of that bug, until that issue is fixed.

v0.7.9

16 Aug 18:17
Compare
Choose a tag to compare

v0.7.8

11 Aug 22:40
Compare
Choose a tag to compare

fix another brown paper bag Future.mapFailure bug

v0.7.7

11 Aug 19:23
Compare
Choose a tag to compare
  • Drop the internal Vector implementation, instead add a dependency to https://github.com/funkia/list which has a high-performance implementation. Especially append & prepend in loop should be much faster now
  • Optimize LinkedList.partition
  • Future.mapFailure was broken, fix it.

v0.7.6

12 Jun 21:05
Compare
Choose a tag to compare

With this release, prelude.ts now requires typescript 2.8.3 or newer (or plain javascript of course).

v0.7.5

17 May 17:08
Compare
Choose a tag to compare
  • fixes #5: add Option.try_, Option.tryNullable, Either.try_ thanks @davinkevin for the useful feedback & suggestions
  • add Option.mapNullable for a more handy workflow when working with code using null to represent failure
  • add Seq.scanLeft and Seq.scanRight
  • bugfix: LinkedList.of() and Stream.of() (without parameters) would return a list with a single item, undefined. That call was impossible in typescript (wouldn't compile) but it was possible in javascript. Now it returns an empty list as you would expect, while retaining the intended feature, that if there are parameters, the compiler knows we're dealing with a non-empty list (thanks to typescript overloads).