From 943755fe6ba0845f302c811312cd7092a2463bc9 Mon Sep 17 00:00:00 2001 From: Max Isom Date: Wed, 3 Apr 2024 16:12:40 -0700 Subject: [PATCH] Bump node version --- .github/workflows/npm-semantic-release.yml | 2 +- .github/workflows/prettier.yml | 2 +- .github/workflows/test.yml | 4 ++-- .github/workflows/type-test.yml | 2 +- package.json | 3 +++ src/worker.ts | 6 ------ 6 files changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/npm-semantic-release.yml b/.github/workflows/npm-semantic-release.yml index 347f976..3cc7548 100644 --- a/.github/workflows/npm-semantic-release.yml +++ b/.github/workflows/npm-semantic-release.yml @@ -15,7 +15,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v2 with: - node-version: "16.x" + node-version: "18.x" - name: Install dependencies run: yarn install - name: Build diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index a0c9f04..d074da4 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -13,7 +13,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v2 with: - node-version: 16 + node-version: 18 - name: Install dependencies run: yarn install - name: Run Prettier Test diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f590faf..0de2bf2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,8 +8,8 @@ jobs: name: Run NPM Test strategy: matrix: - node-version: [14.x, 16.x, 18.x] - postgres-version: [13, 14, 15] + node-version: [18.x, 20.x] + postgres-version: [14, 15, 16] runs-on: ubuntu-20.04 steps: - name: Checkout diff --git a/.github/workflows/type-test.yml b/.github/workflows/type-test.yml index 761d452..b89a0e6 100644 --- a/.github/workflows/type-test.yml +++ b/.github/workflows/type-test.yml @@ -11,7 +11,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v2 with: - node-version: 16 + node-version: 18 cache: "yarn" - name: Run NPM Install run: yarn install --frozen-lockfile diff --git a/package.json b/package.json index 6565bef..46324d7 100644 --- a/package.json +++ b/package.json @@ -60,5 +60,8 @@ "build": "tsup", "format": "prettier -w .", "format:check": "prettier --check ." + }, + "engines": { + "node": ">=18" } } diff --git a/src/worker.ts b/src/worker.ts index 9963a1e..030d163 100644 --- a/src/worker.ts +++ b/src/worker.ts @@ -11,12 +11,6 @@ import type { SharedWorkerFunctions, TestWorkerFunctions } from "./lib/rpc" type WorkerRpc = BirpcReturn -class TestWorkerShutdownError extends Error { - constructor() { - super("Test worker unexpectedly shut down") - } -} - export class Worker { private paramsHashToTemplateCreationPromise = new Map< string,