edge-runtime
edge-runtime copied to clipboard
Developing, testing, and defining the runtime Web APIs for Edge infrastructure.
These constructors are missing right now: ```js expect(format(new Map([['foo', 'bar']]))).toBe("Map(1) { 'foo' => 'bar' }") expect(format(new Set([['foo', 'bar']]))).toBe("Set(1) { [ 'foo', 'bar' ] }") expect(format(new Uint8Array([1, 2, 3]))).toBe("Uint8Array(3) [ 1,...
The following fails in the edge runtime (but not in the node runtime) ```typescript class Foo { constructor() { ... } ... } const cls = Foo; cls instanceof Function...
This provides utilities to handle with cookie parsing & manipulating with Request/Response objects. The code was copied from the Next.js repo, to provide these utilities to other frameworks so they...
Bumps [urlpattern-polyfill](https://github.com/kenchris/urlpattern-polyfill) from 5.0.5 to 5.0.6. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
Logging a response throws, eg `console.log(new Response("yes"))` throws an error. ## Reproduction ### First way to reproduce (longer) 1. Create an Edge API Route 2. Fetch anything 3. Log the...
This PR introduces the following changes: - fix(cli): make repl execute all commands in the edge vm instead of copying the values - fix(format): include constructor name in the logger...
The [abort-controller polyfill](https://github.com/mysticatea/abort-controller) isn't compliant with the spec right now, because: - `AbortSignal.abort` is missing - `AbortSignal.timeout` is missing Alternatives: - https://www.npmjs.com/package/abortcontroller-polyfill - https://www.npmjs.com/package/yet-another-abortcontroller-polyfill Related: - https://github.com/vercel/next.js/issues/38658
We can enable users to have simpler tests by having expectations that match the standard library we provide. For instance, `Response` matchers: ```ts expect(response).toHaveStatusCode(...); // These expectations can be shared...