@equinor/fusion-framework-module-http 6.1.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.
Files changed (33) hide show
  1. package/CHANGELOG.md +298 -143
  2. package/README.md +49 -0
  3. package/dist/esm/configurator.js +7 -2
  4. package/dist/esm/configurator.js.map +1 -1
  5. package/dist/esm/lib/operators/capitalize-request-method.operator.js +17 -0
  6. package/dist/esm/lib/operators/capitalize-request-method.operator.js.map +1 -0
  7. package/dist/esm/lib/operators/fetch-request.schema.js +109 -0
  8. package/dist/esm/lib/operators/fetch-request.schema.js.map +1 -0
  9. package/dist/esm/lib/operators/index.js +2 -0
  10. package/dist/esm/lib/operators/index.js.map +1 -1
  11. package/dist/esm/lib/operators/process-operators.js +10 -0
  12. package/dist/esm/lib/operators/process-operators.js.map +1 -1
  13. package/dist/esm/lib/operators/request-validation.operator.js +29 -0
  14. package/dist/esm/lib/operators/request-validation.operator.js.map +1 -0
  15. package/dist/esm/version.js +1 -1
  16. package/dist/tsconfig.tsbuildinfo +1 -1
  17. package/dist/types/lib/operators/capitalize-request-method.operator.d.ts +10 -0
  18. package/dist/types/lib/operators/fetch-request.schema.d.ts +170 -0
  19. package/dist/types/lib/operators/index.d.ts +2 -0
  20. package/dist/types/lib/operators/process-operators.d.ts +7 -0
  21. package/dist/types/lib/operators/request-validation.operator.d.ts +33 -0
  22. package/dist/types/lib/operators/types.d.ts +6 -0
  23. package/dist/types/version.d.ts +1 -1
  24. package/package.json +4 -3
  25. package/src/configurator.ts +13 -4
  26. package/src/lib/operators/capitalize-request-method.operator.ts +22 -0
  27. package/src/lib/operators/fetch-request.schema.ts +119 -0
  28. package/src/lib/operators/index.ts +2 -0
  29. package/src/lib/operators/process-operators.ts +11 -0
  30. package/src/lib/operators/request-validation.operator.ts +50 -0
  31. package/src/lib/operators/types.ts +7 -0
  32. package/src/version.ts +1 -1
  33. package/tests/operators.test.ts +101 -0
package/CHANGELOG.md CHANGED
@@ -1,10 +1,165 @@
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
+
13
+ ## 6.2.0
14
+
15
+ ### Minor Changes
16
+
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.
18
+
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.
21
+
22
+ **Example usage:**
23
+
24
+ ```typescript
25
+ import { capitalizeRequestMethodOperator } from '@equinor/fusion-query';
26
+
27
+ const operator = capitalizeRequestMethodOperator();
28
+ const request = { method: 'get' };
29
+ const updatedRequest = operator(request);
30
+ console.log(updatedRequest.method); // Outputs: 'GET'
31
+ ```
32
+
33
+ Adding the operator to the `HttpClient`:
34
+
35
+ ```typescript
36
+ const httpClient = new HttpClient();
37
+ httpClient.requestHandler.add('capatalize-method', capitalizeRequestMethodOperator());
38
+
39
+ // transforms `method` to uppercase and logs a warning.
40
+ httpClient.get('https://example.com', { method: 'get' });
41
+ ```
42
+
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.
44
+
45
+ **CapitalizeRequestMethodOperator**
46
+
47
+ 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`:
48
+
49
+ ```typescript
50
+ httpConfig.defaultHttpRequestHandler.remove('capitalize-method');
51
+ ```
52
+
53
+ > [!NOTE]
54
+ > This operator is enabled by default and will log to the console if the method is not capitalized.
55
+
56
+ **RequestValidationOperator**
57
+
58
+ 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`:
59
+
60
+ ```typescript
61
+ httpConfig.defaultHttpRequestHandler.remove('validate-request');
62
+ ```
63
+
64
+ > [!NOTE]
65
+ > This operator is enabled by default and will log to the console if the request parameters are invalid.
66
+
67
+ If you wish stricter validation, you can enable the `strict` mode by setting the `strict` property to `true`:
68
+
69
+ ```typescript
70
+ import { requestValidationOperator } from '@equinor/fusion-framework-module-http/operators';
71
+
72
+ httpConfig.defaultHttpRequestHandler.set(
73
+ 'validate-request'
74
+ requestValidationOperator({
75
+ strict: true, // will throw error if schema is not valid
76
+ parse: true // will not allow additional properties
77
+ })
78
+ );
79
+ ```
80
+
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.
82
+
83
+ example:
84
+
85
+ ```typescript
86
+ httpClient.requestHandler.remove('capitalize-method');
87
+ ```
88
+
89
+ > [!NOTE]
90
+ > 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.
91
+
92
+ > [!TIP]
93
+ > If you only wish to replace the operator with another operator, you can use the `set` method instead of `remove` and `add`.
94
+
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`**
96
+
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.
98
+
99
+ 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.
100
+
101
+ | Option | Description | Usage |
102
+ | --------------------- | -------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
103
+ | **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. |
104
+ | **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. |
105
+
106
+ To use the new `strict` and `parse` options, update your code as follows:
107
+
108
+ Example usage with strict validation:
109
+
110
+ ```typescript
111
+ const operator = requestValidationOperator({ strict: true });
112
+
113
+ // This will throw an error because of invalid method and extra property.
114
+ operator({
115
+ method: 'post',
116
+ body: 'foo',
117
+ extraProperty: 'This should not be here',
118
+ });
119
+ ```
120
+
121
+ Example usage with parsing enabled:
122
+
123
+ ```typescript
124
+ // Example usage with parsing enabled
125
+ const operator = requestValidationOperator({ parse: true });
126
+
127
+ // will return { method: 'GET' }
128
+ const parsedRequest = operator({
129
+ method: 'GET',
130
+ extraProperty: 'This should not be here',
131
+ });
132
+ ```
133
+
134
+ Example usage with both strict validation and parsing enabled:
135
+
136
+ ```typescript
137
+ const operator = requestValidationOperator({ strict: true, parse: true });
138
+
139
+ // will throw an error because of extra property.
140
+ const parsedStrictRequest = operator({
141
+ method: 'GET',
142
+ extraProperty: 'This should not be here',
143
+ });
144
+ ```
145
+
146
+ Example usage with the `HttpClient`:
147
+
148
+ ```typescript
149
+ const httpClient = new HttpClient();
150
+
151
+ // Add the request validation operator to the HttpClient.
152
+ httpClient.requestHandler.add('validate-init', requestValidationOperator({ parse: true }));
153
+
154
+ // will throw an error because of invalid method.
155
+ httpClient.get('https://example.com', { method: 'get' });
156
+ ```
157
+
3
158
  ## 6.1.0
4
159
 
5
160
  ### Minor Changes
6
161
 
7
- - [#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**
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**
8
163
 
9
164
  `HttpClient._resolveUrl` now supports resolving URLs with a base URL that contains a path.
10
165
 
@@ -24,52 +179,52 @@
24
179
 
25
180
  ### Patch Changes
26
181
 
27
- - Updated dependencies [[`2644b3d`](https://github.com/equinor/fusion-framework/commit/2644b3d63939aede736a3b1950db32dbd487877d)]:
28
- - @equinor/fusion-framework-module@4.3.5
29
- - @equinor/fusion-framework-module-msal@3.1.5
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
30
185
 
31
186
  ## 6.0.3
32
187
 
33
188
  ### Patch Changes
34
189
 
35
- - Updated dependencies [[`75d676d`](https://github.com/equinor/fusion-framework/commit/75d676d2c7919f30e036b5ae97c4d814c569aa87), [`00d5e9c`](https://github.com/equinor/fusion-framework/commit/00d5e9c632876742c3d2a74efea2f126a0a169d9)]:
36
- - @equinor/fusion-framework-module@4.3.4
37
- - @equinor/fusion-framework-module-msal@3.1.4
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
38
193
 
39
194
  ## 6.0.2
40
195
 
41
196
  ### Patch Changes
42
197
 
43
- - [#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
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
44
199
 
45
- - Updated dependencies [[`a1524e9`](https://github.com/equinor/fusion-framework/commit/a1524e9c4d83778da3db42dbcf99908b776a0592)]:
46
- - @equinor/fusion-framework-module@4.3.3
47
- - @equinor/fusion-framework-module-msal@3.1.3
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
48
203
 
49
204
  ## 6.0.1
50
205
 
51
206
  ### Patch Changes
52
207
 
53
- - [#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.
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.
54
209
 
55
- - added introduction to http module
56
- - added concepts section which highlights the key concepts of http module
57
- - added sequence diagram for http request execution
58
- - added examples for http module
59
- - improved documentation for configuring http module
60
- - improved documentation for working with http clients
61
- - improved the formatting of the documentation
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
62
217
 
63
- - [#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
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
64
219
 
65
- - [#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
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
66
221
 
67
- - [#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`.
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`.
68
223
 
69
- - Updated the `FetchRequestInit` type to include a new property `selector` of type `ResponseSelector<TReturn, TResponse>`, which allows specifying a response selector function.
70
- - Updated the blob-selector and json-selector functions to use the new `ResponseSelector` type.
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.
71
226
 
72
- - [#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.
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.
73
228
 
74
229
  Removing the `removeComments` option allows TypeScript to preserve comments in the compiled JavaScript output. This can be beneficial for several reasons:
75
230
 
@@ -112,15 +267,15 @@
112
267
 
113
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.
114
269
 
115
- - 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)]:
116
- - @equinor/fusion-framework-module@4.3.2
117
- - @equinor/fusion-framework-module-msal@3.1.2
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
118
273
 
119
274
  ## 6.0.0
120
275
 
121
276
  ### Major Changes
122
277
 
123
- - [#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.
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.
124
279
 
125
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.
126
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.
@@ -170,8 +325,8 @@
170
325
 
171
326
  ### Patch Changes
172
327
 
173
- - [#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.
174
- 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`
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`
175
330
 
176
331
  **BREAKING CHANGE:**
177
332
 
@@ -212,23 +367,23 @@
212
367
 
213
368
  ### Patch Changes
214
369
 
215
- - 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)]:
216
- - @equinor/fusion-framework-module@4.3.1
217
- - @equinor/fusion-framework-module-msal@3.1.1
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
218
373
 
219
374
  ## 5.2.2
220
375
 
221
376
  ### Patch Changes
222
377
 
223
- - [#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
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
224
379
 
225
380
  ## 5.2.1
226
381
 
227
382
  ### Patch Changes
228
383
 
229
- - [#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
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
230
385
 
231
- - [#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
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
232
387
 
233
388
  ```ts
234
389
  // create a new client from configuration
@@ -277,87 +432,87 @@
277
432
 
278
433
  ### Minor Changes
279
434
 
280
- - [#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
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
281
436
 
282
437
  ### Patch Changes
283
438
 
284
- - Updated dependencies [[`f3ae28d`](https://github.com/equinor/fusion-framework/commit/f3ae28dc6d1d5043605e07e2cd2e83ae799cd904), [`f3ae28d`](https://github.com/equinor/fusion-framework/commit/f3ae28dc6d1d5043605e07e2cd2e83ae799cd904)]:
285
- - @equinor/fusion-framework-module@4.3.0
286
- - @equinor/fusion-framework-module-msal@3.1.0
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
287
442
 
288
443
  ## 5.1.6
289
444
 
290
445
  ### Patch Changes
291
446
 
292
- - Updated dependencies [[`152cf73`](https://github.com/equinor/fusion-framework/commit/152cf73d39eb32ccbaddaa6941e315c437c4972d)]:
293
- - @equinor/fusion-framework-module@4.2.7
294
- - @equinor/fusion-framework-module-msal@3.0.10
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
295
450
 
296
451
  ## 5.1.5
297
452
 
298
453
  ### Patch Changes
299
454
 
300
- - Updated dependencies [[`5eab8af`](https://github.com/equinor/fusion-framework/commit/5eab8afe3c3106cc67ad14ce4cbee6c7e4e8dfb1)]:
301
- - @equinor/fusion-framework-module-msal@3.0.9
455
+ - Updated dependencies [[`5eab8af`](https://github.com/equinor/fusion-framework/commit/5eab8afe3c3106cc67ad14ce4cbee6c7e4e8dfb1)]:
456
+ - @equinor/fusion-framework-module-msal@3.0.9
302
457
 
303
458
  ## 5.1.4
304
459
 
305
460
  ### Patch Changes
306
461
 
307
- - [#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)
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)
308
463
 
309
464
  ## 5.1.3
310
465
 
311
466
  ### Patch Changes
312
467
 
313
- - [#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**
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**
314
469
 
315
470
  In packages/modules/http/src/errors.ts:
316
471
 
317
- - The class HttpResponseError now has a generic parameter TResponse.
318
- - Added a static property Name to the class.
319
- - Added a new class HttpJsonResponseError which extends HttpResponseError and also has generic parameters TType and TResponse.
320
- - Added a static property Name to the class.
321
- - Added a public property data of type TType.
322
- - Modified the constructor to accept an optional data parameter.
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.
323
478
 
324
479
  In packages/modules/http/src/lib/selectors/json-selector.ts:
325
480
 
326
- - Added an import statement for HttpJsonResponseError.
327
- - Modified the jsonSelector function to handle errors when parsing the response.
328
- - Added a try-catch block.
329
- - Changed the JSON parsing logic to store the parsed data in a variable data.
330
- - If the response is not OK, a HttpJsonResponseError is thrown with the appropriate error message, response object, and data property.
331
- - If there is an error parsing the response, a HttpJsonResponseError is thrown with the appropriate error message, response object, and cause property.
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.
332
487
 
333
488
  ## 5.1.2
334
489
 
335
490
  ### Patch Changes
336
491
 
337
- - [#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
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
338
493
 
339
- - Updated dependencies [[`9c24e84`](https://github.com/equinor/fusion-framework/commit/9c24e847d041dea8384c77439e6b237f5bdb3125)]:
340
- - @equinor/fusion-framework-module@4.2.6
341
- - @equinor/fusion-framework-module-msal@3.0.8
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
342
497
 
343
498
  ## 5.1.1
344
499
 
345
500
  ### Patch Changes
346
501
 
347
- - [`b5dfe5d2`](https://github.com/equinor/fusion-framework/commit/b5dfe5d29a249e0cca6c9589322931dfedd06acc) Thanks [@odinr](https://github.com/odinr)! - force patch bump, realign missing snapshot
502
+ - [`b5dfe5d2`](https://github.com/equinor/fusion-framework/commit/b5dfe5d29a249e0cca6c9589322931dfedd06acc) Thanks [@odinr](https://github.com/odinr)! - force patch bump, realign missing snapshot
348
503
 
349
- - Updated dependencies [[`b5dfe5d2`](https://github.com/equinor/fusion-framework/commit/b5dfe5d29a249e0cca6c9589322931dfedd06acc)]:
350
- - @equinor/fusion-framework-module@4.2.5
351
- - @equinor/fusion-framework-module-msal@3.0.7
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
352
507
 
353
508
  ## 5.1.0
354
509
 
355
510
  ### Minor Changes
356
511
 
357
- - [#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
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
358
513
 
359
- - added selector for extracting blob from response
360
- - added function for fetching blob as stream or promise on the http client
514
+ - added selector for extracting blob from response
515
+ - added function for fetching blob as stream or promise on the http client
361
516
 
362
517
  ```tsx
363
518
  const data = await client.blob('/person/photo');
@@ -369,53 +524,53 @@
369
524
 
370
525
  ### Patch Changes
371
526
 
372
- - Updated dependencies [[`9076a498`](https://github.com/equinor/fusion-framework/commit/9076a49876e7a414a27557b7fb9095a67fe3a57f)]:
373
- - @equinor/fusion-framework-module@4.2.4
374
- - @equinor/fusion-framework-module-msal@3.0.6
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
375
530
 
376
531
  ## 5.0.5
377
532
 
378
533
  ### Patch Changes
379
534
 
380
- - [#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
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
381
536
 
382
537
  conflicts of `@types/react` made random outcomes when using `yarn`
383
538
 
384
539
  this change should not affect consumer of the packages, but might conflict dependent on local package manager.
385
540
 
386
- - [#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)
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)
387
542
 
388
- - [#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
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
389
544
 
390
545
  when using the `json# Change Log or `json`function on the`HttpClient`add`Accecpt: application/json` to the request header
391
546
 
392
- - Updated dependencies [[`7ec195d4`](https://github.com/equinor/fusion-framework/commit/7ec195d42098fec8794db13e83b71ef7753ff862), [`d276fc5d`](https://github.com/equinor/fusion-framework/commit/d276fc5d514566d05c64705076a1cb91c6a44272)]:
393
- - @equinor/fusion-framework-module@4.2.3
394
- - @equinor/fusion-framework-module-msal@3.0.5
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
395
550
 
396
551
  ## 5.0.4
397
552
 
398
553
  ### Patch Changes
399
554
 
400
- - [#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
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
401
556
 
402
- - Updated dependencies [[`5a160d88`](https://github.com/equinor/fusion-framework/commit/5a160d88981ddfe861d391cfefe10f54dda3d352)]:
403
- - @equinor/fusion-framework-module@4.2.1
404
- - @equinor/fusion-framework-module-msal@3.0.4
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
405
560
 
406
561
  ## 5.0.3
407
562
 
408
563
  ### Patch Changes
409
564
 
410
- - [#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**
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**
411
566
 
412
- - align all versions of typescript
413
- - update types to build
414
- - 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
+ - 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
415
570
 
416
- - 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)]:
417
- - @equinor/fusion-framework-module@4.2.0
418
- - @equinor/fusion-framework-module-msal@3.0.3
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
419
574
 
420
575
  All notable changes to this project will be documented in this file.
421
576
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
@@ -444,11 +599,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
444
599
 
445
600
  ### ⚠ BREAKING CHANGES
446
601
 
447
- - **modules/http:** `IHttpClient.execute` is removed, most likely not used, too complex to maintain
602
+ - **modules/http:** `IHttpClient.execute` is removed, most likely not used, too complex to maintain
448
603
 
449
604
  ### Bug Fixes
450
605
 
451
- - **modules/http:** fix typing for json requests ([459df80](https://github.com/equinor/fusion-framework/commit/459df80bfc79426ec6507db8f06d488b6a3d0f07))
606
+ - **modules/http:** fix typing for json requests ([459df80](https://github.com/equinor/fusion-framework/commit/459df80bfc79426ec6507db8f06d488b6a3d0f07))
452
607
 
453
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)
454
609
 
@@ -474,13 +629,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
474
629
 
475
630
  ### Features
476
631
 
477
- - **http:** throw error when selector error ([dc0aa35](https://github.com/equinor/fusion-framework/commit/dc0aa35cbc44fb0503a9431ab728b81d8a3af290))
632
+ - **http:** throw error when selector error ([dc0aa35](https://github.com/equinor/fusion-framework/commit/dc0aa35cbc44fb0503a9431ab728b81d8a3af290))
478
633
 
479
634
  ## 2.1.8 (2022-12-06)
480
635
 
481
636
  ### Bug Fixes
482
637
 
483
- - **module-http:** adding missing types on module-http iHttpClient ([ac6e81e](https://github.com/equinor/fusion-framework/commit/ac6e81e54d70b8a943466046fcbe86f6bd7c4c67))
638
+ - **module-http:** adding missing types on module-http iHttpClient ([ac6e81e](https://github.com/equinor/fusion-framework/commit/ac6e81e54d70b8a943466046fcbe86f6bd7c4c67))
484
639
 
485
640
  ## 2.1.7 (2022-12-01)
486
641
 
@@ -494,7 +649,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
494
649
 
495
650
  ### Bug Fixes
496
651
 
497
- - **module-http:** add headers to json request ([8223394](https://github.com/equinor/fusion-framework/commit/8223394362a24663bf65442025f0b031aa37a910))
652
+ - **module-http:** add headers to json request ([8223394](https://github.com/equinor/fusion-framework/commit/8223394362a24663bf65442025f0b031aa37a910))
498
653
 
499
654
  ## 2.1.4 (2022-11-11)
500
655
 
@@ -504,7 +659,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
504
659
 
505
660
  ### Bug Fixes
506
661
 
507
- - **module-auth:** make http module await auth ([18a0ed9](https://github.com/equinor/fusion-framework/commit/18a0ed947e128bf1cdc86aa45d31e73c1f8c4bbb))
662
+ - **module-auth:** make http module await auth ([18a0ed9](https://github.com/equinor/fusion-framework/commit/18a0ed947e128bf1cdc86aa45d31e73c1f8c4bbb))
508
663
 
509
664
  ## 2.1.2 (2022-11-03)
510
665
 
@@ -518,12 +673,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
518
673
 
519
674
  ### Features
520
675
 
521
- - :necktie: remove try catch from json-selector ([fe5e2ea](https://github.com/equinor/fusion-framework/commit/fe5e2ea087cdee99403175e912eb09479b86414e))
522
- - :sparkles: return undefined on status code 204 ([af1eea7](https://github.com/equinor/fusion-framework/commit/af1eea7a9ef539a44c3cab69904b4764f169caa6))
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))
523
678
 
524
679
  ### Reverts
525
680
 
526
- - :rewind: revert changes in json-selector ([8c448e5](https://github.com/equinor/fusion-framework/commit/8c448e5c76fb20cbd908c95f2fbd9d8d0367aad1))
681
+ - :rewind: revert changes in json-selector ([8c448e5](https://github.com/equinor/fusion-framework/commit/8c448e5c76fb20cbd908c95f2fbd9d8d0367aad1))
527
682
 
528
683
  ## 2.0.14 (2022-10-27)
529
684
 
@@ -545,7 +700,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
545
700
 
546
701
  ### Bug Fixes
547
702
 
548
- - **module-http:** allow typing of fetch request ([de08783](https://github.com/equinor/fusion-framework/commit/de0878342d82249ffc7e1212230d0aa0e14d32cb))
703
+ - **module-http:** allow typing of fetch request ([de08783](https://github.com/equinor/fusion-framework/commit/de0878342d82249ffc7e1212230d0aa0e14d32cb))
549
704
 
550
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)
551
706
 
@@ -555,7 +710,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
555
710
 
556
711
  ### Bug Fixes
557
712
 
558
- - update registering of configuration ([20942ce](https://github.com/equinor/fusion-framework/commit/20942ce1c7a853ea3b55c031a242646e378db8c9))
713
+ - update registering of configuration ([20942ce](https://github.com/equinor/fusion-framework/commit/20942ce1c7a853ea3b55c031a242646e378db8c9))
559
714
 
560
715
  ## 2.0.7 (2022-09-20)
561
716
 
@@ -565,8 +720,8 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
565
720
 
566
721
  ### Bug Fixes
567
722
 
568
- - **module-http:** fix export ([06a490d](https://github.com/equinor/fusion-framework/commit/06a490d40e34d2074ac102ac4fcd458cadd3538a))
569
- - **module-http:** improve hierarchy ([3603347](https://github.com/equinor/fusion-framework/commit/36033474991288983490f250726a551f7ce3dcbd))
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))
570
725
 
571
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)
572
727
 
@@ -600,13 +755,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
600
755
 
601
756
  ### Features
602
757
 
603
- - **module-http:** expose simple config ([94e4d6b](https://github.com/equinor/fusion-framework/commit/94e4d6bbb7fef010cd72e49242d68ed155592e11))
758
+ - **module-http:** expose simple config ([94e4d6b](https://github.com/equinor/fusion-framework/commit/94e4d6bbb7fef010cd72e49242d68ed155592e11))
604
759
 
605
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)
606
761
 
607
762
  ### Features
608
763
 
609
- - **module-http:** expose simple config ([94e4d6b](https://github.com/equinor/fusion-framework/commit/94e4d6bbb7fef010cd72e49242d68ed155592e11))
764
+ - **module-http:** expose simple config ([94e4d6b](https://github.com/equinor/fusion-framework/commit/94e4d6bbb7fef010cd72e49242d68ed155592e11))
610
765
 
611
766
  ## 1.0.2 (2022-09-05)
612
767
 
@@ -620,23 +775,23 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
620
775
 
621
776
  ### ⚠ BREAKING CHANGES
622
777
 
623
- - rename fetch
778
+ - rename fetch
624
779
 
625
- - fix(module-service-discovery): update http client consumer
780
+ - fix(module-service-discovery): update http client consumer
626
781
 
627
- - build: update allowed branches
782
+ - build: update allowed branches
628
783
 
629
- - build: add conventional commit
784
+ - build: add conventional commit
630
785
 
631
- - build: use conventionalcommits
786
+ - build: use conventionalcommits
632
787
 
633
- - build(module-http): push major
788
+ - build(module-http): push major
634
789
 
635
- - build: update deps
790
+ - build: update deps
636
791
 
637
792
  ### Features
638
793
 
639
- - rename fetch method ([#226](https://github.com/equinor/fusion-framework/issues/226)) ([f02df7c](https://github.com/equinor/fusion-framework/commit/f02df7cdd2b9098b0da49c5ea56ac3b6a17e9e32))
794
+ - rename fetch method ([#226](https://github.com/equinor/fusion-framework/issues/226)) ([f02df7c](https://github.com/equinor/fusion-framework/commit/f02df7cdd2b9098b0da49c5ea56ac3b6a17e9e32))
640
795
 
641
796
  ## 0.6.2 (2022-08-19)
642
797
 
@@ -648,44 +803,44 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
648
803
 
649
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)
650
805
 
651
- - feat!: allow modules to displose ([32b69fb](https://github.com/equinor/fusion-framework/commit/32b69fb7cc61e78e503e67d0e77f21fb44b600b9))
806
+ - feat!: allow modules to displose ([32b69fb](https://github.com/equinor/fusion-framework/commit/32b69fb7cc61e78e503e67d0e77f21fb44b600b9))
652
807
 
653
808
  ### BREAKING CHANGES
654
809
 
655
- - module.initialize now has object as arg
810
+ - module.initialize now has object as arg
656
811
 
657
812
  # 0.5.0 (2022-08-08)
658
813
 
659
814
  ### Bug Fixes
660
815
 
661
- - **module-http:** expose FetchRequest ([3d14ead](https://github.com/equinor/fusion-framework/commit/3d14ead0d78b36db091c6645ff1b69101e1f911f))
816
+ - **module-http:** expose FetchRequest ([3d14ead](https://github.com/equinor/fusion-framework/commit/3d14ead0d78b36db091c6645ff1b69101e1f911f))
662
817
 
663
818
  ### Features
664
819
 
665
- - **module-service-discovery:** resolve service to config ([3fa088d](https://github.com/equinor/fusion-framework/commit/3fa088d2ced8136447df6949928f1af9fc83407a))
820
+ - **module-service-discovery:** resolve service to config ([3fa088d](https://github.com/equinor/fusion-framework/commit/3fa088d2ced8136447df6949928f1af9fc83407a))
666
821
 
667
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)
668
823
 
669
- - 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)
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)
670
825
 
671
826
  ### BREAKING CHANGES
672
827
 
673
- - `deps` prop is remove from module object, use `await require('MODULE')`;
828
+ - `deps` prop is remove from module object, use `await require('MODULE')`;
674
829
 
675
- - feat(module)!: allow requireing module instnce
830
+ - feat(module)!: allow requireing module instnce
676
831
 
677
832
  when module initiates it should be allowed to await an required module.
678
833
 
679
- - add method for awaiting required module
680
- - add typing for config in initialize fase
834
+ - add method for awaiting required module
835
+ - add typing for config in initialize fase
681
836
 
682
- - update service discovery to await http module
683
- - add service discovery client
684
- - allow configuration of service discovery client
837
+ - update service discovery to await http module
838
+ - add service discovery client
839
+ - allow configuration of service discovery client
685
840
 
686
- * `deps` prop is remove from module object, use `await require('MODULE')`;
841
+ * `deps` prop is remove from module object, use `await require('MODULE')`;
687
842
 
688
- * fix(module-http): add default interface for HttpClientOptions
843
+ * fix(module-http): add default interface for HttpClientOptions
689
844
 
690
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)
691
846
 
@@ -695,19 +850,19 @@ when module initiates it should be allowed to await an required module.
695
850
 
696
851
  ### Bug Fixes
697
852
 
698
- - change typo of exports ([b049503](https://github.com/equinor/fusion-framework/commit/b049503511fb1b37b920b00aed1468ed8385a67e))
853
+ - change typo of exports ([b049503](https://github.com/equinor/fusion-framework/commit/b049503511fb1b37b920b00aed1468ed8385a67e))
699
854
 
700
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)
701
856
 
702
857
  ### Bug Fixes
703
858
 
704
- - **module-http:** fix selector of client ([dcc4774](https://github.com/equinor/fusion-framework/commit/dcc477489b51aa988a97494ff553eee34404469d))
859
+ - **module-http:** fix selector of client ([dcc4774](https://github.com/equinor/fusion-framework/commit/dcc477489b51aa988a97494ff553eee34404469d))
705
860
 
706
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)
707
862
 
708
863
  ### Bug Fixes
709
864
 
710
- - **module-http:** make rxjs dependent ([a20286f](https://github.com/equinor/fusion-framework/commit/a20286f950ff10c84605c025354cb05280c7455a))
865
+ - **module-http:** make rxjs dependent ([a20286f](https://github.com/equinor/fusion-framework/commit/a20286f950ff10c84605c025354cb05280c7455a))
711
866
 
712
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)
713
868
 
@@ -737,13 +892,13 @@ when module initiates it should be allowed to await an required module.
737
892
 
738
893
  ### Features
739
894
 
740
- - **module-http:** expose response processor ([e4551c5](https://github.com/equinor/fusion-framework/commit/e4551c549654ef25f33eef72ebc2fcc02ab552a2))
895
+ - **module-http:** expose response processor ([e4551c5](https://github.com/equinor/fusion-framework/commit/e4551c549654ef25f33eef72ebc2fcc02ab552a2))
741
896
 
742
897
  ## 0.2.2 (2022-06-13)
743
898
 
744
899
  ### Bug Fixes
745
900
 
746
- - **module-http:** reutrn fallb ack config ([8ece469](https://github.com/equinor/fusion-framework/commit/8ece469e99bd64c10a7697d49fdcc5d396737ac8))
901
+ - **module-http:** reutrn fallb ack config ([8ece469](https://github.com/equinor/fusion-framework/commit/8ece469e99bd64c10a7697d49fdcc5d396737ac8))
747
902
 
748
903
  ## 0.2.1 (2022-06-10)
749
904
 
@@ -753,7 +908,7 @@ when module initiates it should be allowed to await an required module.
753
908
 
754
909
  ### Features
755
910
 
756
- - **module-http:** add json support ([a6adbbb](https://github.com/equinor/fusion-framework/commit/a6adbbb36ca1391f8813be6141ef963031098764))
911
+ - **module-http:** add json support ([a6adbbb](https://github.com/equinor/fusion-framework/commit/a6adbbb36ca1391f8813be6141ef963031098764))
757
912
 
758
913
  ## 0.1.1 (2022-02-09)
759
914
 
@@ -763,15 +918,15 @@ when module initiates it should be allowed to await an required module.
763
918
 
764
919
  ### Bug Fixes
765
920
 
766
- - expose http client interface ([8660822](https://github.com/equinor/fusion-framework/commit/8660822b669e549bd454aa8a6a0adcaeb5e7917f))
767
- - **module-http:** allow defaultScopes ([d476de9](https://github.com/equinor/fusion-framework/commit/d476de99e6289e60684f02bcd7b669e23f3789bb))
768
- - **module-http:** fix check if config when creating client ([950ebc1](https://github.com/equinor/fusion-framework/commit/950ebc18f8f35bb7e6f97d6a98bd91d87616a94e))
769
- - **module-http:** fix merge of process operators ([5a1d6d2](https://github.com/equinor/fusion-framework/commit/5a1d6d2942475c61c994f4ec26812c949cabbdf1))
770
- - **module-http:** fix relative url resolve ([0d8c311](https://github.com/equinor/fusion-framework/commit/0d8c311c66b52eec22d465e0db57fa003506ab0c))
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))
771
926
 
772
927
  ### Features
773
928
 
774
- - add module for http clients ([7b02db7](https://github.com/equinor/fusion-framework/commit/7b02db7c2e34b97659bc72af7b5b31307cf55e5f))
775
- - http client base uri ([233cabf](https://github.com/equinor/fusion-framework/commit/233cabfea0f2b07955670e553472427ec27a3aa0))
776
- - **module-http:** add check for registered client keys ([93b42f8](https://github.com/equinor/fusion-framework/commit/93b42f88ad092e24fe4f1a216394893128d35734))
777
- - **module-http:** allow selector for http requests ([ea300c8](https://github.com/equinor/fusion-framework/commit/ea300c8ad5555e4514b35ac43a4c8494461afd91))
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))