@equinor/fusion-framework-module-app 6.1.17 → 6.1.19
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 +63 -0
- package/dist/esm/AppClient.js +9 -10
- package/dist/esm/AppClient.js.map +1 -1
- package/dist/esm/errors.js +6 -0
- package/dist/esm/errors.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/app/actions.d.ts +3 -3
- package/dist/types/app/create-reducer.d.ts +1 -1
- package/dist/types/errors.d.ts +1 -1
- package/dist/types/types.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +9 -9
- package/src/AppClient.ts +18 -10
- package/src/errors.ts +7 -1
- package/src/types.ts +7 -1
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,68 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 6.1.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#3367](https://github.com/equinor/fusion-framework/pull/3367) [`e7de2b7`](https://github.com/equinor/fusion-framework/commit/e7de2b7c1114094da445625a761fc9a3be6bdf87) Thanks [@asbjornhaland](https://github.com/asbjornhaland)! - Add `landing-page` to union of `AppType`
|
|
8
|
+
|
|
9
|
+
- [#3395](https://github.com/equinor/fusion-framework/pull/3395) [`29f6710`](https://github.com/equinor/fusion-framework/commit/29f6710238baf9b29f42394b30cb8b97f25462c3) Thanks [@odinr](https://github.com/odinr)! - Updated immer from 9.0.16 to 10.1.3 across all packages.
|
|
10
|
+
|
|
11
|
+
### Breaking Changes
|
|
12
|
+
|
|
13
|
+
- Immer 10.x introduces stricter TypeScript types for draft functions
|
|
14
|
+
- `ValidRecipeReturnType` type constraints have changed
|
|
15
|
+
- Promise return types in draft functions are no longer automatically handled
|
|
16
|
+
|
|
17
|
+
### Fixes Applied
|
|
18
|
+
|
|
19
|
+
- Updated BookmarkProvider to handle new immer type constraints
|
|
20
|
+
- Fixed ObservableInput type assignments in mergeScan operations
|
|
21
|
+
- Removed async/await from immer draft functions to comply with new type requirements
|
|
22
|
+
|
|
23
|
+
### Links
|
|
24
|
+
|
|
25
|
+
- [Immer 10.0.0 Release Notes](https://github.com/immerjs/immer/releases/tag/v10.0.0)
|
|
26
|
+
- [Immer Migration Guide](https://github.com/immerjs/immer/blob/main/MIGRATION.md)
|
|
27
|
+
|
|
28
|
+
- [#3386](https://github.com/equinor/fusion-framework/pull/3386) [`d740b78`](https://github.com/equinor/fusion-framework/commit/d740b7829694efb73edcd32006ec1f26e0075e9a) Thanks [@eikeland](https://github.com/eikeland)! - Added 'template-app' as a new app type to the AppType union.
|
|
29
|
+
|
|
30
|
+
This change extends the available app types that consumers can use when configuring applications, providing support for template-based apps.
|
|
31
|
+
|
|
32
|
+
- [#3347](https://github.com/equinor/fusion-framework/pull/3347) [`11143fa`](https://github.com/equinor/fusion-framework/commit/11143fa3002fb8a6c095052a04c7e596c56bafa8) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore: bump uuid from 11.0.3 to 13.0.0
|
|
33
|
+
|
|
34
|
+
### Breaking Changes
|
|
35
|
+
|
|
36
|
+
- v13.0.0: Make browser exports the default
|
|
37
|
+
- v12.0.0: Update to TypeScript 5.2, remove CommonJS support, drop Node 16 support
|
|
38
|
+
|
|
39
|
+
### New Features
|
|
40
|
+
|
|
41
|
+
- Improved v4() performance
|
|
42
|
+
- Added Node 24 to CI matrix
|
|
43
|
+
- Restored node: prefix support
|
|
44
|
+
|
|
45
|
+
### Links
|
|
46
|
+
|
|
47
|
+
- [GitHub releases](https://github.com/uuidjs/uuid/releases/tag/v13.0.0)
|
|
48
|
+
- [npm changelog](https://www.npmjs.com/package/uuid?activeTab=versions)
|
|
49
|
+
|
|
50
|
+
- Updated dependencies [[`29f6710`](https://github.com/equinor/fusion-framework/commit/29f6710238baf9b29f42394b30cb8b97f25462c3), [`7bb88c6`](https://github.com/equinor/fusion-framework/commit/7bb88c6247f3d93eccf363d610116c519f1ecff4), [`11143fa`](https://github.com/equinor/fusion-framework/commit/11143fa3002fb8a6c095052a04c7e596c56bafa8)]:
|
|
51
|
+
- @equinor/fusion-query@5.2.13
|
|
52
|
+
- @equinor/fusion-observable@8.5.3
|
|
53
|
+
|
|
54
|
+
## 6.1.18
|
|
55
|
+
|
|
56
|
+
### Patch Changes
|
|
57
|
+
|
|
58
|
+
- [#3315](https://github.com/equinor/fusion-framework/pull/3315) [`2ea9fb6`](https://github.com/equinor/fusion-framework/commit/2ea9fb63bdf967e0d010ddae2af9f6fb32077240) Thanks [@Noggling](https://github.com/Noggling)! - Improve error handling in AppClient
|
|
59
|
+
|
|
60
|
+
- Add support for HTTP 410 (Gone) status code handling across all error types
|
|
61
|
+
- Import and use `HttpJsonResponseError` for more specific error handling in `getAppManifest`
|
|
62
|
+
- Add 'deleted' error type to handle when application resources have been deleted
|
|
63
|
+
- Update error handling logic to properly handle different error types in the catch blocks
|
|
64
|
+
- Ensure proper error propagation and type checking for manifest, config, and settings errors
|
|
65
|
+
|
|
3
66
|
## 6.1.17
|
|
4
67
|
|
|
5
68
|
### Patch Changes
|
package/dist/esm/AppClient.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { catchError, map, tap } from 'rxjs';
|
|
2
2
|
import { Query } from '@equinor/fusion-query';
|
|
3
3
|
import { queryValue } from '@equinor/fusion-query/operators';
|
|
4
|
-
import { HttpResponseError } from '@equinor/fusion-framework-module-http';
|
|
4
|
+
import { HttpJsonResponseError, HttpResponseError, } from '@equinor/fusion-framework-module-http';
|
|
5
5
|
import { jsonSelector } from '@equinor/fusion-framework-module-http/selectors';
|
|
6
6
|
import { ApiApplicationSchema } from './schemas';
|
|
7
7
|
import { AppConfigError, AppManifestError, AppSettingsError } from './errors';
|
|
@@ -106,12 +106,11 @@ export class AppClient {
|
|
|
106
106
|
}
|
|
107
107
|
getAppManifest(args) {
|
|
108
108
|
return this.#manifest.query(args).pipe(queryValue, catchError((err) => {
|
|
109
|
-
|
|
110
|
-
const { cause } = err;
|
|
109
|
+
const cause = err?.cause || err;
|
|
111
110
|
if (cause instanceof AppManifestError) {
|
|
112
111
|
throw cause;
|
|
113
112
|
}
|
|
114
|
-
if (cause instanceof HttpResponseError) {
|
|
113
|
+
if (cause instanceof HttpJsonResponseError || cause instanceof HttpResponseError) {
|
|
115
114
|
throw AppManifestError.fromHttpResponse(cause.response, { cause });
|
|
116
115
|
}
|
|
117
116
|
throw new AppManifestError('unknown', 'failed to load manifest', { cause });
|
|
@@ -122,12 +121,12 @@ export class AppClient {
|
|
|
122
121
|
}
|
|
123
122
|
getAppConfig(args) {
|
|
124
123
|
return this.#config.query(args).pipe(map((res) => res.value), catchError((err) => {
|
|
125
|
-
/**
|
|
126
|
-
const
|
|
124
|
+
/** handle both direct errors and errors wrapped in a `cause` property */
|
|
125
|
+
const cause = err?.cause || err;
|
|
127
126
|
if (cause instanceof AppConfigError) {
|
|
128
127
|
throw cause;
|
|
129
128
|
}
|
|
130
|
-
if (cause instanceof HttpResponseError) {
|
|
129
|
+
if (cause instanceof HttpJsonResponseError || cause instanceof HttpResponseError) {
|
|
131
130
|
throw AppConfigError.fromHttpResponse(cause.response, { cause });
|
|
132
131
|
}
|
|
133
132
|
throw new AppConfigError('unknown', 'failed to load config', { cause });
|
|
@@ -135,12 +134,12 @@ export class AppClient {
|
|
|
135
134
|
}
|
|
136
135
|
getAppSettings(args) {
|
|
137
136
|
return this.#settings.query(args).pipe(queryValue, catchError((err) => {
|
|
138
|
-
/**
|
|
139
|
-
const
|
|
137
|
+
/** handle both direct errors and errors wrapped in a `cause` property */
|
|
138
|
+
const cause = err?.cause || err;
|
|
140
139
|
if (cause instanceof AppSettingsError) {
|
|
141
140
|
throw cause;
|
|
142
141
|
}
|
|
143
|
-
if (cause instanceof HttpResponseError) {
|
|
142
|
+
if (cause instanceof HttpJsonResponseError || cause instanceof HttpResponseError) {
|
|
144
143
|
throw AppSettingsError.fromHttpResponse(cause.response, { cause });
|
|
145
144
|
}
|
|
146
145
|
throw new AppSettingsError('unknown', 'failed to load settings', { cause });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppClient.js","sourceRoot":"","sources":["../../src/AppClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAyC,GAAG,EAAE,MAAM,MAAM,CAAC;AAEnF,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7D,OAAO,
|
|
1
|
+
{"version":3,"file":"AppClient.js","sourceRoot":"","sources":["../../src/AppClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAyC,GAAG,EAAE,MAAM,MAAM,CAAC;AAEnF,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7D,OAAO,EACL,qBAAqB,EACrB,iBAAiB,GAElB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAE/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAGjD,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAqC1D;;;;GAIG;AACH,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,SAAS,CAAC,CAAC,CAAC,EAAe,EAAE;IAC1E,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,GAAG,CAAC,CAAC;IACjC,OAAO;QACL,GAAG,KAAK;QACR,iCAAiC;QACjC,IAAI,GAAG;YACL,OAAO,KAAK,CAAC,MAAM,CAAC;QACtB,CAAC;QACD,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,EAAE,MAAM,EAAE,EACV;gBACE,KAAK;gBACL,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE;aACpB,CACF,CAAC;QACJ,CAAC,CAAC,CACH,CACJ,CAAC;IACJ,CAAC;IAED,CAAC,MAAM,CAAC,OAAO,CAAC;QACd,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;QACnC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;QAC1B,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;QAC3B,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;QACxB,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;IAC5B,CAAC;CACF;AAED,eAAe,SAAS,CAAC"}
|
package/dist/esm/errors.js
CHANGED
|
@@ -15,6 +15,8 @@ export class AppManifestError extends Error {
|
|
|
15
15
|
return new AppManifestError('unauthorized', 'failed to load application manifest, request not authorized', options);
|
|
16
16
|
case 404:
|
|
17
17
|
return new AppManifestError('not_found', 'application manifest not found', options);
|
|
18
|
+
case 410:
|
|
19
|
+
return new AppManifestError('deleted', 'application manifest deleted', options);
|
|
18
20
|
}
|
|
19
21
|
return new AppManifestError('unknown', `failed to load application manifest, status code ${response.status}`, options);
|
|
20
22
|
}
|
|
@@ -46,6 +48,8 @@ export class AppConfigError extends Error {
|
|
|
46
48
|
return new AppConfigError('unauthorized', 'failed to load application config, request not authorized', options);
|
|
47
49
|
case 404:
|
|
48
50
|
return new AppConfigError('not_found', 'application config not found', options);
|
|
51
|
+
case 410:
|
|
52
|
+
return new AppConfigError('deleted', 'application config deleted', options);
|
|
49
53
|
}
|
|
50
54
|
return new AppConfigError('unknown', `failed to load application config, status code ${response.status}`, options);
|
|
51
55
|
}
|
|
@@ -77,6 +81,8 @@ export class AppSettingsError extends Error {
|
|
|
77
81
|
return new AppSettingsError('unauthorized', 'failed to load application settings, request not authorized', options);
|
|
78
82
|
case 404:
|
|
79
83
|
return new AppSettingsError('not_found', 'application not found', options);
|
|
84
|
+
case 410:
|
|
85
|
+
return new AppSettingsError('deleted', 'application settings deleted', options);
|
|
80
86
|
}
|
|
81
87
|
return new AppSettingsError('unknown', `failed to load application settings, status code ${response.status}`, options);
|
|
82
88
|
}
|
package/dist/esm/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,KAAK;
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IAkCvB;IAjClB;;;;;OAKG;IACH,MAAM,CAAC,gBAAgB,CAAC,QAAkB,EAAE,OAAsB;QAChE,QAAQ,QAAQ,CAAC,MAAM,EAAE,CAAC;YACxB,KAAK,GAAG;gBACN,OAAO,IAAI,gBAAgB,CACzB,cAAc,EACd,6DAA6D,EAC7D,OAAO,CACR,CAAC;YACJ,KAAK,GAAG;gBACN,OAAO,IAAI,gBAAgB,CAAC,WAAW,EAAE,gCAAgC,EAAE,OAAO,CAAC,CAAC;YACtF,KAAK,GAAG;gBACN,OAAO,IAAI,gBAAgB,CAAC,SAAS,EAAE,8BAA8B,EAAE,OAAO,CAAC,CAAC;QACpF,CAAC;QACD,OAAO,IAAI,gBAAgB,CACzB,SAAS,EACT,oDAAoD,QAAQ,CAAC,MAAM,EAAE,EACrE,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,YACkB,IAAkB,EAClC,OAAgB,EAChB,OAAsB;QAEtB,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAJR,SAAI,GAAJ,IAAI,CAAc;IAKpC,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,KAAK;IAkCrB;IAjClB;;;;;OAKG;IACH,MAAM,CAA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