Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 13 additions & 33 deletions rescript.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"WebAPI.Fetch": ["WebAPI.Event", "WebAPI.File", "WebAPI.URL", "Fetch"],
"WebAPI.CSSFontLoading": ["WebAPI.Event", "CSSFontLoading"],
"WebAPI.Device": ["WebAPI.Event", "Device"],
"WebAPI.Messaging": ["WebAPI.Event", "WebAPI.File", "Messaging"],
"WebAPI.Crypto": ["WebAPI.DOM", "Crypto"],
"WebAPI.Performance": ["WebAPI.Event", "Performance"],
"WebAPI.ViewTransitions": ["WebAPI.Event", "ViewTransitions"]
Expand Down Expand Up @@ -62,11 +63,20 @@
]
},
{
"dir": "src/ChannelMessaging",
"dir": "src/messaging",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep the moved messaging modules in the API docs

When Astro generates the API reference, docs/utils.js:85-92 derives each source directory from featureSpecs, which still lists ChannelMessaging, Notification, Push, and WebSockets (scripts/unmonorepo/feature-spec.mjs:77,95,99,113). After moving those files into src/messaging, none of their expected *Types.res paths exist, so the filter silently drops all four API groups and their public modules—including MessagePort, Notification, the Push modules, and WebSocket—from the generated routes and index. Update the documentation metadata/path handling as part of this move.

Useful? React with 👍 / 👎.

"subdirs": true,
"feature": "WebAPI.ChannelMessaging",
"feature": "Messaging",
"public": [
"MessagePort"
"ApplicationServerKey",
"CloseEvent",
"MessageEvent",
"MessagePort",
"Notification",
"PushEvent",
"PushManager",
"PushMessageData",
"PushSubscription",
"WebSocket"
]
},
{
Expand Down Expand Up @@ -351,14 +361,6 @@
"MutationObserver"
]
},
{
"dir": "src/Notification",
"subdirs": true,
"feature": "WebAPI.Notification",
"public": [
"Notification"
]
},
{
"dir": "src/performance",
"subdirs": true,
Expand All @@ -385,18 +387,6 @@
"PictureInPicture"
]
},
{
"dir": "src/Push",
"subdirs": true,
"feature": "WebAPI.Push",
"public": [
"ApplicationServerKey",
"PushEvent",
"PushManager",
"PushMessageData",
"PushSubscription"
]
},
{
"dir": "src/RemotePlayback",
"subdirs": true,
Expand Down Expand Up @@ -528,16 +518,6 @@
"SubtleCrypto"
]
},
{
"dir": "src/WebSockets",
"subdirs": true,
"feature": "WebAPI.WebSockets",
"public": [
"CloseEvent",
"MessageEvent",
"WebSocket"
]
},
{
"dir": "src/WebSpeech",
"subdirs": true,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.