This file records user-visible changes. Alpha releases may contain breaking changes, and changes may occur between alpha versions. Version numbers and publication-channel instructions are maintained by the release workflow; see the alpha release readiness tracker.
Planned first release in the 1.0.0-alpha.N series. ReScript 13.0.0-alpha.7 is the tested
compiler baseline. This alpha is not a stable API; review the migration notes below before
upgrading from earlier prereleases. The release workflow is the source of truth for actual
versioning and publication.
- The minimum supported ReScript compiler is now
13.0.0-alpha.7(peer range>=13.0.0-alpha.7 <13.0.0). Coercing a different type into a private record is now rejected by the compiler; use supported conversion helpers for native derived-to-base conversions. This does not make all native records package-wide private. Typed arrays now have distinct types: use their specific module operations, or explicitly upcast toTypedArray.twhen a binding requires the generic type. - ReScript
13.0.0-alpha.7no longer supports Intel Macs (darwin-x64). This package's new compiler minimum therefore also excludes native compilation on Intel Macs. - WebSocket sends and worker
Requestfetches now preserve their native receiver (this) rather than calling receiver-bound methods unbound. WebAPI.Request.bytes,WebAPI.Response.bytes,WebAPI.Blob.bytes,WebAPI.Blob.stream, andWebAPI.SafeFetch.bytesexpose nativeUint8Array.tvalues or chunks instead ofarray<int>. Use the typed-array API directly; the bytes are not copied into a ReScript integer array.SafeFetch.byteskeeps its existing result and response wrapper; only the byte payload changes.BodyInit.fromReadableStreamandResponse.fromReadableStreamnow requireReadableStream.t<Uint8Array.t>input. These HTTP-body adapters accept byte chunks, not arbitrary or string chunks;ReadableStreamitself remains generic for other uses.ResizeObservercallbacks now receive(entries, observer)as two arguments rather than a curried callback.- Web Audio analyser float buffers,
AudioBufferchannel and copy APIs, and Biquad/IIR filter frequency-response buffers useFloat32Array.t; analyser byte buffers useUint8Array.t.DOMMatrixandDOMMatrixReadOnlyFloat32 conversions also useFloat32Array.t. Use native typed-array values rather than ordinary ReScript arrays for these calls. Element.closestreturnsNull.t<DOMTree.element>and is no longer polymorphic. Narrow the result with the relevant public classifier when a more specific HTML interface is required.- WebCrypto signatures now reflect native results:
signanddigestreturnArrayBuffer.t,verifyreturnsbool,deriveKeyreturnsWebAPI.SubtleCrypto.cryptoKey, andderiveBitsandwrapKeyreturnArrayBuffer.t. Key and algorithm support types are available throughWebAPI.SubtleCrypto. UsealgorithmStringfor a native algorithm name andalgorithmObjectfor parameter dictionaries such as AES-GCM'sivandtagLength; the object helper preserves typed-array values rather than copying them into a closed algorithm-name variant. - Generic
SubtleCrypto.generateKeyandgenerateKey2now returnunknownbecause the result depends on the algorithm. UsegenerateKeySymmetricfor HMAC keys (SubtleCrypto.cryptoKey) orgenerateEcdsaKeyPairfor ECDSA pairs (SubtleCrypto.cryptoKeyPair). GenericexportKeyalso returnsunknown; useexportKeyBinaryforRaw,Pkcs8, orSpkiformats (ArrayBuffer.t), andexportKeyJwkforJwkformat (JSON.t). DOMTree.elementno longer exposes a genericclassName. Specific HTML interfaces retain a stringclassName;SVGElement.t.classNameisSVGElement.svgAnimatedStringwithbaseValandanimVal.CustomElementRegistry.definetakes aDOM.customElementConstructor; it does not take an element instance.- Request destination, referrer-policy, and media
canPlayTyperesult types now includeEmptyfor native empty-string values.HTMLCanvasElement.toBlobcallbacks receive aNull.t<WebAPI.Blob.t>because the browser can return null (including for a zero-sized canvas). AnifAvailableWeb Locks callback receives a nullable lock when the lock is unavailable.IDBFactory.deleteDatabasehas an operation-specificunitresult because the browser's successful result isundefined, not a database. WebAPI.Notification.tno longer contains a static permission field. Read that value throughWebAPI.Notification.permission.
For the intended installation, compiler range, runtime/browser checks, and known limitations, see the project status and API surface guide.