Skip to content

Commit

Permalink
Upgrade to TS SDK 1.11.5 / Node 18 to 22
Browse files Browse the repository at this point in the history
  • Loading branch information
mjameswh committed Dec 3, 2024
1 parent 84b5237 commit 32ee3d6
Show file tree
Hide file tree
Showing 183 changed files with 733 additions and 731 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
22
2 changes: 1 addition & 1 deletion .shared/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
22
16 changes: 8 additions & 8 deletions .shared/.post-create
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
To begin development, install the Temporal CLI:

Mac: {cyan brew install temporal}
Other: Download and extract the latest release from https://github.com/temporalio/cli/releases/latest
Mac: {cyan brew install temporal}
Other: Download and extract the latest release from https://github.com/temporalio/cli/releases/latest

Start Temporal Server:

{cyan temporal server start-dev}
{cyan temporal server start-dev}

Use Node version 16+:
Use Node version 18+ (v22.x is recommended):

Mac: {cyan brew install node@16}
Other: https://nodejs.org/en/download/
Mac: {cyan brew install node@22}
Other: https://nodejs.org/en/download/

Then, in the project directory, using two other shells, run these commands:

{cyan npm run start.watch}
{cyan npm run workflow}
{cyan npm run start.watch}
{cyan npm run workflow}
2 changes: 1 addition & 1 deletion .shared/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@tsconfig/node16/tsconfig.json",
"extends": "@tsconfig/node18/tsconfig.json",
"version": "4.4.2",
"compilerOptions": {
"declaration": true,
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,10 @@ temporal server start-dev

(or use a [different installation method](https://github.com/temporalio/cli/#-install))

Use Node version 16+:
Use Node version 18+ (v22.x is recommended):

- Install Node 16:
- Mac: `brew install node@16`
- Other: [nodejs.org/en/download/](https://nodejs.org/en/download/)
- Mac: `brew install node@22`
- Other: [nodejs.org/en/download/](https://nodejs.org/en/download/)
- Or use a Node version manager: [`fnm`](https://github.com/Schniz/fnm#readme)

Run the [`hello-world`](./hello-world) sample:
Expand Down
2 changes: 1 addition & 1 deletion activities-cancellation-heartbeating/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
22
14 changes: 7 additions & 7 deletions activities-cancellation-heartbeating/.post-create
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
To begin development, install the Temporal CLI:

Mac: {cyan brew install temporal}
Other: Download and extract the latest release from https://github.com/temporalio/cli/releases/latest
Mac: {cyan brew install temporal}
Other: Download and extract the latest release from https://github.com/temporalio/cli/releases/latest

Start Temporal Server:

{cyan temporal server start-dev}
{cyan temporal server start-dev}

Use Node version 16+:
Use Node version 18+ (v22.x is recommended):

Mac: {cyan brew install node@16}
Other: https://nodejs.org/en/download/
Mac: {cyan brew install node@22}
Other: https://nodejs.org/en/download/

Then, in the project directory, follow instructions in the {cyan README.md}
Then, in the project directory, follow instructions in the {cyan README.md}
12 changes: 6 additions & 6 deletions activities-cancellation-heartbeating/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
]
},
"dependencies": {
"@temporalio/activity": "^1.11.3",
"@temporalio/client": "^1.11.3",
"@temporalio/worker": "^1.11.3",
"@temporalio/workflow": "^1.11.3"
"@temporalio/activity": "^1.11.5",
"@temporalio/client": "^1.11.5",
"@temporalio/worker": "^1.11.5",
"@temporalio/workflow": "^1.11.5"
},
"devDependencies": {
"@tsconfig/node16": "^1.0.0",
"@types/node": "^16.11.43",
"@tsconfig/node18": "^18.2.4",
"@types/node": "^22.9.1",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^7.32.0",
Expand Down
2 changes: 1 addition & 1 deletion activities-cancellation-heartbeating/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@tsconfig/node16/tsconfig.json",
"extends": "@tsconfig/node18/tsconfig.json",
"version": "4.4.2",
"compilerOptions": {
"declaration": true,
Expand Down
2 changes: 1 addition & 1 deletion activities-dependency-injection/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
22
16 changes: 8 additions & 8 deletions activities-dependency-injection/.post-create
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
To begin development, install the Temporal CLI:

Mac: {cyan brew install temporal}
Other: Download and extract the latest release from https://github.com/temporalio/cli/releases/latest
Mac: {cyan brew install temporal}
Other: Download and extract the latest release from https://github.com/temporalio/cli/releases/latest

Start Temporal Server:

{cyan temporal server start-dev}
{cyan temporal server start-dev}

Use Node version 16+:
Use Node version 18+ (v22.x is recommended):

Mac: {cyan brew install node@16}
Other: https://nodejs.org/en/download/
Mac: {cyan brew install node@22}
Other: https://nodejs.org/en/download/

Then, in the project directory, using two other shells, run these commands:

{cyan npm run start.watch}
{cyan npm run workflow}
{cyan npm run start.watch}
{cyan npm run workflow}
12 changes: 6 additions & 6 deletions activities-dependency-injection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
]
},
"dependencies": {
"@temporalio/activity": "^1.11.3",
"@temporalio/client": "^1.11.3",
"@temporalio/worker": "^1.11.3",
"@temporalio/workflow": "^1.11.3"
"@temporalio/activity": "^1.11.5",
"@temporalio/client": "^1.11.5",
"@temporalio/worker": "^1.11.5",
"@temporalio/workflow": "^1.11.5"
},
"devDependencies": {
"@tsconfig/node16": "^1.0.0",
"@types/node": "^16.11.43",
"@tsconfig/node18": "^18.2.4",
"@types/node": "^22.9.1",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^7.32.0",
Expand Down
2 changes: 1 addition & 1 deletion activities-dependency-injection/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@tsconfig/node16/tsconfig.json",
"extends": "@tsconfig/node18/tsconfig.json",
"version": "4.4.2",
"compilerOptions": {
"declaration": true,
Expand Down
2 changes: 1 addition & 1 deletion activities-examples/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
22
16 changes: 8 additions & 8 deletions activities-examples/.post-create
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
To begin development, install the Temporal CLI:

Mac: {cyan brew install temporal}
Other: Download and extract the latest release from https://github.com/temporalio/cli/releases/latest
Mac: {cyan brew install temporal}
Other: Download and extract the latest release from https://github.com/temporalio/cli/releases/latest

Start Temporal Server:

{cyan temporal server start-dev}
{cyan temporal server start-dev}

Use Node version 16+:
Use Node version 18+ (v22.x is recommended):

Mac: {cyan brew install node@16}
Other: https://nodejs.org/en/download/
Mac: {cyan brew install node@22}
Other: https://nodejs.org/en/download/

Then, in the project directory, using two other shells, run these commands:

{cyan npm run start.watch}
{cyan npm run workflow}
{cyan npm run start.watch}
{cyan npm run workflow}
16 changes: 8 additions & 8 deletions activities-examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@
]
},
"dependencies": {
"@temporalio/activity": "^1.11.3",
"@temporalio/client": "^1.11.3",
"@temporalio/worker": "^1.11.3",
"@temporalio/workflow": "^1.11.3",
"@temporalio/activity": "^1.11.5",
"@temporalio/client": "^1.11.5",
"@temporalio/worker": "^1.11.5",
"@temporalio/workflow": "^1.11.5",
"axios": "^0.26.0",
"node-fetch": "2.x"
},
"devDependencies": {
"@temporalio/nyc-test-coverage": "^1.11.3",
"@temporalio/testing": "^1.11.3",
"@tsconfig/node16": "^1.0.0",
"@temporalio/nyc-test-coverage": "^1.11.5",
"@temporalio/testing": "^1.11.5",
"@tsconfig/node18": "^18.2.4",
"@types/jest": "^27.5.1",
"@types/mocha": "8.x",
"@types/node": "^16.11.43",
"@types/node": "^22.9.1",
"@types/node-fetch": "^2.5.12",
"@types/sinon": "^10.0.4",
"@types/uuid": "^8.3.4",
Expand Down
2 changes: 1 addition & 1 deletion activities-examples/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@tsconfig/node16/tsconfig.json",
"extends": "@tsconfig/node18/tsconfig.json",
"version": "4.4.2",
"compilerOptions": {
"declaration": true,
Expand Down
2 changes: 1 addition & 1 deletion child-workflows/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
22
16 changes: 8 additions & 8 deletions child-workflows/.post-create
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
To begin development, install the Temporal CLI:

Mac: {cyan brew install temporal}
Other: Download and extract the latest release from https://github.com/temporalio/cli/releases/latest
Mac: {cyan brew install temporal}
Other: Download and extract the latest release from https://github.com/temporalio/cli/releases/latest

Start Temporal Server:

{cyan temporal server start-dev}
{cyan temporal server start-dev}

Use Node version 16+:
Use Node version 18+ (v22.x is recommended):

Mac: {cyan brew install node@16}
Other: https://nodejs.org/en/download/
Mac: {cyan brew install node@22}
Other: https://nodejs.org/en/download/

Then, in the project directory, using two other shells, run these commands:

{cyan npm run start.watch}
{cyan npm run workflow}
{cyan npm run start.watch}
{cyan npm run workflow}
12 changes: 6 additions & 6 deletions child-workflows/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
]
},
"dependencies": {
"@temporalio/activity": "^1.11.3",
"@temporalio/client": "^1.11.3",
"@temporalio/worker": "^1.11.3",
"@temporalio/workflow": "^1.11.3"
"@temporalio/activity": "^1.11.5",
"@temporalio/client": "^1.11.5",
"@temporalio/worker": "^1.11.5",
"@temporalio/workflow": "^1.11.5"
},
"devDependencies": {
"@tsconfig/node16": "^1.0.0",
"@types/node": "^16.11.43",
"@tsconfig/node18": "^18.2.4",
"@types/node": "^22.9.1",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^7.32.0",
Expand Down
2 changes: 1 addition & 1 deletion child-workflows/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@tsconfig/node16/tsconfig.json",
"extends": "@tsconfig/node18/tsconfig.json",
"version": "4.4.2",
"compilerOptions": {
"declaration": true,
Expand Down
2 changes: 1 addition & 1 deletion continue-as-new/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
22
16 changes: 8 additions & 8 deletions continue-as-new/.post-create
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
To begin development, install the Temporal CLI:

Mac: {cyan brew install temporal}
Other: Download and extract the latest release from https://github.com/temporalio/cli/releases/latest
Mac: {cyan brew install temporal}
Other: Download and extract the latest release from https://github.com/temporalio/cli/releases/latest

Start Temporal Server:

{cyan temporal server start-dev}
{cyan temporal server start-dev}

Use Node version 16+:
Use Node version 18+ (v22.x is recommended):

Mac: {cyan brew install node@16}
Other: https://nodejs.org/en/download/
Mac: {cyan brew install node@22}
Other: https://nodejs.org/en/download/

Then, in the project directory, using two other shells, run these commands:

{cyan npm run start.watch}
{cyan npm run workflow}
{cyan npm run start.watch}
{cyan npm run workflow}
12 changes: 6 additions & 6 deletions continue-as-new/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
]
},
"dependencies": {
"@temporalio/activity": "^1.11.3",
"@temporalio/client": "^1.11.3",
"@temporalio/worker": "^1.11.3",
"@temporalio/workflow": "^1.11.3"
"@temporalio/activity": "^1.11.5",
"@temporalio/client": "^1.11.5",
"@temporalio/worker": "^1.11.5",
"@temporalio/workflow": "^1.11.5"
},
"devDependencies": {
"@tsconfig/node16": "^1.0.0",
"@types/node": "^16.11.43",
"@tsconfig/node18": "^18.2.4",
"@types/node": "^22.9.1",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^7.32.0",
Expand Down
2 changes: 1 addition & 1 deletion continue-as-new/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@tsconfig/node16/tsconfig.json",
"extends": "@tsconfig/node18/tsconfig.json",
"version": "4.4.2",
"compilerOptions": {
"declaration": true,
Expand Down
2 changes: 1 addition & 1 deletion cron-workflows/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
22
16 changes: 8 additions & 8 deletions cron-workflows/.post-create
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
To begin development, install the Temporal CLI:

Mac: {cyan brew install temporal}
Other: Download and extract the latest release from https://github.com/temporalio/cli/releases/latest
Mac: {cyan brew install temporal}
Other: Download and extract the latest release from https://github.com/temporalio/cli/releases/latest

Start Temporal Server:

{cyan temporal server start-dev}
{cyan temporal server start-dev}

Use Node version 16+:
Use Node version 18+ (v22.x is recommended):

Mac: {cyan brew install node@16}
Other: https://nodejs.org/en/download/
Mac: {cyan brew install node@22}
Other: https://nodejs.org/en/download/

Then, in the project directory, using two other shells, run these commands:

{cyan npm run start.watch}
{cyan npm run workflow}
{cyan npm run start.watch}
{cyan npm run workflow}
Loading

0 comments on commit 32ee3d6

Please sign in to comment.