@equinor/fusion-framework-module-http 5.2.1 → 5.2.3
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 +166 -152
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +4 -5
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,199 +1,213 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 5.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 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)]:
|
|
8
|
+
- @equinor/fusion-framework-module@4.3.1
|
|
9
|
+
- @equinor/fusion-framework-module-msal@3.1.1
|
|
10
|
+
|
|
11
|
+
## 5.2.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#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
|
|
16
|
+
|
|
3
17
|
## 5.2.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
6
20
|
|
|
7
|
-
-
|
|
21
|
+
- [#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
|
|
8
22
|
|
|
9
|
-
-
|
|
23
|
+
- [#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
|
|
10
24
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
25
|
+
```ts
|
|
26
|
+
// create a new client from configuration
|
|
27
|
+
const fooClient = provider.createClient('foo');
|
|
28
|
+
fooClient.requestHandler.setHeader('x-foo', 'bar');
|
|
15
29
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
30
|
+
// generate a RequestInit object
|
|
31
|
+
const fooRequest = await lastValueFrom(
|
|
32
|
+
fooClient.requestHandler.process({ path: '/api', uri: fooClient.uri }),
|
|
33
|
+
);
|
|
20
34
|
|
|
21
|
-
|
|
35
|
+
expect((fooRequest.headers as Headers)?.get('x-foo')).toBe('bar');
|
|
22
36
|
|
|
23
|
-
|
|
24
|
-
|
|
37
|
+
// create a new client from the same configuration
|
|
38
|
+
const barClient = provider.createClient('foo');
|
|
25
39
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
40
|
+
// generate a RequestInit object
|
|
41
|
+
const barRequest = await lastValueFrom(
|
|
42
|
+
barClient.requestHandler.process({ path: '/api', uri: barClient.uri }),
|
|
43
|
+
);
|
|
30
44
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
45
|
+
// expect the request header to not been modified
|
|
46
|
+
// FAILED
|
|
47
|
+
expect((barRequest.headers as Headers)?.get('x-foo')).toBeUndefined();
|
|
48
|
+
```
|
|
35
49
|
|
|
36
|
-
|
|
50
|
+
modified the `ProcessOperators` to accept operators on creation, which are clone to the instance.
|
|
37
51
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
52
|
+
```diff
|
|
53
|
+
--- a/packages/modules/http/src/lib/client/client.ts
|
|
54
|
+
+++ a/packages/modules/http/src/lib/client/client.ts
|
|
55
|
+
constructor(
|
|
56
|
+
public uri: string,
|
|
57
|
+
options?: Partial<HttpClientCreateOptions<TRequest, TResponse>>,
|
|
58
|
+
) {
|
|
59
|
+
- this.requestHandler = options?.requestHandler ?? new HttpRequestHandler<TRequest>();
|
|
60
|
+
+ this.requestHandler = new HttpRequestHandler<TRequest>(options?.requestHandler);
|
|
61
|
+
- this.responseHandler = options?.responseHandler ?? new HttpResponseHandler<TResponse>();
|
|
62
|
+
+ this.responseHandler = new HttpResponseHandler<TResponse>(options?.responseHandler);
|
|
63
|
+
this._init();
|
|
64
|
+
}
|
|
51
65
|
|
|
52
|
-
|
|
66
|
+
```
|
|
53
67
|
|
|
54
68
|
## 5.2.0
|
|
55
69
|
|
|
56
70
|
### Minor Changes
|
|
57
71
|
|
|
58
|
-
-
|
|
72
|
+
- [#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
|
|
59
73
|
|
|
60
74
|
### Patch Changes
|
|
61
75
|
|
|
62
|
-
-
|
|
63
|
-
|
|
64
|
-
|
|
76
|
+
- Updated dependencies [[`f3ae28d`](https://github.com/equinor/fusion-framework/commit/f3ae28dc6d1d5043605e07e2cd2e83ae799cd904), [`f3ae28d`](https://github.com/equinor/fusion-framework/commit/f3ae28dc6d1d5043605e07e2cd2e83ae799cd904)]:
|
|
77
|
+
- @equinor/fusion-framework-module@4.3.0
|
|
78
|
+
- @equinor/fusion-framework-module-msal@3.1.0
|
|
65
79
|
|
|
66
80
|
## 5.1.6
|
|
67
81
|
|
|
68
82
|
### Patch Changes
|
|
69
83
|
|
|
70
|
-
-
|
|
71
|
-
|
|
72
|
-
|
|
84
|
+
- Updated dependencies [[`152cf73`](https://github.com/equinor/fusion-framework/commit/152cf73d39eb32ccbaddaa6941e315c437c4972d)]:
|
|
85
|
+
- @equinor/fusion-framework-module@4.2.7
|
|
86
|
+
- @equinor/fusion-framework-module-msal@3.0.10
|
|
73
87
|
|
|
74
88
|
## 5.1.5
|
|
75
89
|
|
|
76
90
|
### Patch Changes
|
|
77
91
|
|
|
78
|
-
-
|
|
79
|
-
|
|
92
|
+
- Updated dependencies [[`5eab8af`](https://github.com/equinor/fusion-framework/commit/5eab8afe3c3106cc67ad14ce4cbee6c7e4e8dfb1)]:
|
|
93
|
+
- @equinor/fusion-framework-module-msal@3.0.9
|
|
80
94
|
|
|
81
95
|
## 5.1.4
|
|
82
96
|
|
|
83
97
|
### Patch Changes
|
|
84
98
|
|
|
85
|
-
-
|
|
99
|
+
- [#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)
|
|
86
100
|
|
|
87
101
|
## 5.1.3
|
|
88
102
|
|
|
89
103
|
### Patch Changes
|
|
90
104
|
|
|
91
|
-
-
|
|
105
|
+
- [#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**
|
|
92
106
|
|
|
93
|
-
|
|
107
|
+
In packages/modules/http/src/errors.ts:
|
|
94
108
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
109
|
+
- The class HttpResponseError now has a generic parameter TResponse.
|
|
110
|
+
- Added a static property Name to the class.
|
|
111
|
+
- Added a new class HttpJsonResponseError which extends HttpResponseError and also has generic parameters TType and TResponse.
|
|
112
|
+
- Added a static property Name to the class.
|
|
113
|
+
- Added a public property data of type TType.
|
|
114
|
+
- Modified the constructor to accept an optional data parameter.
|
|
101
115
|
|
|
102
|
-
|
|
116
|
+
In packages/modules/http/src/lib/selectors/json-selector.ts:
|
|
103
117
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
118
|
+
- Added an import statement for HttpJsonResponseError.
|
|
119
|
+
- Modified the jsonSelector function to handle errors when parsing the response.
|
|
120
|
+
- Added a try-catch block.
|
|
121
|
+
- Changed the JSON parsing logic to store the parsed data in a variable data.
|
|
122
|
+
- If the response is not OK, a HttpJsonResponseError is thrown with the appropriate error message, response object, and data property.
|
|
123
|
+
- If there is an error parsing the response, a HttpJsonResponseError is thrown with the appropriate error message, response object, and cause property.
|
|
110
124
|
|
|
111
125
|
## 5.1.2
|
|
112
126
|
|
|
113
127
|
### Patch Changes
|
|
114
128
|
|
|
115
|
-
-
|
|
129
|
+
- [#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
|
|
116
130
|
|
|
117
|
-
-
|
|
118
|
-
|
|
119
|
-
|
|
131
|
+
- Updated dependencies [[`9c24e84`](https://github.com/equinor/fusion-framework/commit/9c24e847d041dea8384c77439e6b237f5bdb3125)]:
|
|
132
|
+
- @equinor/fusion-framework-module@4.2.6
|
|
133
|
+
- @equinor/fusion-framework-module-msal@3.0.8
|
|
120
134
|
|
|
121
135
|
## 5.1.1
|
|
122
136
|
|
|
123
137
|
### Patch Changes
|
|
124
138
|
|
|
125
|
-
-
|
|
139
|
+
- [`b5dfe5d2`](https://github.com/equinor/fusion-framework/commit/b5dfe5d29a249e0cca6c9589322931dfedd06acc) Thanks [@odinr](https://github.com/odinr)! - force patch bump, realign missing snapshot
|
|
126
140
|
|
|
127
|
-
-
|
|
128
|
-
|
|
129
|
-
|
|
141
|
+
- Updated dependencies [[`b5dfe5d2`](https://github.com/equinor/fusion-framework/commit/b5dfe5d29a249e0cca6c9589322931dfedd06acc)]:
|
|
142
|
+
- @equinor/fusion-framework-module@4.2.5
|
|
143
|
+
- @equinor/fusion-framework-module-msal@3.0.7
|
|
130
144
|
|
|
131
145
|
## 5.1.0
|
|
132
146
|
|
|
133
147
|
### Minor Changes
|
|
134
148
|
|
|
135
|
-
-
|
|
149
|
+
- [#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
|
|
136
150
|
|
|
137
|
-
|
|
138
|
-
|
|
151
|
+
- added selector for extracting blob from response
|
|
152
|
+
- added function for fetching blob as stream or promise on the http client
|
|
139
153
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
154
|
+
```tsx
|
|
155
|
+
const data = await client.blob('/person/photo');
|
|
156
|
+
const url = URL.createObjectURL(blob);
|
|
157
|
+
return <img src={url} />;
|
|
158
|
+
```
|
|
145
159
|
|
|
146
160
|
## 5.0.6
|
|
147
161
|
|
|
148
162
|
### Patch Changes
|
|
149
163
|
|
|
150
|
-
-
|
|
151
|
-
|
|
152
|
-
|
|
164
|
+
- Updated dependencies [[`9076a498`](https://github.com/equinor/fusion-framework/commit/9076a49876e7a414a27557b7fb9095a67fe3a57f)]:
|
|
165
|
+
- @equinor/fusion-framework-module@4.2.4
|
|
166
|
+
- @equinor/fusion-framework-module-msal@3.0.6
|
|
153
167
|
|
|
154
168
|
## 5.0.5
|
|
155
169
|
|
|
156
170
|
### Patch Changes
|
|
157
171
|
|
|
158
|
-
-
|
|
172
|
+
- [#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
|
|
159
173
|
|
|
160
|
-
|
|
174
|
+
conflicts of `@types/react` made random outcomes when using `yarn`
|
|
161
175
|
|
|
162
|
-
|
|
176
|
+
this change should not affect consumer of the packages, but might conflict dependent on local package manager.
|
|
163
177
|
|
|
164
|
-
-
|
|
178
|
+
- [#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)
|
|
165
179
|
|
|
166
|
-
-
|
|
180
|
+
- [#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
|
|
167
181
|
|
|
168
|
-
|
|
182
|
+
when using the `json# Change Log or `json`function on the`HttpClient`add`Accecpt: application/json` to the request header
|
|
169
183
|
|
|
170
|
-
-
|
|
171
|
-
|
|
172
|
-
|
|
184
|
+
- Updated dependencies [[`7ec195d4`](https://github.com/equinor/fusion-framework/commit/7ec195d42098fec8794db13e83b71ef7753ff862), [`d276fc5d`](https://github.com/equinor/fusion-framework/commit/d276fc5d514566d05c64705076a1cb91c6a44272)]:
|
|
185
|
+
- @equinor/fusion-framework-module@4.2.3
|
|
186
|
+
- @equinor/fusion-framework-module-msal@3.0.5
|
|
173
187
|
|
|
174
188
|
## 5.0.4
|
|
175
189
|
|
|
176
190
|
### Patch Changes
|
|
177
191
|
|
|
178
|
-
-
|
|
192
|
+
- [#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
|
|
179
193
|
|
|
180
|
-
-
|
|
181
|
-
|
|
182
|
-
|
|
194
|
+
- Updated dependencies [[`5a160d88`](https://github.com/equinor/fusion-framework/commit/5a160d88981ddfe861d391cfefe10f54dda3d352)]:
|
|
195
|
+
- @equinor/fusion-framework-module@4.2.1
|
|
196
|
+
- @equinor/fusion-framework-module-msal@3.0.4
|
|
183
197
|
|
|
184
198
|
## 5.0.3
|
|
185
199
|
|
|
186
200
|
### Patch Changes
|
|
187
201
|
|
|
188
|
-
-
|
|
202
|
+
- [#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**
|
|
189
203
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
204
|
+
- align all versions of typescript
|
|
205
|
+
- update types to build
|
|
206
|
+
- 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
|
|
193
207
|
|
|
194
|
-
-
|
|
195
|
-
|
|
196
|
-
|
|
208
|
+
- 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)]:
|
|
209
|
+
- @equinor/fusion-framework-module@4.2.0
|
|
210
|
+
- @equinor/fusion-framework-module-msal@3.0.3
|
|
197
211
|
|
|
198
212
|
All notable changes to this project will be documented in this file.
|
|
199
213
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
@@ -222,11 +236,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
222
236
|
|
|
223
237
|
### ⚠ BREAKING CHANGES
|
|
224
238
|
|
|
225
|
-
-
|
|
239
|
+
- **modules/http:** `IHttpClient.execute` is removed, most likely not used, too complex to maintain
|
|
226
240
|
|
|
227
241
|
### Bug Fixes
|
|
228
242
|
|
|
229
|
-
-
|
|
243
|
+
- **modules/http:** fix typing for json requests ([459df80](https://github.com/equinor/fusion-framework/commit/459df80bfc79426ec6507db8f06d488b6a3d0f07))
|
|
230
244
|
|
|
231
245
|
## [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)
|
|
232
246
|
|
|
@@ -252,13 +266,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
252
266
|
|
|
253
267
|
### Features
|
|
254
268
|
|
|
255
|
-
-
|
|
269
|
+
- **http:** throw error when selector error ([dc0aa35](https://github.com/equinor/fusion-framework/commit/dc0aa35cbc44fb0503a9431ab728b81d8a3af290))
|
|
256
270
|
|
|
257
271
|
## 2.1.8 (2022-12-06)
|
|
258
272
|
|
|
259
273
|
### Bug Fixes
|
|
260
274
|
|
|
261
|
-
-
|
|
275
|
+
- **module-http:** adding missing types on module-http iHttpClient ([ac6e81e](https://github.com/equinor/fusion-framework/commit/ac6e81e54d70b8a943466046fcbe86f6bd7c4c67))
|
|
262
276
|
|
|
263
277
|
## 2.1.7 (2022-12-01)
|
|
264
278
|
|
|
@@ -272,7 +286,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
272
286
|
|
|
273
287
|
### Bug Fixes
|
|
274
288
|
|
|
275
|
-
-
|
|
289
|
+
- **module-http:** add headers to json request ([8223394](https://github.com/equinor/fusion-framework/commit/8223394362a24663bf65442025f0b031aa37a910))
|
|
276
290
|
|
|
277
291
|
## 2.1.4 (2022-11-11)
|
|
278
292
|
|
|
@@ -282,7 +296,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
282
296
|
|
|
283
297
|
### Bug Fixes
|
|
284
298
|
|
|
285
|
-
-
|
|
299
|
+
- **module-auth:** make http module await auth ([18a0ed9](https://github.com/equinor/fusion-framework/commit/18a0ed947e128bf1cdc86aa45d31e73c1f8c4bbb))
|
|
286
300
|
|
|
287
301
|
## 2.1.2 (2022-11-03)
|
|
288
302
|
|
|
@@ -296,12 +310,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
296
310
|
|
|
297
311
|
### Features
|
|
298
312
|
|
|
299
|
-
-
|
|
300
|
-
-
|
|
313
|
+
- :necktie: remove try catch from json-selector ([fe5e2ea](https://github.com/equinor/fusion-framework/commit/fe5e2ea087cdee99403175e912eb09479b86414e))
|
|
314
|
+
- :sparkles: return undefined on status code 204 ([af1eea7](https://github.com/equinor/fusion-framework/commit/af1eea7a9ef539a44c3cab69904b4764f169caa6))
|
|
301
315
|
|
|
302
316
|
### Reverts
|
|
303
317
|
|
|
304
|
-
-
|
|
318
|
+
- :rewind: revert changes in json-selector ([8c448e5](https://github.com/equinor/fusion-framework/commit/8c448e5c76fb20cbd908c95f2fbd9d8d0367aad1))
|
|
305
319
|
|
|
306
320
|
## 2.0.14 (2022-10-27)
|
|
307
321
|
|
|
@@ -323,7 +337,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
323
337
|
|
|
324
338
|
### Bug Fixes
|
|
325
339
|
|
|
326
|
-
-
|
|
340
|
+
- **module-http:** allow typing of fetch request ([de08783](https://github.com/equinor/fusion-framework/commit/de0878342d82249ffc7e1212230d0aa0e14d32cb))
|
|
327
341
|
|
|
328
342
|
## [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)
|
|
329
343
|
|
|
@@ -333,7 +347,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
333
347
|
|
|
334
348
|
### Bug Fixes
|
|
335
349
|
|
|
336
|
-
-
|
|
350
|
+
- update registering of configuration ([20942ce](https://github.com/equinor/fusion-framework/commit/20942ce1c7a853ea3b55c031a242646e378db8c9))
|
|
337
351
|
|
|
338
352
|
## 2.0.7 (2022-09-20)
|
|
339
353
|
|
|
@@ -343,8 +357,8 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
343
357
|
|
|
344
358
|
### Bug Fixes
|
|
345
359
|
|
|
346
|
-
-
|
|
347
|
-
-
|
|
360
|
+
- **module-http:** fix export ([06a490d](https://github.com/equinor/fusion-framework/commit/06a490d40e34d2074ac102ac4fcd458cadd3538a))
|
|
361
|
+
- **module-http:** improve hierarchy ([3603347](https://github.com/equinor/fusion-framework/commit/36033474991288983490f250726a551f7ce3dcbd))
|
|
348
362
|
|
|
349
363
|
## [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)
|
|
350
364
|
|
|
@@ -378,13 +392,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
378
392
|
|
|
379
393
|
### Features
|
|
380
394
|
|
|
381
|
-
-
|
|
395
|
+
- **module-http:** expose simple config ([94e4d6b](https://github.com/equinor/fusion-framework/commit/94e4d6bbb7fef010cd72e49242d68ed155592e11))
|
|
382
396
|
|
|
383
397
|
## [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)
|
|
384
398
|
|
|
385
399
|
### Features
|
|
386
400
|
|
|
387
|
-
-
|
|
401
|
+
- **module-http:** expose simple config ([94e4d6b](https://github.com/equinor/fusion-framework/commit/94e4d6bbb7fef010cd72e49242d68ed155592e11))
|
|
388
402
|
|
|
389
403
|
## 1.0.2 (2022-09-05)
|
|
390
404
|
|
|
@@ -398,23 +412,23 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
398
412
|
|
|
399
413
|
### ⚠ BREAKING CHANGES
|
|
400
414
|
|
|
401
|
-
-
|
|
415
|
+
- rename fetch
|
|
402
416
|
|
|
403
|
-
-
|
|
417
|
+
- fix(module-service-discovery): update http client consumer
|
|
404
418
|
|
|
405
|
-
-
|
|
419
|
+
- build: update allowed branches
|
|
406
420
|
|
|
407
|
-
-
|
|
421
|
+
- build: add conventional commit
|
|
408
422
|
|
|
409
|
-
-
|
|
423
|
+
- build: use conventionalcommits
|
|
410
424
|
|
|
411
|
-
-
|
|
425
|
+
- build(module-http): push major
|
|
412
426
|
|
|
413
|
-
-
|
|
427
|
+
- build: update deps
|
|
414
428
|
|
|
415
429
|
### Features
|
|
416
430
|
|
|
417
|
-
-
|
|
431
|
+
- rename fetch method ([#226](https://github.com/equinor/fusion-framework/issues/226)) ([f02df7c](https://github.com/equinor/fusion-framework/commit/f02df7cdd2b9098b0da49c5ea56ac3b6a17e9e32))
|
|
418
432
|
|
|
419
433
|
## 0.6.2 (2022-08-19)
|
|
420
434
|
|
|
@@ -426,44 +440,44 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
426
440
|
|
|
427
441
|
# [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)
|
|
428
442
|
|
|
429
|
-
-
|
|
443
|
+
- feat!: allow modules to displose ([32b69fb](https://github.com/equinor/fusion-framework/commit/32b69fb7cc61e78e503e67d0e77f21fb44b600b9))
|
|
430
444
|
|
|
431
445
|
### BREAKING CHANGES
|
|
432
446
|
|
|
433
|
-
-
|
|
447
|
+
- module.initialize now has object as arg
|
|
434
448
|
|
|
435
449
|
# 0.5.0 (2022-08-08)
|
|
436
450
|
|
|
437
451
|
### Bug Fixes
|
|
438
452
|
|
|
439
|
-
-
|
|
453
|
+
- **module-http:** expose FetchRequest ([3d14ead](https://github.com/equinor/fusion-framework/commit/3d14ead0d78b36db091c6645ff1b69101e1f911f))
|
|
440
454
|
|
|
441
455
|
### Features
|
|
442
456
|
|
|
443
|
-
-
|
|
457
|
+
- **module-service-discovery:** resolve service to config ([3fa088d](https://github.com/equinor/fusion-framework/commit/3fa088d2ced8136447df6949928f1af9fc83407a))
|
|
444
458
|
|
|
445
459
|
# [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)
|
|
446
460
|
|
|
447
|
-
-
|
|
461
|
+
- 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)
|
|
448
462
|
|
|
449
463
|
### BREAKING CHANGES
|
|
450
464
|
|
|
451
|
-
-
|
|
465
|
+
- `deps` prop is remove from module object, use `await require('MODULE')`;
|
|
452
466
|
|
|
453
|
-
-
|
|
467
|
+
- feat(module)!: allow requireing module instnce
|
|
454
468
|
|
|
455
469
|
when module initiates it should be allowed to await an required module.
|
|
456
470
|
|
|
457
|
-
-
|
|
458
|
-
-
|
|
471
|
+
- add method for awaiting required module
|
|
472
|
+
- add typing for config in initialize fase
|
|
459
473
|
|
|
460
|
-
-
|
|
461
|
-
-
|
|
462
|
-
-
|
|
474
|
+
- update service discovery to await http module
|
|
475
|
+
- add service discovery client
|
|
476
|
+
- allow configuration of service discovery client
|
|
463
477
|
|
|
464
|
-
*
|
|
478
|
+
* `deps` prop is remove from module object, use `await require('MODULE')`;
|
|
465
479
|
|
|
466
|
-
*
|
|
480
|
+
* fix(module-http): add default interface for HttpClientOptions
|
|
467
481
|
|
|
468
482
|
## [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)
|
|
469
483
|
|
|
@@ -473,19 +487,19 @@ when module initiates it should be allowed to await an required module.
|
|
|
473
487
|
|
|
474
488
|
### Bug Fixes
|
|
475
489
|
|
|
476
|
-
-
|
|
490
|
+
- change typo of exports ([b049503](https://github.com/equinor/fusion-framework/commit/b049503511fb1b37b920b00aed1468ed8385a67e))
|
|
477
491
|
|
|
478
492
|
## [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)
|
|
479
493
|
|
|
480
494
|
### Bug Fixes
|
|
481
495
|
|
|
482
|
-
-
|
|
496
|
+
- **module-http:** fix selector of client ([dcc4774](https://github.com/equinor/fusion-framework/commit/dcc477489b51aa988a97494ff553eee34404469d))
|
|
483
497
|
|
|
484
498
|
## [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)
|
|
485
499
|
|
|
486
500
|
### Bug Fixes
|
|
487
501
|
|
|
488
|
-
-
|
|
502
|
+
- **module-http:** make rxjs dependent ([a20286f](https://github.com/equinor/fusion-framework/commit/a20286f950ff10c84605c025354cb05280c7455a))
|
|
489
503
|
|
|
490
504
|
## [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)
|
|
491
505
|
|
|
@@ -515,13 +529,13 @@ when module initiates it should be allowed to await an required module.
|
|
|
515
529
|
|
|
516
530
|
### Features
|
|
517
531
|
|
|
518
|
-
-
|
|
532
|
+
- **module-http:** expose response processor ([e4551c5](https://github.com/equinor/fusion-framework/commit/e4551c549654ef25f33eef72ebc2fcc02ab552a2))
|
|
519
533
|
|
|
520
534
|
## 0.2.2 (2022-06-13)
|
|
521
535
|
|
|
522
536
|
### Bug Fixes
|
|
523
537
|
|
|
524
|
-
-
|
|
538
|
+
- **module-http:** reutrn fallb ack config ([8ece469](https://github.com/equinor/fusion-framework/commit/8ece469e99bd64c10a7697d49fdcc5d396737ac8))
|
|
525
539
|
|
|
526
540
|
## 0.2.1 (2022-06-10)
|
|
527
541
|
|
|
@@ -531,7 +545,7 @@ when module initiates it should be allowed to await an required module.
|
|
|
531
545
|
|
|
532
546
|
### Features
|
|
533
547
|
|
|
534
|
-
-
|
|
548
|
+
- **module-http:** add json support ([a6adbbb](https://github.com/equinor/fusion-framework/commit/a6adbbb36ca1391f8813be6141ef963031098764))
|
|
535
549
|
|
|
536
550
|
## 0.1.1 (2022-02-09)
|
|
537
551
|
|
|
@@ -541,15 +555,15 @@ when module initiates it should be allowed to await an required module.
|
|
|
541
555
|
|
|
542
556
|
### Bug Fixes
|
|
543
557
|
|
|
544
|
-
-
|
|
545
|
-
-
|
|
546
|
-
-
|
|
547
|
-
-
|
|
548
|
-
-
|
|
558
|
+
- expose http client interface ([8660822](https://github.com/equinor/fusion-framework/commit/8660822b669e549bd454aa8a6a0adcaeb5e7917f))
|
|
559
|
+
- **module-http:** allow defaultScopes ([d476de9](https://github.com/equinor/fusion-framework/commit/d476de99e6289e60684f02bcd7b669e23f3789bb))
|
|
560
|
+
- **module-http:** fix check if config when creating client ([950ebc1](https://github.com/equinor/fusion-framework/commit/950ebc18f8f35bb7e6f97d6a98bd91d87616a94e))
|
|
561
|
+
- **module-http:** fix merge of process operators ([5a1d6d2](https://github.com/equinor/fusion-framework/commit/5a1d6d2942475c61c994f4ec26812c949cabbdf1))
|
|
562
|
+
- **module-http:** fix relative url resolve ([0d8c311](https://github.com/equinor/fusion-framework/commit/0d8c311c66b52eec22d465e0db57fa003506ab0c))
|
|
549
563
|
|
|
550
564
|
### Features
|
|
551
565
|
|
|
552
|
-
-
|
|
553
|
-
-
|
|
554
|
-
-
|
|
555
|
-
-
|
|
566
|
+
- add module for http clients ([7b02db7](https://github.com/equinor/fusion-framework/commit/7b02db7c2e34b97659bc72af7b5b31307cf55e5f))
|
|
567
|
+
- http client base uri ([233cabf](https://github.com/equinor/fusion-framework/commit/233cabfea0f2b07955670e553472427ec27a3aa0))
|
|
568
|
+
- **module-http:** add check for registered client keys ([93b42f8](https://github.com/equinor/fusion-framework/commit/93b42f88ad092e24fe4f1a216394893128d35734))
|
|
569
|
+
- **module-http:** allow selector for http requests ([ea300c8](https://github.com/equinor/fusion-framework/commit/ea300c8ad5555e4514b35ac43a4c8494461afd91))
|
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '5.2.
|
|
1
|
+
export const version = '5.2.3';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|