@thinger-io/cli-core 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/lib/dashboard-sdk.js +12 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.4.1] - 2026-10-16
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- The SDK compatibility note no longer says an app "will not work" on a
|
|
8
|
+
server older than the SDK's base (develop builds report 7.3.4-… until
|
|
9
|
+
7.5 is tagged): the app runs and the SDK only warns, so the note is a
|
|
10
|
+
warning. What does not work is named per call, from the functions in the
|
|
11
|
+
package's `compat.json` that need a newer server.
|
|
12
|
+
|
|
3
13
|
## [0.4.0] - 2026-10-16
|
|
4
14
|
|
|
5
15
|
### Added
|
package/lib/dashboard-sdk.js
CHANGED
|
@@ -135,19 +135,21 @@ export function sdkNotes(sdk, server, latest) {
|
|
|
135
135
|
);
|
|
136
136
|
}
|
|
137
137
|
const { baseServer, functions = {} } = sdk.compat || {};
|
|
138
|
-
if (server
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
);
|
|
142
|
-
} else if (server) {
|
|
143
|
-
const missing = Object.entries(functions)
|
|
144
|
-
.filter(([, min]) => compareVersions(server, min) < 0)
|
|
145
|
-
.map(([name, min]) => `${name} (${min})`);
|
|
146
|
-
if (missing.length) {
|
|
138
|
+
if (server) {
|
|
139
|
+
// Below the SDK's base server the app still runs: the SDK only warns.
|
|
140
|
+
if (baseServer && compareVersions(server, baseServer) < 0) {
|
|
147
141
|
notes.push(
|
|
148
|
-
`
|
|
142
|
+
`This server reports ${numeric(server)}, older than Thinger ${baseServer}, the base of SDK ${sdk.version}: the app runs, but some calls may fail. Develop builds report ${numeric(server)}-… until ${baseServer} is tagged.`,
|
|
149
143
|
);
|
|
150
144
|
}
|
|
145
|
+
// What does not work on it: the calls that need a newer server.
|
|
146
|
+
for (const [name, min] of Object.entries(functions)) {
|
|
147
|
+
if (compareVersions(server, min) < 0) {
|
|
148
|
+
notes.push(
|
|
149
|
+
`${name} requires Thinger ${min} or later (this server is ${numeric(server)}): the app's calls to it fail here.`,
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
151
153
|
}
|
|
152
154
|
if (latest && compareVersions(sdk.version, latest) < 0) {
|
|
153
155
|
notes.push(
|
package/package.json
CHANGED