Releases: padosoft/ts-support
Releases · padosoft/ts-support
Release list
@padosoft/zod-to-openapi-client@4.1.0
Minor Changes
-
3f6547fThanks @47PADO47! - -OpenApiClientModulegains an optional third type parameterTModuleKey extends readonly string[] = readonly []. When set,.$query.allis typed as that key and all generated keys are prefixed with it.- The base key is derived automatically at runtime from
static versionandstatic keyon the concrete class — no extra plumbing needed.
class AuthV1Module extends OpenApiClientModule< [typeof authRoutes], MyErrorResponse, readonly ["v1", "auth"] // ← new > { static readonly version = "v1" as const; static readonly key = "auth" as const; } auth.$query.all; // → readonly ['v1', 'auth'] auth.$query.login.$key(b); // → readonly ['v1', 'auth', 'login', b]
- The base key is derived automatically at runtime from
Patch Changes
- Updated dependencies [
3f6547f]:- @padosoft/utilities@1.7.1
@padosoft/utilities@1.8.1
Patch Changes
8364a7fThanks @47PADO47! - -QueryLeaf.$keynow returns a precisely typed tuplereadonly [...TKey, ...TArgs]instead ofreadonly unknown[], so hovering overproxy.v1.auth.login.$key(body)shows the exact key shape.QueryLeaf.$querynow returnsQueryDescriptor<TResult, readonly [...TKey, ...TArgs]>, giving the same precision toqueryKeywhen spreading intouseQuery().
@padosoft/utilities@1.8.0
@padosoft/utilities@1.7.1
Patch Changes
3f6547fThanks @47PADO47! - - FixQueryProxyinfinite.$querychaining and add typedallnamespace key.$queryand$keyare now hidden inside the proxy — accessingproxy.$queryreturnsundefinedinstead of re-wrapping the proxy, soapiClient.$query.$query.$queryis no longer possible (also a TS error).- Every proxy node now exposes an
allproperty returning the frozen key array for that namespace, enabling bulk invalidation:queryClient.invalidateQueries({ queryKey: apiClient.$query.v1.loyalty.all }). allis now a first-class key in the mapped type (not an intersection), so it appears first in IDE autocomplete.
@padosoft/zod-to-openapi-client@4.0.0
Patch Changes
- Updated dependencies [
1150528]:- @padosoft/utilities@1.7.0
@padosoft/utilities@1.7.0
@padosoft/react@1.2.0
Minor Changes
1150528Thanks @47PADO47! - FixConfigurationthisbinding lost when passed touseSyncExternalStore, add optional overrides parameter to constructor, addReactiveConfigurationsubclass with built-inuseConfighook method and new overrides methods.
Patch Changes
- Updated dependencies [
1150528]:- @padosoft/utilities@1.7.0
@padosoft/cli@1.3.1
Patch Changes
-
8b57182Thanks @47PADO47! - Fix sade variadic arg collection for all[packages...]/[paths...]commands.Sade only shifts one positional into the action for variadic optional args — the rest land in
opts._. Without the fix,dep addwith no args crashed with a TypeError, passingpkg@latestiterated over individual characters (producing@@latesterrors), and multiple packages were silently dropped. The same bug affectedsync editor,init biome,init tsconfig,init tsdown, andi18n extract.
@padosoft/zod-to-openapi-client@3.0.0
Patch Changes
- Updated dependencies [
0c293e9]:- @padosoft/utilities@1.6.0