Skip to content

Commit e059e19

Browse files
authored
Deprecate JSON.Classify.classify (#7315)
1 parent 0423596 commit e059e19

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121

2222
- Clean up legacy tags handling. https://github.com/rescript-lang/rescript/pull/7309
2323

24+
#### :nail_care: Polish
25+
26+
- Deprecate JSON.Classify.classify. https://github.com/rescript-lang/rescript/pull/7315
27+
2428
# 12.0.0-alpha.9
2529

2630
#### :boom: Breaking Change

runtime/Stdlib_JSON.res

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ module Classify = {
5757
| Object(dict<t>)
5858
| Array(array<t>)
5959

60+
@deprecated("Directly switch on the JSON object instead")
6061
let classify = value => {
6162
switch _internalClass(value) {
6263
| "[object Boolean]" => Bool(_asBool(value))

runtime/Stdlib_JSON.resi

+1
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,7 @@ module Classify: {
630630
// Number(42)
631631
```
632632
*/
633+
@deprecated("Directly switch on the JSON object instead")
633634
let classify: 'a => t
634635
}
635636

0 commit comments

Comments
 (0)