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

js: Implement the WinterCG Minimum Common Web Platform API #23576

Open
57 tasks
ADKaster opened this issue Mar 13, 2024 · 0 comments
Open
57 tasks

js: Implement the WinterCG Minimum Common Web Platform API #23576

ADKaster opened this issue Mar 13, 2024 · 0 comments
Labels
enhancement New feature or request spec compliance task list This issue contains a list of tasks.

Comments

@ADKaster
Copy link
Member

ADKaster commented Mar 13, 2024

The WinterCG has been drafting a minimum runtime API for non-browser JS runtimes here https://common-min-api.proposal.wintercg.org

We should support the list of APIs in our js standalone runtime.

Alternatively, we could create a separate CLI tool to implement these features (coldjs? webjs? autumnjs ?)


Interfaces:

  • AbortController
  • AbortSignal
  • Blob
  • ByteLengthQueuingStrategy
  • CompressionStream
  • CountQueuingStrategy
  • Crypto
  • CryptoKey
  • DecompressionStream
  • DOMException
  • Event
  • EventTarget
  • File
  • FormData
  • Headers
  • ReadableByteStreamController
  • ReadableStream
  • ReadableStreamBYOBReader
  • ReadableStreamBYOBRequest
  • ReadableStreamDefaultController
  • ReadableStreamDefaultReader
  • Request
  • Response
  • SubtleCrypto
  • TextDecoder
  • TextDecoderStream
  • TextEncoder
  • TextEncoderStream
  • TransformStream
  • TransformStreamDefaultController
  • URL
  • URLSearchParams
  • WebAssembly.Global
  • WebAssembly.Instance
  • WebAssembly.Memory
  • WebAssembly.Module
  • WebAssembly.Table
  • WritableStream
  • WritableStreamDefaultController

Global Methods/Properties:

  • globalThis
  • globalThis.atob()
  • globalThis.btoa()
  • globalThis.console
  • globalThis.crypto
  • globalThis.fetch()
  • globalThis.navigator.userAgent
  • globalThis.performance.now()
  • globalThis.performance.timeOrigin
  • globalThis.queueMicrotask()
  • globalThis.setTimeout() / globalThis.clearTimeout()
  • globalThis.setInterval() / globalThis.clearInterval()
  • globalThis.structuredClone()
  • globalThis.WebAssembly.compile()
  • globalThis.WebAssembly.compileStreaming()
  • globalThis.WebAssembly.instantiate()
  • globalThis.WebAssembly.instantiateStreaming()
  • globalThis.WebAssembly.validate()
@ADKaster ADKaster added enhancement New feature or request spec compliance task list This issue contains a list of tasks. labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request spec compliance task list This issue contains a list of tasks.
Projects
None yet
Development

No branches or pull requests

1 participant