@equinor/fusion-framework-module-app 7.4.0 → 7.4.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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # Change Log
2
2
 
3
+ ## 7.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#4157](https://github.com/equinor/fusion-framework/pull/4157) [`6aa8e1f`](https://github.com/equinor/fusion-framework/commit/6aa8e1f5c9d852b25e97aa7d98a63008c64d4581) Thanks [@Noggling](https://github.com/Noggling)! - Internal: patch release to align TypeScript types across packages for consistent type compatibility.
8
+
9
+ - Updated dependencies [[`6aa8e1f`](https://github.com/equinor/fusion-framework/commit/6aa8e1f5c9d852b25e97aa7d98a63008c64d4581)]:
10
+ - @equinor/fusion-observable@8.5.8
11
+ - @equinor/fusion-query@6.0.4
12
+
3
13
  ## 7.4.0
4
14
 
5
15
  ### Minor Changes
@@ -31,30 +31,22 @@ const deepFreeze = (obj) => {
31
31
  */
32
32
  export class AppConfig {
33
33
  #endpoints;
34
+ #environment;
34
35
  /**
35
36
  * The environment configuration for the application.
36
- * This property is read-only and is of type `TEnvironment`.
37
37
  */
38
- environment;
38
+ get environment() {
39
+ return this.#environment;
40
+ }
39
41
  /**
40
- * @deprecated Use `getEndpoint` instead.
41
- *
42
- * Retrieves the endpoints as a record of strings. This method returns a proxy
43
- * that maps the endpoint names to their respective URLs.
44
- *
45
- * @returns {Record<string, string | undefined>} A record where the keys are endpoint names and the values are their URLs.
42
+ * The configuration endpoints for the application,.
46
43
  */
47
44
  get endpoints() {
48
- console.warn('endpoints is deprecated, use getEndpoint instead');
49
- return new Proxy(this.#endpoints, {
50
- get(target, prop) {
51
- return target[prop]?.url;
52
- },
53
- });
45
+ return this.#endpoints;
54
46
  }
55
47
  constructor(config) {
56
- this.environment = deepFreeze(config.environment ?? {});
57
- this.#endpoints = config.endpoints ?? {};
48
+ this.#environment = deepFreeze(config.environment ?? {});
49
+ this.#endpoints = deepFreeze(config.endpoints ?? {});
58
50
  }
59
51
  /**
60
52
  * Retrieves the configuration endpoint associated with the given key.
@@ -65,13 +57,5 @@ export class AppConfig {
65
57
  getEndpoint(key) {
66
58
  return this.#endpoints[key];
67
59
  }
68
- /**
69
- * Retrieve all configuration endpoints associated with the app.
70
- *
71
- * @returns The configuration endpoints found.
72
- */
73
- getEndpoints() {
74
- return this.#endpoints;
75
- }
76
60
  }
77
61
  //# sourceMappingURL=AppConfig.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppConfig.js","sourceRoot":"","sources":["../../src/AppConfig.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,MAAM,UAAU,GAAG,CAAoC,GAAM,EAAK,EAAE;IAClE,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;QACxC,IACE,OAAO,GAAG,CAAC,QAAQ,CAAC,KAAK,QAAQ;YACjC,GAAG,CAAC,QAAQ,CAAC,KAAK,IAAI;YACtB,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,EAC/B,CAAC;YACD,UAAU,CAAC,GAAG,CAAC,QAAQ,CAA4B,CAAC,CAAC;QACvD,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AAC5B,CAAC,CAAC;AASF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,OAAO,SAAS;IACpB,UAAU,CAAiC;IAE3C;;;OAGG;IACa,WAAW,CAAe;IAE1C;;;;;;;OAOG;IACH,IAAW,SAAS;QAClB,OAAO,CAAC,IAAI,CAAC,kDAAkD,CAAC,CAAC;QACjE,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE;YAChC,GAAG,CAAC,MAAM,EAAE,IAAI;gBACd,OAAO,MAAM,CAAC,IAAc,CAAC,EAAE,GAAG,CAAC;YACrC,CAAC;SACF,C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,UAAU,CAAC,MAAM,CAAC,WAAW,IAAI,EAAE,CAAiB,CAAC;QACzE,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;IACvD,CAAC;IAED;;;;;OAKG;IACH,WAAW,CAAC,GAAW;QACrB,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC;CACF"}
@@ -1,3 +1,3 @@
1
1
  // Generated by genversion.
2
- export const version = '7.4.0';
2
+ export const version = '7.4.1';
3
3
  //# sourceMappingURL=version.js.map