Skip to content

Commit bc9e6cc

Browse files
committed
chore: Remove support for Node 14
1 parent df72bfb commit bc9e6cc

File tree

10 files changed

+11
-17
lines changed

10 files changed

+11
-17
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
fail-fast: true
1717
matrix:
1818
reuse-v8-context: [true]
19-
node: [14, 16, 18, 20]
19+
node: [16, 18, 20]
2020
os: [ubuntu-latest, macos-12, windows-latest]
2121
include:
2222
- os: ubuntu-latest
@@ -143,9 +143,9 @@ jobs:
143143
fail-fast: true
144144
matrix:
145145
include:
146-
- runsOn: buildjet-2vcpu-ubuntu-1804
146+
- runsOn: buildjet-2vcpu-ubuntu-2004
147147
target: x86_64-unknown-linux-gnu
148-
- runsOn: buildjet-2vcpu-ubuntu-1804
148+
- runsOn: buildjet-2vcpu-ubuntu-2004
149149
target: aarch64-unknown-linux-gnu
150150
rustflags: '-C linker=aarch64-linux-gnu-gcc'
151151
- runsOn: macos-12

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"@opentelemetry/api": "^1.7.0",
5454
"@opentelemetry/core": "^1.19.0",
5555
"@opentelemetry/sdk-node": "^0.46.0",
56-
"@tsconfig/node14": "^14.1.0",
56+
"@tsconfig/node16": "^16.1.3",
5757
"@types/fs-extra": "^11.0.4",
5858
"@types/ms": "^0.7.34",
5959
"@types/node": "^20.10.8",
@@ -76,7 +76,7 @@
7676
"verdaccio": "^5.29.0"
7777
},
7878
"engines": {
79-
"node": ">= 14.18.0",
79+
"node": ">= 16.0.0",
8080
"npm": ">= 6.0.0",
8181
"rustc": ">= 1.53.0"
8282
}

packages/activity/src/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@
6969
* @module
7070
*/
7171

72-
// Keep this around until we drop support for Node 14.
73-
import 'abort-controller/polyfill'; // eslint-disable-line import/no-unassigned-import
7472
import { AsyncLocalStorage } from 'node:async_hooks';
7573
import { Logger, Duration, LogLevel, LogMetadata } from '@temporalio/common';
7674
import { msToNumber } from '@temporalio/common/lib/time';
@@ -204,7 +202,7 @@ export class Context {
204202
/**
205203
* Gets the context of the current Activity.
206204
*
207-
* Uses {@link https://nodejs.org/docs/latest-v14.x/api/async_hooks.html#async_hooks_class_asynclocalstorage | AsyncLocalStorage} under the hood to make it accessible in nested callbacks and promises.
205+
* Uses {@link https://nodejs.org/docs/latest-v16.x/api/async_context.html#class-asynclocalstorage | AsyncLocalStorage} under the hood to make it accessible in nested callbacks and promises.
208206
*/
209207
public static current(): Context {
210208
const store = asyncLocalStorage.getStore();

packages/client/src/base-client.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Keep this around until we drop support for Node 14.
2-
import 'abort-controller/polyfill'; // eslint-disable-line import/no-unassigned-import
31
import os from 'node:os';
42
import { DataConverter, LoadedDataConverter } from '@temporalio/common';
53
import { isLoadedDataConverter, loadDataConverter } from '@temporalio/common/lib/internal-non-workflow';

packages/client/src/connection.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Keep this around until we drop support for Node 14.
2-
import 'abort-controller/polyfill'; // eslint-disable-line import/no-unassigned-import
31
import { AsyncLocalStorage } from 'node:async_hooks';
42
import * as grpc from '@grpc/grpc-js';
53
import type { RPCImpl } from 'protobufjs';

packages/create-project/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"access": "public"
5454
},
5555
"engines": {
56-
"node": ">=14.0.0"
56+
"node": ">=16.0.0"
5757
},
5858
"files": [
5959
"cli.js",

packages/create-project/src/helpers/install.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function install({ root, useYarn }: InstallArgs): Promise<void> {
3535
export async function updateNodeVersion({ root }: InstallArgs): Promise<void> {
3636
const currentNodeVersion = +process.versions.node.split('.')[0];
3737
const versionAlreadyInPackageJson = 16;
38-
const minimumValidVersion = 14;
38+
const minimumValidVersion = 16;
3939

4040
// The @tsconfig/node20 sets "--lib es2023", which require TypeScript 5.x.
4141
// FIXME: Remove this once samples have been updated to TypeScript ^5.0.0.

packages/meta/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"access": "public"
3232
},
3333
"engines": {
34-
"node": ">=14.18.0"
34+
"node": ">=16.0.0"
3535
},
3636
"files": [
3737
"src",

packages/worker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@
4747
"lib"
4848
],
4949
"engines": {
50-
"node": ">= 14.18.0"
50+
"node": ">= 16.0.0"
5151
}
5252
}

tsconfig.base.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "@tsconfig/node14/tsconfig.json",
2+
"extends": "@tsconfig/node16/tsconfig.json",
33
"compilerOptions": {
44
"composite": true,
55
"incremental": true,

0 commit comments

Comments
 (0)