Skip to content

docs(types): deprecate function-types in favor of @tailor-platform/sdk#190

Merged
toiroakr merged 1 commit into
mainfrom
docs/deprecate-function-types
Jul 2, 2026
Merged

docs(types): deprecate function-types in favor of @tailor-platform/sdk#190
toiroakr merged 1 commit into
mainfrom
docs/deprecate-function-types

Conversation

@toiroakr

@toiroakr toiroakr commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Rewrite packages/types/README.md to mark @tailor-platform/function-types as deprecated, since @tailor-platform/sdk's @tailor-platform/sdk/runtime / @tailor-platform/sdk/runtime/globals modules now cover the same tailor.* / tailordb.* runtime surface (secretmanager, authconnection, iconv, idp, workflow, context, and the TailorDB file API), including a compatibility shim for the legacy capitalized Tailordb.Client namespace.
  • Add concrete migration steps: swap the tsconfig.json types entry from @tailor-platform/function-types to @tailor-platform/sdk/runtime/globals, or (recommended) switch to named imports from @tailor-platform/sdk/runtime instead of relying on ambient globals.
  • Call out the one known gap: tailor.aigateway.get(name) has no equivalent yet in @tailor-platform/sdk's runtime module, so callers of that API should keep this package installed alongside the SDK until that's added.
  • Add a patch changeset.

Verified that @tailor-platform/sdk's runtime module is a superset of this package's tailor.d.ts (aside from the noted aigateway gap) by building the SDK from source, type-checking sample usage of every namespace against the built declarations, and running its runtime test suite (all green).

Document that @tailor-platform/sdk now covers the same tailor.*/tailordb.*
runtime surface, and add a migration guide (tsconfig types swap plus
typed-import alternative). Note the one known gap: tailor.aigateway
has no SDK runtime equivalent yet.
@toiroakr toiroakr marked this pull request as ready for review July 1, 2026 13:41
@toiroakr toiroakr requested a review from a team as a code owner July 1, 2026 13:41

@k1LoW k1LoW left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@toiroakr toiroakr merged commit 09dfbcc into main Jul 2, 2026
6 checks passed
@toiroakr toiroakr deleted the docs/deprecate-function-types branch July 2, 2026 00:07
@github-actions github-actions Bot mentioned this pull request Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants