Skip to content

Releases: elbywan/wretch

2.2.0

03 Dec 10:24
Compare
Choose a tag to compare

2.2.0 (2022-12-03)

🏭 New feature(s)

Add progress addon (2bae524), closes #154

Wretch now accepts a callback to monitor download progress.

🔗 Documentation.

import ProgressAddon from "wretch/addons/progress"
 
wretch("some_url")
  // Register the addon
  .addon(ProgressAddon())
  .get()
  // Log the progress as a percentage of completion
  .progress((loaded, total) => console.log(`${(loaded / total * 100).toFixed(0)}%`))

⬆️ 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)

2.1.5

15 Oct 08:48
Compare
Choose a tag to compare

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

28 Sep 21:03
Compare
Choose a tag to compare

2.1.4 (2022-09-28)

🐛 Bug fix(es)

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

2.1.3

28 Sep 06:31
Compare
Choose a tag to compare

2.1.3 (2022-09-28)

🐛 Bug fix(es)

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

2.1.2

27 Sep 16:13
Compare
Choose a tag to compare

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

03 Sep 10:29
Compare
Choose a tag to compare

2.1.1 (2022-09-03)

🐛 Bug fix(es)

  • Fix typo in function name resolveWithLatestReponse -> resolveWithLatestResponse #141 (d82cfd5), closes #141

2.1.0

03 Sep 10:28
Compare
Choose a tag to compare

2.1.0 (2022-09-03)

🏭 New feature(s)

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

📝 Documentation update(s)

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

2.0.4

18 Aug 07:47
Compare
Choose a tag to compare

2.0.4 (2022-08-18)

🎨 Code improvement(s)

  • Harmonize WretchError types (1981837)

2.0.3

16 Aug 17:00
Compare
Choose a tag to compare

2.0.3 (2022-08-16)

🎨 Code improvement(s)

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

2.0.2

03 Aug 10:46
Compare
Choose a tag to compare

2.0.2 (2022-08-03)

🐛 Bug fix(es)

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