zodios

typescript http client and server with zod validation

MIT License

Downloads
364.8K
Stars
1.7K
Committers
28

Bot releases are visible (Hide)

zodios - Release v9.3.2

Published by github-actions[bot] about 2 years ago

Changelog

All notable changes to this project will be documented in this file.

  • fix issue with response plugins not being consistently ordered
zodios - Release v9.3.1

Published by github-actions[bot] about 2 years ago

Changelog

All notable changes to this project will be documented in this file.

zodios - Release v9.3.0

Published by github-actions[bot] about 2 years ago

Changelog

All notable changes to this project will be documented in this file.
new hooks:

You don't need to set the immutable flag if you use useImmutableQuery, only if you also want to use your aliased version.
For example without immutable flag, your alias useSearchUser will by default resolve to use useMutation, and when setting it, it will resolve to useImmutableQuery.

There is for the same purpose a useImmutableInfiniteQuery to allow you to do infinite queries.
Note there is no alias for infinite queries.

zodios - Release v9.2.0

Published by github-actions[bot] about 2 years ago

Changelog

All notable changes to this project will be documented in this file.

  • new helper to create a single endpoint: #149
zodios - Release v9.1.1

Published by github-actions[bot] about 2 years ago

Changelog

All notable changes to this project will be documented in this file.

  • enable async zod transformations : #146 , thanks to @r0m4n27
zodios - Release v9.1.0

Published by github-actions[bot] about 2 years ago

Changelog

All notable changes to this project will be documented in this file.

  • Improved docs
  • improved zodios errors when validating zod schemas
  • deprecated asApi, asParameters, asErrors and asCrudApi (they are still there)
  • added makeApi, makeParameters, makeErrors, makeCrudApi as these names are more suggestive that you need to use them to create the underlying definitions
zodios - Release v9.0.1

Published by github-actions[bot] about 2 years ago

Changelog

All notable changes to this project will be documented in this file.

  • upgrade internal dev deps
  • headers are now allowed to not be declared in the API definition
zodios - Release v9.0.0

Published by github-actions[bot] about 2 years ago

Changelog

All notable changes to this project will be documented in this file.

  • all zodios parameters are now readonly to indicate that zodios doe not change provided inputs
  • only breaking change is for @zodios/react library, should be transparent for most users
  • all @zodios libraries will have their major version aligned
zodios - Release v8.1.0

Published by github-actions[bot] about 2 years ago

Changelog

All notable changes to this project will be documented in this file.

  • added api error definition to allow @zodios/express to generate full openapi spec
zodios - Release v8.0.1

Published by github-actions[bot] about 2 years ago

Changelog

All notable changes to this project will be documented in this file.

  • fix a really bad bug with compiler taking 100% cpu
zodios - Release v8.0.0

Published by github-actions[bot] about 2 years ago

Changelog

All notable changes to this project will be documented in this file.

  • BREAKING CHANGE: api definition no longer use as const. check migration guide to v8.
zodios - Release v7.2.0

Published by github-actions[bot] about 2 years ago

Changelog

All notable changes to this project will be documented in this file.

  • zodios now has support for fetch with version 7.2 and @zodios/plugins v2.2.0
zodios - Release v7.1.5

Published by github-actions[bot] about 2 years ago

Changelog

All notable changes to this project will be documented in this file.

  • Enforce immutability of config in plugins to evoid side effects
zodios - Release v7.1.4

Published by github-actions[bot] about 2 years ago

Changelog

All notable changes to this project will be documented in this file:

  • added zod input validation
  • fix issues with zod input transformation #91
zodios - Release v7.1.3

Published by github-actions[bot] over 2 years ago

Changelog

Zodios has a new plugin system that is incompatible with the previous one that was based on axios interceptors.
Zodios has now it's own interceptors, with more options than axios.
Indeed you can attach plugins to a specific endpoint or even override a plugin (usefull to replace zodios own internal plugins).

Now internally form-data, form-url and zod validation are made with this new plugin system. And since you can override them, you can then change their behaviour if you want.

For more information about the plugin system, take a look at the documentation.

zodios - Release v6.4.0

Published by github-actions[bot] over 2 years ago

Changelog

All notable changes to this project will be documented in this file.

  • exposes utility type ResponseByAlias
  • update internal dependencies
zodios - Release v6.3.0

Published by github-actions[bot] over 2 years ago

Changelog

Impoved Error for validation.

ZodiosError {
  cause: ZodError;
  response: OriginalResponse;
  config: ZodiosConfig;
}
zodios - Release v6.2.2

Published by github-actions[bot] over 2 years ago

Changelog

All notable changes to this project will be documented in this file.

zodios - Release v6.2.1

Published by github-actions[bot] over 2 years ago

Changelog

All notable changes to this project will be documented in this file.

zodios - Release v6.2.0

Published by github-actions[bot] over 2 years ago

Changelog

All notable changes to this project will be documented in this file.