Skip to content

Commit 5e68e66

Browse files
author
webbureaucrat
committed
Merge branch 'main' of https://github.com/switch-to-gitlab/experimental-rescript-webapi into feature/shared-worker
2 parents bba4378 + 726c4ec commit 5e68e66

File tree

169 files changed

+704
-953
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+704
-953
lines changed

docs/content/docs/contributing/getting-started.mdx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,3 @@ Install the dependencies and compile the bindings using `ReScript`:
5858
```shell
5959
npm install && npm run build
6060
```
61-
62-
<Aside type="caution">
63-
Usage of **[rewatch](https://github.com/rescript-lang/rewatch)** is currently not advised.
64-
See [rewatch#144](https://github.com/rescript-lang/rewatch/issues/144) and [rewatch#124](https://github.com/rescript-lang/rewatch/issues/124#issuecomment-2488194551)
65-
</Aside>

package-lock.json

Lines changed: 340 additions & 350 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@
2828
"type": "module",
2929
"scripts": {
3030
"test": "node tests/index.js",
31-
"build": "rewatch --dev",
32-
"format": "rescript format -all && prettier --write ./tests/index.js ./package.json ./docs/pages",
31+
"build": "rescript --dev",
32+
"format": "rescript format --all && prettier --write ./tests/index.js ./package.json ./docs/pages",
3333
"docs": "astro dev",
3434
"prebuild:docs": "node docs/llm.js",
3535
"build:docs": "astro build"
3636
},
3737
"license": "MIT",
3838
"dependencies": {
39-
"rescript": "^12.0.0-alpha.13"
39+
"rescript": "^12.0.0-beta.2"
4040
},
4141
"devDependencies": {
42-
"@astrojs/starlight": "0.34.4",
43-
"astro": "^5.1.1",
42+
"@astrojs/starlight": "0.35.1",
43+
"astro": "^5.10.1",
4444
"micromark": "^4.0.1",
4545
"prettier": "^3.3.3",
4646
"prettier-plugin-astro": "^0.14.1",

src/CSSFontLoadingAPI.res

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ type rec fontFace = {
7777
/**
7878
[See FontFaceSet on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet)
7979
*/
80-
@editor.completeFrom(FontFace)
8180
@editor.completeFrom(FontFaceSet)
8281
type rec fontFaceSet = {
8382
...eventTarget,

src/CSSFontLoadingAPI/FontFaceSet.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
open CSSFontLoadingAPI
22

3-
include EventTarget.Impl({
4-
type t = fontFaceSet
5-
})
3+
include EventTarget.Impl({type t = fontFaceSet})
64

75
/**
86
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/add)

src/CanvasAPI/OffscreenCanvas.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ open FileAPI
77
@new
88
external make: (~width: int, ~height: int) => offscreenCanvas = "OffscreenCanvas"
99

10-
include EventTarget.Impl({
11-
type t = offscreenCanvas
12-
})
10+
include EventTarget.Impl({type t = offscreenCanvas})
1311

1412
/**
1513
Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.

src/ChannelMessagingAPI/MessagePort.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
open ChannelMessagingAPI
22

3-
include EventTarget.Impl({
4-
type t = messagePort
5-
})
3+
include EventTarget.Impl({type t = messagePort})
64

75
/**
86
Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.

src/ClipboardAPI/Clipboard.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
open ClipboardAPI
22

3-
include EventTarget.Impl({
4-
type t = clipboard
5-
})
3+
include EventTarget.Impl({type t = clipboard})
64

75
/**
86
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Clipboard/read)

src/DOMAPI.res

Lines changed: 35 additions & 70 deletions
Large diffs are not rendered by default.

src/DOMAPI/Animation.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ open DOMAPI
77
external make: (~effect: animationEffect=?, ~timeline: animationTimeline=?) => animation =
88
"Animation"
99

10-
include EventTarget.Impl({
11-
type t = animation
12-
})
10+
include EventTarget.Impl({type t = animation})
1311

1412
/**
1513
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation/cancel)

0 commit comments

Comments
 (0)