@microtronics/studio-cli 0.32.0 → 0.32.2
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 +17 -2
- package/out/dependencies.js +3 -3
- package/out/manifest.js +4 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
## 0.32.
|
|
3
|
+
## 0.32.2 (2025-06-02)
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
###
|
|
6
|
+
### Bug Fixes
|
|
7
7
|
|
|
8
|
+
* **studio-cli:** improve semver validation in dependency check ([2238827](https://bitbucket.org/microtronics-core/vscode-studio/commits/2238827380cdbe56fa5798c6de50c284df4da4c7))
|
|
9
|
+
|
|
10
|
+
## 0.32.1 (2025-06-02)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **studio-cli:** enable prerelease handling in semver range checks ([77f6720](https://bitbucket.org/microtronics-core/vscode-studio/commits/77f6720f643c0ad491fca1d0ac0ae37bae1fbbd4))
|
|
16
|
+
* **studio-cli:** improve validation for project properties ([1cc8749](https://bitbucket.org/microtronics-core/vscode-studio/commits/1cc8749d2fa8bcea39605477fdc53480791f6c35))
|
|
17
|
+
|
|
18
|
+
## 0.32.0 (2025-05-23)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
8
23
|
* **studio-cli:** support dde write `flags` support based on dlo-core version ([039ba9b](https://bitbucket.org/microtronics-core/vscode-studio/commits/039ba9b85841bbe7fb6c5606f83438cc080e7016))
|
|
9
24
|
|
|
10
25
|
## 0.31.1 (2025-05-12)
|
package/out/dependencies.js
CHANGED
|
@@ -92,7 +92,7 @@ var Dependencies;
|
|
|
92
92
|
* @private
|
|
93
93
|
*/
|
|
94
94
|
function satisfiesSemverRange(libName, v1, range) {
|
|
95
|
-
const satisfies = semver.satisfies(v1, range);
|
|
95
|
+
const satisfies = semver.satisfies(v1, range, { includePrerelease: true });
|
|
96
96
|
if (!satisfies) {
|
|
97
97
|
throw new Error(`${libName}, version ${v1} does not satisfy required constraint ${range}`);
|
|
98
98
|
}
|
|
@@ -149,8 +149,8 @@ var Dependencies;
|
|
|
149
149
|
const libraryPath = vscode_uri_1.Utils.joinPath(cwd, exports.LIB_DEPS_PATH, libraryName);
|
|
150
150
|
try {
|
|
151
151
|
const libraryManifest = await manifest_1.Manifest.read(libraryPath, fs);
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
const gte = semver.gte(libraryManifest.version, cleanVersion);
|
|
153
|
+
return gte && libraryManifest.publisher.toLowerCase() === publisherId.toLowerCase();
|
|
154
154
|
}
|
|
155
155
|
catch (e) {
|
|
156
156
|
// no manifest found or any other error -> trigger reinstall
|
package/out/manifest.js
CHANGED
|
@@ -218,11 +218,14 @@ var Manifest;
|
|
|
218
218
|
const errorMessage = `Publisher can only contain 'A' through 'Z', 'a' through 'z', '0' through '9' and '-'. The Publisher start with an alphabetic or numeric character.`;
|
|
219
219
|
const valid = publisher.match(/^[a-zA-Z0-9-]+$/);
|
|
220
220
|
if (valid) {
|
|
221
|
-
const invalidChars = ['
|
|
221
|
+
const invalidChars = ['_'];
|
|
222
222
|
if (invalidChars.includes(publisher[0]) || invalidChars.includes(publisher[publisher.length - 1])) {
|
|
223
223
|
return errorMessage;
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
|
+
else {
|
|
227
|
+
return errorMessage;
|
|
228
|
+
}
|
|
226
229
|
return null;
|
|
227
230
|
}
|
|
228
231
|
Manifest.validatePublisherId = validatePublisherId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microtronics/studio-cli",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.2",
|
|
4
4
|
"description": "Microtronics Studio CLI Tool",
|
|
5
5
|
"main": "./out/api.js",
|
|
6
6
|
"typings": "./dist/studio-cli.d.ts",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"minimatch": "^10.0.1",
|
|
41
41
|
"openapi-fetch": "^0.13.0",
|
|
42
42
|
"pako": "^2.1.0",
|
|
43
|
-
"semver": "^7.
|
|
43
|
+
"semver": "^7.7.2",
|
|
44
44
|
"@gera2ld/tarjs": "^0.3.1",
|
|
45
45
|
"tinytar-fix": "^0.1.1",
|
|
46
46
|
"update-notifier": "^7.3.1",
|