Skip to content

Releases: Micene09/scarlett

v2.0.5

12 Mar 09:22
Compare
Choose a tag to compare

👉 What's changed

📖 Full Changelog: v2.0.4...v2.0.5

v2.0.4

24 Sep 19:16
Compare
Choose a tag to compare
  • Improved type inference when setting options
  • Improved and exposing Standard Fetch API native options

Full Changelog: v2.0.3...v2.0.4

v2.0.3

06 Sep 09:34
Compare
Choose a tag to compare
  • More documentation improvements
  • Fix Rest Client Builder implementations and overrides behaviours
  • Add more options override tests

Full Changelog: v2.0.2...v2.0.3

v2.0.2

09 Aug 13:43
Compare
Choose a tag to compare

Fix npm publish folders.

v2.0.1

09 Aug 13:18
Compare
Choose a tag to compare

Fix types export.

v2.0.0

09 Aug 08:05
Compare
Choose a tag to compare

🚀 Version 2.0

  • New website and documentation: link
  • Rewrite to increase modularity at core level
  • Improved type level checks and type inference
  • Introduced Functional and Class APIs
  • Add auto-expire logic on built-in cache

🛠️ Breaking changes

  • Removed RestClient class as default export
  • Renamed option internalCache to cacheInMemory

Visit the migration guide to boost the update process.

v1.5.0

14 May 22:23
Compare
Choose a tag to compare

💎 Improvements

  • Update node 18 lts by @pablobbb in #6
  • Improved typings on hooks (onRequest, onResponse, onError) and on throwExcluding's callbacks
  • Improved typings on RestError, RestOptions and RestClient
  • Wiki page
  • Updated readme.md

⚙️ Internals

  • Updated dependencies
  • Added pull requests status checks

Full Changelog: v1.4.1...v1.5.0

v1.4.1

30 Jun 13:49
Compare
Choose a tag to compare
  • Fixed build errors
  • Doc image updated

v1.4.0

30 Jun 13:42
Compare
Choose a tag to compare

⚡ Improvements

  • Switched to vitest

🐛 Bug fixes

  • Fixed overrideStrategy: merge on body, that will be preserved

🥂 New Contributors

v1.3.0

17 Jan 22:10
Compare
Choose a tag to compare

💎 New responseType behaviours

Now it can be defined even as:

  • A sync method returning a HttpResponseFormatType
    (request: IRequest, fetchResponse: Response | null) => HttpResponseFormatType
  • An async method resolving a HttpResponseFormatType
    (request: IRequest, fetchResponse: Response | null) => Promise<HttpResponseFormatType>

Check out the doc to see more details.

⚙️ Internal updates

Updated internal dependencies and typings.