@microtronics/studio-cli 0.29.0 → 0.29.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 CHANGED
@@ -1,17 +1,26 @@
1
1
 
2
2
 
3
- ## 0.29.0 (2025-04-03)
4
-
5
-
6
- ### Features
7
-
8
- * **studio-cli:** add functionality to fetch previous DDE history JSON ([ae4a22b](https://bitbucket.org/microtronics-core/vscode-studio/commits/ae4a22b704d207e52d16d524b0b11043db175484))
9
- * **studio-cli:** add the versions history.json to the apm tag ([1c3e35e](https://bitbucket.org/microtronics-core/vscode-studio/commits/1c3e35ef53d508987485103b0220a0eb84f4414c))
10
- * **studio-cli:** write the actual history.json to the dist/dde directory ([1fc5b32](https://bitbucket.org/microtronics-core/vscode-studio/commits/1fc5b3232f3d86f40bd7dfdeb9c6ef7a6d3c5491))
11
-
12
-
13
- ### Bug Fixes
14
-
3
+ ## 0.29.2 (2025-04-04)
4
+
5
+ ## 0.29.1 (2025-04-03)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **studio-core:** improve container name matching and update warning format ([049c236](https://bitbucket.org/microtronics-core/vscode-studio/commits/049c236ad3c8697d3ca319f960a9ef58a752c9aa))
11
+
12
+ ## 0.29.0 (2025-04-03)
13
+
14
+
15
+ ### Features
16
+
17
+ * **studio-cli:** add functionality to fetch previous DDE history JSON ([ae4a22b](https://bitbucket.org/microtronics-core/vscode-studio/commits/ae4a22b704d207e52d16d524b0b11043db175484))
18
+ * **studio-cli:** add the versions history.json to the apm tag ([1c3e35e](https://bitbucket.org/microtronics-core/vscode-studio/commits/1c3e35ef53d508987485103b0220a0eb84f4414c))
19
+ * **studio-cli:** write the actual history.json to the dist/dde directory ([1fc5b32](https://bitbucket.org/microtronics-core/vscode-studio/commits/1fc5b3232f3d86f40bd7dfdeb9c6ef7a6d3c5491))
20
+
21
+
22
+ ### Bug Fixes
23
+
15
24
  * **studio-cli:** requesting the previous container by name was not correctly implemented ([78076a9](https://bitbucket.org/microtronics-core/vscode-studio/commits/78076a9b0fc6647e33f5ddfc0554d651fe7bc30e))
16
25
 
17
26
  ## 0.28.0 (2025-03-27)
@@ -2349,7 +2349,7 @@ export declare namespace Package {
2349
2349
  * @param allowedBackends
2350
2350
  * @param env
2351
2351
  */
2352
- export function release(cwd: URI, fs: LocalFS, logger: Log.Logger, token: Registry.AuthToken, releasePhase: APM.TagPhase, allowedBackends: Registry.ApiNewApplication['allowedBackends'], env: Globals.ENV): Promise<void>;
2352
+ export function release(cwd: URI, fs: LocalFS, logger: Log.Logger, env: Globals.ENV, token: Registry.AuthToken, releasePhase?: APM.TagPhase, allowedBackends?: Registry.ApiNewApplication['allowedBackends']): Promise<void>;
2353
2353
  /**
2354
2354
  * Publish an application model tag
2355
2355
  * @param cwd
@@ -4616,7 +4616,7 @@ declare interface paths {
4616
4616
  * @param {APM.TagPhase} optsPhase - The release phase tag associated with the package publishing.
4617
4617
  * @return {Promise<void>} A promise that resolves when the package has been successfully published or rejects with an error if the process fails.
4618
4618
  */
4619
- export declare function publish(cwd: URI, fs: LocalFS, logger: Log.Logger, env: Globals.ENV, apiToken: string | null, optsAllowedBackends: string | undefined, optsPhase: APM.TagPhase): Promise<void>;
4619
+ export declare function publish(cwd: URI, fs: LocalFS, logger: Log.Logger, env: Globals.ENV, apiToken: string | null, optsAllowedBackends: string | undefined, optsPhase?: APM.TagPhase): Promise<void>;
4620
4620
 
4621
4621
  export declare namespace Registry {
4622
4622
  export type AuthToken = string | null;
package/out/api.js CHANGED
@@ -101,6 +101,6 @@ async function publish(cwd, fs, logger, env, apiToken, optsAllowedBackends, opts
101
101
  throw new Error(errorMessage);
102
102
  }
103
103
  }
104
- return package_1.Package.release(cwd, fs, logger, apiToken, optsPhase, allowedBackends, env);
104
+ return package_1.Package.release(cwd, fs, logger, env, apiToken, optsPhase, allowedBackends);
105
105
  }
106
106
  //# sourceMappingURL=api.js.map
@@ -49,7 +49,8 @@ var YamlPreCompiler;
49
49
  }
50
50
  getContainerOfPreviousVersion(containerName) {
51
51
  const previousDDE = this.previousVersion;
52
- return (Object.values(previousDDE.containers).find(containerDefinition => containerDefinition.title === containerName) || null);
52
+ const cleanContainerName = containerName.startsWith('timeseries_') ? containerName.substring(11) : containerName;
53
+ return (Object.values(previousDDE.containers).find(containerDefinition => containerDefinition.title === cleanContainerName) || null);
53
54
  }
54
55
  parseMainDDE(filePath, yaml) {
55
56
  const { parsedDDE, diagnostics } = this.parseYamlFile(filePath, yaml);
@@ -474,7 +475,7 @@ var YamlPreCompiler;
474
475
  this.fileDiagnostics.push({
475
476
  file: sourceUri,
476
477
  level: 'warning',
477
- message: `Field type changed from '${previousDefinition.type}' to '${type}'.\nChanging the type of an existing field can result in data loss or unexpected behaviour.`,
478
+ message: `Field type changed from "${previousDefinition.type}" to "${type}".\nChanging the type of an existing field can result in data loss or unexpected behaviour.`,
478
479
  ...yamlRangeToLineInformation(lineCounter, typeField.range)
479
480
  });
480
481
  }
@@ -102,7 +102,7 @@ var Package;
102
102
  * @param allowedBackends
103
103
  * @param env
104
104
  */
105
- async function release(cwd, fs, logger, token, releasePhase, allowedBackends, env) {
105
+ async function release(cwd, fs, logger, env, token, releasePhase, allowedBackends) {
106
106
  const manifest = await manifest_1.Manifest.read(cwd, fs);
107
107
  if (manifest_1.Manifest.isLibrary(manifest)) {
108
108
  logger.info('Library project detected. Publishing library...');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microtronics/studio-cli",
3
- "version": "0.29.0",
3
+ "version": "0.29.2",
4
4
  "description": "Microtronics Studio CLI Tool",
5
5
  "main": "./out/api.js",
6
6
  "typings": "./dist/studio-cli.d.ts",