Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .changeset/chilled-plants-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"@trigger.dev/integration-kit": minor
"@trigger.dev/eslint-plugin": minor
"@trigger.dev/sdk": minor
"@trigger.dev/sveltekit": minor
"@trigger.dev/express": minor
"@trigger.dev/nestjs": minor
"@trigger.dev/nextjs": minor
"@trigger.dev/astro": minor
"@trigger.dev/core": minor
"@trigger.dev/cli": minor
---

Drop support for Node v16, require Node >= 18. This allows us to use native fetch in our SDK which paves the way for multi-platform support.
2 changes: 1 addition & 1 deletion packages/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"typescript": "^4.8.4"
},
"engines": {
"node": ">=16.8.0"
"node": ">=18.0.0"
},
"license": "MIT",
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@
"zod": "3.22.3"
},
"engines": {
"node": ">=16.8.0"
"node": ">=18.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@
"typescript": "^4.9.4"
},
"engines": {
"node": ">=16.8.0"
"node": ">=18.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"npm-run-all": "^4.1.5"
},
"engines": {
"node": "^14.17.0 || ^16.0.0 || >= 18.0.0"
"node": ">=18.0.0"
},
"peerDependencies": {
"eslint": ">=7"
Expand Down
2 changes: 1 addition & 1 deletion packages/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
"express": "^4.18.2"
},
"engines": {
"node": ">=16.8.0"
"node": ">=18.0.0"
}
}
4 changes: 1 addition & 3 deletions packages/integration-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"devDependencies": {
"@trigger.dev/tsconfig": "workspace:*",
"@types/node": "18",
"@types/node-fetch": "2.6.x",
"@types/uuid": "^9.0.0",
"rimraf": "^3.0.2",
"tsup": "^6.5.0",
Expand All @@ -35,10 +34,9 @@
"typecheck": "tsup --dts-resolve --no-dts"
},
"dependencies": {
"node-fetch": "2.6.x",
"uuid": "^9.0.0"
},
"engines": {
"node": ">=16.8.0"
"node": ">=18.0.0"
}
}
4 changes: 2 additions & 2 deletions packages/integration-kit/src/file.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import fs, { promises } from "fs";
import path from "path";
import { v4 as uuidv4 } from "uuid";
import fetch from "node-fetch";

export async function fileFromString(contents: string | Buffer, fileName: string): Promise<File> {
const directory = path.join("tmp", uuidv4());
Expand All @@ -13,7 +12,8 @@ export async function fileFromString(contents: string | Buffer, fileName: string

export async function fileFromUrl(url: string) {
const response = await fetch(url);
const content = await response.buffer();
const arrayBuffer = await response.arrayBuffer();
const content = Buffer.from(arrayBuffer);
const fileName = path.basename(url);

return fileFromString(content, fileName);
Expand Down
2 changes: 1 addition & 1 deletion packages/nestjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
"debug": "^4.3.4"
},
"engines": {
"node": ">=16.8.0"
"node": ">=18.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
"debug": "^4.3.4"
},
"engines": {
"node": ">=16.8.0"
"node": ">=18.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/sveltekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
"debug": "^4.3.4"
},
"engines": {
"node": ">=16.8.0"
"node": ">=18.0.0"
}
}
4 changes: 1 addition & 3 deletions packages/trigger-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"get-caller-file": "^2.0.5",
"git-remote-origin-url": "^4.0.0",
"git-repo-info": "^2.1.1",
"node-fetch": "2.6.x",
"slug": "^6.0.0",
"terminal-link": "^3.0.0",
"ulid": "^2.3.0",
Expand All @@ -45,7 +44,6 @@
"@trigger.dev/tsconfig": "workspace:*",
"@types/debug": "^4.1.7",
"@types/node": "18",
"@types/node-fetch": "2.6.x",
"@types/slug": "^5.0.3",
"@types/uuid": "^9.0.0",
"@types/ws": "^8.5.3",
Expand All @@ -56,6 +54,6 @@
"typescript": "^4.8.4"
},
"engines": {
"node": ">=16.8.0"
"node": ">=18.0.0"
}
}
1 change: 0 additions & 1 deletion packages/trigger-sdk/src/apiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import {
API_VERSIONS,
} from "@trigger.dev/core";

import fetch, { type RequestInit } from "node-fetch";
import { z } from "zod";

export type ApiClientOptions = {
Expand Down
21 changes: 0 additions & 21 deletions pnpm-lock.yaml

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