Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@

- Fix integer range patterns, including nested record and exception patterns, incorrectly matching values below the range. https://github.com/rescript-lang/rescript/pull/8714

#### :nail_care: Polish

- Deprecate `Stdlib_Error` and `Stdlib_Exn` modules in favor of `JsError/JsExn`. https://github.com/rescript-lang/rescript/pull/8404
- Deprecate `List.has` in favor of `List.some`. https://github.com/rescript-lang/rescript/pull/8807

# 12.3.1

#### :bug: Bug fix
Expand Down
1 change: 1 addition & 0 deletions packages/@rescript/runtime/Stdlib_Error.resi
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Functions for working with JavaScript exceptions.

See [`Error`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) on MDN.
*/
@@deprecated("Use `JsError` module")

/** Represents a JavaScript exception. */
@deprecated({
Expand Down
1 change: 1 addition & 0 deletions packages/@rescript/runtime/Stdlib_Exn.resi
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/***
Provide utilities for dealing with JS exceptions.
*/
@@deprecated("Use `JsExn` module")

/** Represents a JS exception */
@deprecated({
Expand Down
3 changes: 3 additions & 0 deletions packages/@rescript/runtime/Stdlib_List.resi
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,8 @@ let equal: (list<'a>, list<'a>, ('a, 'a) => bool) => bool
`has(list, element, f)` returns `true` if the list contains at least one
`element` for which `f` returns \`true'.

Use [`some`](#some) with a predicate instead.

## Examples

```rescript
Expand All @@ -769,6 +771,7 @@ list{1, 2, 3}->List.has(4, (a, b) => a == b) == false
list{-1, -2, -3}->List.has(2, (a, b) => abs(a) == abs(b)) == true
```
*/
@deprecated("Use `some` instead")
let has: (list<'a>, 'b, ('a, 'b) => bool) => bool

/**
Expand Down
Loading