Skip to content

Releases: padosoft/ts-support

@padosoft/zod-to-openapi-client@4.1.0

Choose a tag to compare

@github-actions github-actions released this 07 Jul 15:32
a201f71

Minor Changes

  • 3f6547f Thanks @47PADO47! - - OpenApiClientModule gains an optional third type parameter TModuleKey extends readonly string[] = readonly []. When set, .$query.all is typed as that key and all generated keys are prefixed with it.

    • The base key is derived automatically at runtime from static version and static key on 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]

Patch Changes

  • Updated dependencies [3f6547f]:
    • @padosoft/utilities@1.7.1

@padosoft/utilities@1.8.1

Choose a tag to compare

@github-actions github-actions released this 07 Jul 19:42
3c782cf

Patch Changes

  • 8364a7f Thanks @47PADO47! - - QueryLeaf.$key now returns a precisely typed tuple readonly [...TKey, ...TArgs] instead of readonly unknown[], so hovering over proxy.v1.auth.login.$key(body) shows the exact key shape.
    • QueryLeaf.$query now returns QueryDescriptor<TResult, readonly [...TKey, ...TArgs]>, giving the same precision to queryKey when spreading into useQuery().

@padosoft/utilities@1.8.0

Choose a tag to compare

@github-actions github-actions released this 07 Jul 19:02
718926a

Minor Changes

@padosoft/utilities@1.7.1

Choose a tag to compare

@github-actions github-actions released this 07 Jul 15:32
a201f71

Patch Changes

  • 3f6547f Thanks @47PADO47! - - Fix QueryProxy infinite .$query chaining and add typed all namespace key.
    • $query and $key are now hidden inside the proxy — accessing proxy.$query returns undefined instead of re-wrapping the proxy, so apiClient.$query.$query.$query is no longer possible (also a TS error).
    • Every proxy node now exposes an all property returning the frozen key array for that namespace, enabling bulk invalidation: queryClient.invalidateQueries({ queryKey: apiClient.$query.v1.loyalty.all }).
    • all is 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

Choose a tag to compare

@github-actions github-actions released this 06 Jul 14:38
39e4d9a

Patch Changes

  • Updated dependencies [1150528]:
    • @padosoft/utilities@1.7.0

@padosoft/utilities@1.7.0

Choose a tag to compare

@github-actions github-actions released this 06 Jul 14:38
39e4d9a

Minor Changes

  • 1150528 Thanks @47PADO47! - Fix Configuration this binding lost when passed to useSyncExternalStore, add optional overrides parameter to constructor, add ReactiveConfiguration subclass with built-in useConfig hook method and new overrides methods.

@padosoft/react@1.2.0

Choose a tag to compare

@github-actions github-actions released this 06 Jul 14:38
39e4d9a

Minor Changes

  • 1150528 Thanks @47PADO47! - Fix Configuration this binding lost when passed to useSyncExternalStore, add optional overrides parameter to constructor, add ReactiveConfiguration subclass with built-in useConfig hook method and new overrides methods.

Patch Changes

  • Updated dependencies [1150528]:
    • @padosoft/utilities@1.7.0

@padosoft/cli@1.3.1

Choose a tag to compare

@github-actions github-actions released this 05 Jul 21:32
25dd848

Patch Changes

  • 8b57182 Thanks @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 add with no args crashed with a TypeError, passing pkg@latest iterated over individual characters (producing @@latest errors), and multiple packages were silently dropped. The same bug affected sync editor, init biome, init tsconfig, init tsdown, and i18n extract.

@padosoft/zod-to-openapi-client@3.0.0

Choose a tag to compare

@github-actions github-actions released this 04 Jul 20:14
57cb294

Patch Changes

  • Updated dependencies [0c293e9]:
    • @padosoft/utilities@1.6.0

@padosoft/zod-to-openapi-client@2.0.1

Choose a tag to compare

@github-actions github-actions released this 04 Jul 13:11
4691757

Patch Changes

  • #36 340c2e5 Thanks @47PADO47! - Re-publish with properly resolved workspace dependencies (workspace:^ → real semver) now that the CI pipeline uses bun pm pack.

  • Updated dependencies [340c2e5]:

    • @padosoft/openapi-client@1.0.1
    • @padosoft/utilities@1.5.1