Commit d442623
Split webAPI into multiple subpackages (#249)
* clean types in Prelude
* split into subpackages
* add back getter functions for Window
* move back Navigator to DOM
* remove globals package
* delete files that should not be versioned
* add some more typealiases in DOM/Types
* format
* delete JS files
* format package.json
* fix docs generation
* change namespace to `@rescript/webapi-[section]`
* publish all subpackages in CI
* refactor: carry over post-monorepo pre-alpha cleanup (#252)
* refactor: carry over post-monorepo pre-alpha cleanup
Port the surviving API cleanup from the final pre-alpha branch onto the monorepo split introduced in #249.
This adds the missing concrete modules, translates the fetch/runtime/canvas/websocket/media surface cleanup into the package layout, and keeps the branch green with updated tests.
* refactor(DOM): remove numeric scroll overloads
Drop scroll2/scrollTo2/scrollBy2 and keep the descriptive *XY overload names requested in review.
Co-authored-by: Codex <codex@openai.com>
---------
Co-authored-by: Codex <codex@openai.com>
* format
* simplify FOrmDataEntryValue type
* clean alert and postMessage
* fix CI
* remove useless namespace
* mark bindings of classes/interfaces as private records to prevent creation
records that have mutable fields were not marked as private for now
because mutating these mutable fields is not allowed
* format
* add missing getters for Navigator
* add Window.t type
---------
Co-authored-by: Josh Vlk <josh@vlkpack.com>
Co-authored-by: Codex <codex@openai.com>1 parent 61b1074 commit d442623
1,070 files changed
Lines changed: 28288 additions & 27357 deletions
File tree
- .github/workflows
- docs
- packages
- CSSFontLoading
- src
- Canvas
- src
- ChannelMessaging
- src
- Clipboard
- src
- CredentialManagement
- src
- DOM
- src
- EncryptedMediaExtensions
- src
- Event
- src
- Fetch
- src
- FileAndDirectoryEntries
- src
- File
- src
- Gamepad
- src
- Geolocation
- src
- History
- src
- IndexedDB
- src
- IntersectionObserver
- src
- MediaCapabilities
- src
- MediaCaptureAndStreams
- src
- MediaSession
- src
- MutationObserver
- src
- Notification
- src
- Performance
- src
- Permissions
- src
- PictureInPicture
- src
- Prelude
- src
- Push
- src
- RemotePlayback
- src
- ResizeObserver
- src
- ScreenWakeLock
- src
- ServiceWorker
- src
- Storage
- src
- UIEvents
- src
- URL
- src
- ViewTransitions
- src
- VisualViewport
- src
- WebAudio
- src
- WebCrypto
- src
- WebLocks
- src
- WebMIDI
- src
- WebSockets
- src
- WebSpeech
- src
- WebStorage
- src
- WebVTT
- src
- WebWorkers
- src
- src
- CSSFontLoadingAPI
- CanvasAPI
- ChannelMessagingAPI
- ClipboardAPI
- CredentialManagementAPI
- DOMAPI
- EncryptedMediaExtensionsAPI
- EventAPI
- FetchAPI
- FileAPI
- FileAndDirectoryEntriesAPI
- GamepadAPI
- GeolocationAPI
- HistoryAPI
- IndexedDBAPI
- IntersectionObserverAPI
- MediaCapabilitiesAPI
- MediaCaptureAndStreamsAPI
- MediaSessionAPI
- MutationObserverAPI
- NotificationAPI
- PerformanceAPI
- PermissionsAPI
- Prelude
- PushAPI
- RemotePlaybackAPI
- ResizeObserverAPI
- ScreenWakeLockAPI
- ServiceWorkerAPI
- StorageAPI
- UIEventsAPI
- URLAPI
- ViewTransitionsAPI
- WebAudioAPI
- WebCryptoAPI
- WebLocksAPI
- WebSocketsAPI
- WebSpeechAPI
- WebStorageAPI
- WebVTTAPI
- WebWorkersAPI
- tests
- DOMAPI
- FetchAPI
- IntersectionObserverAPI
- MutationObserverAPI
- NotificationsAPI
- ServiceWorkerAPI
- URLAPI
- WebAudioAPI
- WebStorageAPI
- WebWorkersAPI
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
64 | 98 | | |
65 | 99 | | |
66 | 100 | | |
67 | 101 | | |
68 | | - | |
| 102 | + | |
69 | 103 | | |
70 | 104 | | |
71 | | - | |
| 105 | + | |
72 | 106 | | |
73 | 107 | | |
74 | 108 | | |
75 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
76 | 115 | | |
77 | 116 | | |
78 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
92 | | - | |
| 95 | + | |
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
96 | 99 | | |
97 | | - | |
| 100 | + | |
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | 57 | | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
| |||
149 | 152 | | |
150 | 153 | | |
151 | 154 | | |
152 | | - | |
| 155 | + | |
153 | 156 | | |
154 | 157 | | |
155 | 158 | | |
156 | | - | |
| 159 | + | |
157 | 160 | | |
158 | 161 | | |
159 | 162 | | |
| |||
0 commit comments