Skip to content

Commit 2a358eb

Browse files
committed
deprecate unsafe host-specific bindings from stdlib
1 parent 600f285 commit 2a358eb

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
@@ -33,6 +33,7 @@
3333

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

3738
#### :bug: Bug fix
3839

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)