All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
2.6.2 (2024-05-29)
- retryDelay option setting is invaild (9bc07f8)
2.6.1 (2024-05-28)
- body should not be set when undefined (0674870)
2.6.0 (2024-05-28)
- use .on(eventName, listener) add event listener (500ef14)
2.5.5 (2024-05-26)
- avoid conflicts between flowController and timeout middleware (a075602)
- retry timeout and flowControll not triggered (846c884)
2.5.4 (2024-05-23)
- retryOn and retryDelay support return Promise (398c262)
2.5.3 (2024-05-23)
- retryTimes avoids throw errors caused by NaN (a5ece3f)
2.5.2 (2024-05-22)
- composeMiddleware should not change parameters (131c1d4)
- avoid duplication of compose middleware (c4e5cc1)
- warn for incorrect invoke next() (f4b418f), closes #74
2.5.1 (2024-05-21)
- throw error when retryOn is not set (cbf4594)
2.5.0 (2024-05-21)
- third-party middleware can extend option typescript declaration (a9e559a)
2.4.1 (2024-05-17)
- response.body is not a function (8332fa2)
2.4.0 (2024-05-17)
- avoid time-consuming cloning (5f6b773)
2.3.4 (2024-05-14)
- avoid repeatedly defining response causing errors to be throw (fc4d0ab)
- missing typescript definition (fff9046)
- baseOrigin(origin) return this (d50773c)
- use http://127.0.0.1 as baseOrigin in nodejs (22f0202)
2.3.3 (2024-05-10)
- the error thrown when the request timeout is not DOMException (7c84d8f)
- upgrade dependencies (090e244)
2.3.2 (2024-04-23)
- cannot send form-data when invoke .attach() first (0195ee2)
2.3.1 (2024-03-22)
- unabled send formDate request with buffer file (9db1508)
2.3.0 (2024-02-24)
- add .resolveWith method add deprecated resolveWithFullResponse (1e01e7f)
2.2.0 (2024-02-04)
- add .timeout(millisecond) (b99009b)
2.1.2 (2024-01-17)
- unable send request when parentheses exit in pathname (24c81ff)
2.1.1 (2024-01-09)
- should not throw error when query is undefined (515fa20)
2.1.0 (2024-01-05)
2.0.8 (2024-01-02)
- fetch error not thrown correctly (cbc7778)
2.0.7 (2023-11-09)
- wrong repo address in package.json (1101a79)
2.0.6 (2023-11-08)
- npm publish error (14a3b93)
2.0.5 (2023-11-08)
- unable build (5731cab)
2.0.4 (2023-11-08)
- add package provenance (ab5c99e)
2.0.3 (2023-09-27)
- cannot find dist/umd/src/index.js (9264923)
2.0.2 (2023-09-27)
- cannot import umd package (4eb05b3)
2.0.1 (2023-09-27)
- cannot import createRequest (2acdc47)
2.0.0 (2023-09-25)
- Drop support for Node16.
- Remove node-fetch and internal FormData support in nodejs.
content.url
,content.query
,content.headers
,content.body
has be removed, usecontent.request.*
instead.resolveWithOriginResponse
has be removed.context.request.options
has be removed, usecontext.request
instead.mount
has be removed, userequest.useRouter
instead..serialize
has be removed.
- rebuild code (267b899)
1.10.1 (2023-05-17)
- keq crashes when the response body does not match content-type (f0bc15e)
1.10.0 (2022-11-22)
1.9.0 (2022-10-19)
1.8.9 (2022-09-08)
- unexpected querystring when invoke .query() with an object param that some value is undfined (372e2e8)
1.8.8 (2022-06-24)
- not working when response include null (e98ea2b)
1.8.7 (2022-06-22)
- wrong content-type when send request in browser (a100a5d)
1.8.6 (2022-05-26)
- cannot send multiple files (ec70e66)
1.8.5 (2022-05-01)
- esm not work (6d1cd16)
1.8.4 (2022-05-01)
- global middleware is polluted (1c00f0e)
1.8.3 (2022-04-26)
- cannot find node:stream (3137cad)
1.8.2 (2022-04-26)
- cannot find keq main file (41908fa)
1.8.1 (2022-04-25)
1.8.0 (2022-03-22)
- support custom request instance (2c05dec)
1.7.3 (2022-03-08)
- unable to send formdate request with file (a4ed415)
1.7.2 (2022-02-25)
- calling response.json() in middleware will cause garbled chinese characters (40ffe02)
- throw error when not set url origin (9040396)
1.7.1 (2022-02-24)
1.7.0 (2022-01-17)
- support keq-cli@2.x (6a3db36)
- ctx.request.url extends from whatwg url api (96dd049)
1.6.6 (2021-12-13)
- response cannot call .text, .json, .formData and .blob together (fa1605a)
1.6.5 (2021-12-13)
- iterator cannot be looped (022ca72)
1.6.4 (2021-12-13)
- the default array formatting of query is nonstandard (229e08c)
1.6.3 (2021-12-07)
- cannot invoke .blob() on the proxy response (4e21c90)
1.6.2 (2021-11-30)
1.6.1 (2021-11-26)
- retryCallback interface (aa25c99)
1.6.0 (2021-11-26)
- can stop retry (527678f)
1.5.0 (2021-11-26)
- add intial retry time option (accb899)
1.4.0 (2021-10-16)
1.3.1 (2021-10-16)
- cannot get middleware matcher interface (e285b73)
1.3.0 (2021-08-29)
- add an error message that the routing parameters cannot be resolved (ea267cb)
1.2.2 (2021-05-09)
- response.clone is not responding (ef1d66c)
1.2.1 (2021-05-06)
- cannot find mount.module (2031351)
1.2.0 (2021-05-05)
- add module mounter (c9727b4)
1.1.4 (2021-04-26)
- type error when set option resolveWithFullResponse (b32dc20)
1.1.3 (2021-04-21)
1.1.2 (2021-04-06)
1.1.1 (2021-04-06)
- missing export mount (a097b15)
1.1.0 (2021-04-04)
1.0.1 (2021-02-24)
1.0.0 (2021-02-23)
- routing parameters (4506df1)
0.0.11 (2020-12-30)
- filename is missing (347d427)
0.0.10 (2020-12-30)
- cannot send big file by form-data (d25218a)
0.0.9 (2020-12-29)
- add new option resolveWithOriginalResponse (158d32d)
0.0.8 (2020-11-20)
- support highWaterMark (85c77ff)
- middleware cannot modified resolveWithFullResponse (329b766)
0.0.7 (2020-11-20)
- don't set content-type when no request body (291bb65)
0.0.6 (2020-11-13)
0.0.5 (2020-10-18)
0.0.4 (2020-07-16)
0.0.3 (2020-05-30)
- cannot find fs (bf52f11)
- dependence missing (73f3409)
- throw error when set undefined to query value (5fb94a6)