-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revamp importing to enable bumping Undici, and fixing instanceof test…
…s within the edge runtime (#309) Co-authored-by: Kiko Beats <josefrancisco.verdu@gmail.com> Co-authored-by: Gal Schlezinger <gal@spitfire.co.il>
- Loading branch information
1 parent
c13ddb8
commit ed225b3
Showing
43 changed files
with
794 additions
and
281 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
'@edge-runtime/jest-environment': minor | ||
'@edge-runtime/jest-expect': minor | ||
'@edge-runtime/node-utils': minor | ||
'@edge-runtime/primitives': minor | ||
'@edge-runtime/user-agent': minor | ||
'@edge-runtime/ponyfill': minor | ||
'@edge-runtime/cookies': minor | ||
'edge-runtime': minor | ||
'@edge-runtime/format': minor | ||
'@edge-runtime/types': minor | ||
'@edge-runtime/vm': minor | ||
--- | ||
|
||
Fix `instanceof` tests, upgrade undici and revamp how we import stuff into the VM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,5 +33,6 @@ coverage | |
docs/.next | ||
docs/node_modules | ||
packages/*/dist | ||
packages/*/*.tgz | ||
packages/runtime/src/version.ts | ||
.vercel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import buildConfig from '../../jest.config' | ||
import type { Config } from '@jest/types' | ||
|
||
const config: Config.InitialOptions = { | ||
...buildConfig(__dirname), | ||
testEnvironment: '@edge-runtime/jest-environment', | ||
} | ||
export default config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "@edge-runtime/integration-tests", | ||
"private": true, | ||
"version": "1.0.0", | ||
"scripts": { | ||
"test": "pnpm run test:node && pnpm run test:edge", | ||
"test:edge": "jest --testEnvironment @edge-runtime/jest-environment", | ||
"test:node": "jest --testEnvironment node" | ||
}, | ||
"license": "MPL-2.0", | ||
"devDependencies": { | ||
"@edge-runtime/jest-environment": "workspace:*", | ||
"@edge-runtime/ponyfill": "workspace:*", | ||
"@edge-runtime/primitives": "workspace:*" | ||
} | ||
} |
3 changes: 1 addition & 2 deletions
3
...primitives/tests/abort-controller.test.ts → ...tion-tests/tests/abort-controller.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/primitives/tests/crypto.test.ts → ...es/integration-tests/tests/crypto.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/primitives/tests/encoding.test.ts → .../integration-tests/tests/encoding.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/primitives/tests/headers.test.ts → ...s/integration-tests/tests/headers.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/primitives/tests/request.test.ts → ...s/integration-tests/tests/request.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/primitives/tests/url.test.ts → packages/integration-tests/tests/url.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
ed225b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
edge-runtime – ./
edge-runtime.vercel.app
edge-runtime.vercel.sh
edge-runtime-git-main.vercel.sh