0.4.0
API changes
- Map, Set, WeakMap, WeakSet: use the types defined in the Js namespace. #143
- Symbol: use the types defined in the Js namespace. #145
- The types
RescriptCore.Type.functionandRescriptCore.Type.objectuse the types defined in the Js namespace. #146 - The type
RescriptCore.Type.symbolremoved in favor ofRescriptCore.Symbol.t. #146 - Added
BigIntsupport forRescriptCore.Classify.t. #146 Arraymutable & immutable helper name changed to conform to JS' upcoming APIs such astoSortedsort->toSorted,sortInPlace->sortreverse->toReversed,reverseInPlace->reversesplice->toSpliced,spliceInPlace->spliceshuffle->toShuffled,shuffleInPlace->shufflefillAllInPlace->fillAll,fillInPlaceToEnd->fillToEnd,fillInPlace->fill- added
with
- Same for
TypedArray:sort->toSorted,sortInPlace->sortreverse->toReversed,reverseInPlace->reversefillAllInPlace->fillAll,fillInPlaceToEnd->fillToEnd,fillInPlace->fill
- And
List:shuffle->toShuffled
- Use
floatinstead ofintfor ordering to avoid premature overflow. #149 - Add
Orderingmodule. #149
Note 1: These changes should all produce the correct type errors. Though TypedArray's reverse and sort previously mutated and returned the mutated array itself, whereas now they'd be copies. Please be careful refactoring these 2.
Note 2: the newly added helpers, Array.toSorted, Array.toSpliced, Array.toReversed, Array.with, TypedArray.toSorted and TypedArray.toReversed require their respective polyfill, as they're not currently supported by Firefox.