@microtronics/studio-cli 0.32.1 → 0.32.3

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 CHANGED
@@ -1,11 +1,20 @@
1
1
 
2
2
 
3
- ## 0.32.1 (2025-06-02)
4
-
5
-
6
- ### Bug Fixes
7
-
8
- * **studio-cli:** enable prerelease handling in semver range checks ([77f6720](https://bitbucket.org/microtronics-core/vscode-studio/commits/77f6720f643c0ad491fca1d0ac0ae37bae1fbbd4))
3
+ ## 0.32.3 (2025-06-11)
4
+
5
+ ## 0.32.2 (2025-06-02)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **studio-cli:** improve semver validation in dependency check ([2238827](https://bitbucket.org/microtronics-core/vscode-studio/commits/2238827380cdbe56fa5798c6de50c284df4da4c7))
11
+
12
+ ## 0.32.1 (2025-06-02)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **studio-cli:** enable prerelease handling in semver range checks ([77f6720](https://bitbucket.org/microtronics-core/vscode-studio/commits/77f6720f643c0ad491fca1d0ac0ae37bae1fbbd4))
9
18
  * **studio-cli:** improve validation for project properties ([1cc8749](https://bitbucket.org/microtronics-core/vscode-studio/commits/1cc8749d2fa8bcea39605477fdc53480791f6c35))
10
19
 
11
20
  ## 0.32.0 (2025-05-23)
@@ -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
- return (semver.eq(libraryManifest.version, cleanVersion) &&
153
- libraryManifest.publisher.toLowerCase() === publisherId.toLowerCase());
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
@@ -10,7 +10,6 @@ const image_dimensions_1 = require("image-dimensions");
10
10
  const file_type_checker_1 = require("file-type-checker");
11
11
  const registryAPI_1 = require("./registryAPI");
12
12
  const preload_1 = __importDefault(require("semver/preload"));
13
- const DeviceProfiles_1 = require("./DeviceProfiles");
14
13
  const apm_1 = require("./package/apm");
15
14
  var isNumeric = helper_1.Helper.isNumeric;
16
15
  const PRODUCT_ID_SUPPORTED = '52v007';
@@ -112,8 +111,6 @@ var Manifest;
112
111
  */
113
112
  async function write(cwd, fs, manifest) {
114
113
  manifestCache.clear();
115
- // patch the options if they are not valid for a specific device profile
116
- patchDloCompileOptionsBasedOnDpid(manifest);
117
114
  removeDeprecatedOptions(manifest);
118
115
  return fs.writeFile(vscode_uri_1.Utils.joinPath(cwd, Manifest.fileName), JSON.stringify(manifest, null, '\t'));
119
116
  }
@@ -425,32 +422,6 @@ function validateProjectVersion(manifest) {
425
422
  }
426
423
  }
427
424
  }
428
- /**
429
- * Some devices doesn't support compression. this function does patch the option if it's not supported
430
- * @param manifest
431
- */
432
- function patchDloCompileOptionsBasedOnDpid(manifest) {
433
- if (!manifest.dpid) {
434
- return;
435
- }
436
- const deviceProfile = DeviceProfiles_1.DeviceProfiles[manifest.dpid];
437
- const compileRestrictions = deviceProfile?.dlo?.compileRestrictions || {};
438
- const { compileOptions } = manifest.dlo || {};
439
- if (compileOptions) {
440
- compileOptions.forEach((param, idx) => {
441
- try {
442
- const paramType = param.substring(0, 2);
443
- const paramValue = param.substring(2);
444
- if (Object.hasOwn(compileRestrictions, paramType) && `${paramValue}` !== `${compileRestrictions[paramType]}`) {
445
- compileOptions[idx] = `${paramType}${compileRestrictions[paramType]}`;
446
- }
447
- }
448
- catch (e) {
449
- // todo?
450
- }
451
- });
452
- }
453
- }
454
425
  function removeDeprecatedOptions(manifest) {
455
426
  if (manifest.registry) {
456
427
  delete manifest.registry.allowedBackends;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microtronics/studio-cli",
3
- "version": "0.32.1",
3
+ "version": "0.32.3",
4
4
  "description": "Microtronics Studio CLI Tool",
5
5
  "main": "./out/api.js",
6
6
  "typings": "./dist/studio-cli.d.ts",