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