Skip to content

Commit

Permalink
chore: setup node18 as the minimum version (#1050)
Browse files Browse the repository at this point in the history
* chore: setup node18 as the minimum version

* chore: drop node-fetch

* test: don't print warnings
  • Loading branch information
Kikobeats authored Dec 2, 2024
1 parent b1e3795 commit f33095c
Show file tree
Hide file tree
Showing 17 changed files with 14 additions and 85 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"tailwindcss": "~3.4.14"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"scripts": {
"build": "next build ",
Expand Down
1 change: 0 additions & 1 deletion docs/pages/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ and expose it locally to be used via HTTP:
```js
import { EdgeRuntime, runServer } from 'edge-runtime'
import { onExit } from 'signal-exit'
import fetch from 'node-fetch'

const initialCode = `
addEventListener('fetch', event => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
"typescript": "latest"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"scripts": {
"build": "turbo run build",
Expand Down
2 changes: 1 addition & 1 deletion packages/cookies/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"tsup": "8"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"files": [
"dist"
Expand Down
2 changes: 1 addition & 1 deletion packages/format/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"tsup": "8"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"files": [
"dist"
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-environment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"jest-util": "29.5.0"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"files": [
"dist"
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-expect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@edge-runtime/jest-environment": "workspace:*"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"files": [
"dist",
Expand Down
2 changes: 1 addition & 1 deletion packages/node-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"tsup": "8"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"files": [
"dist"
Expand Down
2 changes: 1 addition & 1 deletion packages/ponyfill/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"acorn-walk": "8.3.4"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"files": [
"src"
Expand Down
2 changes: 1 addition & 1 deletion packages/primitives/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"urlpattern-polyfill": "10.0.0"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"files": [
"dist",
Expand Down
6 changes: 1 addition & 5 deletions packages/runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,8 @@
"signal-exit": "4.0.2",
"time-span": "4.0.0"
},
"devDependencies": {
"@types/node-fetch": "2",
"node-fetch": "2"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"files": [
"dist"
Expand Down
1 change: 0 additions & 1 deletion packages/runtime/tests/fixtures/unhandled-rejection.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { EdgeRuntime, runServer } from '../../src'
import assert from 'assert'
import fetch from 'node-fetch'

async function main() {
const runtime = new EdgeRuntime()
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/tests/rejections-and-errors.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ it('handles correctly unhandled rejections', async () => {

it('reports unhandled rejection for pull errors', async () => {
const result = await execAsync(
`ts-node --transpile-only ${resolve(
`NODE_NO_WARNINGS=1 ts-node --transpile-only ${resolve(
__dirname,
'./fixtures/pull-error.ts',
)}`,
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@edge-runtime/primitives": "workspace:*"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"files": [
"src"
Expand Down
2 changes: 1 addition & 1 deletion packages/user-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"ua-parser-js": "1.0.39"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"files": [
"dist"
Expand Down
2 changes: 1 addition & 1 deletion packages/vm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"web"
],
"engines": {
"node": ">=16"
"node": ">=18"
},
"files": [
"dist"
Expand Down
65 changes: 0 additions & 65 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f33095c

Please sign in to comment.