@equinor/fusion-framework-module-http 6.2.0 → 6.2.1-msal-v4-preview-4113a03adbbeaf888ca8bbe55cb89589b5f736ba
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 +159 -149
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 6.2.1-msal-v4-preview-4113a03adbbeaf888ca8bbe55cb89589b5f736ba
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2501](https://github.com/equinor/fusion-framework/pull/2501) [`4113a03`](https://github.com/equinor/fusion-framework/commit/4113a03adbbeaf888ca8bbe55cb89589b5f736ba) Thanks [@dependabot](https://github.com/apps/dependabot)! - pre-release
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`4113a03`](https://github.com/equinor/fusion-framework/commit/4113a03adbbeaf888ca8bbe55cb89589b5f736ba), [`bfaed5a`](https://github.com/equinor/fusion-framework/commit/bfaed5af75b3e0e9bbf4e339bcf8eea83b15736d), [`d8ca92e`](https://github.com/equinor/fusion-framework/commit/d8ca92e6c7a660c2f86479205ca66679ca8f65c4)]:
|
|
10
|
+
- @equinor/fusion-framework-module-msal@3.2.0-msal-v4-preview-4113a03adbbeaf888ca8bbe55cb89589b5f736ba
|
|
11
|
+
- @equinor/fusion-framework-module@4.3.6-msal-v4-preview-4113a03adbbeaf888ca8bbe55cb89589b5f736ba
|
|
12
|
+
|
|
3
13
|
## 6.2.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
|
6
16
|
|
|
7
|
-
-
|
|
17
|
+
- [#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.
|
|
8
18
|
|
|
9
|
-
-
|
|
10
|
-
-
|
|
19
|
+
- Introduced `capitalizeRequestMethodOperator` which processes an HTTP request object and converts its method to uppercase.
|
|
20
|
+
- Logs a warning if the HTTP method was converted, providing information about the change and a reference to RFC 7231 Section 4.1.
|
|
11
21
|
|
|
12
22
|
**Example usage:**
|
|
13
23
|
|
|
@@ -30,7 +40,7 @@
|
|
|
30
40
|
httpClient.get('https://example.com', { method: 'get' });
|
|
31
41
|
```
|
|
32
42
|
|
|
33
|
-
-
|
|
43
|
+
- [#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.
|
|
34
44
|
|
|
35
45
|
**CapitalizeRequestMethodOperator**
|
|
36
46
|
|
|
@@ -68,7 +78,7 @@
|
|
|
68
78
|
);
|
|
69
79
|
```
|
|
70
80
|
|
|
71
|
-
-
|
|
81
|
+
- [#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.
|
|
72
82
|
|
|
73
83
|
example:
|
|
74
84
|
|
|
@@ -82,7 +92,7 @@
|
|
|
82
92
|
> [!TIP]
|
|
83
93
|
> If you only wish to replace the operator with another operator, you can use the `set` method instead of `remove` and `add`.
|
|
84
94
|
|
|
85
|
-
-
|
|
95
|
+
- [#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`**
|
|
86
96
|
|
|
87
97
|
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.
|
|
88
98
|
|
|
@@ -149,7 +159,7 @@
|
|
|
149
159
|
|
|
150
160
|
### Minor Changes
|
|
151
161
|
|
|
152
|
-
-
|
|
162
|
+
- [#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**
|
|
153
163
|
|
|
154
164
|
`HttpClient._resolveUrl` now supports resolving URLs with a base URL that contains a path.
|
|
155
165
|
|
|
@@ -169,52 +179,52 @@
|
|
|
169
179
|
|
|
170
180
|
### Patch Changes
|
|
171
181
|
|
|
172
|
-
-
|
|
173
|
-
-
|
|
174
|
-
-
|
|
182
|
+
- Updated dependencies [[`2644b3d`](https://github.com/equinor/fusion-framework/commit/2644b3d63939aede736a3b1950db32dbd487877d)]:
|
|
183
|
+
- @equinor/fusion-framework-module@4.3.5
|
|
184
|
+
- @equinor/fusion-framework-module-msal@3.1.5
|
|
175
185
|
|
|
176
186
|
## 6.0.3
|
|
177
187
|
|
|
178
188
|
### Patch Changes
|
|
179
189
|
|
|
180
|
-
-
|
|
181
|
-
-
|
|
182
|
-
-
|
|
190
|
+
- Updated dependencies [[`75d676d`](https://github.com/equinor/fusion-framework/commit/75d676d2c7919f30e036b5ae97c4d814c569aa87), [`00d5e9c`](https://github.com/equinor/fusion-framework/commit/00d5e9c632876742c3d2a74efea2f126a0a169d9)]:
|
|
191
|
+
- @equinor/fusion-framework-module@4.3.4
|
|
192
|
+
- @equinor/fusion-framework-module-msal@3.1.4
|
|
183
193
|
|
|
184
194
|
## 6.0.2
|
|
185
195
|
|
|
186
196
|
### Patch Changes
|
|
187
197
|
|
|
188
|
-
-
|
|
198
|
+
- [#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
|
|
189
199
|
|
|
190
|
-
-
|
|
191
|
-
-
|
|
192
|
-
-
|
|
200
|
+
- Updated dependencies [[`a1524e9`](https://github.com/equinor/fusion-framework/commit/a1524e9c4d83778da3db42dbcf99908b776a0592)]:
|
|
201
|
+
- @equinor/fusion-framework-module@4.3.3
|
|
202
|
+
- @equinor/fusion-framework-module-msal@3.1.3
|
|
193
203
|
|
|
194
204
|
## 6.0.1
|
|
195
205
|
|
|
196
206
|
### Patch Changes
|
|
197
207
|
|
|
198
|
-
-
|
|
208
|
+
- [#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.
|
|
199
209
|
|
|
200
|
-
-
|
|
201
|
-
-
|
|
202
|
-
-
|
|
203
|
-
-
|
|
204
|
-
-
|
|
205
|
-
-
|
|
206
|
-
-
|
|
210
|
+
- added introduction to http module
|
|
211
|
+
- added concepts section which highlights the key concepts of http module
|
|
212
|
+
- added sequence diagram for http request execution
|
|
213
|
+
- added examples for http module
|
|
214
|
+
- improved documentation for configuring http module
|
|
215
|
+
- improved documentation for working with http clients
|
|
216
|
+
- improved the formatting of the documentation
|
|
207
217
|
|
|
208
|
-
-
|
|
218
|
+
- [#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
|
|
209
219
|
|
|
210
|
-
-
|
|
220
|
+
- [#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 TsDoc for http module
|
|
211
221
|
|
|
212
|
-
-
|
|
222
|
+
- [#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`.
|
|
213
223
|
|
|
214
|
-
-
|
|
215
|
-
-
|
|
224
|
+
- Updated the `FetchRequestInit` type to include a new property `selector` of type `ResponseSelector<TReturn, TResponse>`, which allows specifying a response selector function.
|
|
225
|
+
- Updated the blob-selector and json-selector functions to use the new `ResponseSelector` type.
|
|
216
226
|
|
|
217
|
-
-
|
|
227
|
+
- [#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.
|
|
218
228
|
|
|
219
229
|
Removing the `removeComments` option allows TypeScript to preserve comments in the compiled JavaScript output. This can be beneficial for several reasons:
|
|
220
230
|
|
|
@@ -257,15 +267,15 @@
|
|
|
257
267
|
|
|
258
268
|
This change ensures that comments are preserved in the compiled output, potentially improving the development and debugging experience for users of the Fusion Framework.
|
|
259
269
|
|
|
260
|
-
-
|
|
261
|
-
-
|
|
262
|
-
-
|
|
270
|
+
- 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)]:
|
|
271
|
+
- @equinor/fusion-framework-module@4.3.2
|
|
272
|
+
- @equinor/fusion-framework-module-msal@3.1.2
|
|
263
273
|
|
|
264
274
|
## 6.0.0
|
|
265
275
|
|
|
266
276
|
### Major Changes
|
|
267
277
|
|
|
268
|
-
-
|
|
278
|
+
- [#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.
|
|
269
279
|
|
|
270
280
|
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.
|
|
271
281
|
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.
|
|
@@ -315,8 +325,8 @@
|
|
|
315
325
|
|
|
316
326
|
### Patch Changes
|
|
317
327
|
|
|
318
|
-
-
|
|
319
|
-
|
|
328
|
+
- [#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.
|
|
329
|
+
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`
|
|
320
330
|
|
|
321
331
|
**BREAKING CHANGE:**
|
|
322
332
|
|
|
@@ -357,23 +367,23 @@
|
|
|
357
367
|
|
|
358
368
|
### Patch Changes
|
|
359
369
|
|
|
360
|
-
-
|
|
361
|
-
-
|
|
362
|
-
-
|
|
370
|
+
- 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)]:
|
|
371
|
+
- @equinor/fusion-framework-module@4.3.1
|
|
372
|
+
- @equinor/fusion-framework-module-msal@3.1.1
|
|
363
373
|
|
|
364
374
|
## 5.2.2
|
|
365
375
|
|
|
366
376
|
### Patch Changes
|
|
367
377
|
|
|
368
|
-
-
|
|
378
|
+
- [#2073](https://github.com/equinor/fusion-framework/pull/2073) [`fab2d22`](https://github.com/equinor/fusion-framework/commit/fab2d22f56772c02b1c1e5688cea1dd376edfcb3) Thanks [@eikeland](https://github.com/eikeland)! - Removing type module in package.json
|
|
369
379
|
|
|
370
380
|
## 5.2.1
|
|
371
381
|
|
|
372
382
|
### Patch Changes
|
|
373
383
|
|
|
374
|
-
-
|
|
384
|
+
- [#2043](https://github.com/equinor/fusion-framework/pull/2043) [`4af517f`](https://github.com/equinor/fusion-framework/commit/4af517f107f960aa1dc7459451d99e2e83d350ee) Thanks [@odinr](https://github.com/odinr)! - Added test for http client, to check if configured operators are not altered
|
|
375
385
|
|
|
376
|
-
-
|
|
386
|
+
- [#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
|
|
377
387
|
|
|
378
388
|
```ts
|
|
379
389
|
// create a new client from configuration
|
|
@@ -422,87 +432,87 @@
|
|
|
422
432
|
|
|
423
433
|
### Minor Changes
|
|
424
434
|
|
|
425
|
-
-
|
|
435
|
+
- [#1953](https://github.com/equinor/fusion-framework/pull/1953) [`f3ae28d`](https://github.com/equinor/fusion-framework/commit/f3ae28dc6d1d5043605e07e2cd2e83ae799cd904) Thanks [@odinr](https://github.com/odinr)! - updated typescript to 5.4.2
|
|
426
436
|
|
|
427
437
|
### Patch Changes
|
|
428
438
|
|
|
429
|
-
-
|
|
430
|
-
-
|
|
431
|
-
-
|
|
439
|
+
- Updated dependencies [[`f3ae28d`](https://github.com/equinor/fusion-framework/commit/f3ae28dc6d1d5043605e07e2cd2e83ae799cd904), [`f3ae28d`](https://github.com/equinor/fusion-framework/commit/f3ae28dc6d1d5043605e07e2cd2e83ae799cd904)]:
|
|
440
|
+
- @equinor/fusion-framework-module@4.3.0
|
|
441
|
+
- @equinor/fusion-framework-module-msal@3.1.0
|
|
432
442
|
|
|
433
443
|
## 5.1.6
|
|
434
444
|
|
|
435
445
|
### Patch Changes
|
|
436
446
|
|
|
437
|
-
-
|
|
438
|
-
-
|
|
439
|
-
-
|
|
447
|
+
- Updated dependencies [[`152cf73`](https://github.com/equinor/fusion-framework/commit/152cf73d39eb32ccbaddaa6941e315c437c4972d)]:
|
|
448
|
+
- @equinor/fusion-framework-module@4.2.7
|
|
449
|
+
- @equinor/fusion-framework-module-msal@3.0.10
|
|
440
450
|
|
|
441
451
|
## 5.1.5
|
|
442
452
|
|
|
443
453
|
### Patch Changes
|
|
444
454
|
|
|
445
|
-
-
|
|
446
|
-
-
|
|
455
|
+
- Updated dependencies [[`5eab8af`](https://github.com/equinor/fusion-framework/commit/5eab8afe3c3106cc67ad14ce4cbee6c7e4e8dfb1)]:
|
|
456
|
+
- @equinor/fusion-framework-module-msal@3.0.9
|
|
447
457
|
|
|
448
458
|
## 5.1.4
|
|
449
459
|
|
|
450
460
|
### Patch Changes
|
|
451
461
|
|
|
452
|
-
-
|
|
462
|
+
- [#1625](https://github.com/equinor/fusion-framework/pull/1625) [`1e4ba77`](https://github.com/equinor/fusion-framework/commit/1e4ba7707d3ce5cfd9c8d6673f760523aa47a45e) Thanks [@Gustav-Eikaas](https://github.com/Gustav-Eikaas)! - fix import from non specified export (moduleResolution: bundler)
|
|
453
463
|
|
|
454
464
|
## 5.1.3
|
|
455
465
|
|
|
456
466
|
### Patch Changes
|
|
457
467
|
|
|
458
|
-
-
|
|
468
|
+
- [#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**
|
|
459
469
|
|
|
460
470
|
In packages/modules/http/src/errors.ts:
|
|
461
471
|
|
|
462
|
-
-
|
|
463
|
-
-
|
|
464
|
-
-
|
|
465
|
-
-
|
|
466
|
-
-
|
|
467
|
-
-
|
|
472
|
+
- The class HttpResponseError now has a generic parameter TResponse.
|
|
473
|
+
- Added a static property Name to the class.
|
|
474
|
+
- Added a new class HttpJsonResponseError which extends HttpResponseError and also has generic parameters TType and TResponse.
|
|
475
|
+
- Added a static property Name to the class.
|
|
476
|
+
- Added a public property data of type TType.
|
|
477
|
+
- Modified the constructor to accept an optional data parameter.
|
|
468
478
|
|
|
469
479
|
In packages/modules/http/src/lib/selectors/json-selector.ts:
|
|
470
480
|
|
|
471
|
-
-
|
|
472
|
-
-
|
|
473
|
-
-
|
|
474
|
-
-
|
|
475
|
-
-
|
|
476
|
-
-
|
|
481
|
+
- Added an import statement for HttpJsonResponseError.
|
|
482
|
+
- Modified the jsonSelector function to handle errors when parsing the response.
|
|
483
|
+
- Added a try-catch block.
|
|
484
|
+
- Changed the JSON parsing logic to store the parsed data in a variable data.
|
|
485
|
+
- If the response is not OK, a HttpJsonResponseError is thrown with the appropriate error message, response object, and data property.
|
|
486
|
+
- If there is an error parsing the response, a HttpJsonResponseError is thrown with the appropriate error message, response object, and cause property.
|
|
477
487
|
|
|
478
488
|
## 5.1.2
|
|
479
489
|
|
|
480
490
|
### Patch Changes
|
|
481
491
|
|
|
482
|
-
-
|
|
492
|
+
- [#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
|
|
483
493
|
|
|
484
|
-
-
|
|
485
|
-
-
|
|
486
|
-
-
|
|
494
|
+
- Updated dependencies [[`9c24e84`](https://github.com/equinor/fusion-framework/commit/9c24e847d041dea8384c77439e6b237f5bdb3125)]:
|
|
495
|
+
- @equinor/fusion-framework-module@4.2.6
|
|
496
|
+
- @equinor/fusion-framework-module-msal@3.0.8
|
|
487
497
|
|
|
488
498
|
## 5.1.1
|
|
489
499
|
|
|
490
500
|
### Patch Changes
|
|
491
501
|
|
|
492
|
-
-
|
|
502
|
+
- [`b5dfe5d2`](https://github.com/equinor/fusion-framework/commit/b5dfe5d29a249e0cca6c9589322931dfedd06acc) Thanks [@odinr](https://github.com/odinr)! - force patch bump, realign missing snapshot
|
|
493
503
|
|
|
494
|
-
-
|
|
495
|
-
-
|
|
496
|
-
-
|
|
504
|
+
- Updated dependencies [[`b5dfe5d2`](https://github.com/equinor/fusion-framework/commit/b5dfe5d29a249e0cca6c9589322931dfedd06acc)]:
|
|
505
|
+
- @equinor/fusion-framework-module@4.2.5
|
|
506
|
+
- @equinor/fusion-framework-module-msal@3.0.7
|
|
497
507
|
|
|
498
508
|
## 5.1.0
|
|
499
509
|
|
|
500
510
|
### Minor Changes
|
|
501
511
|
|
|
502
|
-
-
|
|
512
|
+
- [#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
|
|
503
513
|
|
|
504
|
-
-
|
|
505
|
-
-
|
|
514
|
+
- added selector for extracting blob from response
|
|
515
|
+
- added function for fetching blob as stream or promise on the http client
|
|
506
516
|
|
|
507
517
|
```tsx
|
|
508
518
|
const data = await client.blob('/person/photo');
|
|
@@ -514,53 +524,53 @@
|
|
|
514
524
|
|
|
515
525
|
### Patch Changes
|
|
516
526
|
|
|
517
|
-
-
|
|
518
|
-
-
|
|
519
|
-
-
|
|
527
|
+
- Updated dependencies [[`9076a498`](https://github.com/equinor/fusion-framework/commit/9076a49876e7a414a27557b7fb9095a67fe3a57f)]:
|
|
528
|
+
- @equinor/fusion-framework-module@4.2.4
|
|
529
|
+
- @equinor/fusion-framework-module-msal@3.0.6
|
|
520
530
|
|
|
521
531
|
## 5.0.5
|
|
522
532
|
|
|
523
533
|
### Patch Changes
|
|
524
534
|
|
|
525
|
-
-
|
|
535
|
+
- [#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
|
|
526
536
|
|
|
527
537
|
conflicts of `@types/react` made random outcomes when using `yarn`
|
|
528
538
|
|
|
529
539
|
this change should not affect consumer of the packages, but might conflict dependent on local package manager.
|
|
530
540
|
|
|
531
|
-
-
|
|
541
|
+
- [#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)
|
|
532
542
|
|
|
533
|
-
-
|
|
543
|
+
- [#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
|
|
534
544
|
|
|
535
545
|
when using the `json# Change Log or `json`function on the`HttpClient`add`Accecpt: application/json` to the request header
|
|
536
546
|
|
|
537
|
-
-
|
|
538
|
-
-
|
|
539
|
-
-
|
|
547
|
+
- Updated dependencies [[`7ec195d4`](https://github.com/equinor/fusion-framework/commit/7ec195d42098fec8794db13e83b71ef7753ff862), [`d276fc5d`](https://github.com/equinor/fusion-framework/commit/d276fc5d514566d05c64705076a1cb91c6a44272)]:
|
|
548
|
+
- @equinor/fusion-framework-module@4.2.3
|
|
549
|
+
- @equinor/fusion-framework-module-msal@3.0.5
|
|
540
550
|
|
|
541
551
|
## 5.0.4
|
|
542
552
|
|
|
543
553
|
### Patch Changes
|
|
544
554
|
|
|
545
|
-
-
|
|
555
|
+
- [#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
|
|
546
556
|
|
|
547
|
-
-
|
|
548
|
-
-
|
|
549
|
-
-
|
|
557
|
+
- Updated dependencies [[`5a160d88`](https://github.com/equinor/fusion-framework/commit/5a160d88981ddfe861d391cfefe10f54dda3d352)]:
|
|
558
|
+
- @equinor/fusion-framework-module@4.2.1
|
|
559
|
+
- @equinor/fusion-framework-module-msal@3.0.4
|
|
550
560
|
|
|
551
561
|
## 5.0.3
|
|
552
562
|
|
|
553
563
|
### Patch Changes
|
|
554
564
|
|
|
555
|
-
-
|
|
565
|
+
- [#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**
|
|
556
566
|
|
|
557
|
-
-
|
|
558
|
-
-
|
|
559
|
-
-
|
|
567
|
+
- align all versions of typescript
|
|
568
|
+
- update types to build
|
|
569
|
+
- 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
|
|
560
570
|
|
|
561
|
-
-
|
|
562
|
-
-
|
|
563
|
-
-
|
|
571
|
+
- 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)]:
|
|
572
|
+
- @equinor/fusion-framework-module@4.2.0
|
|
573
|
+
- @equinor/fusion-framework-module-msal@3.0.3
|
|
564
574
|
|
|
565
575
|
All notable changes to this project will be documented in this file.
|
|
566
576
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
@@ -589,11 +599,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
589
599
|
|
|
590
600
|
### ⚠ BREAKING CHANGES
|
|
591
601
|
|
|
592
|
-
-
|
|
602
|
+
- **modules/http:** `IHttpClient.execute` is removed, most likely not used, too complex to maintain
|
|
593
603
|
|
|
594
604
|
### Bug Fixes
|
|
595
605
|
|
|
596
|
-
-
|
|
606
|
+
- **modules/http:** fix typing for json requests ([459df80](https://github.com/equinor/fusion-framework/commit/459df80bfc79426ec6507db8f06d488b6a3d0f07))
|
|
597
607
|
|
|
598
608
|
## [3.0.0](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-http@2.2.3...@equinor/fusion-framework-module-http@3.0.0) (2023-01-27)
|
|
599
609
|
|
|
@@ -619,13 +629,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
619
629
|
|
|
620
630
|
### Features
|
|
621
631
|
|
|
622
|
-
-
|
|
632
|
+
- **http:** throw error when selector error ([dc0aa35](https://github.com/equinor/fusion-framework/commit/dc0aa35cbc44fb0503a9431ab728b81d8a3af290))
|
|
623
633
|
|
|
624
634
|
## 2.1.8 (2022-12-06)
|
|
625
635
|
|
|
626
636
|
### Bug Fixes
|
|
627
637
|
|
|
628
|
-
-
|
|
638
|
+
- **module-http:** adding missing types on module-http iHttpClient ([ac6e81e](https://github.com/equinor/fusion-framework/commit/ac6e81e54d70b8a943466046fcbe86f6bd7c4c67))
|
|
629
639
|
|
|
630
640
|
## 2.1.7 (2022-12-01)
|
|
631
641
|
|
|
@@ -639,7 +649,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
639
649
|
|
|
640
650
|
### Bug Fixes
|
|
641
651
|
|
|
642
|
-
-
|
|
652
|
+
- **module-http:** add headers to json request ([8223394](https://github.com/equinor/fusion-framework/commit/8223394362a24663bf65442025f0b031aa37a910))
|
|
643
653
|
|
|
644
654
|
## 2.1.4 (2022-11-11)
|
|
645
655
|
|
|
@@ -649,7 +659,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
649
659
|
|
|
650
660
|
### Bug Fixes
|
|
651
661
|
|
|
652
|
-
-
|
|
662
|
+
- **module-auth:** make http module await auth ([18a0ed9](https://github.com/equinor/fusion-framework/commit/18a0ed947e128bf1cdc86aa45d31e73c1f8c4bbb))
|
|
653
663
|
|
|
654
664
|
## 2.1.2 (2022-11-03)
|
|
655
665
|
|
|
@@ -663,12 +673,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
663
673
|
|
|
664
674
|
### Features
|
|
665
675
|
|
|
666
|
-
-
|
|
667
|
-
-
|
|
676
|
+
- :necktie: remove try catch from json-selector ([fe5e2ea](https://github.com/equinor/fusion-framework/commit/fe5e2ea087cdee99403175e912eb09479b86414e))
|
|
677
|
+
- :sparkles: return undefined on status code 204 ([af1eea7](https://github.com/equinor/fusion-framework/commit/af1eea7a9ef539a44c3cab69904b4764f169caa6))
|
|
668
678
|
|
|
669
679
|
### Reverts
|
|
670
680
|
|
|
671
|
-
-
|
|
681
|
+
- :rewind: revert changes in json-selector ([8c448e5](https://github.com/equinor/fusion-framework/commit/8c448e5c76fb20cbd908c95f2fbd9d8d0367aad1))
|
|
672
682
|
|
|
673
683
|
## 2.0.14 (2022-10-27)
|
|
674
684
|
|
|
@@ -690,7 +700,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
690
700
|
|
|
691
701
|
### Bug Fixes
|
|
692
702
|
|
|
693
|
-
-
|
|
703
|
+
- **module-http:** allow typing of fetch request ([de08783](https://github.com/equinor/fusion-framework/commit/de0878342d82249ffc7e1212230d0aa0e14d32cb))
|
|
694
704
|
|
|
695
705
|
## [2.0.9](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-http@2.0.8...@equinor/fusion-framework-module-http@2.0.9) (2022-09-29)
|
|
696
706
|
|
|
@@ -700,7 +710,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
700
710
|
|
|
701
711
|
### Bug Fixes
|
|
702
712
|
|
|
703
|
-
-
|
|
713
|
+
- update registering of configuration ([20942ce](https://github.com/equinor/fusion-framework/commit/20942ce1c7a853ea3b55c031a242646e378db8c9))
|
|
704
714
|
|
|
705
715
|
## 2.0.7 (2022-09-20)
|
|
706
716
|
|
|
@@ -710,8 +720,8 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
710
720
|
|
|
711
721
|
### Bug Fixes
|
|
712
722
|
|
|
713
|
-
-
|
|
714
|
-
-
|
|
723
|
+
- **module-http:** fix export ([06a490d](https://github.com/equinor/fusion-framework/commit/06a490d40e34d2074ac102ac4fcd458cadd3538a))
|
|
724
|
+
- **module-http:** improve hierarchy ([3603347](https://github.com/equinor/fusion-framework/commit/36033474991288983490f250726a551f7ce3dcbd))
|
|
715
725
|
|
|
716
726
|
## [2.0.5](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-http@2.0.4...@equinor/fusion-framework-module-http@2.0.5) (2022-09-14)
|
|
717
727
|
|
|
@@ -745,13 +755,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
745
755
|
|
|
746
756
|
### Features
|
|
747
757
|
|
|
748
|
-
-
|
|
758
|
+
- **module-http:** expose simple config ([94e4d6b](https://github.com/equinor/fusion-framework/commit/94e4d6bbb7fef010cd72e49242d68ed155592e11))
|
|
749
759
|
|
|
750
760
|
## [2.0.0-alpha.0](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-http@1.0.2...@equinor/fusion-framework-module-http@2.0.0-alpha.0) (2022-09-12)
|
|
751
761
|
|
|
752
762
|
### Features
|
|
753
763
|
|
|
754
|
-
-
|
|
764
|
+
- **module-http:** expose simple config ([94e4d6b](https://github.com/equinor/fusion-framework/commit/94e4d6bbb7fef010cd72e49242d68ed155592e11))
|
|
755
765
|
|
|
756
766
|
## 1.0.2 (2022-09-05)
|
|
757
767
|
|
|
@@ -765,23 +775,23 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
765
775
|
|
|
766
776
|
### ⚠ BREAKING CHANGES
|
|
767
777
|
|
|
768
|
-
-
|
|
778
|
+
- rename fetch
|
|
769
779
|
|
|
770
|
-
-
|
|
780
|
+
- fix(module-service-discovery): update http client consumer
|
|
771
781
|
|
|
772
|
-
-
|
|
782
|
+
- build: update allowed branches
|
|
773
783
|
|
|
774
|
-
-
|
|
784
|
+
- build: add conventional commit
|
|
775
785
|
|
|
776
|
-
-
|
|
786
|
+
- build: use conventionalcommits
|
|
777
787
|
|
|
778
|
-
-
|
|
788
|
+
- build(module-http): push major
|
|
779
789
|
|
|
780
|
-
-
|
|
790
|
+
- build: update deps
|
|
781
791
|
|
|
782
792
|
### Features
|
|
783
793
|
|
|
784
|
-
-
|
|
794
|
+
- rename fetch method ([#226](https://github.com/equinor/fusion-framework/issues/226)) ([f02df7c](https://github.com/equinor/fusion-framework/commit/f02df7cdd2b9098b0da49c5ea56ac3b6a17e9e32))
|
|
785
795
|
|
|
786
796
|
## 0.6.2 (2022-08-19)
|
|
787
797
|
|
|
@@ -793,44 +803,44 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
793
803
|
|
|
794
804
|
# [0.6.0](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-http@0.5.0...@equinor/fusion-framework-module-http@0.6.0) (2022-08-11)
|
|
795
805
|
|
|
796
|
-
-
|
|
806
|
+
- feat!: allow modules to displose ([32b69fb](https://github.com/equinor/fusion-framework/commit/32b69fb7cc61e78e503e67d0e77f21fb44b600b9))
|
|
797
807
|
|
|
798
808
|
### BREAKING CHANGES
|
|
799
809
|
|
|
800
|
-
-
|
|
810
|
+
- module.initialize now has object as arg
|
|
801
811
|
|
|
802
812
|
# 0.5.0 (2022-08-08)
|
|
803
813
|
|
|
804
814
|
### Bug Fixes
|
|
805
815
|
|
|
806
|
-
-
|
|
816
|
+
- **module-http:** expose FetchRequest ([3d14ead](https://github.com/equinor/fusion-framework/commit/3d14ead0d78b36db091c6645ff1b69101e1f911f))
|
|
807
817
|
|
|
808
818
|
### Features
|
|
809
819
|
|
|
810
|
-
-
|
|
820
|
+
- **module-service-discovery:** resolve service to config ([3fa088d](https://github.com/equinor/fusion-framework/commit/3fa088d2ced8136447df6949928f1af9fc83407a))
|
|
811
821
|
|
|
812
822
|
# [0.4.0](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-http@0.3.10...@equinor/fusion-framework-module-http@0.4.0) (2022-08-04)
|
|
813
823
|
|
|
814
|
-
-
|
|
824
|
+
- feat(module)!: allow requireing module instnce (#190) ([3a7e67e](https://github.com/equinor/fusion-framework/commit/3a7e67e9accb5185100325c92d5850a44626e498)), closes [#190](https://github.com/equinor/fusion-framework/issues/190)
|
|
815
825
|
|
|
816
826
|
### BREAKING CHANGES
|
|
817
827
|
|
|
818
|
-
-
|
|
828
|
+
- `deps` prop is remove from module object, use `await require('MODULE')`;
|
|
819
829
|
|
|
820
|
-
-
|
|
830
|
+
- feat(module)!: allow requireing module instnce
|
|
821
831
|
|
|
822
832
|
when module initiates it should be allowed to await an required module.
|
|
823
833
|
|
|
824
|
-
-
|
|
825
|
-
-
|
|
834
|
+
- add method for awaiting required module
|
|
835
|
+
- add typing for config in initialize fase
|
|
826
836
|
|
|
827
|
-
-
|
|
828
|
-
-
|
|
829
|
-
-
|
|
837
|
+
- update service discovery to await http module
|
|
838
|
+
- add service discovery client
|
|
839
|
+
- allow configuration of service discovery client
|
|
830
840
|
|
|
831
|
-
*
|
|
841
|
+
* `deps` prop is remove from module object, use `await require('MODULE')`;
|
|
832
842
|
|
|
833
|
-
*
|
|
843
|
+
* fix(module-http): add default interface for HttpClientOptions
|
|
834
844
|
|
|
835
845
|
## [0.3.10](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-http@0.3.9...@equinor/fusion-framework-module-http@0.3.10) (2022-08-01)
|
|
836
846
|
|
|
@@ -840,19 +850,19 @@ when module initiates it should be allowed to await an required module.
|
|
|
840
850
|
|
|
841
851
|
### Bug Fixes
|
|
842
852
|
|
|
843
|
-
-
|
|
853
|
+
- change typo of exports ([b049503](https://github.com/equinor/fusion-framework/commit/b049503511fb1b37b920b00aed1468ed8385a67e))
|
|
844
854
|
|
|
845
855
|
## [0.3.8](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-http@0.3.7...@equinor/fusion-framework-module-http@0.3.8) (2022-07-01)
|
|
846
856
|
|
|
847
857
|
### Bug Fixes
|
|
848
858
|
|
|
849
|
-
-
|
|
859
|
+
- **module-http:** fix selector of client ([dcc4774](https://github.com/equinor/fusion-framework/commit/dcc477489b51aa988a97494ff553eee34404469d))
|
|
850
860
|
|
|
851
861
|
## [0.3.7](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-http@0.3.6...@equinor/fusion-framework-module-http@0.3.7) (2022-07-01)
|
|
852
862
|
|
|
853
863
|
### Bug Fixes
|
|
854
864
|
|
|
855
|
-
-
|
|
865
|
+
- **module-http:** make rxjs dependent ([a20286f](https://github.com/equinor/fusion-framework/commit/a20286f950ff10c84605c025354cb05280c7455a))
|
|
856
866
|
|
|
857
867
|
## [0.3.6](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-http@0.3.5...@equinor/fusion-framework-module-http@0.3.6) (2022-06-30)
|
|
858
868
|
|
|
@@ -882,13 +892,13 @@ when module initiates it should be allowed to await an required module.
|
|
|
882
892
|
|
|
883
893
|
### Features
|
|
884
894
|
|
|
885
|
-
-
|
|
895
|
+
- **module-http:** expose response processor ([e4551c5](https://github.com/equinor/fusion-framework/commit/e4551c549654ef25f33eef72ebc2fcc02ab552a2))
|
|
886
896
|
|
|
887
897
|
## 0.2.2 (2022-06-13)
|
|
888
898
|
|
|
889
899
|
### Bug Fixes
|
|
890
900
|
|
|
891
|
-
-
|
|
901
|
+
- **module-http:** reutrn fallb ack config ([8ece469](https://github.com/equinor/fusion-framework/commit/8ece469e99bd64c10a7697d49fdcc5d396737ac8))
|
|
892
902
|
|
|
893
903
|
## 0.2.1 (2022-06-10)
|
|
894
904
|
|
|
@@ -898,7 +908,7 @@ when module initiates it should be allowed to await an required module.
|
|
|
898
908
|
|
|
899
909
|
### Features
|
|
900
910
|
|
|
901
|
-
-
|
|
911
|
+
- **module-http:** add json support ([a6adbbb](https://github.com/equinor/fusion-framework/commit/a6adbbb36ca1391f8813be6141ef963031098764))
|
|
902
912
|
|
|
903
913
|
## 0.1.1 (2022-02-09)
|
|
904
914
|
|
|
@@ -908,15 +918,15 @@ when module initiates it should be allowed to await an required module.
|
|
|
908
918
|
|
|
909
919
|
### Bug Fixes
|
|
910
920
|
|
|
911
|
-
-
|
|
912
|
-
-
|
|
913
|
-
-
|
|
914
|
-
-
|
|
915
|
-
-
|
|
921
|
+
- expose http client interface ([8660822](https://github.com/equinor/fusion-framework/commit/8660822b669e549bd454aa8a6a0adcaeb5e7917f))
|
|
922
|
+
- **module-http:** allow defaultScopes ([d476de9](https://github.com/equinor/fusion-framework/commit/d476de99e6289e60684f02bcd7b669e23f3789bb))
|
|
923
|
+
- **module-http:** fix check if config when creating client ([950ebc1](https://github.com/equinor/fusion-framework/commit/950ebc18f8f35bb7e6f97d6a98bd91d87616a94e))
|
|
924
|
+
- **module-http:** fix merge of process operators ([5a1d6d2](https://github.com/equinor/fusion-framework/commit/5a1d6d2942475c61c994f4ec26812c949cabbdf1))
|
|
925
|
+
- **module-http:** fix relative url resolve ([0d8c311](https://github.com/equinor/fusion-framework/commit/0d8c311c66b52eec22d465e0db57fa003506ab0c))
|
|
916
926
|
|
|
917
927
|
### Features
|
|
918
928
|
|
|
919
|
-
-
|
|
920
|
-
-
|
|
921
|
-
-
|
|
922
|
-
-
|
|
929
|
+
- add module for http clients ([7b02db7](https://github.com/equinor/fusion-framework/commit/7b02db7c2e34b97659bc72af7b5b31307cf55e5f))
|
|
930
|
+
- http client base uri ([233cabf](https://github.com/equinor/fusion-framework/commit/233cabfea0f2b07955670e553472427ec27a3aa0))
|
|
931
|
+
- **module-http:** add check for registered client keys ([93b42f8](https://github.com/equinor/fusion-framework/commit/93b42f88ad092e24fe4f1a216394893128d35734))
|
|
932
|
+
- **module-http:** allow selector for http requests ([ea300c8](https://github.com/equinor/fusion-framework/commit/ea300c8ad5555e4514b35ac43a4c8494461afd91))
|