Releases: rescript-association/rescript-core
Releases · rescript-association/rescript-core
1.5.0
1.4.0
1.3.0
This version requires ReScript >=11.1.0-rc.6
.
- BREAKING: Use new native
bigint
type. This requires ReScript compiler version "11.1.0-rc.6" or higher. #207 Int
,Float
,BigInt
: use optional args and deprecatexxxWithRadix
,xxxWithPrecision
etc. #209- BREAKING: Add optional
~message: string=?
toOption.getExn
. This also changes the error raised byOption.getExn
fromNot_found
to a regular JS error. #212
1.2.0
- Add optional arguments to
JSON.stringify
andJSON.parseExn
and deprecateJSON.stringifyWithIndent
,JSON.stringifyWithReplacer
,JSON.parseExnWithReviver
etc. #201 - Add
Array.join
and deprecateArray.joinWith
. #205 - BREAKING: Intl types: simplify bindings for constructors / functions with optional arguments. #198
- Fix: Expose Intl.Common. #197
- Add
Array.flatMapWithIndex
#199 - Add
Promise.any
,Promise.allSettled
,Promise.withResolvers
#204
1.1.0
- BREAKING: Align List api with other modules (
List.getBy
->List.find
etc.). #195 - BREAKING: Adds typed bindings to
Intl
, replacing the options type of{..}
with records. #65 - Add
Dict.forEach
,Dict.forEachWithKey
andDict.mapValues
#181 - Remove internal xxxU helper functions that are not needed anymore in uncurried mode. #191
- Rename
Object.empty
toObject.make
for consistency. - Add dynamic
import
. #178 - Add
Iterator.forEach
andAsyncIterator.forEach
helpers for iterators. #175
1.0.0
- Up ReScript dependency to 11+.
JSON
,Null
andNullable
untagged variants are now properly exposed.- BREAKING: Duplicated definition of
result
inResult
module removed, asresult
is now a built in. Switch out anyResult.t
type annotations to point to the built inresult
instead.
0.7.0
- Add
Dict.getUnsafe
#167 - Fixes mis-bound
Intl
functions #180Intl.DateTimeFormat.formatRangeToParts
was bound toformatRange
instead offormatRangeToParts
Intl.PluralRules.select
,Intl.PluralRules.selectInt
, andIntl.PluralRules.selectBigInt
were bound toformat
instead ofselect
Documentation
- Fix docstring for
Array.getUnsafe
andArray.filterMap
#168
0.6.0
0.5.0
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.function
andRescriptCore.Type.object
use the types defined in the Js namespace. #146 - The type
RescriptCore.Type.symbol
removed in favor ofRescriptCore.Symbol.t
. #146 - Added
BigInt
support forRescriptCore.Classify.t
. #146 Array
mutable & immutable helper name changed to conform to JS' upcoming APIs such astoSorted
sort
->toSorted
,sortInPlace
->sort
reverse
->toReversed
,reverseInPlace
->reverse
splice
->toSpliced
,spliceInPlace
->splice
shuffle
->toShuffled
,shuffleInPlace
->shuffle
fillAllInPlace
->fillAll
,fillInPlaceToEnd
->fillToEnd
,fillInPlace
->fill
- added
with
- Same for
TypedArray
:sort
->toSorted
,sortInPlace
->sort
reverse
->toReversed
,reverseInPlace
->reverse
fillAllInPlace
->fillAll
,fillInPlaceToEnd
->fillToEnd
,fillInPlace
->fill
- And
List
:shuffle
->toShuffled
- Use
float
instead ofint
for ordering to avoid premature overflow. #149 - Add
Ordering
module. #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.