- Fix bindings of DataView. #246
- Add
difference
,intersection
,union
,symmetricDifference
,isSubsetOf
,isSupersetOf
,isDisjointFrom
,toArray
functions toSet
. #247
- Optimize compare and equal functions. #238
- Add
make
anddone
+value
functions toAsyncIterator
. #243 - Int: Add bitwise functions from Pervasives. #245
- Remove aliases for runtime modules (
MapperRt
,Internal
) andRe
. #237
- Remove leftover top-level t<'a>. #236
- BREAKING: Fixes the type of
RegExp.Result.t
to bearray<option<string>>
instead ofarray<string>
. #234. - Fix type of
Nullable.t
which was not untagged in the implementation. #235
- Add
RegExp.setLastIndex
function. #219 - Add
Nullable.isNullable
function. #227 - Remove some deps to Belt, Pervasives and Js. https://github.com/rescript-association/rescript-core/pull/226/commits
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
- 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
- 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
- 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.
- 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
- Fix docstring for
Array.getUnsafe
andArray.filterMap
#168
- Add
Math.Int.floor
andMath.Int.random
, #156 - Change
Array.joinWith
s signature to accept only string arrays and addArray.joinWithUnsafe
with the polymorphic signature of the former #157
- Docstrings for
Math.Int.floor
andMath.Int.random
. #156
- Add
Result.mapError
#98
- Docstrings for
Object
. Not yet complete. #117
- 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.
- Fix peer dependency range so later versions of npm don't complain as
Core
is used with ReScriptv11
alpha.
- Change
Map.set
to not return self, to indicate that it's mutable. #34 - Change
Set.add
to not return self, to indicate that it's mutable. #35 - Change
Iterator
bindings to have the same shape asAsyncIterator
for consistency. #34 - Add
Iterator.toArray
binding for turning an iterator into an array. #34 - Add
Array.at
binding for returning an array item by its index. #48 - Fixed type signatures of
Array.fromArrayLikeWithMap
andArray.fromIteratorWithMap
. #50 - Remove internal async/await helpers that do not need to be exposed in
Core
. - Add locale and formatting options to
localeDateString
,localeString
andlocalTimeString
functions #30 - Remove
Undefined
module.Nullable
oroption
directly (where appropriate) can be used instead. #59 - Change
RegExp.source
to return astring
. Was previously returning abool
, which is wrong. #47 - Remove
Date.valueOf
as it returns the same asDate.getTime
. #61 - Change
Float.fromString
signature. Now accepts only string. #54 - Change
Float.parseFloat
signature. Now accepts only string. #54 - Add
getExn
,getUnsafe
,getWithDefault
,map
,mapWithDefault
andflatMap
toNullable
. #67 - Add
getExn
,getUnsafe
,getWithDefault
,map
,mapWithDefault
andflatMap
toNull
. #73 - Add
make
,fromInitializer
,findMap
,keepSome
,reduceRight
andreduceRightWithIndex
. #49 - Remove
reduceReverse
in favor ofreduceRight
. #49 - Fixed type signatures of
reduce
andreduceWithIndex
. #49 - Add
panic
/Error.panic
. #72 - The globally available
null
value now originates fromNullable
and notNull
, just like the globally availableundefined
value does. #88 - Add
Int.range
andInt.rangeWithOptions
, #52 - Remove
Array.fromIterator
andArray.fromIteratorWithMap
. The same functions exist inIterator
asIterator.fromArray
andIterator.fromArrayWithMapper
. #78 - Remove unsafe
Array.from
andArray.fromWithMap
. #78 - Add
Int.clamp
andFloat.clamp
, #90
- Docstrings for
Map
andIterator
. #34 - Docstrings for
Global
. #39 - Docstrings for
Set
. #35 - Docstrings for
AsyncIterator
. #33 - Docstrings for
Type
. #32 - Docstrings for
Int
. #37 - Docstrings for
Dict
. #40 - Docstrings for
RegExp
. #47 - Docstrings for
Date
. #61 - Docstrings for
Float
. #54 - Docstrings for
String
. #27 - Docstrings for
Array
. #78