@equinor/fusion-framework-module-http 6.2.1 → 6.2.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 +336 -310
- package/dist/esm/configurator.js.map +1 -1
- package/dist/esm/errors.js.map +1 -1
- package/dist/esm/lib/client/client-msal.js.map +1 -1
- package/dist/esm/lib/client/client.js.map +1 -1
- package/dist/esm/lib/operators/capitalize-request-method.operator.js +3 -1
- package/dist/esm/lib/operators/capitalize-request-method.operator.js.map +1 -1
- package/dist/esm/lib/operators/fetch-request.schema.js.map +1 -1
- package/dist/esm/lib/operators/http-request-handler.js.map +1 -1
- package/dist/esm/lib/operators/process-operators.js.map +1 -1
- package/dist/esm/lib/operators/request-operator-header.js.map +1 -1
- package/dist/esm/lib/operators/request-validation.operator.js.map +1 -1
- package/dist/esm/lib/selectors/blob-selector.js.map +1 -1
- package/dist/esm/lib/selectors/json-selector.js.map +1 -1
- package/dist/esm/module.js +1 -1
- package/dist/esm/module.js.map +1 -1
- package/dist/esm/provider.js +8 -3
- package/dist/esm/provider.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/lib/operators/process-operators.d.ts +1 -1
- package/dist/types/module.d.ts +3 -3
- package/dist/types/provider.d.ts +10 -3
- package/dist/types/version.d.ts +1 -1
- package/package.json +3 -3
- package/src/configurator.ts +115 -116
- package/src/errors.ts +24 -24
- package/src/lib/client/client-msal.ts +34 -34
- package/src/lib/client/client.ts +298 -298
- package/src/lib/client/types.ts +147 -145
- package/src/lib/operators/capitalize-request-method.operator.ts +11 -9
- package/src/lib/operators/fetch-request.schema.ts +70 -73
- package/src/lib/operators/http-request-handler.ts +11 -11
- package/src/lib/operators/process-operators.ts +88 -88
- package/src/lib/operators/request-operator-header.ts +6 -6
- package/src/lib/operators/request-validation.operator.ts +32 -32
- package/src/lib/operators/types.ts +44 -44
- package/src/lib/selectors/blob-selector.ts +24 -24
- package/src/lib/selectors/json-selector.ts +25 -25
- package/src/module.ts +73 -69
- package/src/provider.ts +141 -139
- package/src/version.ts +1 -1
- package/tests/HttpClient.test.ts +37 -37
- package/tests/operators.test.ts +67 -67
- package/vitest.config.ts +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 6.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2852](https://github.com/equinor/fusion-framework/pull/2852) [`ba5d12e`](https://github.com/equinor/fusion-framework/commit/ba5d12eba0a38db412353765e997d02c1fbb478d) Thanks [@odinr](https://github.com/odinr)! - replaced forEach with for-of loops for better readability
|
|
8
|
+
|
|
9
|
+
- [#2848](https://github.com/equinor/fusion-framework/pull/2848) [`dcd2fb1`](https://github.com/equinor/fusion-framework/commit/dcd2fb1394e175d0cc2a4289ed3ede8e0271d67d) Thanks [@odinr](https://github.com/odinr)! - Refactored imports to use `type` when importing types from a module, to conform with the `useImportType` rule in Biome.
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`ba5d12e`](https://github.com/equinor/fusion-framework/commit/ba5d12eba0a38db412353765e997d02c1fbb478d), [`6efabb7`](https://github.com/equinor/fusion-framework/commit/6efabb7837a97319e976e122db855d8b88b031a6), [`1953dd2`](https://github.com/equinor/fusion-framework/commit/1953dd217d85fa4880856b2c97b6305fcbaf2e24), [`dcd2fb1`](https://github.com/equinor/fusion-framework/commit/dcd2fb1394e175d0cc2a4289ed3ede8e0271d67d)]:
|
|
12
|
+
- @equinor/fusion-framework-module@4.3.6
|
|
13
|
+
- @equinor/fusion-framework-module-msal@4.0.1
|
|
14
|
+
|
|
3
15
|
## 6.2.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
6
18
|
|
|
7
19
|
- Updated dependencies [[`ea4b522`](https://github.com/equinor/fusion-framework/commit/ea4b5221b30719289fc947b5dbb0acd3ea52ffaa)]:
|
|
8
|
-
|
|
20
|
+
- @equinor/fusion-framework-module-msal@4.0.0
|
|
9
21
|
|
|
10
22
|
## 6.2.0
|
|
11
23
|
|
|
@@ -13,144 +25,150 @@
|
|
|
13
25
|
|
|
14
26
|
- [#2491](https://github.com/equinor/fusion-framework/pull/2491) [`73af73e`](https://github.com/equinor/fusion-framework/commit/73af73e5582ca27b132210af8ba308b80e036d51) Thanks [@odinr](https://github.com/odinr)! - Added a new operator `capitalizeRequestMethodOperator` to ensure that the HTTP method of a given request is in uppercase.
|
|
15
27
|
|
|
16
|
-
|
|
17
|
-
|
|
28
|
+
- Introduced `capitalizeRequestMethodOperator` which processes an HTTP request object and converts its method to uppercase.
|
|
29
|
+
- Logs a warning if the HTTP method was converted, providing information about the change and a reference to RFC 7231 Section 4.1.
|
|
18
30
|
|
|
19
|
-
|
|
31
|
+
**Example usage:**
|
|
20
32
|
|
|
21
|
-
|
|
22
|
-
|
|
33
|
+
```typescript
|
|
34
|
+
import { capitalizeRequestMethodOperator } from "@equinor/fusion-query";
|
|
23
35
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
36
|
+
const operator = capitalizeRequestMethodOperator();
|
|
37
|
+
const request = { method: "get" };
|
|
38
|
+
const updatedRequest = operator(request);
|
|
39
|
+
console.log(updatedRequest.method); // Outputs: 'GET'
|
|
40
|
+
```
|
|
29
41
|
|
|
30
|
-
|
|
42
|
+
Adding the operator to the `HttpClient`:
|
|
31
43
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
44
|
+
```typescript
|
|
45
|
+
const httpClient = new HttpClient();
|
|
46
|
+
httpClient.requestHandler.add(
|
|
47
|
+
"capatalize-method",
|
|
48
|
+
capitalizeRequestMethodOperator()
|
|
49
|
+
);
|
|
35
50
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
51
|
+
// transforms `method` to uppercase and logs a warning.
|
|
52
|
+
httpClient.get("https://example.com", { method: "get" });
|
|
53
|
+
```
|
|
39
54
|
|
|
40
55
|
- [#2491](https://github.com/equinor/fusion-framework/pull/2491) [`73af73e`](https://github.com/equinor/fusion-framework/commit/73af73e5582ca27b132210af8ba308b80e036d51) Thanks [@odinr](https://github.com/odinr)! - The `HttpClientConfigurator` now has by default the `capitalizeRequestMethodOperator` and `requestValidationOperator` enabled.
|
|
41
56
|
|
|
42
|
-
|
|
57
|
+
**CapitalizeRequestMethodOperator**
|
|
43
58
|
|
|
44
|
-
|
|
59
|
+
This operator will capitalize the HTTP method name before sending the request. This is useful when you are using a client that requires the HTTP method to be capitalized. If you want to disable this operator, you can do so by removing it from the `HttpClientConfigurator`:
|
|
45
60
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
61
|
+
```typescript
|
|
62
|
+
httpConfig.defaultHttpRequestHandler.remove("capitalize-method");
|
|
63
|
+
```
|
|
49
64
|
|
|
50
|
-
|
|
51
|
-
|
|
65
|
+
> [!NOTE]
|
|
66
|
+
> This operator is enabled by default and will log to the console if the method is not capitalized.
|
|
52
67
|
|
|
53
|
-
|
|
68
|
+
**RequestValidationOperator**
|
|
54
69
|
|
|
55
|
-
|
|
70
|
+
This operator will parse and validate the request before sending it. If the request is invalid, the error will be logged to the console. If you want to disable this operator, you can do so by removing it from the `HttpClientConfigurator`:
|
|
56
71
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
72
|
+
```typescript
|
|
73
|
+
httpConfig.defaultHttpRequestHandler.remove("validate-request");
|
|
74
|
+
```
|
|
60
75
|
|
|
61
|
-
|
|
62
|
-
|
|
76
|
+
> [!NOTE]
|
|
77
|
+
> This operator is enabled by default and will log to the console if the request parameters are invalid.
|
|
63
78
|
|
|
64
|
-
|
|
79
|
+
If you wish stricter validation, you can enable the `strict` mode by setting the `strict` property to `true`:
|
|
65
80
|
|
|
66
|
-
|
|
67
|
-
|
|
81
|
+
```typescript
|
|
82
|
+
import { requestValidationOperator } from '@equinor/fusion-framework-module-http/operators';
|
|
68
83
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
84
|
+
httpConfig.defaultHttpRequestHandler.set(
|
|
85
|
+
'validate-request'
|
|
86
|
+
requestValidationOperator({
|
|
87
|
+
strict: true, // will throw error if schema is not valid
|
|
88
|
+
parse: true // will not allow additional properties
|
|
89
|
+
})
|
|
90
|
+
);
|
|
91
|
+
```
|
|
77
92
|
|
|
78
93
|
- [#2491](https://github.com/equinor/fusion-framework/pull/2491) [`73af73e`](https://github.com/equinor/fusion-framework/commit/73af73e5582ca27b132210af8ba308b80e036d51) Thanks [@odinr](https://github.com/odinr)! - Added `remove` to the `ProcessOperators` to allow for the removal of a specific operator. This is useful for removing operators that are not desired, example default operators included in initial configuration.
|
|
79
94
|
|
|
80
|
-
|
|
95
|
+
example:
|
|
81
96
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
97
|
+
```typescript
|
|
98
|
+
httpClient.requestHandler.remove("capitalize-method");
|
|
99
|
+
```
|
|
85
100
|
|
|
86
|
-
|
|
87
|
-
|
|
101
|
+
> [!NOTE]
|
|
102
|
+
> There are currently no code completion for the `remove` method, so you will need to know the name of the operator you want to remove. We assume this is so low level that if you are removing operators you know what the name of the operator is.
|
|
88
103
|
|
|
89
|
-
|
|
90
|
-
|
|
104
|
+
> [!TIP]
|
|
105
|
+
> If you only wish to replace the operator with another operator, you can use the `set` method instead of `remove` and `add`.
|
|
91
106
|
|
|
92
107
|
- [#2491](https://github.com/equinor/fusion-framework/pull/2491) [`73af73e`](https://github.com/equinor/fusion-framework/commit/73af73e5582ca27b132210af8ba308b80e036d51) Thanks [@odinr](https://github.com/odinr)! - **New Feature: Enhanced `requestValidationOperator`**
|
|
93
108
|
|
|
94
|
-
|
|
109
|
+
The `requestValidationOperator` is a utility function that validates incoming requests against a Zod schema. This function has two options: `strict` and `parse`. The `strict` option allows you to enforce strict validation, while the `parse` option enables you to return the parsed request object if it passes validation.
|
|
95
110
|
|
|
96
|
-
|
|
111
|
+
The `requestValidationOperator` is meant to be used as a request operator in the Fusion API framework. It is a higher-order function that takes a Zod schema as an argument and returns a function that validates incoming requests against that schema.
|
|
97
112
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
113
|
+
| Option | Description | Usage |
|
|
114
|
+
| --------------------- | -------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
|
|
115
|
+
| **Strict Validation** | When `strict` is set to `true`, the validation will fail if there are additional properties not defined in the schema. | If `strict` is set to `false` or omitted, additional properties will be allowed and passed through without causing validation errors. |
|
|
116
|
+
| **Parse Option** | When `parse` is enabled, the function will return the parsed and potentially transformed request object if it passes validation. | If `parse` is not enabled, the function will not return anything even if the request object is valid. |
|
|
102
117
|
|
|
103
|
-
|
|
118
|
+
To use the new `strict` and `parse` options, update your code as follows:
|
|
104
119
|
|
|
105
|
-
|
|
120
|
+
Example usage with strict validation:
|
|
106
121
|
|
|
107
|
-
|
|
108
|
-
|
|
122
|
+
```typescript
|
|
123
|
+
const operator = requestValidationOperator({ strict: true });
|
|
109
124
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
125
|
+
// This will throw an error because of invalid method and extra property.
|
|
126
|
+
operator({
|
|
127
|
+
method: "post",
|
|
128
|
+
body: "foo",
|
|
129
|
+
extraProperty: "This should not be here",
|
|
130
|
+
});
|
|
131
|
+
```
|
|
117
132
|
|
|
118
|
-
|
|
133
|
+
Example usage with parsing enabled:
|
|
119
134
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
135
|
+
```typescript
|
|
136
|
+
// Example usage with parsing enabled
|
|
137
|
+
const operator = requestValidationOperator({ parse: true });
|
|
123
138
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
139
|
+
// will return { method: 'GET' }
|
|
140
|
+
const parsedRequest = operator({
|
|
141
|
+
method: "GET",
|
|
142
|
+
extraProperty: "This should not be here",
|
|
143
|
+
});
|
|
144
|
+
```
|
|
130
145
|
|
|
131
|
-
|
|
146
|
+
Example usage with both strict validation and parsing enabled:
|
|
132
147
|
|
|
133
|
-
|
|
134
|
-
|
|
148
|
+
```typescript
|
|
149
|
+
const operator = requestValidationOperator({ strict: true, parse: true });
|
|
135
150
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
151
|
+
// will throw an error because of extra property.
|
|
152
|
+
const parsedStrictRequest = operator({
|
|
153
|
+
method: "GET",
|
|
154
|
+
extraProperty: "This should not be here",
|
|
155
|
+
});
|
|
156
|
+
```
|
|
142
157
|
|
|
143
|
-
|
|
158
|
+
Example usage with the `HttpClient`:
|
|
144
159
|
|
|
145
|
-
|
|
146
|
-
|
|
160
|
+
```typescript
|
|
161
|
+
const httpClient = new HttpClient();
|
|
147
162
|
|
|
148
|
-
|
|
149
|
-
|
|
163
|
+
// Add the request validation operator to the HttpClient.
|
|
164
|
+
httpClient.requestHandler.add(
|
|
165
|
+
"validate-init",
|
|
166
|
+
requestValidationOperator({ parse: true })
|
|
167
|
+
);
|
|
150
168
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
169
|
+
// will throw an error because of invalid method.
|
|
170
|
+
httpClient.get("https://example.com", { method: "get" });
|
|
171
|
+
```
|
|
154
172
|
|
|
155
173
|
## 6.1.0
|
|
156
174
|
|
|
@@ -158,35 +176,35 @@
|
|
|
158
176
|
|
|
159
177
|
- [#2452](https://github.com/equinor/fusion-framework/pull/2452) [`c776845`](https://github.com/equinor/fusion-framework/commit/c776845e753acf4a0bceda1c59d31e5939c44c31) Thanks [@odinr](https://github.com/odinr)! - **@equinor/fusion-framework-module-http**
|
|
160
178
|
|
|
161
|
-
|
|
179
|
+
`HttpClient._resolveUrl` now supports resolving URLs with a base URL that contains a path.
|
|
162
180
|
|
|
163
|
-
|
|
181
|
+
before:
|
|
164
182
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
183
|
+
```typescript
|
|
184
|
+
const client = new HttpClient("https://example.com/test/me");
|
|
185
|
+
client.fetch("/api"); // https://example.com/api
|
|
186
|
+
```
|
|
169
187
|
|
|
170
|
-
|
|
188
|
+
now:
|
|
171
189
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
190
|
+
```typescript
|
|
191
|
+
const client = new HttpClient("https://example.com/test/me");
|
|
192
|
+
client.fetch("/api"); // https://example.com/test/me/api
|
|
193
|
+
```
|
|
176
194
|
|
|
177
195
|
### Patch Changes
|
|
178
196
|
|
|
179
197
|
- Updated dependencies [[`2644b3d`](https://github.com/equinor/fusion-framework/commit/2644b3d63939aede736a3b1950db32dbd487877d)]:
|
|
180
|
-
|
|
181
|
-
|
|
198
|
+
- @equinor/fusion-framework-module@4.3.5
|
|
199
|
+
- @equinor/fusion-framework-module-msal@3.1.5
|
|
182
200
|
|
|
183
201
|
## 6.0.3
|
|
184
202
|
|
|
185
203
|
### Patch Changes
|
|
186
204
|
|
|
187
205
|
- Updated dependencies [[`75d676d`](https://github.com/equinor/fusion-framework/commit/75d676d2c7919f30e036b5ae97c4d814c569aa87), [`00d5e9c`](https://github.com/equinor/fusion-framework/commit/00d5e9c632876742c3d2a74efea2f126a0a169d9)]:
|
|
188
|
-
|
|
189
|
-
|
|
206
|
+
- @equinor/fusion-framework-module@4.3.4
|
|
207
|
+
- @equinor/fusion-framework-module-msal@3.1.4
|
|
190
208
|
|
|
191
209
|
## 6.0.2
|
|
192
210
|
|
|
@@ -195,8 +213,8 @@
|
|
|
195
213
|
- [#2358](https://github.com/equinor/fusion-framework/pull/2358) [`decb9e9`](https://github.com/equinor/fusion-framework/commit/decb9e9e3d1bb1b0577b729a1e7ae812afdd83cb) Thanks [@eikeland](https://github.com/eikeland)! - Updating vitest to 2.0.4. Setting vitest as devDependency in fusion-query. Updating vite to 5.3.4
|
|
196
214
|
|
|
197
215
|
- Updated dependencies [[`a1524e9`](https://github.com/equinor/fusion-framework/commit/a1524e9c4d83778da3db42dbcf99908b776a0592)]:
|
|
198
|
-
|
|
199
|
-
|
|
216
|
+
- @equinor/fusion-framework-module@4.3.3
|
|
217
|
+
- @equinor/fusion-framework-module-msal@3.1.3
|
|
200
218
|
|
|
201
219
|
## 6.0.1
|
|
202
220
|
|
|
@@ -204,13 +222,13 @@
|
|
|
204
222
|
|
|
205
223
|
- [#2324](https://github.com/equinor/fusion-framework/pull/2324) [`788d0b9`](https://github.com/equinor/fusion-framework/commit/788d0b93edc25e5b682d88c58614560c204c1af9) Thanks [@odinr](https://github.com/odinr)! - Updated documentation in `README.md` for http module.
|
|
206
224
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
225
|
+
- added introduction to http module
|
|
226
|
+
- added concepts section which highlights the key concepts of http module
|
|
227
|
+
- added sequence diagram for http request execution
|
|
228
|
+
- added examples for http module
|
|
229
|
+
- improved documentation for configuring http module
|
|
230
|
+
- improved documentation for working with http clients
|
|
231
|
+
- improved the formatting of the documentation
|
|
214
232
|
|
|
215
233
|
- [#2333](https://github.com/equinor/fusion-framework/pull/2333) [`86d55b8`](https://github.com/equinor/fusion-framework/commit/86d55b8d27a572f3f62170b1e72aceda54f955e1) Thanks [@odinr](https://github.com/odinr)! - Updated `TypeScript` to 5.5.3
|
|
216
234
|
|
|
@@ -218,55 +236,55 @@
|
|
|
218
236
|
|
|
219
237
|
- [#2324](https://github.com/equinor/fusion-framework/pull/2324) [`788d0b9`](https://github.com/equinor/fusion-framework/commit/788d0b93edc25e5b682d88c58614560c204c1af9) Thanks [@odinr](https://github.com/odinr)! - - Added a new type `ResponseSelector<TResult, TResponse>`: a function that takes a `Response` object and returns an observable stream of type `TResult`. The `ResponseSelector` type has two template parameters: `TResult` and `TResponse`.
|
|
220
238
|
|
|
221
|
-
|
|
222
|
-
|
|
239
|
+
- Updated the `FetchRequestInit` type to include a new property `selector` of type `ResponseSelector<TReturn, TResponse>`, which allows specifying a response selector function.
|
|
240
|
+
- Updated the blob-selector and json-selector functions to use the new `ResponseSelector` type.
|
|
223
241
|
|
|
224
242
|
- [#2320](https://github.com/equinor/fusion-framework/pull/2320) [`1dd85f3`](https://github.com/equinor/fusion-framework/commit/1dd85f3a408a73df556d1812a5f280945cc100ee) Thanks [@odinr](https://github.com/odinr)! - Removed the `removeComments` option from the `tsconfig.base.json` file.
|
|
225
243
|
|
|
226
|
-
|
|
244
|
+
Removing the `removeComments` option allows TypeScript to preserve comments in the compiled JavaScript output. This can be beneficial for several reasons:
|
|
227
245
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
246
|
+
1. Improved debugging: Preserved comments can help developers understand the code better during debugging sessions.
|
|
247
|
+
2. Documentation: JSDoc comments and other important code documentation will be retained in the compiled output.
|
|
248
|
+
3. Source map accuracy: Keeping comments can lead to more accurate source maps, which is crucial for debugging and error tracking.
|
|
231
249
|
|
|
232
|
-
|
|
250
|
+
No action is required from consumers of the library. This change affects the build process and doesn't introduce any breaking changes or new features.
|
|
233
251
|
|
|
234
|
-
|
|
252
|
+
Before:
|
|
235
253
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
}
|
|
254
|
+
```json
|
|
255
|
+
{
|
|
256
|
+
"compilerOptions": {
|
|
257
|
+
"module": "ES2022",
|
|
258
|
+
"target": "ES6",
|
|
259
|
+
"incremental": true,
|
|
260
|
+
"removeComments": true,
|
|
261
|
+
"preserveConstEnums": true,
|
|
262
|
+
"sourceMap": true,
|
|
263
|
+
"moduleResolution": "node"
|
|
247
264
|
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
265
|
+
}
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
After:
|
|
269
|
+
|
|
270
|
+
```json
|
|
271
|
+
{
|
|
272
|
+
"compilerOptions": {
|
|
273
|
+
"module": "ES2022",
|
|
274
|
+
"target": "ES6",
|
|
275
|
+
"incremental": true,
|
|
276
|
+
"preserveConstEnums": true,
|
|
277
|
+
"sourceMap": true,
|
|
278
|
+
"moduleResolution": "node"
|
|
262
279
|
}
|
|
263
|
-
|
|
280
|
+
}
|
|
281
|
+
```
|
|
264
282
|
|
|
265
|
-
|
|
283
|
+
This change ensures that comments are preserved in the compiled output, potentially improving the development and debugging experience for users of the Fusion Framework.
|
|
266
284
|
|
|
267
285
|
- Updated dependencies [[`2f74edc`](https://github.com/equinor/fusion-framework/commit/2f74edcd4a3ea2b87d69f0fd63492145c3c01663), [`86d55b8`](https://github.com/equinor/fusion-framework/commit/86d55b8d27a572f3f62170b1e72aceda54f955e1), [`1dd85f3`](https://github.com/equinor/fusion-framework/commit/1dd85f3a408a73df556d1812a5f280945cc100ee)]:
|
|
268
|
-
|
|
269
|
-
|
|
286
|
+
- @equinor/fusion-framework-module@4.3.2
|
|
287
|
+
- @equinor/fusion-framework-module-msal@3.1.2
|
|
270
288
|
|
|
271
289
|
## 6.0.0
|
|
272
290
|
|
|
@@ -274,99 +292,107 @@
|
|
|
274
292
|
|
|
275
293
|
- [#2181](https://github.com/equinor/fusion-framework/pull/2181) [`ba2379b`](https://github.com/equinor/fusion-framework/commit/ba2379b177f23ccc023894e36e50d7fc56c929c8) Thanks [@odinr](https://github.com/odinr)! - The `blob` and `blob# Change Log methods in the `HttpClient` class have been updated to provide a more robust and flexible API for fetching blob resources.
|
|
276
294
|
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
295
|
+
1. The `blob` and `blob# Change Log methods now accept an optional `args`parameter of type`FetchRequestInit<T, TRequest, TResponse>`, where `T` is the type of the expected blob result. This allows consumers to customize the fetch request and response handling.
|
|
296
|
+
2. The `blob` and `blob# Change Log methods now return a `Promise<T>`and`StreamResponse<T>`respectively, where`T` is the type of the expected blob result. This allows consumers to handle the blob data in a more type-safe manner.
|
|
297
|
+
3. The `blobSelector` function has been updated to extract the filename (if available) from the `content-disposition` header and return it along with the blob data in a `BlobResult` object.
|
|
298
|
+
4. If you were previously using the `blob` or `blob# Change Log methods and expecting a `Blob`result, you must now use the new`BlobResult` type, which includes the filename (if available) and the blob data.
|
|
281
299
|
|
|
282
|
-
|
|
283
|
-
|
|
300
|
+
> [!WARNING]
|
|
301
|
+
> This alters the return type of the `blob` and `blob# Change Log methods, which is a **breaking change**.
|
|
284
302
|
|
|
285
|
-
|
|
303
|
+
Example:
|
|
286
304
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
305
|
+
```typescript
|
|
306
|
+
const blobResult = await httpClient.blob("/path/to/blob");
|
|
307
|
+
console.log(blobResult.filename); // 'example.pdf'
|
|
308
|
+
console.log(blobResult.blob); // Blob instance
|
|
309
|
+
```
|
|
292
310
|
|
|
293
|
-
|
|
311
|
+
1. If you were providing a custom selector function to the `blob` or `blob# Change Log methods, you can now use the new `BlobResult` type in your selector function.
|
|
294
312
|
|
|
295
|
-
|
|
313
|
+
Example:
|
|
296
314
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
315
|
+
```typescript
|
|
316
|
+
const customBlobSelector = async (
|
|
317
|
+
response: Response
|
|
318
|
+
): Promise<{ filename: string; blob: Blob }> => {
|
|
319
|
+
// Extract filename and blob from the response
|
|
320
|
+
const { filename, blob } = await blobSelector(response);
|
|
321
|
+
return { filename, blob };
|
|
322
|
+
};
|
|
305
323
|
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
324
|
+
const blobResult = await httpClient.blob("/path/to/blob", {
|
|
325
|
+
selector: customBlobSelector,
|
|
326
|
+
});
|
|
327
|
+
console.log(blobResult.filename); // 'example.pdf'
|
|
328
|
+
console.log(blobResult.blob); // Blob instance
|
|
329
|
+
```
|
|
310
330
|
|
|
311
|
-
|
|
331
|
+
3. If you were using the `blob# Change Log method and expecting a `StreamResponse<Blob>`, you can now use the new `StreamResponse<T>`type, where`T` is the type of the expected blob result.
|
|
312
332
|
|
|
313
|
-
|
|
333
|
+
Example:
|
|
314
334
|
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
335
|
+
```typescript
|
|
336
|
+
const blobStream = httpClient.blob$("/path/to/blob");
|
|
337
|
+
blobStream.subscribe((blobResult) => {
|
|
338
|
+
console.log(blobResult.filename); // 'example.pdf'
|
|
339
|
+
console.log(blobResult.blob); // Blob instance
|
|
340
|
+
});
|
|
341
|
+
```
|
|
322
342
|
|
|
323
343
|
### Patch Changes
|
|
324
344
|
|
|
325
345
|
- [#2196](https://github.com/equinor/fusion-framework/pull/2196) [`1e60919`](https://github.com/equinor/fusion-framework/commit/1e60919e83fb65528c88f604d7bd43299ec412e1) Thanks [@odinr](https://github.com/odinr)! - The `jsonSelector` function was not checking the error type in the `catch` block.
|
|
326
346
|
This lead to not throwing the error with parsed data, but always throwing a parser error, where the correct error was `cause` in the `ErrorOptions`
|
|
327
347
|
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
348
|
+
**BREAKING CHANGE:**
|
|
349
|
+
|
|
350
|
+
If for some reason developers has catched the error and assumed the `cause` property would give the proper error data, this will no longer be the case.
|
|
351
|
+
|
|
352
|
+
```ts
|
|
353
|
+
try {
|
|
354
|
+
await jsonSelector(response);
|
|
355
|
+
} catch (error) {
|
|
356
|
+
if (error instanceof HttpJsonResponseError) {
|
|
357
|
+
const { data, cause } = error;
|
|
358
|
+
if (data) {
|
|
359
|
+
console.error(
|
|
360
|
+
"the request was not `ok`, see provided error data",
|
|
361
|
+
data
|
|
362
|
+
);
|
|
363
|
+
} else {
|
|
364
|
+
console.error(
|
|
365
|
+
"failed to parse data from response, see provided cause",
|
|
366
|
+
cause
|
|
367
|
+
);
|
|
368
|
+
}
|
|
344
369
|
}
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
370
|
+
}
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
```diff
|
|
374
|
+
try {
|
|
375
|
+
await jsonSelector(response);
|
|
376
|
+
} catch (error) {
|
|
377
|
+
if(error instanceof HttpJsonResponseError) {
|
|
378
|
+
- const data = error.cause instanceof HttpJsonResponseError ? err.cause.data : null;
|
|
379
|
+
+ const data = error instanceof HttpJsonResponseError ? error.data : null;
|
|
380
|
+
if(data) {
|
|
381
|
+
console.error('the request was not `ok`, see provided error data', data);
|
|
382
|
+
} else {
|
|
383
|
+
console.error('failed to parse data from response, see provided cause', error.cause);
|
|
359
384
|
}
|
|
360
385
|
}
|
|
361
|
-
|
|
386
|
+
}
|
|
387
|
+
```
|
|
362
388
|
|
|
363
389
|
## 5.2.3
|
|
364
390
|
|
|
365
391
|
### Patch Changes
|
|
366
392
|
|
|
367
393
|
- Updated dependencies [[`fb424be`](https://github.com/equinor/fusion-framework/commit/fb424be24ad9349d01daef91a01c464d7b1413d2), [`fb424be`](https://github.com/equinor/fusion-framework/commit/fb424be24ad9349d01daef91a01c464d7b1413d2), [`fb424be`](https://github.com/equinor/fusion-framework/commit/fb424be24ad9349d01daef91a01c464d7b1413d2)]:
|
|
368
|
-
|
|
369
|
-
|
|
394
|
+
- @equinor/fusion-framework-module@4.3.1
|
|
395
|
+
- @equinor/fusion-framework-module-msal@3.1.1
|
|
370
396
|
|
|
371
397
|
## 5.2.2
|
|
372
398
|
|
|
@@ -382,48 +408,48 @@
|
|
|
382
408
|
|
|
383
409
|
- [#2043](https://github.com/equinor/fusion-framework/pull/2043) [`4af517f`](https://github.com/equinor/fusion-framework/commit/4af517f107f960aa1dc7459451d99e2e83d350ee) Thanks [@odinr](https://github.com/odinr)! - When adding operators to request and response handler to an http client instanstance, the values where added to the configured handlers permanently
|
|
384
410
|
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
411
|
+
```ts
|
|
412
|
+
// create a new client from configuration
|
|
413
|
+
const fooClient = provider.createClient("foo");
|
|
414
|
+
fooClient.requestHandler.setHeader("x-foo", "bar");
|
|
415
|
+
|
|
416
|
+
// generate a RequestInit object
|
|
417
|
+
const fooRequest = await lastValueFrom(
|
|
418
|
+
fooClient.requestHandler.process({ path: "/api", uri: fooClient.uri })
|
|
419
|
+
);
|
|
420
|
+
|
|
421
|
+
expect((fooRequest.headers as Headers)?.get("x-foo")).toBe("bar");
|
|
422
|
+
|
|
423
|
+
// create a new client from the same configuration
|
|
424
|
+
const barClient = provider.createClient("foo");
|
|
425
|
+
|
|
426
|
+
// generate a RequestInit object
|
|
427
|
+
const barRequest = await lastValueFrom(
|
|
428
|
+
barClient.requestHandler.process({ path: "/api", uri: barClient.uri })
|
|
429
|
+
);
|
|
430
|
+
|
|
431
|
+
// expect the request header to not been modified
|
|
432
|
+
// FAILED
|
|
433
|
+
expect((barRequest.headers as Headers)?.get("x-foo")).toBeUndefined();
|
|
434
|
+
```
|
|
435
|
+
|
|
436
|
+
modified the `ProcessOperators` to accept operators on creation, which are clone to the instance.
|
|
437
|
+
|
|
438
|
+
```diff
|
|
439
|
+
--- a/packages/modules/http/src/lib/client/client.ts
|
|
440
|
+
+++ a/packages/modules/http/src/lib/client/client.ts
|
|
441
|
+
constructor(
|
|
442
|
+
public uri: string,
|
|
443
|
+
options?: Partial<HttpClientCreateOptions<TRequest, TResponse>>,
|
|
444
|
+
) {
|
|
445
|
+
- this.requestHandler = options?.requestHandler ?? new HttpRequestHandler<TRequest>();
|
|
446
|
+
+ this.requestHandler = new HttpRequestHandler<TRequest>(options?.requestHandler);
|
|
447
|
+
- this.responseHandler = options?.responseHandler ?? new HttpResponseHandler<TResponse>();
|
|
448
|
+
+ this.responseHandler = new HttpResponseHandler<TResponse>(options?.responseHandler);
|
|
449
|
+
this._init();
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
```
|
|
427
453
|
|
|
428
454
|
## 5.2.0
|
|
429
455
|
|
|
@@ -434,23 +460,23 @@
|
|
|
434
460
|
### Patch Changes
|
|
435
461
|
|
|
436
462
|
- Updated dependencies [[`f3ae28d`](https://github.com/equinor/fusion-framework/commit/f3ae28dc6d1d5043605e07e2cd2e83ae799cd904), [`f3ae28d`](https://github.com/equinor/fusion-framework/commit/f3ae28dc6d1d5043605e07e2cd2e83ae799cd904)]:
|
|
437
|
-
|
|
438
|
-
|
|
463
|
+
- @equinor/fusion-framework-module@4.3.0
|
|
464
|
+
- @equinor/fusion-framework-module-msal@3.1.0
|
|
439
465
|
|
|
440
466
|
## 5.1.6
|
|
441
467
|
|
|
442
468
|
### Patch Changes
|
|
443
469
|
|
|
444
470
|
- Updated dependencies [[`152cf73`](https://github.com/equinor/fusion-framework/commit/152cf73d39eb32ccbaddaa6941e315c437c4972d)]:
|
|
445
|
-
|
|
446
|
-
|
|
471
|
+
- @equinor/fusion-framework-module@4.2.7
|
|
472
|
+
- @equinor/fusion-framework-module-msal@3.0.10
|
|
447
473
|
|
|
448
474
|
## 5.1.5
|
|
449
475
|
|
|
450
476
|
### Patch Changes
|
|
451
477
|
|
|
452
478
|
- Updated dependencies [[`5eab8af`](https://github.com/equinor/fusion-framework/commit/5eab8afe3c3106cc67ad14ce4cbee6c7e4e8dfb1)]:
|
|
453
|
-
|
|
479
|
+
- @equinor/fusion-framework-module-msal@3.0.9
|
|
454
480
|
|
|
455
481
|
## 5.1.4
|
|
456
482
|
|
|
@@ -464,23 +490,23 @@
|
|
|
464
490
|
|
|
465
491
|
- [#1621](https://github.com/equinor/fusion-framework/pull/1621) [`0af3540`](https://github.com/equinor/fusion-framework/commit/0af3540340bac85a19ca3a8ec4e0ccd42b3090ee) Thanks [@odinr](https://github.com/odinr)! - **Improves error handling when processing json http response**
|
|
466
492
|
|
|
467
|
-
|
|
493
|
+
In packages/modules/http/src/errors.ts:
|
|
468
494
|
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
495
|
+
- The class HttpResponseError now has a generic parameter TResponse.
|
|
496
|
+
- Added a static property Name to the class.
|
|
497
|
+
- Added a new class HttpJsonResponseError which extends HttpResponseError and also has generic parameters TType and TResponse.
|
|
498
|
+
- Added a static property Name to the class.
|
|
499
|
+
- Added a public property data of type TType.
|
|
500
|
+
- Modified the constructor to accept an optional data parameter.
|
|
475
501
|
|
|
476
|
-
|
|
502
|
+
In packages/modules/http/src/lib/selectors/json-selector.ts:
|
|
477
503
|
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
504
|
+
- Added an import statement for HttpJsonResponseError.
|
|
505
|
+
- Modified the jsonSelector function to handle errors when parsing the response.
|
|
506
|
+
- Added a try-catch block.
|
|
507
|
+
- Changed the JSON parsing logic to store the parsed data in a variable data.
|
|
508
|
+
- If the response is not OK, a HttpJsonResponseError is thrown with the appropriate error message, response object, and data property.
|
|
509
|
+
- If there is an error parsing the response, a HttpJsonResponseError is thrown with the appropriate error message, response object, and cause property.
|
|
484
510
|
|
|
485
511
|
## 5.1.2
|
|
486
512
|
|
|
@@ -489,8 +515,8 @@
|
|
|
489
515
|
- [#1595](https://github.com/equinor/fusion-framework/pull/1595) [`9c24e84`](https://github.com/equinor/fusion-framework/commit/9c24e847d041dea8384c77439e6b237f5bdb3125) Thanks [@Gustav-Eikaas](https://github.com/Gustav-Eikaas)! - support for module resolution NodeNext & Bundler
|
|
490
516
|
|
|
491
517
|
- Updated dependencies [[`9c24e84`](https://github.com/equinor/fusion-framework/commit/9c24e847d041dea8384c77439e6b237f5bdb3125)]:
|
|
492
|
-
|
|
493
|
-
|
|
518
|
+
- @equinor/fusion-framework-module@4.2.6
|
|
519
|
+
- @equinor/fusion-framework-module-msal@3.0.8
|
|
494
520
|
|
|
495
521
|
## 5.1.1
|
|
496
522
|
|
|
@@ -499,8 +525,8 @@
|
|
|
499
525
|
- [`b5dfe5d2`](https://github.com/equinor/fusion-framework/commit/b5dfe5d29a249e0cca6c9589322931dfedd06acc) Thanks [@odinr](https://github.com/odinr)! - force patch bump, realign missing snapshot
|
|
500
526
|
|
|
501
527
|
- Updated dependencies [[`b5dfe5d2`](https://github.com/equinor/fusion-framework/commit/b5dfe5d29a249e0cca6c9589322931dfedd06acc)]:
|
|
502
|
-
|
|
503
|
-
|
|
528
|
+
- @equinor/fusion-framework-module@4.2.5
|
|
529
|
+
- @equinor/fusion-framework-module-msal@3.0.7
|
|
504
530
|
|
|
505
531
|
## 5.1.0
|
|
506
532
|
|
|
@@ -508,22 +534,22 @@
|
|
|
508
534
|
|
|
509
535
|
- [#1242](https://github.com/equinor/fusion-framework/pull/1242) [`8e9e34a0`](https://github.com/equinor/fusion-framework/commit/8e9e34a06a6905d092ad8ca3f9330a3699da20fa) Thanks [@odinr](https://github.com/odinr)! - add method for executing blob requests
|
|
510
536
|
|
|
511
|
-
|
|
512
|
-
|
|
537
|
+
- added selector for extracting blob from response
|
|
538
|
+
- added function for fetching blob as stream or promise on the http client
|
|
513
539
|
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
540
|
+
```tsx
|
|
541
|
+
const data = await client.blob("/person/photo");
|
|
542
|
+
const url = URL.createObjectURL(blob);
|
|
543
|
+
return <img src={url} />;
|
|
544
|
+
```
|
|
519
545
|
|
|
520
546
|
## 5.0.6
|
|
521
547
|
|
|
522
548
|
### Patch Changes
|
|
523
549
|
|
|
524
550
|
- Updated dependencies [[`9076a498`](https://github.com/equinor/fusion-framework/commit/9076a49876e7a414a27557b7fb9095a67fe3a57f)]:
|
|
525
|
-
|
|
526
|
-
|
|
551
|
+
- @equinor/fusion-framework-module@4.2.4
|
|
552
|
+
- @equinor/fusion-framework-module-msal@3.0.6
|
|
527
553
|
|
|
528
554
|
## 5.0.5
|
|
529
555
|
|
|
@@ -531,19 +557,19 @@
|
|
|
531
557
|
|
|
532
558
|
- [#1109](https://github.com/equinor/fusion-framework/pull/1109) [`7ec195d4`](https://github.com/equinor/fusion-framework/commit/7ec195d42098fec8794db13e83b71ef7753ff862) Thanks [@odinr](https://github.com/odinr)! - Change packaged manager from yarn to pnpm
|
|
533
559
|
|
|
534
|
-
|
|
560
|
+
conflicts of `@types/react` made random outcomes when using `yarn`
|
|
535
561
|
|
|
536
|
-
|
|
562
|
+
this change should not affect consumer of the packages, but might conflict dependent on local package manager.
|
|
537
563
|
|
|
538
564
|
- [#1145](https://github.com/equinor/fusion-framework/pull/1145) [`d276fc5d`](https://github.com/equinor/fusion-framework/commit/d276fc5d514566d05c64705076a1cb91c6a44272) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps): bump rxjs from 7.5.7 to [7.8.1](https://github.com/ReactiveX/rxjs/blob/7.8.1/CHANGELOG.md)
|
|
539
565
|
|
|
540
566
|
- [#1163](https://github.com/equinor/fusion-framework/pull/1163) [`52d98701`](https://github.com/equinor/fusion-framework/commit/52d98701627e93c7284c0b9a5bfd8dab1da43bd3) Thanks [@odinr](https://github.com/odinr)! - Append `Accecpt: application/json` to request headers
|
|
541
567
|
|
|
542
|
-
|
|
568
|
+
when using the `json# Change Log or `json`function on the`HttpClient`add`Accecpt: application/json` to the request header
|
|
543
569
|
|
|
544
570
|
- Updated dependencies [[`7ec195d4`](https://github.com/equinor/fusion-framework/commit/7ec195d42098fec8794db13e83b71ef7753ff862), [`d276fc5d`](https://github.com/equinor/fusion-framework/commit/d276fc5d514566d05c64705076a1cb91c6a44272)]:
|
|
545
|
-
|
|
546
|
-
|
|
571
|
+
- @equinor/fusion-framework-module@4.2.3
|
|
572
|
+
- @equinor/fusion-framework-module-msal@3.0.5
|
|
547
573
|
|
|
548
574
|
## 5.0.4
|
|
549
575
|
|
|
@@ -552,8 +578,8 @@
|
|
|
552
578
|
- [#946](https://github.com/equinor/fusion-framework/pull/946) [`5a160d88`](https://github.com/equinor/fusion-framework/commit/5a160d88981ddfe861d391cfefe10f54dda3d352) Thanks [@odinr](https://github.com/odinr)! - Build/update typescript to 5
|
|
553
579
|
|
|
554
580
|
- Updated dependencies [[`5a160d88`](https://github.com/equinor/fusion-framework/commit/5a160d88981ddfe861d391cfefe10f54dda3d352)]:
|
|
555
|
-
|
|
556
|
-
|
|
581
|
+
- @equinor/fusion-framework-module@4.2.1
|
|
582
|
+
- @equinor/fusion-framework-module-msal@3.0.4
|
|
557
583
|
|
|
558
584
|
## 5.0.3
|
|
559
585
|
|
|
@@ -561,13 +587,13 @@
|
|
|
561
587
|
|
|
562
588
|
- [#905](https://github.com/equinor/fusion-framework/pull/905) [`a7858a1c`](https://github.com/equinor/fusion-framework/commit/a7858a1c01542e2dc94370709f122b4b99c3219c) Thanks [@odinr](https://github.com/odinr)! - **🚧 Chore: dedupe packages**
|
|
563
589
|
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
590
|
+
- align all versions of typescript
|
|
591
|
+
- update types to build
|
|
592
|
+
- a couple of typecasts did not [satisfies](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-0.html#satisfies-support-in-jsdoc) and was recasted as `unknwon`, marked with `TODO`, should be fixed in future
|
|
567
593
|
|
|
568
594
|
- Updated dependencies [[`3efbf0bb`](https://github.com/equinor/fusion-framework/commit/3efbf0bb93fc11aa158872cd6ab98a22bcfb59e5), [`7500ec2c`](https://github.com/equinor/fusion-framework/commit/7500ec2c9ca9b926a19539fc97c61c67f76fc8d9), [`76b30c1e`](https://github.com/equinor/fusion-framework/commit/76b30c1e86db3db18adbe759bb1e39885de1c898), [`83ee5abf`](https://github.com/equinor/fusion-framework/commit/83ee5abf7bcab193c85980e5ae44895cd7f6f08d), [`7500ec2c`](https://github.com/equinor/fusion-framework/commit/7500ec2c9ca9b926a19539fc97c61c67f76fc8d9), [`060818eb`](https://github.com/equinor/fusion-framework/commit/060818eb04ebb9ed6deaed1f0b4530201b1181cf), [`3efbf0bb`](https://github.com/equinor/fusion-framework/commit/3efbf0bb93fc11aa158872cd6ab98a22bcfb59e5), [`a7858a1c`](https://github.com/equinor/fusion-framework/commit/a7858a1c01542e2dc94370709f122b4b99c3219c)]:
|
|
569
|
-
|
|
570
|
-
|
|
595
|
+
- @equinor/fusion-framework-module@4.2.0
|
|
596
|
+
- @equinor/fusion-framework-module-msal@3.0.3
|
|
571
597
|
|
|
572
598
|
All notable changes to this project will be documented in this file.
|
|
573
599
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|