@trackunit/iris-app-api 1.14.72-alpha-ae1ff73fc64.0 → 1.15.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 +19 -0
- package/package.json +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/types/loadNxRootPackageJson.d.ts +13 -0
- package/src/types/loadNxRootPackageJson.js +33 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
## 1.15.1 (2026-03-17)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for iris-app-api to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
5
|
+
## 1.15.0 (2026-03-16)
|
|
6
|
+
|
|
7
|
+
### 🚀 Features
|
|
8
|
+
|
|
9
|
+
- add fleetHealthStatuses to widget asset filter keys ([06779ade677](https://github.com/Trackunit/manager/commit/06779ade677))
|
|
10
|
+
- add Fleet Health States filter (Open/Resolved/All) to default asset filters ([1f3925df0f6](https://github.com/Trackunit/manager/commit/1f3925df0f6))
|
|
11
|
+
|
|
12
|
+
### 🩹 Fixes
|
|
13
|
+
|
|
14
|
+
- align fleetHealthStatus key in allAssetFilterKeys with actual filterKey ([1ebae3fd24b](https://github.com/Trackunit/manager/commit/1ebae3fd24b))
|
|
15
|
+
|
|
16
|
+
### ❤️ Thank You
|
|
17
|
+
|
|
18
|
+
- Simon Laustsen
|
|
19
|
+
|
|
1
20
|
## 1.14.71 (2026-03-16)
|
|
2
21
|
|
|
3
22
|
This was a version bump only for iris-app-api to align it with other projects, there were no code changes.
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from "./types/irisAppExtensionManifest";
|
|
|
18
18
|
export * from "./types/irisAppInstallationConfig";
|
|
19
19
|
export * from "./types/irisAppManifest";
|
|
20
20
|
export * from "./types/irisAppMarketplace";
|
|
21
|
+
export * from "./types/loadNxRootPackageJson";
|
|
21
22
|
export * from "./types/modulefederation";
|
|
22
23
|
export * from "./types/permissionsPolicy";
|
|
23
24
|
export * from "./types/scopes";
|
package/src/index.js
CHANGED
|
@@ -21,6 +21,7 @@ tslib_1.__exportStar(require("./types/irisAppExtensionManifest"), exports);
|
|
|
21
21
|
tslib_1.__exportStar(require("./types/irisAppInstallationConfig"), exports);
|
|
22
22
|
tslib_1.__exportStar(require("./types/irisAppManifest"), exports);
|
|
23
23
|
tslib_1.__exportStar(require("./types/irisAppMarketplace"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./types/loadNxRootPackageJson"), exports);
|
|
24
25
|
tslib_1.__exportStar(require("./types/modulefederation"), exports);
|
|
25
26
|
tslib_1.__exportStar(require("./types/permissionsPolicy"), exports);
|
|
26
27
|
tslib_1.__exportStar(require("./types/scopes"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type PackageJson = {
|
|
2
|
+
name: string;
|
|
3
|
+
dependencies: Record<string, string>;
|
|
4
|
+
devDependencies: Record<string, string>;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Get the package.json of the root of the NX workspace
|
|
8
|
+
*
|
|
9
|
+
* @param pathToNxRoot - The path to the root of the NX workspace
|
|
10
|
+
* @returns {PackageJson} The package.json of the root of the NX workspace
|
|
11
|
+
*/
|
|
12
|
+
export declare const loadNxRootPackageJson: (pathToNxRoot: string) => PackageJson;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loadNxRootPackageJson = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Get the package.json of the root of the NX workspace
|
|
6
|
+
*
|
|
7
|
+
* @param pathToNxRoot - The path to the root of the NX workspace
|
|
8
|
+
* @returns {PackageJson} The package.json of the root of the NX workspace
|
|
9
|
+
*/
|
|
10
|
+
const loadNxRootPackageJson = (pathToNxRoot) => {
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
12
|
+
const fs = require("fs");
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
14
|
+
const path = require("path");
|
|
15
|
+
const pathToPackageJsonPath = path.join(pathToNxRoot, "package.json");
|
|
16
|
+
if (!Boolean(fs.existsSync(pathToPackageJsonPath))) {
|
|
17
|
+
throw new Error(`Package.json not found at ${pathToPackageJsonPath}, make sure to pass the path to the root of the NX workspace`);
|
|
18
|
+
}
|
|
19
|
+
const packageJson = JSON.parse(fs.readFileSync(pathToPackageJsonPath, "utf-8"));
|
|
20
|
+
if (!Boolean(packageJson.dependencies)) {
|
|
21
|
+
packageJson.dependencies = {};
|
|
22
|
+
}
|
|
23
|
+
if (!Boolean(packageJson.devDependencies)) {
|
|
24
|
+
packageJson.devDependencies = {};
|
|
25
|
+
}
|
|
26
|
+
if (!Boolean(packageJson.name)) {
|
|
27
|
+
packageJson.name = "unknown-name";
|
|
28
|
+
}
|
|
29
|
+
// eslint-disable-next-line @trackunit/no-typescript-assertion
|
|
30
|
+
return packageJson;
|
|
31
|
+
};
|
|
32
|
+
exports.loadNxRootPackageJson = loadNxRootPackageJson;
|
|
33
|
+
//# sourceMappingURL=loadNxRootPackageJson.js.map
|