Releases: zayne-labs/callapi
@zayne-labs/callapi-plugins@4.0.18
Patch Changes
- Updated dependencies [165b969]
- @zayne-labs/callapi@1.11.18
@zayne-labs/callapi-plugins@4.0.17
Patch Changes
- Updated dependencies [ab889c8]
- @zayne-labs/callapi@1.11.17
@zayne-labs/callapi-plugins@4.0.16
Patch Changes
- Updated dependencies [dac80c9]
- @zayne-labs/callapi@1.11.16
@zayne-labs/callapi@1.11.15
Patch Changes
- 5672cc7: feat: re-add withoutResponse resultMode option
@zayne-labs/callapi@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
@zayne-labs/callapi-plugins@4.0.15
Patch Changes
- Updated dependencies [5672cc7]
- @zayne-labs/callapi@1.11.15
@zayne-labs/callapi-plugins@4.0.14
@zayne-labs/callapi-plugins
4.0.12
Patch Changes
- Updated dependencies [6958f4f]
- @zayne-labs/callapi@1.11.12
4.0.9
Patch Changes
- Updated dependencies [89c1cef]
- @zayne-labs/callapi@1.11.9
4.0.8
Patch Changes
- Updated dependencies [f64dae5]
- @zayne-labs/callapi@1.11.8
4.0.7
Patch Changes
- Updated dependencies [1bcf35f]
- @zayne-labs/callapi@1.11.7
4.0.6
Patch Changes
- Updated dependencies [d5c0a35]
- @zayne-labs/callapi@1.11.6
4.0.5
Patch Changes
- Updated dependencies [63ecf19]
- @zayne-labs/callapi@1.11.5
4.0.4
Patch Changes
- Updated dependencies [8c31997]
- @zayne-labs/callapi@1.11.4
4.0.3
Patch Changes
- Updated dependencies [70ebf9e]
- @zayne-labs/callapi@1.11.3
4.0.2
Patch Changes
- Updated dependencies [8006bfc]
- @zayne-labs/callapi@1.11.2
4.0.1
Patch Changes
- Updated dependencies [f0b9575]
- @zayne-labs/callapi@1.11.1
4.0.0
Patch Changes
- Updated dependencies [3860cb7]
- @zayne-labs/callapi@1.11.0
3.1.8
Patch Changes
- Updated dependencies [ee21de9]
- @zayne-labs/callapi@1.10.6
3.1.7
Patch Changes
- Updated dependencies [8437089]
- @zayne-labs/callapi@1.10.5
3.1.6
Patch Changes
- Updated dependencies [1cd3367]
- @zayne-labs/callapi@1.10.4
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/callapi@1.10.3
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/callapi@1.10.2
3.0.1
Patch Changes
- Updated dependencies [605af9d]
- @zayne-labs/callapi@1.10.1
3.0.0
Patch Changes
- Updated dependencies [e78a454]
- @zayne-labs/callapi@1.10.0
2.0.9
Patch Changes
- Updated dependencies [d393723]
- @zayne-labs/callapi@1.9.12
2.0.8
Patch Changes
- Updated dependencies [4a9fcdf]
- @zayne-labs/callapi@1.9.11
2.0.7
Patch Changes
- Updated dependencies [40c8a4e]
- @zayne-labs/callapi@1.9.10
2.0.6
Patch Changes
- Updated dependencies [fc435f4]
- @zayne-labs/callapi@1.9.9
2.0.5
Patch Changes
- Updated dependencies [b47396f]
- @zayne-labs/callapi@1.9.7
2.0.4
Patch Changes
- Updated dependencies [c2f7fea]
- @zayne-labs/callapi@1.9.6
2.0.3
Patch Changes
- Updated dependencies [5c6900d]
- @zayne-labs/callapi@1.9.4
2.0.2
Patch Changes
- Updated dependencies [7d4765f]
- @zayne-labs/callapi@1.9.3
2.0.1
Patch Changes
- Updated dependencies [991ac01]
- @zayne-labs/callapi@1.9.2
2.0.0
Patch Changes
- Updated dependencies [9627f3e]
- @zayne-labs/callapi@1.9.0
1.0.10
Patch Changes
- Updated dependencies [00c0d7f]
- @zayne-labs/callapi@1.8.22
1.0.9
Patch Changes
- Updated dependencies [9f3b938]
- @zayne-labs/callapi@1.8.21
1.0.8
Patch Changes
- Updated dependencies [1de63d3]
- @zayne-labs/callapi@1.8.20
1.0.7
Patch Changes
- Updated dependencies [6e259a6]
- @zayne-labs/callapi@1.8.18
1.0.6
Patch Changes
- Updated dependencies [ee7659d]
- @zayne-labs/callapi@1.8.17
1.0.5
Patch Changes
- Updated dependencies [03f69ce]
- @zayne-labs/callapi@1.8.15
1.0.4
Patch Changes
- Updated dependencies [360b0b7]
- @zayne-labs/callapi@1.8.12
1.0.3
Patch Changes
- Updated dependencies [4864919]
- @zayne-labs/callapi@1.8.10
1.0.2
Patch Changes
- Updated dependencies [9d8f72d]
- @zayne-labs/callapi@1.8.3
1.0.1
Patch Changes
- Updated dependencies [3a150ba]
- @zayne-labs/callapi@1.8.2
1.0.0
Patch Changes
- Updated dependencies [7da7707]
- @zayne-labs/callapi@1.8.0
0.0.3
Patch Changes
- Updated dependencies [eb629cf]
- @zayne-labs/callapi@1.7.18
0.0.2
Patch Changes
- Updated dependencies [434dec2]
- @zayne-labs/callapi@1.7.15
0.0.1
Patch Changes
@zayne-labs/callapi-plugins@4.0.12
Patch Changes
- Updated dependencies [6958f4f]
- @zayne-labs/callapi@1.11.12
@zayne-labs/callapi-plugins@4.0.11
@zayne-labs/callapi-plugins
4.0.9
Patch Changes
- Updated dependencies [89c1cef]
- @zayne-labs/callapi@1.11.9
4.0.8
Patch Changes
- Updated dependencies [f64dae5]
- @zayne-labs/callapi@1.11.8
4.0.7
Patch Changes
- Updated dependencies [1bcf35f]
- @zayne-labs/callapi@1.11.7
4.0.6
Patch Changes
- Updated dependencies [d5c0a35]
- @zayne-labs/callapi@1.11.6
4.0.5
Patch Changes
- Updated dependencies [63ecf19]
- @zayne-labs/callapi@1.11.5
4.0.4
Patch Changes
- Updated dependencies [8c31997]
- @zayne-labs/callapi@1.11.4
4.0.3
Patch Changes
- Updated dependencies [70ebf9e]
- @zayne-labs/callapi@1.11.3
4.0.2
Patch Changes
- Updated dependencies [8006bfc]
- @zayne-labs/callapi@1.11.2
4.0.1
Patch Changes
- Updated dependencies [f0b9575]
- @zayne-labs/callapi@1.11.1
4.0.0
Patch Changes
- Updated dependencies [3860cb7]
- @zayne-labs/callapi@1.11.0
3.1.8
Patch Changes
- Updated dependencies [ee21de9]
- @zayne-labs/callapi@1.10.6
3.1.7
Patch Changes
- Updated dependencies [8437089]
- @zayne-labs/callapi@1.10.5
3.1.6
Patch Changes
- Updated dependencies [1cd3367]
- @zayne-labs/callapi@1.10.4
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/callapi@1.10.3
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/callapi@1.10.2
3.0.1
Patch Changes
- Updated dependencies [605af9d]
- @zayne-labs/callapi@1.10.1
3.0.0
Patch Changes
- Updated dependencies [e78a454]
- @zayne-labs/callapi@1.10.0
2.0.9
Patch Changes
- Updated dependencies [d393723]
- @zayne-labs/callapi@1.9.12
2.0.8
Patch Changes
- Updated dependencies [4a9fcdf]
- @zayne-labs/callapi@1.9.11
2.0.7
Patch Changes
- Updated dependencies [40c8a4e]
- @zayne-labs/callapi@1.9.10
2.0.6
Patch Changes
- Updated dependencies [fc435f4]
- @zayne-labs/callapi@1.9.9
2.0.5
Patch Changes
- Updated dependencies [b47396f]
- @zayne-labs/callapi@1.9.7
2.0.4
Patch Changes
- Updated dependencies [c2f7fea]
- @zayne-labs/callapi@1.9.6
2.0.3
Patch Changes
- Updated dependencies [5c6900d]
- @zayne-labs/callapi@1.9.4
2.0.2
Patch Changes
- Updated dependencies [7d4765f]
- @zayne-labs/callapi@1.9.3
2.0.1
Patch Changes
- Updated dependencies [991ac01]
- @zayne-labs/callapi@1.9.2
2.0.0
Patch Changes
- Updated dependencies [9627f3e]
- @zayne-labs/callapi@1.9.0
1.0.10
Patch Changes
- Updated dependencies [00c0d7f]
- @zayne-labs/callapi@1.8.22
1.0.9
Patch Changes
- Updated dependencies [9f3b938]
- @zayne-labs/callapi@1.8.21
1.0.8
Patch Changes
- Updated dependencies [1de63d3]
- @zayne-labs/callapi@1.8.20
1.0.7
Patch Changes
- Updated dependencies [6e259a6]
- @zayne-labs/callapi@1.8.18
1.0.6
Patch Changes
- Updated dependencies [ee7659d]
- @zayne-labs/callapi@1.8.17
1.0.5
Patch Changes
- Updated dependencies [03f69ce]
- @zayne-labs/callapi@1.8.15
1.0.4
Patch Changes
- Updated dependencies [360b0b7]
- @zayne-labs/callapi@1.8.12
1.0.3
Patch Changes
- Updated dependencies [4864919]
- @zayne-labs/callapi@1.8.10
1.0.2
Patch Changes
- Updated dependencies [9d8f72d]
- @zayne-labs/callapi@1.8.3
1.0.1
Patch Changes
- Updated dependencies [3a150ba]
- @zayne-labs/callapi@1.8.2
1.0.0
Patch Changes
- Updated dependencies [7da7707]
- @zayne-labs/callapi@1.8.0
0.0.3
Patch Changes
- Updated dependencies [eb629cf]
- @zayne-labs/callapi@1.7.18
0.0.2
Patch Changes
- Updated dependencies [434dec2]
- @zayne-labs/callapi@1.7.15
0.0.1
Patch Changes
@zayne-labs/callapi@1.11.11
@zayne-labs/callapi
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 options type using RemovePrefix
refactor(dedupe): apply same pattern to dedupe options typedocs: add social media post introducing CallApi features
1.11.0
Minor Changes
- 3860cb7: feat(middleware): ✨ implement fetch middleware composition system
- Add fetchMiddleware option to enhance fetch function with composable middleware pattern
- Support middleware at base config, plugin, and per-request levels
- Implement proper composition order: per-request → plugins → base → customFetchImpl → fetch
- Add comprehensive tests for middleware composition, caching implementation, and integration
- Create example caching plugin implementation using the middleware system
1.10.6
Patch Changes
- ee21de9: refactor(hooks): rename onBeforeRequest to onRequestReady and clean up schema config
- Rename onBeforeRequest hook to onRequestReady for better semantic meaning
- Remove unused schemaConfig from GetMethodContext type
- Reorder imports and clean up type definitions
- Update corresponding test cases to reflect hook name change
1.10.5
Patch Changes
- 8437089: feat(callapi): add onBeforeRequest hook and refactor method handling
- Introduce new onBeforeRequest hook for early request lifecycle interception
- Move method-related utilities to utils/common.ts for better organization
- Update tests to cover new hook functionality
- Rename slot.tsx to slot.ts in docs components for consistency
1.10.4
Patch Changes
- 1cd3367: fix(callapi): add polyfill to AbortSignal methods to avoid crashes on edge runtime
1.10.3
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
1.10.2
Patch Changes
- c69f3d6: refactor: eliminate redundant resultMode variants, use throwOnError for type narrowing
- Remove 'allWithException' and 'onlySuccessWithException' result modes
- Use throwOnError: true to automatically narrow types and remove null variants
- Update type system to conditionally return non-null types when throwOnError: true
- Simplify API to just 'all' and 'onlySuccess' modes + throwOnError flag
- Update tests and documentation to use new pattern
- Fix flaky timing test in hooks.test.ts (>= instead of > for CI stability)
1.10.1
Patch Changes
-
605af9d: refactor(validation): rename InferSchemaResult to InferSchemaOutputResult and add InferSchemaInputResult
feat(validation): use inferSchemaInputResult for everything other than data and errorData, so that transformations don't affect the schema type when passing data to, for instance., the body
Improve type naming clarity by distinguishing between input and output schema inference types. This change better reflects the purpose of each type and maintains consistency in the validation system.
1.10.0
Minor Changes
-
e78a454: 🐛 feat(result): improve response type detection for better content handling
✅ test(errors): add test for successful response with invalid JSON content
🔧 chore(package): increase size limit from 5.8kb to 6kb
1.9.12
Patch Changes
-
d393723: 🐛 fix(retry): handle aborted signals and improve retry condition logic
🧪 test(callapi): add browser testing config and improve test coverage
✨ feat(testing): add vitest.browser.config.ts for browser-based testing with Playwright
🔧 chore(config): update vitest.config.ts to remove text reporter and simplify typecheck config✅ test(utils): add comprehensive tests for type guards with various data types
🔄 ci(turbo): add test-related tasks to turbo.json for better pipeline management
🗑️ chore(cleanup): remove .kiro spec files that are no longer needed
1.9.11
Patch Changes
- 4a9fcdf: fix: properly infer response types
1.9.10
Patch Changes
- 40c8a4e: fix: validation bug due to wrong arguments passed
1.9.9
Patch Changes
- fc435f4: refactor: update parameter patterns in conditional-types and clean up client.ts comments; remove unused test-params file
1.9.7
Patch Changes
- b47396f: feat(callapi/validation): export fallBackRouteSchemaKey constant and type to enable external access to fallback route resolution ✨
1.9.6
Patch Changes
-
c2f7fea: feat(callapi-validation)!: add fallback route schema '.' and merge with current route (current takes precedence) ✨💥
feat(callapi-types): exclude fallback key from inferred route keys in type computations ✨
feat(callapi-types): export FallBackRouteSchemaKey for cross-package typing ✨
fix(callapi-types): correct params required inference to check undefined (not null) 🐛
refactor(callapi-types,callapi-validation)!: rename schema context baseSchema -> baseSchemaRoutes; pass resolved currentRouteSchema ♻️💥
feat(callapi-types): improve route param extraction with PossibleParamNamePatterns and explicit processing order for ':param' then '{param}' ✨
feat(dev-client): use object path params and query for GitHub commits; add schema entry ✨
docs(callapi-types): clarify JSDoc for instance schema and schemaConfig behavior 📝
chore(deps): update package.json files and pnpm-lock.yaml ⬆️feat:(callapi-types,callapi-validation): schema callback context renamed from baseSchema to baseSchemaRoutes; consumers must update function parameter usage 💥
1.9.4
Patch Changes
- 5c6900d: fix: faulty error resolution
1.9.3
Patch Changes
- 7d4765f: fix(route-method): fixed issue with route method extraction
1.9.2
Patch Changes
-
991ac01: refactor(callapi/hooks): make hook registries use lazy instantiation instead of having to deep copy with structured clone🧩
chore(deps): update workspace package.json files and sync pnpm-lock.yaml 📦🔒
1.9.0
Minor Changes
-
9627f3e: refactor(plugins): rename
inittosetupand improve type safety♻️ refactor(plugins): rename
PluginInitContexttoPluginSetupContextandinithook tosetup
✨ feat(types): enhance type safety in response handling
🔧 fix(types): improve generic type handling in response parsers
📝 docs: update plugin documentation to reflect API changesfeat(url): ✨ enhance URL parameter handling and dedupe logic
- 🛠️ Improve URL parameter merging for both array and object params
- 🔄 Support both
:paramand{param}URL pa...