@equinor/fusion-framework-module-app 8.0.6-next.0 → 8.1.0

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,10 +1,25 @@
1
1
  # Change Log
2
2
 
3
- ## 8.0.6-next.0
3
+ ## 8.1.0
4
4
 
5
- ### Patch Changes
5
+ ### Minor Changes
6
6
 
7
- - c8008e3: Internal: rebase `next` onto `main`, syncing in already-published stable releases so they carry a `next` pre-release tag.
7
+ - f663b46: Add `MockAppClient`, exported from a new `./mock` subpath, so a test can serve one app's own manifest and config locally instead of contacting the app service.
8
+
9
+ ```ts
10
+ import { MockAppClient } from '@equinor/fusion-framework-module-app/mock';
11
+
12
+ enableAppModule(configurator, (builder) => {
13
+ builder.setClient(async ({ requireInstance }) => {
14
+ const http = await requireInstance('http');
15
+ return new MockAppClient(http.createClient('apps'), manifest, config);
16
+ });
17
+ });
18
+ ```
19
+
20
+ `getAppManifest` only resolves locally for `manifest.appKey` with no `tag` at all. `getAppConfig` resolves for `manifest.appKey` when `tag` is either absent or equal to the manifest's own `build.version` — the same tag `App` requests when loading config for the manifest it already resolved. Every other request — other app keys, tagged requests, builds, settings — still goes through the real `AppClient` it wraps, so pointing service discovery at a different registry or a real local mock server keeps working unchanged.
21
+
22
+ Also export `AppConfig` as a value from the package root (previously type-only), so a test can construct one directly with `new AppConfig({ environment, endpoints })`.
8
23
 
9
24
  ## 8.0.5
10
25
 
@@ -1,3 +1,3 @@
1
1
  // Generated by genversion.
2
- export const version = '8.0.6-next.0';
2
+ export const version = '8.1.0';
3
3
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,cAAc,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC"}