Skip to content

Commit 8951931

Browse files
committed
deprecate unsafe host-specific bindings from stdlib
1 parent 1d8560f commit 8951931

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333
- Deprecate JSON.Classify.classify. https://github.com/rescript-lang/rescript/pull/7315
3434
- Hide stdlib modules in output. https://github.com/rescript-lang/rescript/pull/7305
35+
- Deprecate unsafe host-specific bindings from stdlib. https://github.com/rescript-lang/rescript/pull/7334
3536

3637
#### :bug: Bug fix
3738

runtime/Stdlib.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ type null<+'a> = Primitive_js_extern.null<'a>
5353
type undefined<+'a> = Primitive_js_extern.undefined<'a>
5454
type nullable<+'a> = Primitive_js_extern.nullable<'a>
5555

56-
@val external window: Dom.window = "window"
57-
@val external document: Dom.document = "document"
56+
@deprecated("Use rescript-webapi instead") @val external window: Dom.window = "window"
57+
@deprecated("Use rescript-webapi instead") @val external document: Dom.document = "document"
5858
@val external globalThis: {..} = "globalThis"
5959

6060
/**

0 commit comments

Comments
 (0)