Skip to content

Releases: suhaotian/xior

v0.7.7

15 Mar 11:36
Compare
Choose a tag to compare

What's Changed?

  • Feat: Support application/vnd.api+json and application/x-www-form-urlencoded; charset=utf-8 in Request Content-Type
  • Chore: Remove export { type A }'s type in *.d.ts after build (some old TypeScript versions (before 3.8) don't support this syntax)
  • Chore: Improve README and make minor code improvements

Full Changelog: v0.7.6...v0.7.7

v0.7.6

09 Mar 01:52
Compare
Choose a tag to compare

What's Changed?

  • Fix: when params is undefined, throw TypeError [Error]: Cannot convert undefined or null to object

Full Changelog: v0.7.5...v0.7.6

v0.7.5

09 Mar 00:45
Compare
Choose a tag to compare

What's Changed?

  • Fix(build): Change target from esnext to es2015:

In some boilerplates(expo, vue-cli), will throw error Static class blocks are not enabled. Please add @babel/plugin-transform-class-static-block to your configuration.

Full Changelog: v0.7.4...v0.7.5

v0.7.4

08 Mar 15:36
Compare
Choose a tag to compare

What's Changed?

  • Fix(plugins): For the errorRetry plugin, when enableRetry is a function returning undefined or is undefined,
    it only retries GET requests and skips POST requests; same with other plugins adjustments.
  • Change package bundler to tsup from bunchee reduce the lib size from 7KB(GZIP 3KB) to 5KB(GZIP 2.5KB)
  • Chore: Add https://www.jsdocs.io/package/xior to README's API Reference section.
  • Chore: Update examples code

Full Changelog: v0.7.3...v0.7.4

v0.7.3

07 Mar 03:47
Compare
Choose a tag to compare

What's Changed?

  • Plugins: use relative path to import utils and types
  • Refactor: minor reduce size

Full Changelog: v0.7.2...v0.7.3

v0.7.2

05 Mar 11:15
Compare
Choose a tag to compare

What's Changed?

  • Refactor: Don't exports unnecessary internal properties.
  • Chore: update README.

Full Changelog: v0.7.1...v0.7.2

v0.7.1

05 Mar 00:47
Compare
Choose a tag to compare

What's Changed?

  • Chore: remove ts-deepmerge from dependencies(but you still can use deep merge function import { merge } from 'xior')
  • Refactor: minor reduce size
  • Docs: update README to fix about node-fetch agent example code

Full Changelog: v0.7.0...v0.7.1

v0.7.0

04 Mar 16:53
Compare
Choose a tag to compare

What's Changed?

  • Feat: Add fetch option; now we can use node-fetch and undici as replacements for the built-in fetch to support the proxy feature, or you can easily use other fetch implementations. How can I use custom fetch implementation or How to support proxy feature?
  • Tests: Add tests for node-fetch and undici replacements.
  • Refactor: Minor improvement.
  • Build: Add sourcemap output by default with updated bunchee version.
  • README: Update README about fetch option.
  • Good to Know: Change internal properties ._RSIRun to _did and .fetch to ._.
  • Chore: Update publish script to show Provenance:
image

Full Changelog: v0.6.3...v0.7.0

v0.6.3

18 Jan 23:20
Compare
Choose a tag to compare

What's Changed

  • Refactor: Add cacheKey to cache plugin for persistent cache
  • Tests: Add persistent cache test

Resolve issue #33

Full Changelog: v0.6.2...v0.6.3

v0.6.2

15 Jan 10:51
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.6.1...v0.6.2