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
15 changes: 8 additions & 7 deletions apps/runtime/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
"dev": "node --import @swc-node/register/esm-register --import ./register-hooks.mjs --import @celerity-sdk/telemetry/setup --watch-path=${CELERITY_APP_DIR:-./app} index.mjs"
},
"dependencies": {
"@celerity-sdk/common": "^0.8.3",
"@celerity-sdk/config": "^0.8.3",
"@celerity-sdk/core": "^0.8.3",
"@celerity-sdk/runtime": "^0.3.5",
"@celerity-sdk/telemetry": "^0.8.3",
"@celerity-sdk/types": "^0.8.3",
"ioredis": "^5.0.0"
"@celerity-sdk/common": "^0.9.0",
"@celerity-sdk/config": "^0.9.0",
"@celerity-sdk/core": "^0.9.0",
"@celerity-sdk/runtime": "^0.4.2",
"@celerity-sdk/telemetry": "^0.9.0",
"@celerity-sdk/types": "^0.9.0",
"ioredis": "^5.0.0",
"reflect-metadata": "^0.2.2"
},
"devDependencies": {
"@swc-node/register": "^1.10.0",
Expand Down
7 changes: 6 additions & 1 deletion apps/runtime/nodejs/sdk-compat-check.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ function satisfiesRange(installed, range) {
const instPatch = Number(instMatch[3]);

if (range.startsWith("^")) {
// ^x.y.z: same major, installed >= base
// ^x.y.z: caret allows changes that do not modify the left-most non-zero
// component, so for 0.y.z the minor is the compatibility boundary.
if (baseMajor === 0) {
return instMajor === 0 && instMinor === baseMinor && instPatch >= basePatch;
}

return (
instMajor === baseMajor &&
(instMinor > baseMinor || (instMinor === baseMinor && instPatch >= basePatch))
Expand Down
Loading
Loading