Skip to content

Latest commit

 

History

History
1300 lines (630 loc) · 44.5 KB

CHANGELOG.md

File metadata and controls

1300 lines (630 loc) · 44.5 KB

2.8.1 (2024-03-07)

⬆️ Version update(s)

  • Bump follow-redirects from 1.15.1 to 1.15.4 (04fada6)

🐛 Bug fix(es)

  • Fix error callback type missing addons extensions (99a21a8), closes #222

2.8.0 (2023-12-30)

🏭 New feature(s)

  • addon.resolver can now be a function (0bf9aa8), closes #212

2.7.1 (2023-11-19)

⬆️ Version update(s)

  • Bump @babel/traverse from 7.19.4 to 7.23.2 (922005e)
  • Upgrade dependencies (d774826)

🐛 Bug fix(es)

  • Fix passing Headers/entries array as an argument to headers() (f32845a), closes #205

2.7.0 (2023-09-12)

🏭 New feature(s)

  • Support FileList objects in the form data addon (3582809), closes #201

📝 Documentation update(s)

  • Mention file names in the form data addon doc (411fb09), closes #197

2.6.0 (2023-06-28)

⬆️ Version update(s)

  • Bump engine.io and socket.io (3ef1738)
  • Bump socket.io-parser from 4.2.2 to 4.2.3 (b42aa0f)
  • Upgrade dependencies (b183cf7)

🏭 New feature(s)

📝 Documentation update(s)

  • Update node-fetch code snippet (3b6ac7e), closes #179

2.5.2 (2023-04-11)

🐛 Bug fix(es)

  • Fix catcher and resolve callback argument type. (76c295f), closes #177

📝 Documentation update(s)

  • Node.js 18 section wording (b696b1c)
  • Warn to use a custom until function to avoid retrying on 4xx error (1812c73), closes #176

2.5.1 (2023-02-27)

🐛 Bug fix(es)

  • Update resolver.ts - Add null verification to .get("Content-Type") (a68a524)

2.5.0 (2023-02-20)

⬆️ Version update(s)

  • Bump @fastify/multipart from 7.3.0 to 7.4.1 (e6074c9)
  • Bump @sideway/formula from 3.0.0 to 3.0.1 (8208646)
  • Bump ua-parser-js from 0.7.31 to 0.7.33 (1694fe6)

🏭 New feature(s)

  • Parse error type as json on proper content-type (ea9adbf), closes #171

2.4.1 (2023-01-20)

🐛 Bug fix(es)

  • Fix abort/progress addons state isolation issue (2b3a659)

2.4.0 (2023-01-19)

🏭 New feature(s)

  • Add skip argument to the retry middleware (746f8c9)

2.3.2 (2023-01-11)

🐛 Bug fix(es)

2.3.1 (2023-01-07)

🐛 Bug fix(es)

  • Fix middlewares and addons subpath exports (bfd2542), closes #160

📝 Documentation update(s)

  • Add limitations section to the readme (ad0a102), closes #159

2.3.0 (2022-12-12)

🏭 New feature(s)

  • Add url property to WretchError (a1f6ac6), closes #157

2.2.3 (2022-12-09)

🐛 Bug fix(es)

  • Better error catching precedence (107fc71), closes #155

2.2.2 (2022-12-03)

🐛 Bug fix(es)

  • Fix compatibility issue between the perfs and progress addons (b70e8cd)

2.2.1 (2022-12-03)

🐛 Bug fix(es)

  • Add missing export for the progress addon (ebb0577)
  • Add missing progress addon rollup config (bd6c89b)
  • Register the progress addon in the .all entry point (b01e03d)

2.2.0 (2022-12-03)

⬆️ Version update(s)

  • Bump dependencies including outdated rollup plugins (bcbcdc5)
  • Bump engine.io from 6.2.0 to 6.2.1 (6a93854)
  • Bump fastify from 4.9.2 to 4.10.2 (8ae9122)

🎨 Code improvement(s)

🐛 Bug fix(es)

  • Fix a minor Wretch type issue in addons (23ba7b1)

🏭 New feature(s)

2.1.5 (2022-10-15)

⬆️ Version update(s)

  • Bump dependencies (6043c75)
  • Bump fastify from 4.3.0 to 4.8.1 (130ccc2)

🐛 Bug fix(es)

  • Query addon should strip undefined values (ce395b5), closes #148

📝 Documentation update(s)

  • Add timeout code sample in the readme (beb51c8)
  • Fix outdated code comments (d4c546d)
  • Fix unpkg url in the readme (07d4a00)

2.1.4 (2022-09-28)

🐛 Bug fix(es)

  • Relax the typechecker when using resolve within defer (9e052c8), closes #146

2.1.3 (2022-09-28)

🐛 Bug fix(es)

  • Fix the retry middleware crashing on network errors (95cbad5), closes #145

2.1.2 (2022-09-27)

🎨 Code improvement(s)

  • Fix some linter warnings (c1029c8)

🐛 Bug fix(es)

  • Fix type inconsistencies in the body parsers (b7cae7e), closes #143

📝 Documentation update(s)

  • Fix throttling cache documentation link (f66859d)

2.1.1 (2022-09-03)

🐛 Bug fix(es)

  • Fix typo in function name #141 (d82cfd5), closes #141

2.1.0 (2022-09-03)

🏭 New feature(s)

  • Add ability to resolve with latest response to the retry middle (60a7453), closes #141

📝 Documentation update(s)

  • Remove outdated documentation entries for the retry middleware (7a5620c)

2.0.4 (2022-08-18)

🎨 Code improvement(s)

  • Harmonize WretchError types (1981837)

2.0.3 (2022-08-16)

🎨 Code improvement(s)

  • Export WretchError from the root index (76f9096), closes #79

2.0.2 (2022-08-03)

🐛 Bug fix(es)

  • Fix defer and resolve return types. (0c59c6c), closes #140

2.0.1 (2022-08-02)

⬆️ Version update(s)

  • Add unpkg field to map to the right bundle. (ae87b64)
  • Upgrade dependencies. (b6a1258)

📝 Documentation update(s)

2.0.0 (2022-08-01)

2.0.0-next.1 (2022-07-08)

🎨 Code improvement(s)

🔥 Breaking change(s)

  • Drop support on node < 14 (1ff926c)

📝 Documentation update(s)

  • Additional improvements (e79ff71)
  • Autogenerate API documentation and split it from the main README (c710a71)
  • Move svg asset and minor readme changes (30de07c)
  • Regenerate api doc (7ae5b57)
  • Small edits to the contributing file and renames scripts related t (abec7f0)
  • Update bundle size (1115d34)
  • Update companion website (d6bb842)
  • Update documentation (15fd187)

✅ Test improvement(s)

  • Fix resolvers test for node14 (ca8b559)
  • Fix test on node 18 (with polyfilled fetch) (d3b7b00)
  • Replace restify with fastify for mock server (9ee2cfc)
  • Run lint on CI (9b819d3)
  • Test in multiple version of node in CI (00d80a6)

2.0.0-next.0 (2022-07-03)

⬆️ Version update(s)

🎨 Code improvement(s)

  • Improved packaging and bundling (69c1e35)

🐛 Bug fix(es)

:docs: undefined

  • Update readme and website (2eb24dc)

🏭 New feature(s)

🔥 Breaking change(s)

  • Add url arg and harmonize replace/mixin arguments (8e4d0aa)
  • Complete refactoring (c2f5035)
  • Restore normal array behaviour for formdata and fix tests (6879d48), closes #119

📝 Documentation update(s)

  • Update browserstack badge. (91cad34)

✅ Test improvement(s)

1.7.10 (2022-05-21)

⬆️ Version update(s)

  • Bump minimist from 1.2.5 to 1.2.6 (6365ad0)
  • Bump moment from 2.24.0 to 2.29.2 (26e3889)
  • Bump to npm 8 (9d5758e)

🐛 Bug fix(es)

  • Ignore when the .perf promise throws (33407ea), closes #131

📝 Documentation update(s)

  • Update performance api node.js polyfill. (185420b)

✅ Test improvement(s)

  • Migrate to github actions. (4b93f43)

1.7.9 (2022-02-05)

🐛 Bug fix(es)

  • Body json serialization condition fix. (1c90fa3), closes #123

1.7.8 (2022-01-30)

⬆️ Version update(s)

  • Bump dependencies and npm audit. (881d17a)

🐛 Bug fix(es)

  • Fix error for opaque responses. (bbb5912), closes #121
  • Preserve exotic json content types when strigifying body. (d51c17b), closes #122

1.7.7 (2021-12-13)

🐛 Bug fix(es)

📝 Documentation update(s)

  • Update outdated badges. (f286481)

1.7.6 (2021-08-06)

⬆️ Version update(s)

🐛 Bug fix(es)

  • Prevent appending an extra ?/& for empty query strings. #114 (15464a8), closes #114

📝 Documentation update(s)

1.7.5 (2021-06-30)

⬆️ Version update(s)

  • Bump find-my-way from 2.2.1 to 2.2.5 (687a999)
  • Bump handlebars from 4.7.6 to 4.7.7 (0cb2ac2)
  • Bump hosted-git-info from 2.8.8 to 2.8.9 (c862315)
  • Bump ini from 1.3.5 to 1.3.7 (79fd31f)
  • Bump lodash from 4.17.19 to 4.17.21 (fe66a14)
  • Bump node-notifier from 8.0.0 to 8.0.1 (43cd685)
  • Bump ws from 7.3.1 to 7.4.6 (d0f89f1)
  • Bump y18n from 4.0.0 to 4.0.1 (6d0fbdc)
  • Upgrade dependencies. (805fade)

🐛 Bug fix(es)

  • Take into account the options argument headers when stringifying bo (23484fd), closes #75

📝 Documentation update(s)

  • Update readme import section (5970e6d)

1.7.4 (2020-10-14)

🐛 Bug fix(es)

  • Fix post with overloaded json content-type charset. (af48887)

📝 Documentation update(s)

  • Update package size approximation. (2399419)

1.7.3 (2020-10-12)

⬆️ Version update(s)

  • Bump lodash from 4.17.14 to 4.17.19 (c5c255f)
  • Bump node-fetch from 2.6.0 to 2.6.1 (d536ba5)
  • Upgrade dependencies (0bb3235)

🐛 Bug fix(es)

  • Allow custom charset with json body. (52d2caa), closes #90

📝 Documentation update(s)

1.7.2 (2020-04-13)

⬆️ Version update(s)

  • Bump acorn from 6.4.0 to 6.4.1 (24bc906)
  • Upgrade dependencies (76b32fd)

🐛 Bug fix(es)

  • Prevent overriding content-type when passing body in http methods. (f6f9302), closes #75

1.7.1 (2020-01-25)

🐛 Bug fix(es)

  • Fix crash on nested null formdata value. #68 (9c1adf0), closes #68

📝 Documentation update(s)

  • Update broken readme link. (e115c63)

1.7.0 (2020-01-25)

⬆️ Version update(s)

🏭 New feature(s)

  • Support nested objects in formData. #68 (90d9555), closes #68

1.6.0 (2019-11-27)

🏭 New feature(s)

1.5.5 (2019-10-15)

⬆️ Version update(s)

🐛 Bug fix(es)

  • Fix handling falsey values for body callback and payload. (2d99a4f), closes #58

📝 Documentation update(s)

  • Update readme browserstack badge. (eddfd91)

✅ Test improvement(s)

  • Restore latest browserstack matrix and add an exceptio (ef09fd8)
  • Use macos firefox on browserstack (e51048e)

1.5.4 (2019-07-16)

⬆️ Version update(s)

  • Upgrade packages to fix vulnerabilities. (dced4c1)

📝 Documentation update(s)

✅ Test improvement(s)

  • Add missing browser test (2f5498c)
  • Add missing browser tests (9bd7e4f)
  • Fix browserstack browser & os matrix. (451ef23)

1.5.3 (2019-07-11)

⬆️ Version update(s)

🐛 Bug fix(es)

  • Preserve headers on null/undefined argument (9e3fe0a), closes #52

1.5.2 (2019-04-28)

🐛 Bug fix(es)

  • Clear pending timeout when request resolves / fails (687570b), closes #50

📝 Documentation update(s)

  • Add 1.5.1 changelog (fd4386c)
  • Fix .catcher documentation typo. (2b98d6b)
  • Remove bad usage of .error in the readme (a5209d0)

1.5.1 (2019-03-17)

⬆️ Version update(s)

🐛 Bug fix(es)

  • Fix mutating catchers propagation to cloned wretchers (d207027), closes #44

📝 Documentation update(s)

  • Add the concept of middleware context to the readme. (50a78c5)
  • Change package kb size displayed in the html (b3ebb78)

✅ Test improvement(s)

  • CI build on node.js LTS (90290ab)
  • Test form-data with streams. (92af63a)

1.5.0 (2019-02-23)

⬆️ Version update(s)

  • Upgrade dependencies and fix package version in lock file (b17d10a)
  • Upgrade jest and rollup (0573f7a)

🎨 Code improvement(s)

🏭 New feature(s)

📝 Documentation update(s)

  • More details about the response types in the readme (270fe16)

1.4.2 (2018-10-21)

⬆️ Version update(s)

🎨 Code improvement(s)

  • Export typedefs at the root level (d2bcb13)

📝 Documentation update(s)

✅ Test improvement(s)

  • Improve performance timings test coverage (c4db506)

1.4.1 (2018-08-13)

⬆️ Version update(s)

🎨 Code improvement(s)

🐛 Bug fix(es)

  • Add default errorType to response object (c134efa)

✅ Test improvement(s)

  • Improve unit tests to check default error type (3f1bb4b), closes #c134
  • Prevent running browserstack on PRs (c350060)

1.4.0 (2018-07-10)

⬆️ Version update(s)

🔥 Breaking change(s)

  • Make .formUrl encode arrays in a standard way (f04c9af), closes #26

1.3.1 (2018-06-12)

⬆️ Version update(s)

🎨 Code improvement(s)

  • Launch the mock server aside of the test file. (35c5a4e)

📝 Documentation update(s)

  • Add bundlephobia badge. (0399a65)
  • Add paypal badge (cd98e4d)
  • Fix broken readme links. (75f767d)
  • Mention browserstack in the readme. (2f6ad8e)
  • Update readme package version (04f75ce)

1.3.0 (2018-06-09)

⬆️ Version update(s)

🐛 Bug fix(es)

  • Fix .url call when the url contains query parameters (e68764f)

🏭 New feature(s)

  • Add deferred callback chain. (10ddfe5)

🔥 Breaking change(s)

  • Add body argument shorthand to the http methods. (103cde3)

📝 Documentation update(s)

  • Mention the wretch-middlewares package in the readme (880c02c)
  • Update .query anchor (b2670d9)

1.2.0 (2018-05-24)

⬆️ Version update(s)

🏭 New feature(s)

  • Accept string argument in .query() #20 (b53cca3), closes #20

🔥 Breaking change(s)

  • Make .query() chainable #20 (1a6a7c8), closes #20

✅ Test improvement(s)

  • Add more node.js versions used by the travis CI (7d6d779)
  • Fixes for node.js v10 (0dcba96)

1.1.2 (2018-03-07)

⬆️ Version update(s)

🎨 Code improvement(s)

  • Relaxed Response & Options types (16c0b97)

✅ Test improvement(s)

  • Update tests with a working abortController polyfill (171ac48)

1.1.1 (2018-01-08)

⬆️ Version update(s)

🎨 Code improvement(s)

🏭 New feature(s)

  • Pass the original request to the catchers/resolvers callback (1e4d3a4)

📝 Documentation update(s)

  • Update middleware and intro (09b0dc1)

1.1.0 (2017-11-17)

⬆️ Version update(s)

🎨 Code improvement(s)

  • Comply with the commonjs typescript transpilation (#10) (6931ff6), closes #10
  • Refactor method function call (cf07316)
  • Remove irregular whitespace (7bc2990)

🐛 Bug fix(es)

  • Fix es6 const generated by rollup typescript helpers (6791721), closes #11

🏭 New feature(s)

  • Add middlewares helper. (#12) (b9c6a65), closes #12

📝 Documentation update(s)

  • Adding middlewares code samples (#12). (b43cb1b), closes #12
  • Update npm badge color (0eae7bb)
  • Update readme top message and remove experimental flag for abortin (e449b46)

1.0.0 (2017-10-20)

⬆️ Version update(s)

🎨 Code improvement(s)

  • Widen resolver return type (6e2b299)

🏭 New feature(s)

  • Add auth method to set the Authorization header. (1694396)
  • Add early resolvers with the resolve function (481803b)
  • Add HEAD and OPTIONS http methods. (3c30844)

📝 Documentation update(s)

  • Add homepage usage section, tagboxes and footer (fd3bcf7)
  • Bypass jekyll (22c957c)
  • Fix readme typo (9d1b4c6)
  • Readme modifications : fix method links, simplify polyfills, add h (e37ea0b)

✅ Test improvement(s)

  • Migrate from mocha to jest (f67bd84)

0.3.1 (2017-10-09)

⬆️ Version update(s)

📝 Documentation update(s)

  • Add homepage in package.json (c78a5dd)

0.3.0 (2017-10-09)

⬆️ Version update(s)

🎨 Code improvement(s)

  • Add polyfill getter method (ca49cfc)
  • Can now catch on error name (2a0f7e9)

🏁 Performance update(s)

  • Refactor perfs() to improve robustness and performance (7b2b27c)

🏭 New feature(s)

🔥 Breaking change(s)

  • The .options function now mixin by default (47b4630)
  • Remove .baseUrl and change .url behaviour (5142b02), closes #8

📝 Documentation update(s)

  • Add methods indexes and clarify some point in the readme (54dae1c)
  • Add minimalist companion website. (10f2197)
  • Add readme announcement. (d87a57d)
  • Fix readme typo (85852a6)
  • Fixed readme usage layout (7f8ea0f)
  • Update readme (7881e2c)

0.2.4 (2017-10-06)

⬆️ Version update(s)

🐛 Bug fix(es)

  • Fix perfs() concurrency issues (79f86ce)

0.2.3 (2017-10-06)

⬆️ Version update(s)

🎨 Code improvement(s)

  • Add module field in package.json (90431ff)
  • Add node.js partial support to the perf function (0045672)
  • Hide the changelog preset beneath a scripts folder + rewrite (696503c)

🏭 New feature(s)

  • Highly experimental perfs function. (6fa1d29)

📝 Documentation update(s)

  • Correct errorType typo (e058b7a)
  • Fix contributing typo (d12e29c)
  • Perfs() documentation (6c90e15)
  • Readme : image cdn and shorten unpkg link (8eac8c9)

✅ Test improvement(s)

0.2.2 (2017-10-04)

⬆️ Version update(s)

🎨 Code improvement(s)

  • Moves polyfills to the config object (2820e34)

🏭 New feature(s)

  • Allow non-global fetch & FormData (112b9cc)

0.2.1 (2017-10-03)

⬆️ Version update(s)

🎨 Code improvement(s)

  • Add custom changelog preset (023a73c)
  • change changelog format to atom (970bf7b)

🐛 Bug fix(es)

  • Fix baseUrl not mixing in options (5c90df4)

📝 Documentation update(s)

0.2.0 (2017-10-03)

⬆️ Version update(s)

🔥 Breaking change(s)

  • 🎨 Replace mixdefaults with a mixin flag. (c497f6e)

📝 Documentation update(s)

0.1.5 (2017-10-03)

⬆️ Version update(s)

🎨 Code improvement(s)

🏁 Performance update(s)

  • Use a Map instead of an Array for catchers (dba8e63)

0.1.4 (2017-10-03)

🎨 Code improvement(s)

🏁 Performance update(s)

  • [mix] small perf improvements (fb319eb)

🏭 New feature(s)

  • Add changelog (457852d)
  • Add global catchers with the catcher method (04b5cb9)

📝 Documentation update(s)

0.1.3 (2017-10-03)

⬆️ Version update(s)

🎨 Code improvement(s)

🐛 Bug fix(es)

  • Fix typos in mergeArrays (966cbeb)

🏭 New feature(s)

  • Add headers/content/body methods and better options type. (3c9c10e)

📝 Documentation update(s)

0.1.2 (2017-10-03)

⬆️ Version update(s)

🎨 Code improvement(s)

🏭 New feature(s)

📝 Documentation update(s)

0.1.1 (2017-10-03)

⬆️ Version update(s)

🎨 Code improvement(s)

  • Correct optional callbacks in declaration files (0b37983)

0.1.0 (2017-10-03)

⬆️ Version update(s)

🎨 Code improvement(s)

  • Add coverage (517ee5d)
  • Move from webpack to rollup and restore source maps (6515d7a)

🔥 Breaking change(s)

📝 Documentation update(s)

✅ Test improvement(s)

0.0.1 (2017-10-03)

⬆️ Version update(s)

🏭 New feature(s)