Skip to content

Commit

Permalink
Update TS SDK to 1.11.3 (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjameswh authored Nov 2, 2024
1 parent b95d2b5 commit 9c8726c
Show file tree
Hide file tree
Showing 52 changed files with 234 additions and 225 deletions.
15 changes: 12 additions & 3 deletions .scripts/upgrade-versions.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,22 @@ function replaceDeps({ content, fields }) {
for (const field of fields) {
for (const [dep, version] of Object.entries(content[field] ?? {})) {
if (dep.startsWith('@temporalio/')) {
if (version !== versionToSet) {
content[field][dep] = versionToSet;
console.log(`....Updated version for ${field} ${dep} from ${version} to ${versionToSet}`);
const repl = replaceDep(dep, versionToSet);
if (version !== repl) {
content[field][dep] = repl;
console.log(`....Updated version for ${field} ${dep} from ${version} to ${repl}`);
changed = true;
}
}
}
}
return changed;
}

function replaceDep(dep, versionToSet) {
if (versionToSet.startsWith('file:')) {
const packageName = dep.split('/')[1];
return versionToSet + '/packages/' + packageName;
}
return versionToSet;
}
8 changes: 4 additions & 4 deletions activities-cancellation-heartbeating/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
]
},
"dependencies": {
"@temporalio/activity": "^1.11.2",
"@temporalio/client": "^1.11.2",
"@temporalio/worker": "^1.11.2",
"@temporalio/workflow": "^1.11.2"
"@temporalio/activity": "^1.11.3",
"@temporalio/client": "^1.11.3",
"@temporalio/worker": "^1.11.3",
"@temporalio/workflow": "^1.11.3"
},
"devDependencies": {
"@tsconfig/node16": "^1.0.0",
Expand Down
8 changes: 4 additions & 4 deletions activities-dependency-injection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
]
},
"dependencies": {
"@temporalio/activity": "^1.11.2",
"@temporalio/client": "^1.11.2",
"@temporalio/worker": "^1.11.2",
"@temporalio/workflow": "^1.11.2"
"@temporalio/activity": "^1.11.3",
"@temporalio/client": "^1.11.3",
"@temporalio/worker": "^1.11.3",
"@temporalio/workflow": "^1.11.3"
},
"devDependencies": {
"@tsconfig/node16": "^1.0.0",
Expand Down
12 changes: 6 additions & 6 deletions activities-examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@
]
},
"dependencies": {
"@temporalio/activity": "^1.11.2",
"@temporalio/client": "^1.11.2",
"@temporalio/worker": "^1.11.2",
"@temporalio/workflow": "^1.11.2",
"@temporalio/activity": "^1.11.3",
"@temporalio/client": "^1.11.3",
"@temporalio/worker": "^1.11.3",
"@temporalio/workflow": "^1.11.3",
"axios": "^0.26.0",
"node-fetch": "2.x"
},
"devDependencies": {
"@temporalio/nyc-test-coverage": "^1.11.2",
"@temporalio/testing": "^1.11.2",
"@temporalio/nyc-test-coverage": "^1.11.3",
"@temporalio/testing": "^1.11.3",
"@tsconfig/node16": "^1.0.0",
"@types/jest": "^27.5.1",
"@types/mocha": "8.x",
Expand Down
8 changes: 4 additions & 4 deletions child-workflows/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
]
},
"dependencies": {
"@temporalio/activity": "^1.11.2",
"@temporalio/client": "^1.11.2",
"@temporalio/worker": "^1.11.2",
"@temporalio/workflow": "^1.11.2"
"@temporalio/activity": "^1.11.3",
"@temporalio/client": "^1.11.3",
"@temporalio/worker": "^1.11.3",
"@temporalio/workflow": "^1.11.3"
},
"devDependencies": {
"@tsconfig/node16": "^1.0.0",
Expand Down
8 changes: 4 additions & 4 deletions continue-as-new/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
]
},
"dependencies": {
"@temporalio/activity": "^1.11.2",
"@temporalio/client": "^1.11.2",
"@temporalio/worker": "^1.11.2",
"@temporalio/workflow": "^1.11.2"
"@temporalio/activity": "^1.11.3",
"@temporalio/client": "^1.11.3",
"@temporalio/worker": "^1.11.3",
"@temporalio/workflow": "^1.11.3"
},
"devDependencies": {
"@tsconfig/node16": "^1.0.0",
Expand Down
8 changes: 4 additions & 4 deletions cron-workflows/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
]
},
"dependencies": {
"@temporalio/activity": "^1.11.2",
"@temporalio/client": "^1.11.2",
"@temporalio/worker": "^1.11.2",
"@temporalio/workflow": "^1.11.2"
"@temporalio/activity": "^1.11.3",
"@temporalio/client": "^1.11.3",
"@temporalio/worker": "^1.11.3",
"@temporalio/workflow": "^1.11.3"
},
"devDependencies": {
"@tsconfig/node16": "^1.0.0",
Expand Down
8 changes: 4 additions & 4 deletions custom-logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
]
},
"dependencies": {
"@temporalio/activity": "^1.11.2",
"@temporalio/client": "^1.11.2",
"@temporalio/worker": "^1.11.2",
"@temporalio/workflow": "^1.11.2",
"@temporalio/activity": "^1.11.3",
"@temporalio/client": "^1.11.3",
"@temporalio/worker": "^1.11.3",
"@temporalio/workflow": "^1.11.3",
"nanoid": "3.x",
"triple-beam": "^1.3.0",
"winston": "^3.3.3"
Expand Down
8 changes: 4 additions & 4 deletions dsl-interpreter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
]
},
"dependencies": {
"@temporalio/activity": "^1.11.2",
"@temporalio/client": "^1.11.2",
"@temporalio/worker": "^1.11.2",
"@temporalio/workflow": "^1.11.2",
"@temporalio/activity": "^1.11.3",
"@temporalio/client": "^1.11.3",
"@temporalio/worker": "^1.11.3",
"@temporalio/workflow": "^1.11.3",
"js-yaml": "^4.1.0"
},
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions ejson/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
]
},
"dependencies": {
"@temporalio/activity": "^1.11.2",
"@temporalio/client": "^1.11.2",
"@temporalio/common": "^1.11.2",
"@temporalio/worker": "^1.11.2",
"@temporalio/workflow": "^1.11.2",
"@temporalio/activity": "^1.11.3",
"@temporalio/client": "^1.11.3",
"@temporalio/common": "^1.11.3",
"@temporalio/worker": "^1.11.3",
"@temporalio/workflow": "^1.11.3",
"ejson": "^2.2.2",
"uuid": "^8.3.2"
},
Expand Down
10 changes: 5 additions & 5 deletions empty/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
]
},
"dependencies": {
"@temporalio/activity": "^1.11.2",
"@temporalio/client": "^1.11.2",
"@temporalio/worker": "^1.11.2",
"@temporalio/workflow": "^1.11.2",
"@temporalio/activity": "^1.11.3",
"@temporalio/client": "^1.11.3",
"@temporalio/worker": "^1.11.3",
"@temporalio/workflow": "^1.11.3",
"nanoid": "3.x"
},
"devDependencies": {
"@temporalio/testing": "^1.11.2",
"@temporalio/testing": "^1.11.3",
"@tsconfig/node16": "^1.0.0",
"@types/mocha": "8.x",
"@types/node": "^16.11.43",
Expand Down
10 changes: 5 additions & 5 deletions encryption/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
},
"dependencies": {
"@ronomon/crypto-async": "^5.0.1",
"@temporalio/activity": "^1.11.2",
"@temporalio/client": "^1.11.2",
"@temporalio/common": "^1.11.2",
"@temporalio/worker": "^1.11.2",
"@temporalio/workflow": "^1.11.2",
"@temporalio/activity": "^1.11.3",
"@temporalio/client": "^1.11.3",
"@temporalio/common": "^1.11.3",
"@temporalio/worker": "^1.11.3",
"@temporalio/workflow": "^1.11.3",
"cors": "^2.8.5",
"ejson": "^2.2.2",
"express": "^4.18.0",
Expand Down
10 changes: 5 additions & 5 deletions expense/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
]
},
"dependencies": {
"@temporalio/activity": "^1.11.2",
"@temporalio/client": "^1.11.2",
"@temporalio/worker": "^1.11.2",
"@temporalio/workflow": "^1.11.2",
"@temporalio/common": "^1.11.2",
"@temporalio/activity": "^1.11.3",
"@temporalio/client": "^1.11.3",
"@temporalio/worker": "^1.11.3",
"@temporalio/workflow": "^1.11.3",
"@temporalio/common": "^1.11.3",
"axios": "^0.26.0",
"express": "~4.17.1",
"uuid": "8.3.2"
Expand Down
8 changes: 4 additions & 4 deletions fetch-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
]
},
"dependencies": {
"@temporalio/activity": "^1.11.2",
"@temporalio/client": "^1.11.2",
"@temporalio/worker": "^1.11.2",
"@temporalio/workflow": "^1.11.2"
"@temporalio/activity": "^1.11.3",
"@temporalio/client": "^1.11.3",
"@temporalio/worker": "^1.11.3",
"@temporalio/workflow": "^1.11.3"
},
"devDependencies": {
"@tsconfig/node16": "^1.0.0",
Expand Down
6 changes: 3 additions & 3 deletions food-delivery/apps/worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
]
},
"dependencies": {
"@temporalio/activity": "^1.11.2",
"@temporalio/worker": "^1.11.2",
"@temporalio/workflow": "^1.11.2",
"@temporalio/activity": "^1.11.3",
"@temporalio/worker": "^1.11.3",
"@temporalio/workflow": "^1.11.3",
"common": "*",
"workflows": "*"
},
Expand Down
2 changes: 1 addition & 1 deletion food-delivery/packages/activities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint": "TIMING=1 eslint \"**/*.ts*\""
},
"dependencies": {
"@temporalio/activity": "^1.11.2",
"@temporalio/activity": "^1.11.3",
"common": "*"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion food-delivery/packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint": "TIMING=1 eslint \"**/*.ts*\""
},
"dependencies": {
"@temporalio/client": "^1.11.2"
"@temporalio/client": "^1.11.3"
},
"devDependencies": {
"eslint": "^7.32.0",
Expand Down
2 changes: 1 addition & 1 deletion food-delivery/packages/workflows/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"lint": "TIMING=1 eslint \"**/*.ts*\""
},
"dependencies": {
"@temporalio/workflow": "^1.11.2",
"@temporalio/workflow": "^1.11.3",
"common": "*"
},
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions grpc-calls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
]
},
"dependencies": {
"@temporalio/activity": "^1.11.2",
"@temporalio/client": "^1.11.2",
"@temporalio/common": "^1.11.2",
"@temporalio/worker": "^1.11.2",
"@temporalio/workflow": "^1.11.2",
"@temporalio/activity": "^1.11.3",
"@temporalio/client": "^1.11.3",
"@temporalio/common": "^1.11.3",
"@temporalio/worker": "^1.11.3",
"@temporalio/workflow": "^1.11.3",
"nanoid": "3.x"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions hello-world-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
]
},
"dependencies": {
"@temporalio/activity": "^1.11.2",
"@temporalio/client": "^1.11.2",
"@temporalio/worker": "^1.11.2",
"@temporalio/workflow": "^1.11.2"
"@temporalio/activity": "^1.11.3",
"@temporalio/client": "^1.11.3",
"@temporalio/worker": "^1.11.3",
"@temporalio/workflow": "^1.11.3"
},
"devDependencies": {
"@types/node": "^16.11.43",
Expand Down
8 changes: 4 additions & 4 deletions hello-world-mtls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
]
},
"dependencies": {
"@temporalio/activity": "^1.11.2",
"@temporalio/client": "^1.11.2",
"@temporalio/worker": "^1.11.2",
"@temporalio/workflow": "^1.11.2"
"@temporalio/activity": "^1.11.3",
"@temporalio/client": "^1.11.3",
"@temporalio/worker": "^1.11.3",
"@temporalio/workflow": "^1.11.3"
},
"devDependencies": {
"@tsconfig/node16": "^1.0.0",
Expand Down
10 changes: 5 additions & 5 deletions hello-world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
]
},
"dependencies": {
"@temporalio/activity": "^1.11.2",
"@temporalio/client": "^1.11.2",
"@temporalio/worker": "^1.11.2",
"@temporalio/workflow": "^1.11.2",
"@temporalio/activity": "^1.11.3",
"@temporalio/client": "^1.11.3",
"@temporalio/worker": "^1.11.3",
"@temporalio/workflow": "^1.11.3",
"nanoid": "3.x"
},
"devDependencies": {
"@temporalio/testing": "^1.11.2",
"@temporalio/testing": "^1.11.3",
"@tsconfig/node16": "^1.0.0",
"@types/mocha": "8.x",
"@types/node": "^16.11.43",
Expand Down
10 changes: 5 additions & 5 deletions interceptors-opentelemetry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
"@opentelemetry/resources": "^1.26.0",
"@opentelemetry/sdk-node": "^0.53.0",
"@opentelemetry/sdk-trace-base": "^1.26.0",
"@temporalio/activity": "^1.11.2",
"@temporalio/client": "^1.11.2",
"@temporalio/interceptors-opentelemetry": "^1.11.2",
"@temporalio/worker": "^1.11.2",
"@temporalio/workflow": "^1.11.2"
"@temporalio/activity": "^1.11.3",
"@temporalio/client": "^1.11.3",
"@temporalio/interceptors-opentelemetry": "^1.11.3",
"@temporalio/worker": "^1.11.3",
"@temporalio/workflow": "^1.11.3"
},
"devDependencies": {
"@tsconfig/node16": "^1.0.0",
Expand Down
10 changes: 5 additions & 5 deletions message-passing/execute-update/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
]
},
"dependencies": {
"@temporalio/activity": "^1.11.2",
"@temporalio/client": "^1.11.2",
"@temporalio/worker": "^1.11.2",
"@temporalio/workflow": "^1.11.2",
"@temporalio/activity": "^1.11.3",
"@temporalio/client": "^1.11.3",
"@temporalio/worker": "^1.11.3",
"@temporalio/workflow": "^1.11.3",
"nanoid": "3.x"
},
"devDependencies": {
"@temporalio/testing": "^1.11.2",
"@temporalio/testing": "^1.11.3",
"@tsconfig/node16": "^1.0.0",
"@types/mocha": "8.x",
"@types/node": "^16.11.43",
Expand Down
Loading

0 comments on commit 9c8726c

Please sign in to comment.