Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update usage for {{AvailableInWorkers}} #31675

Closed
19 of 20 tasks
skyclouds2001 opened this issue Jan 12, 2024 · 1 comment · Fixed by #35596
Closed
19 of 20 tasks

Update usage for {{AvailableInWorkers}} #31675

skyclouds2001 opened this issue Jan 12, 2024 · 1 comment · Fixed by #35596
Labels
accepting PR Feel free to open a PR to resolve this issue area: Workers Content:WebAPI Web API docs MDN:Project Anything related to larger core projects on MDN

Comments

@skyclouds2001
Copy link
Contributor

skyclouds2001 commented Jan 12, 2024

the mdn/yari#10029 brings additional ability to better reflect features' scope (and mdn/yari#10968 which add one more case)

the issue is intended to track those features that need to update when the macros change landed (see https://github.com/mdn/yari/blob/main/kumascript/macros/AvailableInWorkers.ejs)

also reference to https://github.com/sindresorhus/globals

test with https://worker-playground.glitch.me/

the list is as follows:

tasks

Preview Give feedback
  1. Content:WebAPI size/m
  2. Content:WebAPI size/s
  3. Content:WebAPI size/m
  4. Content:Meta Content:WebAPI size/s
  5. Content:WebAPI size/s
  6. Content:WebAPI size/s
  7. Content:WebAPI size/m
  8. Content:WebAPI size/s
  9. Content:WebAPI size/m
  10. Content:WebAPI size/m
  11. Content:WebAPI size/m
  12. Content:WebAPI size/s
  13. Content:WebAPI size/s
  14. Content:WebAPI size/s
  15. Content:WebAPI size/s
  16. Content:WebAPI size/m
  17. Content:WebAPI size/s
  18. Content:WebAPI size/s
  19. Content:WebAPI size/m

a full list is as follows:

  • WebCodecs API, of https://w3c.github.io/webcodecs/
    • AudioDecoder
    • VideoDecoder
    • AudioEncoder
    • VideoEncoder
    • EncodedAudioChunk
    • EncodedVideoChunk
    • AudioData
    • VideoFrame
    • VideoColorSpace
    • ImageDecoder
    • ImageTrackList
    • ImageTrack
    • above in Window, DedicatedWorker
  • WebRTC API, of https://w3c.github.io/webrtc-encoded-transform/
    • RTCEncodedAudioFrame
    • RTCEncodedVideoFrame
    • SFrameTransformErrorEvent
    • SFrameTransform
    • above in Window, DedicatedWorker
    • DedicatedWorkerGlobalScope.rtctransform
    • KeyFrameRequestEvent
    • RTCTransformEvent
    • above only in DedicatedWorker
  • XMLHTTPRequest API, of https://xhr.spec.whatwg.org/
    • XMLHttpRequest
    • XMLHttpRequestUpload
    • XMLHttpRequestEventTarget
    • both in Window, DedicatedWorker, SharedWorker
  • Web Serial API, of https://wicg.github.io/serial/
    • WorkerNavigator.serial
    • only in DedicatedWorker
    • Serial
    • SerialPort
    • both only in Window, DedicatedWorker
  • WebUSB API, of https://wicg.github.io/webusb/
    • WorkerNavigator.usb
    • in DedicatedWorker, SharedWorker
    • USBConnectionEvent
    • USBInTransferResult
    • USBOutTransferResult
    • USBIsochronousInTransferPacket
    • USBIsochronousInTransferResult
    • USBIsochronousOutTransferPacket
    • USBIsochronousOutTransferResult
    • USBDevice
    • USBConfiguration
    • USBInterface
    • USBAlternateInterface
    • USBEndpoint
    • both in Window, DedicatedWorker, SharedWorker
  • File API, of https://w3c.github.io/FileAPI/
    • FileReaderSync
    • only in DedicatedWorker, SharedWorker
    • URL.createObjectURL()
    • URL.revokeObjectURL()
    • in Window, DedicatedWorker, SharedWorker
  • File System API, of https://fs.spec.whatwg.org/
    • FileSystemSyncAccessHandle
    • FileSystemFileHandle.createSyncAccessHandle()
    • both only in DedicatedWorker
  • Web Worker API, of https://html.spec.whatwg.org/multipage/workers.html
    • WorkerGlobalScope
    • WorkerNavigator
    • WorkerLocation
    • above only in Worker
    • Worker, only in Window, DedicatedWorker, SharedWorker
    • DedicatedWorkerGlobalScope, only in DedicatedWorker
    • SharedWorkerGlobalScope, only in SharedWorker
  • Service Worker API, of https://w3c.github.io/ServiceWorker/
    • ServiceWorkerGlobalScope
    • Client
    • WindowClient
    • Clients
    • ExtendableEvent
    • FetchEvent
    • ExtendableMessageEvent
    • both only in ServiceWorker
  • Cookie Store API, of https://wicg.github.io/cookie-store/
    • CookieStore (except for change event)
    • CookieStoreManager
    • ServiceWorkerRegistration.cookies
    • above both in Window, ServiceWorker
    • ExtendableCookieChangeEvent
    • ServiceWorkerGlobalScope.cookieStore
    • ServiceWorkerGlobalScope: cookiechange event
    • above both only in ServiceWorker
  • Notifications API, of https://notifications.spec.whatwg.org/
    • NotificationEvent
    • ServiceWorkerGlobalScope: notificationclick event
    • ServiceWorkerGlobalScope: notificationclose event
    • both only in ServiceWorker
  • Content Index API, of https://wicg.github.io/content-index/spec/
    • ContentIndexEvent
    • ServiceWorkerGlobalScope: contentdelete event
    • both only in ServiceWorker
  • Payment Handler API, of https://w3c.github.io/payment-handler/
    • CanMakePaymentEvent
    • ServiceWorkerGlobalScope: canmakepayment event
    • PaymentRequestEvent
    • ServiceWorkerGlobalScope: paymentrequest event
    • both only in ServiceWorker
  • Background Fetch API, of https://wicg.github.io/background-fetch/
    • BackgroundFetchEvent
    • BackgroundFetchUpdateUIEvent
    • ServiceWorkerGlobalScope: backgroundfetchsuccess event
    • ServiceWorkerGlobalScope: backgroundfetchfail event
    • ServiceWorkerGlobalScope: backgroundfetchabort event
    • ServiceWorkerGlobalScope: backgroundfetchclick event
    • both only in ServiceWorker
  • Web Background Synchronization API, of https://wicg.github.io/background-sync/spec/
    • SyncEvent
    • ServiceWorkerGlobalScope: sync event
    • both only in ServiceWorker
  • Web Periodic Background Synchronization API, of https://wicg.github.io/periodic-background-sync/
    • PeriodicSyncEvent
    • ServiceWorkerGlobalScope: periodicsync event
    • both only in ServiceWorker
  • Push API, of https://w3c.github.io/push-api/
    • PushMessageData
    • PushEvent
    • PushSubscriptionChangeEvent
    • ServiceWorkerGlobalScope: push event
    • ServiceWorkerGlobalScope: pushsubscriptionchange event
    • both only in ServiceWorker
@skyclouds2001 skyclouds2001 added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jan 12, 2024
@bsmth bsmth added accepting PR Feel free to open a PR to resolve this issue and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. depends on tooling labels Apr 5, 2024
@Josh-Cena
Copy link
Member

@skyclouds2001 It's not easy to tell what tasks are left and when the issue could be considered done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepting PR Feel free to open a PR to resolve this issue area: Workers Content:WebAPI Web API docs MDN:Project Anything related to larger core projects on MDN
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants