Skip to content

Releases: zayne-labs/callapi

@zayne-labs/[email protected]

16 Dec 00:07
a2a5df1

Choose a tag to compare

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]

16 Dec 00:06
a2a5df1

Choose a tag to compare

Patch Changes

@zayne-labs/[email protected]

15 Dec 22:53
ca2d7f0

Choose a tag to compare

Patch Changes

  • 584565d: refactor(callapi): improve auth typing and inference ♻️

    refactor(callapi): rename Auth to AuthOption and refine auth types (Bearer, Token, Basic, Custom) ♻️
    feat(callapi): add InferAuthOption to support schema-based auth typing ✨
    fix(callapi): update usages of Auth to AuthOption in 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]

15 Dec 22:53
ca2d7f0

Choose a tag to compare

Patch Changes

@zayne-labs/[email protected]

05 Dec 01:02

Choose a tag to compare

@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 ReadableStream global declaration to reset.d.ts to prevent tsdown for always bundling it 🚚

    feat(callapi): use NoInferUnMasked helper for over NoInfer for better tooltips ✨

    fix(callapi, types): add NoInfer usage 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 GetCallApiResult to InferCallApiResult
    • refactor(core): Improve SharedExtraOptions to support context overriding
    • fix(stream): Add default generic to ReadableStream augmentation
    • docs(middlewares): Fix caching plugin usage and enable twoslash
    • ci(workflows): Update pnpm version to 10.24.0
    • chore(deps): Update lockfile
  • 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 DefaultCallApiContext and update default generic parameters across config types
    • refactor(hooks): Update hook context types to be generic and accept TCallApiContext
    • refactor(types): Rename InferExtendSchemaConfigContext to GetExtendSchemaConfigContext
    • refactor(types): Move InferParamsFromRoute to conditional-types.ts
    • refactor(core): Remove types/index.ts and update src/index.ts exports
    • chore(deps): Update lockfile

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 MatchExactObjectType with Satisfies

    • refactor(utils): Enhance defineBaseConfig with function overload support

    • chore(config): Update tsdown config from Options to UserConfig

    • 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 InferSchemaResult type 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 toFormData utility for converting objects to FormData
    • Enhance support for different data types in FormData conversion
    • Move toQueryString to 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 isBlob type guard to utils
    • Refactor and clean up utility functions

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...

Read more

@zayne-labs/[email protected]

05 Dec 01:02

Choose a tag to compare

@zayne-labs/callapi-plugins

4.0.31

Patch Changes

4.0.30

Patch Changes

4.0.29

Patch Changes

4.0.28

Patch Changes

4.0.27

Patch Changes

4.0.26

Patch Changes

4.0.25

Patch Changes

4.0.24

Patch Changes

4.0.23

Patch Changes

4.0.22

Patch Changes

4.0.21

Patch Changes

4.0.20

Patch Changes

4.0.18

Patch Changes

4.0.17

Patch Changes

4.0.16

Patch Changes

4.0.15

Patch Changes

4.0.12

Patch Changes

4.0.9

Patch Changes

4.0.8

Patch Changes

4.0.7

Patch Changes

4.0.6

Patch Changes

4.0.5

Patch Changes

4.0.4

Patch Changes

4.0.3

Patch Changes

4.0.2

Patch Changes

4.0.1

Patch Changes

4.0.0

Patch Changes

3.1.8

Patch Changes

3.1.7

Patch Changes

3.1.6

Patch Changes

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]

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 enabled option accept either a boolean or an object with event-specific flags. Also added new onValidationError hook and bumped version to 1.1.0.

    chore: update dependencies across multiple packages

3.0.2

Patch Changes

3.0.1

Patch Changes

3.0.0

Patch Changes

2.0.9

Patch Changes

2.0.8

Patch Changes

2.0.7

Patch Changes

2.0.6

Patch Changes

2.0.5

Patch Changes

2.0.4

Patch Changes

2.0.3

Patch Changes

2.0.2

Patch Changes

2.0.1

Patch Changes

2.0.0

Patch Changes

1.0.10

Patch Changes

1.0.9

Patch Changes

1.0.8

Patch Changes

1.0.7

Patch Changes

1.0.6

Patch Changes

1.0.5

Patch Changes

1.0.4

Patch Changes

1.0.3

Patch Changes

1.0.2

Patch Changes

1.0.1

Patch Changes

1.0.0

Patch Changes

0.0.3

Patch Changes

0.0.2

Patch Changes

0.0.1

Patch Changes

@zayne-labs/[email protected]

03 Dec 11:09
66a77a2

Choose a tag to compare

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]

03 Dec 11:09
66a77a2

Choose a tag to compare

Patch Changes

@zayne-labs/[email protected]

01 Dec 11:44
5919242

Choose a tag to compare

Patch Changes

  • 026a76c: refactor(callapi): improve type inference and global declarations ♻️

    fix(callapi): move ReadableStream global declaration to reset.d.ts to prevent tsdown for always bundling it 🚚

    feat(callapi): use NoInferUnMasked helper for over NoInfer for better tooltips ✨

    fix(callapi, types): add NoInfer usage to sharedOptions type to prevent middlewares and hooks from inferring the data and error as unknown🔧

@zayne-labs/[email protected]

01 Dec 00:30
c2e26ab

Choose a tag to compare

Patch Changes

  • d49f07d: fix(callapi): Fix snd refactor types

    • refactor(types): Rename GetCallApiResult to InferCallApiResult
    • refactor(core): Improve SharedExtraOptions to support context overriding
    • fix(stream): Add default generic to ReadableStream augmentation
    • docs(middlewares): Fix caching plugin usage and enable twoslash
    • ci(workflows): Update pnpm version to 10.24.0
    • chore(deps): Update lockfile
  • 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