keq 5.0.0-alpha.5 → 5.0.0-alpha.7
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 +191 -240
- package/jest.browser.config.ts +22 -0
- package/jest.config.cts +22 -0
- package/package.json +21 -24
- package/dist/index.cjs.js +0 -1115
- package/dist/index.d.ts +0 -1
- package/dist/index.esm.js +0 -1082
- package/dist/package.json +0 -65
- package/dist/src/constant.d.ts +0 -2
- package/dist/src/core.d.ts +0 -36
- package/dist/src/create-request.d.ts +0 -9
- package/dist/src/exception/exception.d.ts +0 -4
- package/dist/src/exception/invalid-arguments.exception.d.ts +0 -4
- package/dist/src/index.d.ts +0 -23
- package/dist/src/is/is-array-buffer.d.ts +0 -1
- package/dist/src/is/is-blob.d.ts +0 -4
- package/dist/src/is/is-browser.d.ts +0 -1
- package/dist/src/is/is-buffer.d.ts +0 -1
- package/dist/src/is/is-file.d.ts +0 -1
- package/dist/src/is/is-form-data.d.ts +0 -1
- package/dist/src/is/is-function.d.ts +0 -1
- package/dist/src/is/is-headers.d.ts +0 -1
- package/dist/src/is/is-object.d.ts +0 -1
- package/dist/src/is/is-readable-stream.d.ts +0 -1
- package/dist/src/is/is-string.d.ts +0 -1
- package/dist/src/is/is-url-search-params.d.ts +0 -1
- package/dist/src/keq.d.ts +0 -93
- package/dist/src/middlewares/abort-flow-control-middleware.d.ts +0 -2
- package/dist/src/middlewares/fetch-arguments-middleware.d.ts +0 -2
- package/dist/src/middlewares/fetch-middleware.d.ts +0 -5
- package/dist/src/middlewares/proxy-response-middleware.d.ts +0 -2
- package/dist/src/middlewares/retry-middleware.d.ts +0 -2
- package/dist/src/middlewares/serial-flow-control-middleware.d.ts +0 -2
- package/dist/src/middlewares/timeout-middleware.d.ts +0 -2
- package/dist/src/request.d.ts +0 -1
- package/dist/src/router/keq-host-route.d.ts +0 -2
- package/dist/src/router/keq-location-route.d.ts +0 -2
- package/dist/src/router/keq-method-route.d.ts +0 -2
- package/dist/src/router/keq-module-route.d.ts +0 -2
- package/dist/src/router/keq-pathname-route.d.ts +0 -2
- package/dist/src/router/keq-router.d.ts +0 -12
- package/dist/src/types/content-type.d.ts +0 -2
- package/dist/src/types/exclude-property.d.ts +0 -3
- package/dist/src/types/extract-property.d.ts +0 -3
- package/dist/src/types/keq-context-request.d.ts +0 -18
- package/dist/src/types/keq-context.d.ts +0 -62
- package/dist/src/types/keq-events.d.ts +0 -8
- package/dist/src/types/keq-flow-control.d.ts +0 -7
- package/dist/src/types/keq-global.d.ts +0 -6
- package/dist/src/types/keq-init.d.ts +0 -2
- package/dist/src/types/keq-middleware.d.ts +0 -3
- package/dist/src/types/keq-next.d.ts +0 -1
- package/dist/src/types/keq-operation.d.ts +0 -44
- package/dist/src/types/keq-options.d.ts +0 -55
- package/dist/src/types/keq-query-value.d.ts +0 -6
- package/dist/src/types/keq-request.d.ts +0 -32
- package/dist/src/types/keq-resolve-with-mode.d.ts +0 -1
- package/dist/src/types/keq-retry.d.ts +0 -3
- package/dist/src/types/keq-route.d.ts +0 -2
- package/dist/src/types/keq-timeout.d.ts +0 -3
- package/dist/src/util/base64.d.ts +0 -2
- package/dist/src/util/clone-body.d.ts +0 -1
- package/dist/src/util/compile-url.d.ts +0 -1
- package/dist/src/util/compose-middleware.d.ts +0 -2
- package/dist/src/util/compose-route.d.ts +0 -2
- package/dist/src/util/create-response-proxy.d.ts +0 -1
- package/dist/src/util/fix-content-type.d.ts +0 -3
- package/dist/src/util/get-unique-code-identifier.d.ts +0 -1
- package/dist/src/util/is-valid-header-value.d.ts +0 -1
- package/dist/src/util/merge-keq-request-body.d.ts +0 -2
- package/dist/src/util/shallow-clone.d.ts +0 -4
- package/project.json +0 -16
- package/tsconfig.json +0 -28
- package/tsconfig.lib.json +0 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,62 @@
|
|
|
1
|
+
## 5.0.0-alpha.6 (2025-09-17)
|
|
2
|
+
|
|
3
|
+
## 5.0.0-alpha.7
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 153244f: **BREAKING CHANGE:** Add an options to control query serialization.
|
|
8
|
+
|
|
9
|
+
- `.query({ a: [1, 2]})` => `?a[0]=1&a[1]=2`
|
|
10
|
+
- `.query({ a: [1, 2]}, { arrayFormat: 'brackets' })` => `?a[]=1&a[]=2`(default in keq@2)
|
|
11
|
+
- `.query({ a: [1, 2]}, { arrayFormat: 'repeat' })` => `?a=1&a=2`
|
|
12
|
+
- `.query({ a: [1, 2]}, { arrayFormat: 'comma' })` => `?a=1,2`
|
|
13
|
+
|
|
14
|
+
- 153244f: **BREAKING CHANGE:** Prevent modification of the immutable properties of the context.
|
|
15
|
+
- 153244f: **BREAKING CHANGE:** `.params(key, value)` will not encode value automatically, please replace it with `.params(key, encodeURIComponent(value)`, if necessary.
|
|
16
|
+
- 153244f: **BREAKING CHANGE:** refactor event emitter. `fetch` event has been removed, please use `fetch:before`/`fetch:after` instead.
|
|
17
|
+
|
|
18
|
+
- add new function `.on(eventName, callback)` listen keq events
|
|
19
|
+
- add new event `fetch:before`
|
|
20
|
+
- add new event `fetch:after`
|
|
21
|
+
- add new event `middleware:before`
|
|
22
|
+
- add new event `middleware:after`
|
|
23
|
+
- add new event `timeout`
|
|
24
|
+
- add new event `abort`
|
|
25
|
+
- add new event `error`
|
|
26
|
+
- add new event `retry`
|
|
27
|
+
|
|
28
|
+
- 7ff2162: **BREAKING CHANGE:** Strictly adhere to URI template implementation (RFC 6570 compliant). Therefore, ':id' is no longer supported.
|
|
29
|
+
- 153244f: **BREAKING CHANGE:** change KeqRequest from interface to class.
|
|
30
|
+
|
|
31
|
+
- `request` cannot be invoke directly, please use `request.fetch()` instead.
|
|
32
|
+
- `KeqOptions` renamed to `KeqMiddlewareOptions`.
|
|
33
|
+
- `KeqOperations` renamed to `KeqApiSchema`.
|
|
34
|
+
- `KeqBaseOperation` renamed to `KeqDefaultOperation`.
|
|
35
|
+
|
|
36
|
+
- 153244f: **BREAKING CHANGE:** Refactoring keq middlewares
|
|
37
|
+
|
|
38
|
+
- `retryMiddleware`, `proxyResponseMiddleware`, `fetchArgumentMiddleware` be removed.
|
|
39
|
+
- `abortFlowControlMiddleware` and `serialFlowControlMiddleware` merged into `flowControlMiddleware`.
|
|
40
|
+
- `ctx.metadata` has been removed, please use `ctx.orchestrator` instead.
|
|
41
|
+
- `.retry()` will rerun all middlewares now, assert `ctx.data.retry.attempt` if middleware is not expect to be run.
|
|
42
|
+
- `ctx.options.retryOn`, `ctx.options.retryTimes` and `ctx.options.retryDelay` are replaced by `ctx.options.retry.on`, `ctx.options.retry.times` and `ctx.options.retry.delay`.
|
|
43
|
+
- `.option("resolveWithResponse")` had be removed, please use `.resolveWith('response')` instead.
|
|
44
|
+
- `next` cannot be run multi-times now.
|
|
45
|
+
- Some typescript type names have changed.
|
|
46
|
+
|
|
47
|
+
- 153244f: **BREAKING CHANGE:** Drop support node@18.
|
|
48
|
+
|
|
49
|
+
### Minor Changes
|
|
50
|
+
|
|
51
|
+
- 153244f: **Feat:** add `.headers` as an alias for `.set`
|
|
52
|
+
- 153244f: **Feat:** `.attach` can take multiple files.
|
|
53
|
+
|
|
54
|
+
### Patch Changes
|
|
55
|
+
|
|
56
|
+
- 153244f: optimize code suggestions
|
|
57
|
+
|
|
58
|
+
This was a version bump only for keq to align it with other projects, there were no code changes.
|
|
59
|
+
|
|
1
60
|
## 5.0.0-alpha.5 (2025-09-17)
|
|
2
61
|
|
|
3
62
|
This was a version bump only for keq to align it with other projects, there were no code changes.
|
|
@@ -8,774 +67,666 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
8
67
|
|
|
9
68
|
## [2.8.11](https://github.com/keq-request/keq/compare/v2.8.10...v2.8.11) (2025-06-05)
|
|
10
69
|
|
|
11
|
-
|
|
12
70
|
### Bug Fixes
|
|
13
71
|
|
|
14
|
-
|
|
72
|
+
- ensure proper cleanup of abort flow control function ([fc5ad5e](https://github.com/keq-request/keq/commit/fc5ad5ea34a1fcbd83a65f4906750113a424780d))
|
|
15
73
|
|
|
16
74
|
## [2.8.10](https://github.com/keq-request/keq/compare/v2.8.9...v2.8.10) (2024-12-26)
|
|
17
75
|
|
|
18
|
-
|
|
19
76
|
### Bug Fixes
|
|
20
77
|
|
|
21
|
-
|
|
78
|
+
- cannot extend KeqOperations ([908983d](https://github.com/keq-request/keq/commit/908983dd12037befb85bd944801a6b111979d4ce))
|
|
22
79
|
|
|
23
80
|
## [2.8.9](https://github.com/keq-request/keq/compare/v2.8.8...v2.8.9) (2024-12-22)
|
|
24
81
|
|
|
25
|
-
|
|
26
82
|
### Bug Fixes
|
|
27
83
|
|
|
28
|
-
|
|
29
|
-
|
|
84
|
+
- wrong type of .query/.set/.params ([b11b959](https://github.com/keq-request/keq/commit/b11b9591dbff167a2cbd4f925d196bbc83e39b63))
|
|
30
85
|
|
|
31
86
|
### Performance Improvements
|
|
32
87
|
|
|
33
|
-
|
|
88
|
+
- support stict type checking for .send/.params/.set/.query ([2c82b01](https://github.com/keq-request/keq/commit/2c82b016a5032422ae52455c267066ac2c8ba7f0))
|
|
34
89
|
|
|
35
90
|
## [2.8.8](https://github.com/keq-request/keq/compare/v2.8.7...v2.8.8) (2024-12-10)
|
|
36
91
|
|
|
37
|
-
|
|
38
92
|
### Bug Fixes
|
|
39
93
|
|
|
40
|
-
|
|
94
|
+
- make some properties in KeqContext readonly to prevent modifications ([b2321cf](https://github.com/keq-request/keq/commit/b2321cf30ea0787a1e9a984bd05704cc6268fbef))
|
|
41
95
|
|
|
42
96
|
## [2.8.7](https://github.com/keq-request/keq/compare/v2.8.6...v2.8.7) (2024-10-29)
|
|
43
97
|
|
|
44
|
-
|
|
45
98
|
### Bug Fixes
|
|
46
99
|
|
|
47
|
-
|
|
100
|
+
- `.finally()` cannot invoke at keq request ([4315979](https://github.com/keq-request/keq/commit/4315979d1fc4e0ad11aaaadb3341886e62bfe448))
|
|
48
101
|
|
|
49
102
|
## [2.8.6](https://github.com/keq-request/keq/compare/v2.8.5...v2.8.6) (2024-10-25)
|
|
50
103
|
|
|
51
|
-
|
|
52
104
|
### Bug Fixes
|
|
53
105
|
|
|
54
|
-
|
|
55
|
-
|
|
106
|
+
- cannot send blob body ([ba7a14d](https://github.com/keq-request/keq/commit/ba7a14d10090aded2525789f0ef543564ce05434))
|
|
107
|
+
- cannot send readableStream ([1b16142](https://github.com/keq-request/keq/commit/1b16142e84f08a7b5c300ba69f5c0036fdb1c9ef))
|
|
56
108
|
|
|
57
109
|
## [2.8.5](https://github.com/keq-request/keq/compare/v2.8.4...v2.8.5) (2024-10-25)
|
|
58
110
|
|
|
59
|
-
|
|
60
111
|
### Performance Improvements
|
|
61
112
|
|
|
62
|
-
|
|
113
|
+
- support send binary body ([4f17198](https://github.com/keq-request/keq/commit/4f17198915e46bfb08a6900c2b784c5299164c2f))
|
|
63
114
|
|
|
64
115
|
## [2.8.4](https://github.com/keq-request/keq/compare/v2.8.3...v2.8.4) (2024-10-20)
|
|
65
116
|
|
|
66
|
-
|
|
67
117
|
### Bug Fixes
|
|
68
118
|
|
|
69
|
-
|
|
119
|
+
- esm improt error ([f23cece](https://github.com/keq-request/keq/commit/f23cece5d55c21a73deb9e9191cc52dafff35bc6))
|
|
70
120
|
|
|
71
121
|
## [2.8.3](https://github.com/keq-request/keq/compare/v2.8.2...v2.8.3) (2024-10-20)
|
|
72
122
|
|
|
73
|
-
|
|
74
123
|
### Bug Fixes
|
|
75
124
|
|
|
76
|
-
|
|
77
|
-
|
|
125
|
+
- esm import error ([97dbd78](https://github.com/keq-request/keq/commit/97dbd78eaa8b57a1a22e776347a90baf8f47335e))
|
|
78
126
|
|
|
79
127
|
### Performance Improvements
|
|
80
128
|
|
|
81
|
-
|
|
129
|
+
- set context.retry to be deprecated ([e8b76a4](https://github.com/keq-request/keq/commit/e8b76a48a6e824892cb0eb3e8d97b36c11b07a3d))
|
|
82
130
|
|
|
83
131
|
## [2.8.2](https://github.com/keq-request/keq/compare/v2.8.1...v2.8.2) (2024-10-07)
|
|
84
132
|
|
|
85
|
-
|
|
86
133
|
### Performance Improvements
|
|
87
134
|
|
|
88
|
-
|
|
135
|
+
- export createResponseProxy function ([261606e](https://github.com/keq-request/keq/commit/261606e74f12d32c80428eb9b20d175b60171bff))
|
|
89
136
|
|
|
90
137
|
## [2.8.1](https://github.com/keq-request/keq/compare/v2.8.0...v2.8.1) (2024-09-13)
|
|
91
138
|
|
|
92
|
-
|
|
93
139
|
### Performance Improvements
|
|
94
140
|
|
|
95
|
-
|
|
96
|
-
|
|
141
|
+
- allow middleware access context.metadata ([4561592](https://github.com/keq-request/keq/commit/4561592390c78a47cedb2d230e4765f51de7d854))
|
|
142
|
+
- set identifier to be readonly ([6f64f1b](https://github.com/keq-request/keq/commit/6f64f1b5e5a698bae15c2ddb1f3c4fe3a6e2a6ae))
|
|
97
143
|
|
|
98
144
|
## [2.8.0](https://github.com/keq-request/keq/compare/v2.7.5...v2.8.0) (2024-09-11)
|
|
99
145
|
|
|
100
|
-
|
|
101
146
|
### Features
|
|
102
147
|
|
|
103
|
-
|
|
148
|
+
- add the unique identifier of the request's location in the code ([e9eb95f](https://github.com/keq-request/keq/commit/e9eb95fc09bfaf59884379be9b50962660c9574f))
|
|
104
149
|
|
|
105
150
|
## [2.7.5](https://github.com/keq-request/keq/compare/v2.7.4...v2.7.5) (2024-09-10)
|
|
106
151
|
|
|
107
|
-
|
|
108
152
|
### Bug Fixes
|
|
109
153
|
|
|
110
|
-
|
|
154
|
+
- cannot import esm ([e6c1cfb](https://github.com/keq-request/keq/commit/e6c1cfb3c283e7cd3d44cd7d60d30aaf7a380ecc))
|
|
111
155
|
|
|
112
156
|
## [2.7.4](https://github.com/keq-request/keq/compare/v2.7.3...v2.7.4) (2024-08-19)
|
|
113
157
|
|
|
114
|
-
|
|
115
158
|
### Performance Improvements
|
|
116
159
|
|
|
117
|
-
|
|
160
|
+
- add options method support ([bfc7ae4](https://github.com/keq-request/keq/commit/bfc7ae45f4ad1e14bfca4ec7d6c599915424df43))
|
|
118
161
|
|
|
119
162
|
## [2.7.3](https://github.com/keq-request/keq/compare/v2.7.2...v2.7.3) (2024-08-13)
|
|
120
163
|
|
|
121
|
-
|
|
122
164
|
### Bug Fixes
|
|
123
165
|
|
|
124
|
-
|
|
166
|
+
- .set(key, value) cannot set the number type value when adding a custom header ([2085cc6](https://github.com/keq-request/keq/commit/2085cc613f68b26018fdabb3b6bb39d0b208a50e))
|
|
125
167
|
|
|
126
168
|
## [2.7.2](https://github.com/keq-request/keq/compare/v2.7.1...v2.7.2) (2024-08-13)
|
|
127
169
|
|
|
128
|
-
|
|
129
170
|
### Performance Improvements
|
|
130
171
|
|
|
131
|
-
|
|
172
|
+
- allow header to add number type fields ([bacacaa](https://github.com/keq-request/keq/commit/bacacaac66d9e249a6b66d539bafb94d9f064869))
|
|
132
173
|
|
|
133
174
|
## [2.7.1](https://github.com/keq-request/keq/compare/v2.7.0...v2.7.1) (2024-07-20)
|
|
134
175
|
|
|
135
|
-
|
|
136
176
|
### Performance Improvements
|
|
137
177
|
|
|
138
|
-
|
|
178
|
+
- remove whatwg-url because mosts browsers had support ([6877d79](https://github.com/keq-request/keq/commit/6877d79e95721ea76adcf54013c1909b0dec98a3))
|
|
139
179
|
|
|
140
180
|
## [2.7.0](https://github.com/keq-request/keq/compare/v2.6.10...v2.7.0) (2024-07-05)
|
|
141
181
|
|
|
142
|
-
|
|
143
182
|
### Features
|
|
144
183
|
|
|
145
|
-
|
|
146
|
-
|
|
184
|
+
- add ctx.request.**url** that return a url merged routeParams ([896c029](https://github.com/keq-request/keq/commit/896c0293e8a0bd0243cd81b780ea2f9e09cbfeea))
|
|
147
185
|
|
|
148
186
|
### Bug Fixes
|
|
149
187
|
|
|
150
|
-
|
|
188
|
+
- the default parameter of KeqRequest ([d7939d2](https://github.com/keq-request/keq/commit/d7939d2f2e1f79e719db3c663658c05586be10cf))
|
|
151
189
|
|
|
152
190
|
## [2.6.10](https://github.com/keq-request/keq/compare/v2.6.9...v2.6.10) (2024-06-27)
|
|
153
191
|
|
|
154
|
-
|
|
155
192
|
### Performance Improvements
|
|
156
193
|
|
|
157
|
-
|
|
194
|
+
- optimize the error message of the wrong header ([92f4aa6](https://github.com/keq-request/keq/commit/92f4aa6d58d258521ee0a2913a8cfb52597e9ed8))
|
|
158
195
|
|
|
159
196
|
## [2.6.9](https://github.com/keq-request/keq/compare/v2.6.8...v2.6.9) (2024-06-24)
|
|
160
197
|
|
|
161
|
-
|
|
162
198
|
### Bug Fixes
|
|
163
199
|
|
|
164
|
-
|
|
200
|
+
- cannot find buffer in the browser ([49b57d8](https://github.com/keq-request/keq/commit/49b57d8a13c576ab1b8e56a1ddc73ffb7dea1286))
|
|
165
201
|
|
|
166
202
|
## [2.6.8](https://github.com/keq-request/keq/compare/v2.6.7...v2.6.8) (2024-06-04)
|
|
167
203
|
|
|
168
|
-
|
|
169
204
|
### Performance Improvements
|
|
170
205
|
|
|
171
|
-
|
|
206
|
+
- remove clone and object.fromentries dependencies ([7a3ef9b](https://github.com/keq-request/keq/commit/7a3ef9bb053cc280cca639d1b6b3682a45eaea98))
|
|
172
207
|
|
|
173
208
|
## [2.6.7](https://github.com/keq-request/keq/compare/v2.6.6...v2.6.7) (2024-06-03)
|
|
174
209
|
|
|
175
|
-
|
|
176
210
|
### Performance Improvements
|
|
177
211
|
|
|
178
|
-
|
|
212
|
+
- rename clone to cloneBody ([c008b50](https://github.com/keq-request/keq/commit/c008b50d2e627853a3451cdfa9ad5f49a4bc8f17))
|
|
179
213
|
|
|
180
214
|
## [2.6.6](https://github.com/keq-request/keq/compare/v2.6.5...v2.6.6) (2024-06-03)
|
|
181
215
|
|
|
182
|
-
|
|
183
216
|
### Bug Fixes
|
|
184
217
|
|
|
185
|
-
|
|
218
|
+
- unable to package correctly in nuxt3 ([b5ce266](https://github.com/keq-request/keq/commit/b5ce2662d26b180add3496b27ba795f8416a0e58))
|
|
186
219
|
|
|
187
220
|
## [2.6.5](https://github.com/keq-request/keq/compare/v2.6.4...v2.6.5) (2024-06-03)
|
|
188
221
|
|
|
189
|
-
|
|
190
222
|
### Bug Fixes
|
|
191
223
|
|
|
192
|
-
|
|
224
|
+
- wrong typescript defination ([b1bf5c2](https://github.com/keq-request/keq/commit/b1bf5c2f8b797f8beeb5531e8d075f2c1b395a27))
|
|
193
225
|
|
|
194
226
|
## [2.6.4](https://github.com/keq-request/keq/compare/v2.6.3...v2.6.4) (2024-06-02)
|
|
195
227
|
|
|
196
|
-
|
|
197
228
|
### Bug Fixes
|
|
198
229
|
|
|
199
|
-
|
|
230
|
+
- cannot find Buffer at browser ([c165673](https://github.com/keq-request/keq/commit/c16567394000a0659dfb76fdac314a1b54ef0bfd))
|
|
200
231
|
|
|
201
232
|
## [2.6.3](https://github.com/keq-request/keq/compare/v2.6.2...v2.6.3) (2024-05-30)
|
|
202
233
|
|
|
203
|
-
|
|
204
234
|
### Performance Improvements
|
|
205
235
|
|
|
206
|
-
|
|
207
|
-
|
|
236
|
+
- human warn when set undefined query ([e9695ab](https://github.com/keq-request/keq/commit/e9695ab1df78920980acc9ce18facc251925c65d))
|
|
237
|
+
- interface type could be extends through generics ([62797e3](https://github.com/keq-request/keq/commit/62797e398df25e1caed1ae726c03a89246834928))
|
|
208
238
|
|
|
209
239
|
## [2.6.2](https://github.com/keq-request/keq/compare/v2.6.1...v2.6.2) (2024-05-29)
|
|
210
240
|
|
|
211
|
-
|
|
212
241
|
### Bug Fixes
|
|
213
242
|
|
|
214
|
-
|
|
243
|
+
- retryDelay option setting is invaild ([9bc07f8](https://github.com/keq-request/keq/commit/9bc07f8c1d870c51f1c1013dd12e038e278884e3))
|
|
215
244
|
|
|
216
245
|
## [2.6.1](https://github.com/keq-request/keq/compare/v2.6.0...v2.6.1) (2024-05-28)
|
|
217
246
|
|
|
218
|
-
|
|
219
247
|
### Bug Fixes
|
|
220
248
|
|
|
221
|
-
|
|
249
|
+
- body should not be set when undefined ([0674870](https://github.com/keq-request/keq/commit/0674870e3adade4f7c5e7e8209322d52b501b8ce))
|
|
222
250
|
|
|
223
251
|
## [2.6.0](https://github.com/keq-request/keq/compare/v2.5.5...v2.6.0) (2024-05-28)
|
|
224
252
|
|
|
225
|
-
|
|
226
253
|
### Features
|
|
227
254
|
|
|
228
|
-
|
|
229
|
-
|
|
255
|
+
- use .on(eventName, listener) add event listener ([500ef14](https://github.com/keq-request/keq/commit/500ef140b513d614c3454d0e9023dd501e5d1ef6))
|
|
230
256
|
|
|
231
257
|
### Bug Fixes
|
|
232
258
|
|
|
233
|
-
|
|
234
|
-
|
|
259
|
+
- esm import syntax ([c312146](https://github.com/keq-request/keq/commit/c312146ffeb456bcfb1e0e6e2f2a3c8c773e6003))
|
|
260
|
+
- the body is undeifned when send plain/text request ([ed24ba6](https://github.com/keq-request/keq/commit/ed24ba6f5ef3a565fb3eb6be496be09ed0fa40f9))
|
|
235
261
|
|
|
236
262
|
## [2.5.5](https://github.com/keq-request/keq/compare/v2.5.4...v2.5.5) (2024-05-26)
|
|
237
263
|
|
|
238
|
-
|
|
239
264
|
### Bug Fixes
|
|
240
265
|
|
|
241
|
-
|
|
242
|
-
|
|
266
|
+
- avoid conflicts between flowController and timeout middleware ([a075602](https://github.com/keq-request/keq/commit/a075602ed868812955001df7ed15f2351f899f33))
|
|
267
|
+
- retry timeout and flowControll not triggered ([846c884](https://github.com/keq-request/keq/commit/846c8845334f61fdca7a6cd3b718e135d23bfb18))
|
|
243
268
|
|
|
244
269
|
## [2.5.4](https://github.com/keq-request/keq/compare/v2.5.3...v2.5.4) (2024-05-23)
|
|
245
270
|
|
|
246
|
-
|
|
247
271
|
### Performance Improvements
|
|
248
272
|
|
|
249
|
-
|
|
273
|
+
- retryOn and retryDelay support return Promise ([398c262](https://github.com/keq-request/keq/commit/398c26294aa303feb5b14ab17d3ff96036bfdde2))
|
|
250
274
|
|
|
251
275
|
## [2.5.3](https://github.com/keq-request/keq/compare/v2.5.2...v2.5.3) (2024-05-23)
|
|
252
276
|
|
|
253
|
-
|
|
254
277
|
### Bug Fixes
|
|
255
278
|
|
|
256
|
-
|
|
279
|
+
- retryTimes avoids throw errors caused by NaN ([a5ece3f](https://github.com/keq-request/keq/commit/a5ece3f8afec3c58d2daa3c5e1a2f85fae044665))
|
|
257
280
|
|
|
258
281
|
## [2.5.2](https://github.com/keq-request/keq/compare/v2.5.1...v2.5.2) (2024-05-22)
|
|
259
282
|
|
|
260
|
-
|
|
261
283
|
### Bug Fixes
|
|
262
284
|
|
|
263
|
-
|
|
264
|
-
|
|
285
|
+
- composeMiddleware should not change parameters ([131c1d4](https://github.com/keq-request/keq/commit/131c1d42227eeda2d42436c5285426bf3f787df0))
|
|
265
286
|
|
|
266
287
|
### Performance Improvements
|
|
267
288
|
|
|
268
|
-
|
|
269
|
-
|
|
289
|
+
- avoid duplication of compose middleware ([c4e5cc1](https://github.com/keq-request/keq/commit/c4e5cc161d94b2440768c778489ee5ac1bb07484))
|
|
290
|
+
- warn for incorrect invoke next() ([f4b418f](https://github.com/keq-request/keq/commit/f4b418f28e3df07bad0c03e2aca811ed6254e57c)), closes [#74](https://github.com/keq-request/keq/issues/74)
|
|
270
291
|
|
|
271
292
|
## [2.5.1](https://github.com/keq-request/keq/compare/v2.5.0...v2.5.1) (2024-05-21)
|
|
272
293
|
|
|
273
|
-
|
|
274
294
|
### Bug Fixes
|
|
275
295
|
|
|
276
|
-
|
|
296
|
+
- throw error when retryOn is not set ([cbf4594](https://github.com/keq-request/keq/commit/cbf45942e113a4f57c4351abd03a82cbab5a0a6a))
|
|
277
297
|
|
|
278
298
|
## [2.5.0](https://github.com/keq-request/keq/compare/v2.4.1...v2.5.0) (2024-05-21)
|
|
279
299
|
|
|
280
|
-
|
|
281
300
|
### Features
|
|
282
301
|
|
|
283
|
-
|
|
302
|
+
- third-party middleware can extend option typescript declaration ([a9e559a](https://github.com/keq-request/keq/commit/a9e559a39dd16a552ac5ab024727a76d2a2c05a1))
|
|
284
303
|
|
|
285
304
|
## [2.4.1](https://github.com/keq-request/keq/compare/v2.4.0...v2.4.1) (2024-05-17)
|
|
286
305
|
|
|
287
|
-
|
|
288
306
|
### Bug Fixes
|
|
289
307
|
|
|
290
|
-
|
|
308
|
+
- response.body is not a function ([8332fa2](https://github.com/keq-request/keq/commit/8332fa25fa613c0663719d581379f04a7545799c))
|
|
291
309
|
|
|
292
310
|
## [2.4.0](https://github.com/keq-request/keq/compare/v2.3.4...v2.4.0) (2024-05-17)
|
|
293
311
|
|
|
294
|
-
|
|
295
312
|
### Features
|
|
296
313
|
|
|
297
|
-
|
|
314
|
+
- avoid time-consuming cloning ([5f6b773](https://github.com/keq-request/keq/commit/5f6b773a8d2a0bf9ffa529200ff4fc524b3c4090))
|
|
298
315
|
|
|
299
316
|
## [2.3.4](https://github.com/keq-request/keq/compare/v2.3.3...v2.3.4) (2024-05-14)
|
|
300
317
|
|
|
301
|
-
|
|
302
318
|
### Bug Fixes
|
|
303
319
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
320
|
+
- avoid repeatedly defining response causing errors to be throw ([fc4d0ab](https://github.com/keq-request/keq/commit/fc4d0abf47a35e894fb31f9284e4fa3947c99383))
|
|
321
|
+
- missing typescript definition ([fff9046](https://github.com/keq-request/keq/commit/fff9046a5d10d264d4aeef918aaeb986056abd67))
|
|
307
322
|
|
|
308
323
|
### Performance Improvements
|
|
309
324
|
|
|
310
|
-
|
|
311
|
-
|
|
325
|
+
- baseOrigin(origin) return this ([d50773c](https://github.com/keq-request/keq/commit/d50773c00eeaf87850c1ee621dc75d920d6897ba))
|
|
326
|
+
- use http://127.0.0.1 as baseOrigin in nodejs ([22f0202](https://github.com/keq-request/keq/commit/22f0202c21c83d128f86f9c0270b124018ce515d))
|
|
312
327
|
|
|
313
328
|
## [2.3.3](https://github.com/keq-request/keq/compare/v2.3.2...v2.3.3) (2024-05-10)
|
|
314
329
|
|
|
315
|
-
|
|
316
330
|
### Bug Fixes
|
|
317
331
|
|
|
318
|
-
|
|
319
|
-
|
|
332
|
+
- the error thrown when the request timeout is not DOMException ([7c84d8f](https://github.com/keq-request/keq/commit/7c84d8fe40e26713d478d443fbdb9a9d71d99ba9))
|
|
320
333
|
|
|
321
334
|
### Performance Improvements
|
|
322
335
|
|
|
323
|
-
|
|
336
|
+
- upgrade dependencies ([090e244](https://github.com/keq-request/keq/commit/090e24449f055e185dde1d3972c8f5e9c637fb20))
|
|
324
337
|
|
|
325
338
|
## [2.3.2](https://github.com/keq-request/keq/compare/v2.3.1...v2.3.2) (2024-04-23)
|
|
326
339
|
|
|
327
|
-
|
|
328
340
|
### Bug Fixes
|
|
329
341
|
|
|
330
|
-
|
|
342
|
+
- cannot send form-data when invoke .attach() first ([0195ee2](https://github.com/keq-request/keq/commit/0195ee2dcb4e43a58185f4c032d29fb6c00ac70d))
|
|
331
343
|
|
|
332
344
|
## [2.3.1](https://github.com/keq-request/keq/compare/v2.3.0...v2.3.1) (2024-03-22)
|
|
333
345
|
|
|
334
|
-
|
|
335
346
|
### Bug Fixes
|
|
336
347
|
|
|
337
|
-
|
|
348
|
+
- unabled send formDate request with buffer file ([9db1508](https://github.com/keq-request/keq/commit/9db1508c3366a5dd264e3de87bd8afef777f761f))
|
|
338
349
|
|
|
339
350
|
## [2.3.0](https://github.com/keq-request/keq/compare/v2.2.0...v2.3.0) (2024-02-24)
|
|
340
351
|
|
|
341
|
-
|
|
342
352
|
### Features
|
|
343
353
|
|
|
344
|
-
|
|
354
|
+
- add .resolveWith method add deprecated resolveWithFullResponse ([1e01e7f](https://github.com/keq-request/keq/commit/1e01e7fe07c146d9f122f0f52778b45258797c68))
|
|
345
355
|
|
|
346
356
|
## [2.2.0](https://github.com/keq-request/keq/compare/v2.1.2...v2.2.0) (2024-02-04)
|
|
347
357
|
|
|
348
|
-
|
|
349
358
|
### Features
|
|
350
359
|
|
|
351
|
-
|
|
360
|
+
- add .timeout(millisecond) ([b99009b](https://github.com/keq-request/keq/commit/b99009b6eb4a017d648a29a8b34b478dc22320ee))
|
|
352
361
|
|
|
353
362
|
## [2.1.2](https://github.com/keq-request/keq/compare/v2.1.1...v2.1.2) (2024-01-17)
|
|
354
363
|
|
|
355
|
-
|
|
356
364
|
### Bug Fixes
|
|
357
365
|
|
|
358
|
-
|
|
366
|
+
- unable send request when parentheses exit in pathname ([24c81ff](https://github.com/keq-request/keq/commit/24c81ffdde71919163a09778aa15ae6106427d45))
|
|
359
367
|
|
|
360
368
|
## [2.1.1](https://github.com/keq-request/keq/compare/v2.1.0...v2.1.1) (2024-01-09)
|
|
361
369
|
|
|
362
|
-
|
|
363
370
|
### Bug Fixes
|
|
364
371
|
|
|
365
|
-
|
|
372
|
+
- should not throw error when query is undefined ([515fa20](https://github.com/keq-request/keq/commit/515fa2090a03eb60ed8e7d0e575ce44dd8bce12b))
|
|
366
373
|
|
|
367
374
|
## [2.1.0](https://github.com/keq-request/keq/compare/v2.0.8...v2.1.0) (2024-01-05)
|
|
368
375
|
|
|
369
|
-
|
|
370
376
|
### Features
|
|
371
377
|
|
|
372
|
-
|
|
373
|
-
|
|
378
|
+
- add .route to Router ([dc27057](https://github.com/keq-request/keq/commit/dc27057b3c85ab8a52fe51892f4aa5792f53898d))
|
|
379
|
+
- flow control function for sending multiple requests ([5d24adf](https://github.com/keq-request/keq/commit/5d24adffaf26181ebd296b97ea3062514354f7e0))
|
|
374
380
|
|
|
375
381
|
## [2.0.8](https://github.com/keq-request/keq/compare/v2.0.7...v2.0.8) (2024-01-02)
|
|
376
382
|
|
|
377
|
-
|
|
378
383
|
### Bug Fixes
|
|
379
384
|
|
|
380
|
-
|
|
385
|
+
- fetch error not thrown correctly ([cbc7778](https://github.com/keq-request/keq/commit/cbc7778dbf5e1c453b0a68246f0e6c4113604854))
|
|
381
386
|
|
|
382
387
|
## [2.0.7](https://github.com/keq-request/keq/compare/v2.0.6...v2.0.7) (2023-11-09)
|
|
383
388
|
|
|
384
|
-
|
|
385
389
|
### Bug Fixes
|
|
386
390
|
|
|
387
|
-
|
|
391
|
+
- wrong repo address in package.json ([1101a79](https://github.com/keq-request/keq/commit/1101a79d12c3c96aba45167ab60f1ef1a8b6b4a7))
|
|
388
392
|
|
|
389
393
|
## [2.0.6](https://github.com/keq-request/keq/compare/v2.0.5...v2.0.6) (2023-11-08)
|
|
390
394
|
|
|
391
|
-
|
|
392
395
|
### Bug Fixes
|
|
393
396
|
|
|
394
|
-
|
|
397
|
+
- npm publish error ([14a3b93](https://github.com/keq-request/keq/commit/14a3b931d72c105f9c4bdf56d90516f2052b217b))
|
|
395
398
|
|
|
396
399
|
## [2.0.5](https://github.com/keq-request/keq/compare/v2.0.4...v2.0.5) (2023-11-08)
|
|
397
400
|
|
|
398
|
-
|
|
399
401
|
### Bug Fixes
|
|
400
402
|
|
|
401
|
-
|
|
403
|
+
- unable build ([5731cab](https://github.com/keq-request/keq/commit/5731cab1e62bc23d2ddb9522e607e3bdfa12db4d))
|
|
402
404
|
|
|
403
405
|
## [2.0.4](https://github.com/keq-request/keq/compare/v2.0.3...v2.0.4) (2023-11-08)
|
|
404
406
|
|
|
405
|
-
|
|
406
407
|
### Performance Improvements
|
|
407
408
|
|
|
408
|
-
|
|
409
|
+
- add package provenance ([ab5c99e](https://github.com/keq-request/keq/commit/ab5c99ed89809f244172263623732ea0d963ab36))
|
|
409
410
|
|
|
410
411
|
### [2.0.3](https://www.github.com/keq-request/keq/compare/v2.0.2...v2.0.3) (2023-09-27)
|
|
411
412
|
|
|
412
|
-
|
|
413
413
|
### Bug Fixes
|
|
414
414
|
|
|
415
|
-
|
|
415
|
+
- cannot find dist/umd/src/index.js ([9264923](https://www.github.com/keq-request/keq/commit/9264923e606fc5bc28675c751910e1eb3a30b864))
|
|
416
416
|
|
|
417
417
|
### [2.0.2](https://www.github.com/keq-request/keq/compare/v2.0.1...v2.0.2) (2023-09-27)
|
|
418
418
|
|
|
419
|
-
|
|
420
419
|
### Bug Fixes
|
|
421
420
|
|
|
422
|
-
|
|
421
|
+
- cannot import umd package ([4eb05b3](https://www.github.com/keq-request/keq/commit/4eb05b35a41fd7b00e21ae5978eb3dc3900a3bdc))
|
|
423
422
|
|
|
424
423
|
### [2.0.1](https://www.github.com/keq-request/keq/compare/v2.0.0...v2.0.1) (2023-09-27)
|
|
425
424
|
|
|
426
|
-
|
|
427
425
|
### Bug Fixes
|
|
428
426
|
|
|
429
|
-
|
|
427
|
+
- cannot import createRequest ([2acdc47](https://www.github.com/keq-request/keq/commit/2acdc47200c36c83d7539f7d3b68d8df7bb49803))
|
|
430
428
|
|
|
431
429
|
## [2.0.0](https://www.github.com/keq-request/keq/compare/v1.10.1...v2.0.0) (2023-09-25)
|
|
432
430
|
|
|
433
|
-
|
|
434
431
|
### ⚠ BREAKING CHANGES
|
|
435
432
|
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
`content.request.*` instead.
|
|
440
|
-
|
|
441
|
-
be removed, use `context.request` instead.
|
|
442
|
-
|
|
443
|
-
|
|
433
|
+
- Drop support for Node16.
|
|
434
|
+
- Remove node-fetch and internal FormData support in nodejs.
|
|
435
|
+
- `content.url`, `content.query`, `content.headers`, `content.body` has be removed, use
|
|
436
|
+
`content.request.*` instead.
|
|
437
|
+
- `resolveWithOriginResponse` has be removed. `context.request.options` has
|
|
438
|
+
be removed, use `context.request` instead.
|
|
439
|
+
- `mount` has be removed, use `request.useRouter` instead.
|
|
440
|
+
- `.serialize` has be removed.
|
|
444
441
|
|
|
445
442
|
### Code Refactoring
|
|
446
443
|
|
|
447
|
-
|
|
444
|
+
- rebuild code ([267b899](https://www.github.com/keq-request/keq/commit/267b899244f532b409ef8b7514d9bbe60394ecd1))
|
|
448
445
|
|
|
449
446
|
### [1.10.1](https://www.github.com/keq-request/keq/compare/v1.10.0...v1.10.1) (2023-05-17)
|
|
450
447
|
|
|
451
|
-
|
|
452
448
|
### Bug Fixes
|
|
453
449
|
|
|
454
|
-
|
|
450
|
+
- keq crashes when the response body does not match content-type ([f0bc15e](https://www.github.com/keq-request/keq/commit/f0bc15e3f02b76dfa975791f78d566eeccb32adc))
|
|
455
451
|
|
|
456
452
|
## [1.10.0](https://www.github.com/keq-request/keq/compare/v1.9.0...v1.10.0) (2022-11-22)
|
|
457
453
|
|
|
458
|
-
|
|
459
454
|
### Features
|
|
460
455
|
|
|
461
|
-
|
|
462
|
-
|
|
456
|
+
- add .mode() and .credentials() ([73f1cc2](https://www.github.com/keq-request/keq/commit/73f1cc202b34658474f325a3bbbdd4f876d1b4f2))
|
|
457
|
+
- add .redirect(mode) ([094549b](https://www.github.com/keq-request/keq/commit/094549b4ff6b8a64f9506a0f2b99ca8b51656b57))
|
|
463
458
|
|
|
464
459
|
## [1.9.0](https://www.github.com/keq-request/keq/compare/v1.8.9...v1.9.0) (2022-10-19)
|
|
465
460
|
|
|
466
|
-
|
|
467
461
|
### Features
|
|
468
462
|
|
|
469
|
-
|
|
463
|
+
- add mount.method ([df215a9](https://www.github.com/keq-request/keq/commit/df215a914d40fc03b3b4cbf359fb1da014b16f4a)), closes [#35](https://www.github.com/keq-request/keq/issues/35)
|
|
470
464
|
|
|
471
465
|
### [1.8.9](https://www.github.com/keq-request/keq/compare/v1.8.8...v1.8.9) (2022-09-08)
|
|
472
466
|
|
|
473
|
-
|
|
474
467
|
### Bug Fixes
|
|
475
468
|
|
|
476
|
-
|
|
469
|
+
- unexpected querystring when invoke .query() with an object param that some value is undfined ([372e2e8](https://www.github.com/keq-request/keq/commit/372e2e867768a3512b5b562951ed5de4129a4d45))
|
|
477
470
|
|
|
478
471
|
### [1.8.8](https://www.github.com/keq-request/keq/compare/v1.8.7...v1.8.8) (2022-06-24)
|
|
479
472
|
|
|
480
|
-
|
|
481
473
|
### Bug Fixes
|
|
482
474
|
|
|
483
|
-
|
|
475
|
+
- not working when response include null ([e98ea2b](https://www.github.com/keq-request/keq/commit/e98ea2bb831b8e94f531342bb53e0bb1e313c44b))
|
|
484
476
|
|
|
485
477
|
### [1.8.7](https://www.github.com/keq-request/keq/compare/v1.8.6...v1.8.7) (2022-06-22)
|
|
486
478
|
|
|
487
|
-
|
|
488
479
|
### Bug Fixes
|
|
489
480
|
|
|
490
|
-
|
|
481
|
+
- wrong content-type when send request in browser ([a100a5d](https://www.github.com/keq-request/keq/commit/a100a5db42e0dc6a032badb75a715fad8d1c600a))
|
|
491
482
|
|
|
492
483
|
### [1.8.6](https://www.github.com/keq-request/keq/compare/v1.8.5...v1.8.6) (2022-05-26)
|
|
493
484
|
|
|
494
|
-
|
|
495
485
|
### Bug Fixes
|
|
496
486
|
|
|
497
|
-
|
|
487
|
+
- cannot send multiple files ([ec70e66](https://www.github.com/keq-request/keq/commit/ec70e6641b93888257cc69e0c6c426dced801117))
|
|
498
488
|
|
|
499
489
|
### [1.8.5](https://www.github.com/keq-request/keq/compare/v1.8.4...v1.8.5) (2022-05-01)
|
|
500
490
|
|
|
501
|
-
|
|
502
491
|
### Bug Fixes
|
|
503
492
|
|
|
504
|
-
|
|
493
|
+
- esm not work ([6d1cd16](https://www.github.com/keq-request/keq/commit/6d1cd16b99e177b419dc5f1083662c6fa956caf1))
|
|
505
494
|
|
|
506
495
|
### [1.8.4](https://www.github.com/keq-request/keq/compare/v1.8.3...v1.8.4) (2022-05-01)
|
|
507
496
|
|
|
508
|
-
|
|
509
497
|
### Bug Fixes
|
|
510
498
|
|
|
511
|
-
|
|
499
|
+
- global middleware is polluted ([1c00f0e](https://www.github.com/keq-request/keq/commit/1c00f0e3bc7ab5d661d9aa64c033cfb644d3b054))
|
|
512
500
|
|
|
513
501
|
### [1.8.3](https://www.github.com/keq-request/keq/compare/v1.8.2...v1.8.3) (2022-04-26)
|
|
514
502
|
|
|
515
|
-
|
|
516
503
|
### Bug Fixes
|
|
517
504
|
|
|
518
|
-
|
|
505
|
+
- cannot find node:stream ([3137cad](https://www.github.com/keq-request/keq/commit/3137cadf6cf2481adb4bd17d45739501354498ff))
|
|
519
506
|
|
|
520
507
|
### [1.8.2](https://www.github.com/keq-request/keq/compare/v1.8.1...v1.8.2) (2022-04-26)
|
|
521
508
|
|
|
522
|
-
|
|
523
509
|
### Bug Fixes
|
|
524
510
|
|
|
525
|
-
|
|
511
|
+
- cannot find keq main file ([41908fa](https://www.github.com/keq-request/keq/commit/41908fa47eeb8f54fc018d445c5ef85ffc5ca383))
|
|
526
512
|
|
|
527
513
|
### [1.8.1](https://www.github.com/keq-request/keq/compare/v1.8.0...v1.8.1) (2022-04-25)
|
|
528
514
|
|
|
529
|
-
|
|
530
515
|
### Bug Fixes
|
|
531
516
|
|
|
532
|
-
|
|
533
|
-
|
|
517
|
+
- cannot compile by vite ([2727867](https://www.github.com/keq-request/keq/commit/27278676f924428e2598b634577ed8b63a1e935b))
|
|
518
|
+
- wrong return of response.blob() ([ca5a5b5](https://www.github.com/keq-request/keq/commit/ca5a5b5bd64bdde6a476d7ce5e86b9833cd2a43b))
|
|
534
519
|
|
|
535
520
|
## [1.8.0](https://www.github.com/keq-request/keq/compare/v1.7.3...v1.8.0) (2022-03-22)
|
|
536
521
|
|
|
537
|
-
|
|
538
522
|
### Features
|
|
539
523
|
|
|
540
|
-
|
|
524
|
+
- support custom request instance ([2c05dec](https://www.github.com/keq-request/keq/commit/2c05dec6d779861112507b7365822ecff175dbc3))
|
|
541
525
|
|
|
542
526
|
### [1.7.3](https://www.github.com/keq-request/keq/compare/v1.7.2...v1.7.3) (2022-03-08)
|
|
543
527
|
|
|
544
|
-
|
|
545
528
|
### Bug Fixes
|
|
546
529
|
|
|
547
|
-
|
|
530
|
+
- unable to send formdate request with file ([a4ed415](https://www.github.com/keq-request/keq/commit/a4ed41560aacb67a49d8159b453ddf69bce56799))
|
|
548
531
|
|
|
549
532
|
### [1.7.2](https://www.github.com/keq-request/keq/compare/v1.7.1...v1.7.2) (2022-02-25)
|
|
550
533
|
|
|
551
|
-
|
|
552
534
|
### Bug Fixes
|
|
553
535
|
|
|
554
|
-
|
|
555
|
-
|
|
536
|
+
- calling response.json() in middleware will cause garbled chinese characters ([40ffe02](https://www.github.com/keq-request/keq/commit/40ffe0238628c106a06eafe349e6d33b856fbf8f))
|
|
537
|
+
- throw error when not set url origin ([9040396](https://www.github.com/keq-request/keq/commit/9040396ba23edc1642abf27a203b39efe53fb130))
|
|
556
538
|
|
|
557
539
|
### [1.7.1](https://www.github.com/keq-request/keq/compare/v1.7.0...v1.7.1) (2022-02-24)
|
|
558
540
|
|
|
559
|
-
|
|
560
541
|
### Bug Fixes
|
|
561
542
|
|
|
562
|
-
|
|
563
|
-
|
|
543
|
+
- cannot import URL from url package ([b89721e](https://www.github.com/keq-request/keq/commit/b89721ed4c865ff570e32653b76a884cbc6a8db6))
|
|
544
|
+
- esm parse failed ([b95a97c](https://www.github.com/keq-request/keq/commit/b95a97c35ebf06a4c938e09312ec88fc1c9b9050))
|
|
564
545
|
|
|
565
546
|
## [1.7.0](https://www.github.com/keq-request/keq/compare/v1.6.6...v1.7.0) (2022-01-17)
|
|
566
547
|
|
|
567
|
-
|
|
568
548
|
### Features
|
|
569
549
|
|
|
570
|
-
|
|
571
|
-
|
|
550
|
+
- support keq-cli@2.x ([6a3db36](https://www.github.com/keq-request/keq/commit/6a3db3633c75dd8d801748867666261d603f2dfb))
|
|
572
551
|
|
|
573
552
|
### Performance Improvements
|
|
574
553
|
|
|
575
|
-
|
|
554
|
+
- ctx.request.url extends from whatwg url api ([96dd049](https://www.github.com/keq-request/keq/commit/96dd049ae79d657dd4d03f1472d434aebd27aca3))
|
|
576
555
|
|
|
577
556
|
### [1.6.6](https://www.github.com/keq-request/keq/compare/v1.6.5...v1.6.6) (2021-12-13)
|
|
578
557
|
|
|
579
|
-
|
|
580
558
|
### Bug Fixes
|
|
581
559
|
|
|
582
|
-
|
|
560
|
+
- response cannot call .text, .json, .formData and .blob together ([fa1605a](https://www.github.com/keq-request/keq/commit/fa1605a911b05ac7ce3ecdb9f6d7805b4ced36f2))
|
|
583
561
|
|
|
584
562
|
### [1.6.5](https://www.github.com/keq-request/keq/compare/v1.6.4...v1.6.5) (2021-12-13)
|
|
585
563
|
|
|
586
|
-
|
|
587
564
|
### Bug Fixes
|
|
588
565
|
|
|
589
|
-
|
|
566
|
+
- iterator cannot be looped ([022ca72](https://www.github.com/keq-request/keq/commit/022ca72f88788980207bcb36114138ef292230cd))
|
|
590
567
|
|
|
591
568
|
### [1.6.4](https://www.github.com/keq-request/keq/compare/v1.6.3...v1.6.4) (2021-12-13)
|
|
592
569
|
|
|
593
|
-
|
|
594
570
|
### Bug Fixes
|
|
595
571
|
|
|
596
|
-
|
|
572
|
+
- the default array formatting of query is nonstandard ([229e08c](https://www.github.com/keq-request/keq/commit/229e08c79881fd332784b7f1c3207c410f985f89))
|
|
597
573
|
|
|
598
574
|
### [1.6.3](https://www.github.com/keq-request/keq/compare/v1.6.2...v1.6.3) (2021-12-07)
|
|
599
575
|
|
|
600
|
-
|
|
601
576
|
### Bug Fixes
|
|
602
577
|
|
|
603
|
-
|
|
578
|
+
- cannot invoke .blob() on the proxy response ([4e21c90](https://www.github.com/keq-request/keq/commit/4e21c90e47c8e84dfb3637e9aab5c8dd63a6e43f))
|
|
604
579
|
|
|
605
580
|
### [1.6.2](https://www.github.com/keq-request/keq/compare/v1.6.1...v1.6.2) (2021-11-30)
|
|
606
581
|
|
|
607
|
-
|
|
608
582
|
### Bug Fixes
|
|
609
583
|
|
|
610
|
-
|
|
584
|
+
- cannot parse response.body when response.status is 204 ([1b7e88d](https://www.github.com/keq-request/keq/commit/1b7e88d4112931298649086ca1aaa572a5665422)), closes [#21](https://www.github.com/keq-request/keq/issues/21)
|
|
611
585
|
|
|
612
586
|
### [1.6.1](https://www.github.com/keq-request/keq/compare/v1.6.0...v1.6.1) (2021-11-26)
|
|
613
587
|
|
|
614
|
-
|
|
615
588
|
### Bug Fixes
|
|
616
589
|
|
|
617
|
-
|
|
590
|
+
- retryCallback interface ([aa25c99](https://www.github.com/keq-request/keq/commit/aa25c992c5fd1bb21882699b6ce9b3c8b038adcc))
|
|
618
591
|
|
|
619
592
|
## [1.6.0](https://www.github.com/keq-request/keq/compare/v1.5.0...v1.6.0) (2021-11-26)
|
|
620
593
|
|
|
621
|
-
|
|
622
594
|
### Features
|
|
623
595
|
|
|
624
|
-
|
|
596
|
+
- can stop retry ([527678f](https://www.github.com/keq-request/keq/commit/527678f85202a84deb030c0337a92e5f1db7f19a))
|
|
625
597
|
|
|
626
598
|
## [1.5.0](https://www.github.com/keq-request/keq/compare/v1.4.0...v1.5.0) (2021-11-26)
|
|
627
599
|
|
|
628
|
-
|
|
629
600
|
### Features
|
|
630
601
|
|
|
631
|
-
|
|
602
|
+
- add intial retry time option ([accb899](https://www.github.com/keq-request/keq/commit/accb899dbe3c96d7279e8ea4126554d5e940331f))
|
|
632
603
|
|
|
633
604
|
## [1.4.0](https://www.github.com/keq-request/keq/compare/v1.3.1...v1.4.0) (2021-10-16)
|
|
634
605
|
|
|
635
|
-
|
|
636
606
|
### Features
|
|
637
607
|
|
|
638
|
-
|
|
608
|
+
- add redirect option ([55931ce](https://www.github.com/keq-request/keq/commit/55931ce10bd02cb07e49240e2d3940297547e850)), closes [#14](https://www.github.com/keq-request/keq/issues/14)
|
|
639
609
|
|
|
640
610
|
### [1.3.1](https://www.github.com/keq-request/keq/compare/v1.3.0...v1.3.1) (2021-10-16)
|
|
641
611
|
|
|
642
|
-
|
|
643
612
|
### Bug Fixes
|
|
644
613
|
|
|
645
|
-
|
|
614
|
+
- cannot get middleware matcher interface ([e285b73](https://www.github.com/keq-request/keq/commit/e285b7391238194a652e2bdbf0f1a9d8174be83c))
|
|
646
615
|
|
|
647
616
|
## [1.3.0](https://www.github.com/keq-request/keq/compare/v1.2.2...v1.3.0) (2021-08-29)
|
|
648
617
|
|
|
649
|
-
|
|
650
618
|
### Features
|
|
651
619
|
|
|
652
|
-
|
|
620
|
+
- add an error message that the routing parameters cannot be resolved ([ea267cb](https://www.github.com/keq-request/keq/commit/ea267cbfb6f15306adf730e9ab61fd1ed4cfc3e9))
|
|
653
621
|
|
|
654
622
|
### [1.2.2](https://www.github.com/keq-request/keq/compare/v1.2.1...v1.2.2) (2021-05-09)
|
|
655
623
|
|
|
656
|
-
|
|
657
624
|
### Bug Fixes
|
|
658
625
|
|
|
659
|
-
|
|
626
|
+
- response.clone is not responding ([ef1d66c](https://www.github.com/keq-request/keq/commit/ef1d66ce1cde8fefc9753be8f46b550785231e31))
|
|
660
627
|
|
|
661
628
|
### [1.2.1](https://github.com/Val-istar-Guo/keq/compare/v1.2.0...v1.2.1) (2021-05-06)
|
|
662
629
|
|
|
663
|
-
|
|
664
630
|
### Bug Fixes
|
|
665
631
|
|
|
666
|
-
|
|
632
|
+
- cannot find mount.module ([2031351](https://github.com/Val-istar-Guo/keq/commit/203135174904f0e4c23c1988021e5502fb018b07))
|
|
667
633
|
|
|
668
634
|
## [1.2.0](https://github.com/Val-istar-Guo/keq/compare/v1.1.4...v1.2.0) (2021-05-05)
|
|
669
635
|
|
|
670
|
-
|
|
671
636
|
### Features
|
|
672
637
|
|
|
673
|
-
|
|
638
|
+
- add module mounter ([c9727b4](https://github.com/Val-istar-Guo/keq/commit/c9727b41332f01ed212d6119e7f2fe0b4d524d37))
|
|
674
639
|
|
|
675
640
|
### [1.1.4](https://github.com/Val-istar-Guo/keq/compare/v1.1.3...v1.1.4) (2021-04-26)
|
|
676
641
|
|
|
677
|
-
|
|
678
642
|
### Bug Fixes
|
|
679
643
|
|
|
680
|
-
|
|
644
|
+
- type error when set option resolveWithFullResponse ([b32dc20](https://github.com/Val-istar-Guo/keq/commit/b32dc20802df7effd5ad619237378f30632ac539))
|
|
681
645
|
|
|
682
646
|
### [1.1.3](https://github.com/Val-istar-Guo/keq/compare/v1.1.2...v1.1.3) (2021-04-21)
|
|
683
647
|
|
|
684
648
|
### [1.1.2](https://github.com/Val-istar-Guo/keq/compare/v1.1.1...v1.1.2) (2021-04-06)
|
|
685
649
|
|
|
686
|
-
|
|
687
650
|
### Bug Fixes
|
|
688
651
|
|
|
689
|
-
|
|
690
|
-
|
|
652
|
+
- cannot run in browser ([56c08b9](https://github.com/Val-istar-Guo/keq/commit/56c08b9e7b110ea86316d190f1eae11154b79248))
|
|
653
|
+
- throw undefined when response body is empty ([1904392](https://github.com/Val-istar-Guo/keq/commit/19043922946dde6165fd45008766e8a2a8c9fd83))
|
|
691
654
|
|
|
692
655
|
### [1.1.1](https://github.com/Val-istar-Guo/keq/compare/v1.1.0...v1.1.1) (2021-04-06)
|
|
693
656
|
|
|
694
|
-
|
|
695
657
|
### Bug Fixes
|
|
696
658
|
|
|
697
|
-
|
|
659
|
+
- missing export mount ([a097b15](https://github.com/Val-istar-Guo/keq/commit/a097b1539e65f48c1f4e8a1b35cf406560e588ca))
|
|
698
660
|
|
|
699
661
|
## [1.1.0](https://github.com/Val-istar-Guo/keq/compare/v1.0.1...v1.1.0) (2021-04-04)
|
|
700
662
|
|
|
701
|
-
|
|
702
663
|
### Features
|
|
703
664
|
|
|
704
|
-
|
|
665
|
+
- middleware mount utils ([fa35ff0](https://github.com/Val-istar-Guo/keq/commit/fa35ff0944e63fe313d09f74ef8c4ab4027265b6)), closes [#5](https://github.com/Val-istar-Guo/keq/issues/5)
|
|
705
666
|
|
|
706
667
|
### [1.0.1](https://github.com/Val-istar-Guo/keq/compare/v1.0.0...v1.0.1) (2021-02-24)
|
|
707
668
|
|
|
708
669
|
## [1.0.0](https://github.com/Val-istar-Guo/keq/compare/v0.0.11...v1.0.0) (2021-02-23)
|
|
709
670
|
|
|
710
|
-
|
|
711
671
|
### Features
|
|
712
672
|
|
|
713
|
-
|
|
673
|
+
- routing parameters ([4506df1](https://github.com/Val-istar-Guo/keq/commit/4506df1f1f3f8b102e0611b9e073402edd84d711))
|
|
714
674
|
|
|
715
675
|
### [0.0.11](https://github.com/Val-istar-Guo/keq/compare/v0.0.10...v0.0.11) (2020-12-30)
|
|
716
676
|
|
|
717
|
-
|
|
718
677
|
### Bug Fixes
|
|
719
678
|
|
|
720
|
-
|
|
679
|
+
- filename is missing ([347d427](https://github.com/Val-istar-Guo/keq/commit/347d4274b4ab9db1e3c2221af120e1c5a13b5b72))
|
|
721
680
|
|
|
722
681
|
### [0.0.10](https://github.com/Val-istar-Guo/keq/compare/v0.0.9...v0.0.10) (2020-12-30)
|
|
723
682
|
|
|
724
|
-
|
|
725
683
|
### Bug Fixes
|
|
726
684
|
|
|
727
|
-
|
|
685
|
+
- cannot send big file by form-data ([d25218a](https://github.com/Val-istar-Guo/keq/commit/d25218a59d5fbaa3d857764b6539ed8056ff3e5a))
|
|
728
686
|
|
|
729
687
|
### [0.0.9](https://github.com/Val-istar-Guo/keq/compare/v0.0.8...v0.0.9) (2020-12-29)
|
|
730
688
|
|
|
731
|
-
|
|
732
689
|
### Features
|
|
733
690
|
|
|
734
|
-
|
|
691
|
+
- add new option resolveWithOriginalResponse ([158d32d](https://github.com/Val-istar-Guo/keq/commit/158d32d66ed64fc213bb254c8214bd6d0b15b80f))
|
|
735
692
|
|
|
736
693
|
### [0.0.8](https://github.com/Val-istar-Guo/keq/compare/v0.0.7...v0.0.8) (2020-11-20)
|
|
737
694
|
|
|
738
|
-
|
|
739
695
|
### Features
|
|
740
696
|
|
|
741
|
-
|
|
742
|
-
|
|
697
|
+
- support highWaterMark ([85c77ff](https://github.com/Val-istar-Guo/keq/commit/85c77ff0cb74fd90ad0c3e67dbe5d94d7f314863))
|
|
743
698
|
|
|
744
699
|
### Bug Fixes
|
|
745
700
|
|
|
746
|
-
|
|
701
|
+
- middleware cannot modified resolveWithFullResponse ([329b766](https://github.com/Val-istar-Guo/keq/commit/329b766c79b945185412f7b3fc13d320f7452f00))
|
|
747
702
|
|
|
748
703
|
### [0.0.7](https://github.com/Val-istar-Guo/keq/compare/v0.0.6...v0.0.7) (2020-11-20)
|
|
749
704
|
|
|
750
|
-
|
|
751
705
|
### Bug Fixes
|
|
752
706
|
|
|
753
|
-
|
|
707
|
+
- don't set content-type when no request body ([291bb65](https://github.com/Val-istar-Guo/keq/commit/291bb65854ba2c70c11c367187c9021962d66ee3))
|
|
754
708
|
|
|
755
709
|
### [0.0.6](https://github.com/Val-istar-Guo/keq/compare/v0.0.5...v0.0.6) (2020-11-13)
|
|
756
710
|
|
|
757
711
|
### [0.0.5](https://github.com/Val-istar-Guo/keq/compare/v0.0.4...v0.0.5) (2020-10-18)
|
|
758
712
|
|
|
759
|
-
|
|
760
713
|
### Bug Fixes
|
|
761
714
|
|
|
762
|
-
|
|
715
|
+
- cannot proxy polyfill response ([74e26d2](https://github.com/Val-istar-Guo/keq/commit/74e26d2f039e947ebf94b2472a9fc7db1c49ee43)), closes [#3](https://github.com/Val-istar-Guo/keq/issues/3)
|
|
763
716
|
|
|
764
717
|
### [0.0.4](https://github.com/Val-istar-Guo/keq/compare/v0.0.3...v0.0.4) (2020-07-16)
|
|
765
718
|
|
|
766
|
-
|
|
767
719
|
### Bug Fixes
|
|
768
720
|
|
|
769
|
-
|
|
721
|
+
- x-ww-form-urlencoded not support array ([4f88e22](https://github.com/Val-istar-Guo/keq/commit/4f88e220b19e8a161020abafff9adfdb951d2bfb)), closes [#1](https://github.com/Val-istar-Guo/keq/issues/1)
|
|
770
722
|
|
|
771
723
|
### [0.0.3](https://github.com/Val-istar-Guo/keq/compare/v0.0.2...v0.0.3) (2020-05-30)
|
|
772
724
|
|
|
773
|
-
|
|
774
725
|
### Bug Fixes
|
|
775
726
|
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
727
|
+
- cannot find fs ([bf52f11](https://github.com/Val-istar-Guo/keq/commit/bf52f11cb337bce92898eff645f2bd41599a4c24))
|
|
728
|
+
- dependence missing ([73f3409](https://github.com/Val-istar-Guo/keq/commit/73f3409922da2a5609a4cd3bcb38624e1c4c1d24))
|
|
729
|
+
- throw error when set undefined to query value ([5fb94a6](https://github.com/Val-istar-Guo/keq/commit/5fb94a667b46d01e3547e4d07424028a5bcc4dea))
|
|
779
730
|
|
|
780
731
|
### [0.0.2](https://github.com/Val-istar-Guo/keq/compare/v0.0.1...v0.0.2) (2020-04-17)
|
|
781
732
|
|