- update readme
- change buffer import to use "node:buffer" to publish on jsr
- fix retry causing the request to be sent multiple times
- break
retryDelay
function signature to add error that caused retry and an abort controller to cancel retrying.
- update
retryDelay
signature for more consistency with other stuff like interceptors.
- update
retryDelay
signature
- add
retry
andretryDelay
- add
url
prop toExtendedRequest
that is passed as first arg to interceptors.
- remmove
validator
. - add
interceptors
.
- fix a small issue when no header was given
- add support for baseURL option
- export ExtendedRequest type for validator typing
- add support for initial headers when creating wrapper
- remove unnecessary header utils
- improve types for validator for easier header usage
- fix timeout functionality as the abort signal is now supported as of deno v1.11
Version v5.0.0+ is the recommended version now (abort controller is used now). please don't use v4 of fetch goody anymore.
- due to adding
timeout
option and the way it works, it may cause issues. so I release this as breaking change.
- fix
form
keys not getting url encoded.
- BREAKING CHANGE: Changed
form
option toformData
and usedform
option as aapplication/x-www-form-urlencoded
value instead ofmultipart/form-data
. this means anything meant to be sent as amultipart/form-data
now should be passed asformData
option.
- Allow array of strings as value in form option.
- BREAKING CHANGE: rename
fetchFn
tofetch
in WrapFetchOptions - create WrapFetchOptions type
- add a validator option to WrapFetchOptions
- the validator that is passed to WrapFetchOptions will run before the validator of ExtendedRequestInit
- pass init to validator
- add validator option
- update docs a bit
- fix bug introduced in last version and add test
- allow qs value to be undefined
- only add qs if value not undefined
- added support for "qs" option
- fix some code smells
- Add support for user-agent when wrapping.
- Very important fix for
ExtendedRequestInit
type. The type is also exported now. - Very important fix for FormData.
- automatically add method for object body (json).
- automatically build and use form data if
form
is defined insideinit