Releases: zayne-labs/callapi
@zayne-labs/[email protected]
Patch Changes
-
b8147ce: fix(url): handle url normalization differently for protocol URLs
Modify normalizeURL to preserve protocol URLs by not adding a leading slash when the URL contains "http". Add tests to verify proper handling of both protocol and non-protocol URLs.
@zayne-labs/[email protected]
Patch Changes
- Updated dependencies [b8147ce]
- @zayne-labs/[email protected]
@zayne-labs/[email protected]
Patch Changes
-
584565d: refactor(callapi): improve auth typing and inference ♻️
refactor(callapi): rename
AuthtoAuthOptionand refine auth types (Bearer, Token, Basic, Custom) ♻️
feat(callapi): addInferAuthOptionto support schema-based auth typing ✨
fix(callapi): update usages ofAuthtoAuthOptionin hooks and common types 🔧
docs: update authorization documentation to reflect new types 📚
test: update auth tests to match new type definitions ✅
chore: update dependencies and lockfile 📦
@zayne-labs/[email protected]
Patch Changes
- Updated dependencies [584565d]
- @zayne-labs/[email protected]
@zayne-labs/[email protected]
@zayne-labs/callapi
1.11.31
Patch Changes
-
8b4fe33: refactor(callapi): improve type naming and validation handling
- rename CallApiSuccessOrErrorVariant to CallApiResultSuccessOrErrorVariant for consistency
- simplify ResultModeMap type structure and remove redundant types
- enhance schema validation with support for per-field disable flags
- streamline request options validation and header resolution
- update tests to reflect changes in type names and validation behavior
-
c3b60d0: refactor: Improve type preview by wrapping withoutResponse with Prettify utility type
1.11.30
Patch Changes
-
026a76c: refactor(callapi): improve type inference and global declarations ♻️
fix(callapi): move
ReadableStreamglobal declaration toreset.d.tsto prevent tsdown for always bundling it 🚚feat(callapi): use
NoInferUnMaskedhelper for over NoInfer for better tooltips ✨fix(callapi, types): add
NoInferusage to sharedOptions type to prevent middlewares and hooks from inferring the data and error as unknown🔧
1.11.29
Patch Changes
-
d49f07d: fix(callapi): Fix snd refactor types
- refactor(types): Rename
GetCallApiResulttoInferCallApiResult - refactor(core): Improve
SharedExtraOptionsto support context overriding - fix(stream): Add default generic to
ReadableStreamaugmentation - docs(middlewares): Fix caching plugin usage and enable twoslash
- ci(workflows): Update pnpm version to 10.24.0
- chore(deps): Update lockfile
- refactor(types): Rename
-
75163e4: refactor(types): rename InferredPluginOptions to InferredExtraOptions for consistency
docs: update plugin and client type references in documentation
fix: downgrade prettier to 3.6.2 due to compatibility issues
style: reorganize imports in layout.shared.tsx
1.11.28
Patch Changes
- 91a8114: refactor(callapi): further improve type simplification in a few core areas
- Add GetMergedCallApiContext type for better context merging
- Simplify Hooks interface by removing redundant generic params
- Update Middlewares interface to support context types
- Remove type-preserving overload from toFormData utility
- Reorganize imports in test files
1.11.27
Patch Changes
- ffc4873: refactor(core): ♻️ Standardize context types and generics
- refactor(types): Introduce
DefaultCallApiContextand update default generic parameters across config types - refactor(hooks): Update hook context types to be generic and accept
TCallApiContext - refactor(types): Rename
InferExtendSchemaConfigContexttoGetExtendSchemaConfigContext - refactor(types): Move
InferParamsFromRoutetoconditional-types.ts - refactor(core): Remove
types/index.tsand updatesrc/index.tsexports - chore(deps): Update lockfile
- refactor(types): Introduce
1.11.26
Patch Changes
-
6f5b3f9: feat: add null and undefined to allowed values
-
829431b: refactor(callapi): rename CallApiEnv to CallApiContext and related types
Rename CallApiEnv to CallApiContext to better reflect its purpose as a context provider rather than environment configuration. Update all related types and functions to use the new naming convention, including createFetchClientWithEnv becoming createFetchClientWithContext. This change improves code clarity and maintainability.
1.11.25
Patch Changes
- 70487f8: chore(dev): 🔧 Update dev app dependencies in apps/dev/package.json
chore(docs): 🧹 Remove generated .next type files and outdated logos
docs(docs): 📝 Update docs pages, OG routes, components, metadata, and config
chore(repo): 📦 Update root package.json and pnpm-lock.yaml
chore(plugins): 📦 Adjust callapi-plugins package.json
docs(callapi): 📝 Refresh SOCIAL_MEDIA_POST.md formatting
refactor(core): ♻️ Overhaul createFetchClient internals and options handling
refactor(core): 🔧 Tidy main index exports
refactor(types): 🔧 Improve common, conditional, and helper type definitions
refactor(core): ♻️ Streamline result handling logic
refactor(utils): 🔧 Update common utilities for consistency
1.11.24
Patch Changes
- 8671045: refactor(type-helpers): revert to older version of satisfies type due to errors from callback properties in defineBaseConfig
1.11.23
Patch Changes
-
78c1364: refactor(types): 🔧 Improve type definitions and helper functions
-
refactor(types): Rename
MatchExactObjectTypewithSatisfies -
refactor(utils): Enhance
defineBaseConfigwith function overload support -
chore(config): Update tsdown config from
OptionstoUserConfig -
refactor(index): Minor updates to main export file
feat(types): add BaseSchemaRouteKeyPrefixes type and refactor route types
Add new type for schema route key prefixes to improve type organization and reuse.
Refactor BaseCallApiSchemaRoutes to use the new type for better maintainability.
-
1.11.22
Patch Changes
- de2f92a: refactor: change how validation errors are displayed
1.11.21
Patch Changes
-
6782be6: refactor(types): 🔄 Use InferSchemaInput instead of InferSchemaOutput for input types like query and params to avoid the issue of lying to ts
feat(validation): Export
InferSchemaResulttype from validation module.
1.11.20
Patch Changes
-
8f2f684: fix(callapi): add response-less variant types for API results
Introduce new type variants (SuccessVariantWithoutResponse and ErrorVariantWithoutResponse) to properly type API results when response field is omitted. This provides better type safety than simple Omit operation.
1.11.18
Patch Changes
-
165b969: refactor(result): improve type definition for withoutResponse mode
Use Omit<TComputedResult, "response"> instead of union type to better represent the structure when response is excluded
1.11.17
Patch Changes
- ab889c8: feat: add missing define helpers
1.11.16
Patch Changes
-
dac80c9: refactor(validation)!: change fallback route schema key to @default
The fallback route schema key has been updated from '.' to '@default' for better clarity and consistency. The type definition has been moved to constants/validation.ts and imported where needed to improve code organization.
1.11.15
Patch Changes
- 5672cc7: feat: re-add withoutResponse resultMode option
1.11.12
Patch Changes
- 6958f4f: refactor(validation): improve type inference and dedupe logic
- Refactor type inference to handle input/output variants separately
- Optimize dedupe strategy with proper task queue scheduling
- Move fallBackRouteSchemaKey to constants
- Update build config to include constants exports
1.11.9
Patch Changes
- 89c1cef: fix: slight error in types
1.11.8
Patch Changes
- f64dae5: fix: enhance CallAPI type definitions and configuration options
1.11.7
Patch Changes
- 1bcf35f: refactor(core): 🔄 Reorganize utility functions and improve code structure
- refactor(utils): Move helpers.ts to utils/external/body.ts
- feat(utils): Add new external utility modules for define and guards
- refactor(core): Remove defineHelpers.ts in favor of utils/external/define.ts
- refactor(utils): Delete utils/index.ts and create utils/external/index.ts
- docs(validation): Update validation documentation
- chore(dev): Update client and server code in dev app
- chore(plugins): Modify logger implementation
1.11.6
Patch Changes
- d5c0a35: feat(utils): add FormData conversion utility and improve query string handling
- Add
toFormDatautility for converting objects to FormData - Enhance support for different data types in FormData conversion
- Move
toQueryStringto a separate helpers file for better organization - Add type-preserving mode for FormData conversion
- Improve documentation for new utility functions
- Update Vitest to version 4.0.1 in package dependencies
- Add
isBlobtype guard to utils - Refactor and clean up utility functions
- Add
1.11.5
Patch Changes
- 63ecf19: fix(callapi): improve dedupe key handling and update docs formatting
- Fix dedupe key resolution logic to properly handle undefined values
- Update type definitions to allow undefined return values for dedupe callbacks
- Normalize indentation in README.md examples
- Add .*md to prettierignore
1.11.4
Patch Changes
-
8c31997: refactor(dedupe): extract dedupe cache scope key logic to function
Move the dedupe cache scope key resolution logic into a separate function for better maintainability and reusability. Also update the type definition to support function values.
1.11.3
Patch Changes
- 70ebf9e: refactor(callapi): consolidate default options and improve type safety
- Rename default-options.ts to defaults.ts for better clarity
- Add new CallApiSuccessOrErrorVariant type for better type safety
- Improve error handling with more specific error result types
- Update imports across multiple files to use new defaults.ts
- Refactor result type handling for better maintainability
1.11.2
Patch Changes
-
8006bfc: feat(middlewares): add middleware documentation and refactor fetch middleware implementation
refactor(callapi): rename composeAllHooks to composeHooksFromArray and composeAllMiddlewares to composeMiddlewaresFromArray
refactor(callapi): update fetch middleware to receive request context
docs: add comprehensive middlewares documentation with examples
chore: update dependencies across packages
style: standardize zod imports from namespace to named imports
1.11.1
Patch Changes
-
f0b9575: feat(type-helpers): add RemovePrefix utility type for key transformation
refactor(retry): simplify retry opti...
@zayne-labs/[email protected]
@zayne-labs/callapi-plugins
4.0.31
Patch Changes
- Updated dependencies [8b4fe33]
- Updated dependencies [c3b60d0]
- @zayne-labs/[email protected]
4.0.30
Patch Changes
- Updated dependencies [026a76c]
- @zayne-labs/[email protected]
4.0.29
Patch Changes
- Updated dependencies [d49f07d]
- Updated dependencies [75163e4]
- @zayne-labs/[email protected]
4.0.28
Patch Changes
- Updated dependencies [91a8114]
- @zayne-labs/[email protected]
4.0.27
Patch Changes
- Updated dependencies [ffc4873]
- @zayne-labs/[email protected]
4.0.26
Patch Changes
- Updated dependencies [6f5b3f9]
- Updated dependencies [829431b]
- @zayne-labs/[email protected]
4.0.25
Patch Changes
- Updated dependencies [70487f8]
- @zayne-labs/[email protected]
4.0.24
Patch Changes
- Updated dependencies [8671045]
- @zayne-labs/[email protected]
4.0.23
Patch Changes
- Updated dependencies [78c1364]
- @zayne-labs/[email protected]
4.0.22
Patch Changes
- Updated dependencies [de2f92a]
- @zayne-labs/[email protected]
4.0.21
Patch Changes
- Updated dependencies [6782be6]
- @zayne-labs/[email protected]
4.0.20
Patch Changes
- Updated dependencies [8f2f684]
- @zayne-labs/[email protected]
4.0.18
Patch Changes
- Updated dependencies [165b969]
- @zayne-labs/[email protected]
4.0.17
Patch Changes
- Updated dependencies [ab889c8]
- @zayne-labs/[email protected]
4.0.16
Patch Changes
- Updated dependencies [dac80c9]
- @zayne-labs/[email protected]
4.0.15
Patch Changes
- Updated dependencies [5672cc7]
- @zayne-labs/[email protected]
4.0.12
Patch Changes
- Updated dependencies [6958f4f]
- @zayne-labs/[email protected]
4.0.9
Patch Changes
- Updated dependencies [89c1cef]
- @zayne-labs/[email protected]
4.0.8
Patch Changes
- Updated dependencies [f64dae5]
- @zayne-labs/[email protected]
4.0.7
Patch Changes
- Updated dependencies [1bcf35f]
- @zayne-labs/[email protected]
4.0.6
Patch Changes
- Updated dependencies [d5c0a35]
- @zayne-labs/[email protected]
4.0.5
Patch Changes
- Updated dependencies [63ecf19]
- @zayne-labs/[email protected]
4.0.4
Patch Changes
- Updated dependencies [8c31997]
- @zayne-labs/[email protected]
4.0.3
Patch Changes
- Updated dependencies [70ebf9e]
- @zayne-labs/[email protected]
4.0.2
Patch Changes
- Updated dependencies [8006bfc]
- @zayne-labs/[email protected]
4.0.1
Patch Changes
- Updated dependencies [f0b9575]
- @zayne-labs/[email protected]
4.0.0
Patch Changes
- Updated dependencies [3860cb7]
- @zayne-labs/[email protected]
3.1.8
Patch Changes
- Updated dependencies [ee21de9]
- @zayne-labs/[email protected]
3.1.7
Patch Changes
- Updated dependencies [8437089]
- @zayne-labs/[email protected]
3.1.6
Patch Changes
- Updated dependencies [1cd3367]
- @zayne-labs/[email protected]
3.1.2
Patch Changes
-
edf52fb: feat(validation): add issueCause to ValidationError and improve schema validation
- Add issueCause field to ValidationError to track validation failure source
- Refactor schema validation to use full schema context
- Update logger plugin to support basic and verbose modes
- Fix package.json exports configuration
- Update tests to include new issueCause field
-
Updated dependencies [edf52fb]
- @zayne-labs/[email protected]
3.1.0
Minor Changes
-
1b53dd1: feat(logger): enhance logger plugin with granular control
Add ability to control logging for specific events individually by making the
enabledoption accept either a boolean or an object with event-specific flags. Also added newonValidationErrorhook and bumped version to 1.1.0.chore: update dependencies across multiple packages
3.0.2
Patch Changes
- Updated dependencies [c69f3d6]
- @zayne-labs/[email protected]
3.0.1
Patch Changes
- Updated dependencies [605af9d]
- @zayne-labs/[email protected]
3.0.0
Patch Changes
- Updated dependencies [e78a454]
- @zayne-labs/[email protected]
2.0.9
Patch Changes
- Updated dependencies [d393723]
- @zayne-labs/[email protected]
2.0.8
Patch Changes
- Updated dependencies [4a9fcdf]
- @zayne-labs/[email protected]
2.0.7
Patch Changes
- Updated dependencies [40c8a4e]
- @zayne-labs/[email protected]
2.0.6
Patch Changes
- Updated dependencies [fc435f4]
- @zayne-labs/[email protected]
2.0.5
Patch Changes
- Updated dependencies [b47396f]
- @zayne-labs/[email protected]
2.0.4
Patch Changes
- Updated dependencies [c2f7fea]
- @zayne-labs/[email protected]
2.0.3
Patch Changes
- Updated dependencies [5c6900d]
- @zayne-labs/[email protected]
2.0.2
Patch Changes
- Updated dependencies [7d4765f]
- @zayne-labs/[email protected]
2.0.1
Patch Changes
- Updated dependencies [991ac01]
- @zayne-labs/[email protected]
2.0.0
Patch Changes
- Updated dependencies [9627f3e]
- @zayne-labs/[email protected]
1.0.10
Patch Changes
- Updated dependencies [00c0d7f]
- @zayne-labs/[email protected]
1.0.9
Patch Changes
- Updated dependencies [9f3b938]
- @zayne-labs/[email protected]
1.0.8
Patch Changes
- Updated dependencies [1de63d3]
- @zayne-labs/[email protected]
1.0.7
Patch Changes
- Updated dependencies [6e259a6]
- @zayne-labs/[email protected]
1.0.6
Patch Changes
- Updated dependencies [ee7659d]
- @zayne-labs/[email protected]
1.0.5
Patch Changes
- Updated dependencies [03f69ce]
- @zayne-labs/[email protected]
1.0.4
Patch Changes
- Updated dependencies [360b0b7]
- @zayne-labs/[email protected]
1.0.3
Patch Changes
- Updated dependencies [4864919]
- @zayne-labs/[email protected]
1.0.2
Patch Changes
- Updated dependencies [9d8f72d]
- @zayne-labs/[email protected]
1.0.1
Patch Changes
- Updated dependencies [3a150ba]
- @zayne-labs/[email protected]
1.0.0
Patch Changes
- Updated dependencies [7da7707]
- @zayne-labs/[email protected]
0.0.3
Patch Changes
- Updated dependencies [eb629cf]
- @zayne-labs/[email protected]
0.0.2
Patch Changes
- Updated dependencies [434dec2]
- @zayne-labs/[email protected]
0.0.1
Patch Changes
- ce8ba66: ➕ feat(logger): add consola integration for improved logging capabilities
- Updated dependencies [ce8ba66]
- @zayne-labs/[email protected]
@zayne-labs/[email protected]
Patch Changes
-
8b4fe33: refactor(callapi): improve type naming and validation handling
- rename CallApiSuccessOrErrorVariant to CallApiResultSuccessOrErrorVariant for consistency
- simplify ResultModeMap type structure and remove redundant types
- enhance schema validation with support for per-field disable flags
- streamline request options validation and header resolution
- update tests to reflect changes in type names and validation behavior
-
c3b60d0: refactor: Improve type preview by wrapping withoutResponse with Prettify utility type
@zayne-labs/[email protected]
Patch Changes
- Updated dependencies [8b4fe33]
- Updated dependencies [c3b60d0]
- @zayne-labs/[email protected]
@zayne-labs/[email protected]
Patch Changes
-
026a76c: refactor(callapi): improve type inference and global declarations ♻️
fix(callapi): move
ReadableStreamglobal declaration toreset.d.tsto prevent tsdown for always bundling it 🚚feat(callapi): use
NoInferUnMaskedhelper for over NoInfer for better tooltips ✨fix(callapi, types): add
NoInferusage to sharedOptions type to prevent middlewares and hooks from inferring the data and error as unknown🔧
@zayne-labs/[email protected]
Patch Changes
-
d49f07d: fix(callapi): Fix snd refactor types
- refactor(types): Rename
GetCallApiResulttoInferCallApiResult - refactor(core): Improve
SharedExtraOptionsto support context overriding - fix(stream): Add default generic to
ReadableStreamaugmentation - docs(middlewares): Fix caching plugin usage and enable twoslash
- ci(workflows): Update pnpm version to 10.24.0
- chore(deps): Update lockfile
- refactor(types): Rename
-
75163e4: refactor(types): rename InferredPluginOptions to InferredExtraOptions for consistency
docs: update plugin and client type references in documentation
fix: downgrade prettier to 3.6.2 due to compatibility issues
style: reorganize imports in layout.shared.tsx