Skip to content

Version Packages#1232

Closed
tailor-platform-pr-trigger[bot] wants to merge 0 commit into
mainfrom
changeset-release/main
Closed

Version Packages#1232
tailor-platform-pr-trigger[bot] wants to merge 0 commit into
mainfrom
changeset-release/main

Conversation

@tailor-platform-pr-trigger
Copy link
Copy Markdown
Contributor

@tailor-platform-pr-trigger tailor-platform-pr-trigger Bot commented May 27, 2026

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@tailor-platform/sdk@1.51.0

Minor Changes

  • #1131 c62c3b0 Thanks @toiroakr! - Add @tailor-platform/sdk/runtime — typed wrappers for the Tailor Platform Function runtime APIs (tailor.iconv, tailor.secretmanager, tailor.authconnection, tailor.idp, tailor.workflow, tailor.context, and tailordb.file). The wrappers and their types are fully self-contained, so you can use them without activating any ambient globals.

    import {
      iconv,
      secretmanager,
      idp,
      file,
    } from "@tailor-platform/sdk/runtime";
    
    const utf8 = iconv.convert(sjisBuffer, "Shift_JIS", "UTF-8");
    const apiKey = await secretmanager.getSecret("my-vault", "API_KEY");
    const client = new idp.Client({ namespace: "my-namespace" });
    const { metadata } = await file.upload(
      "ns",
      "Document",
      "attachment",
      recordId,
      bytes
    );

    The SDK no longer depends on the external @tailor-platform/function-types package; its declarations are now vendored inside the SDK. For backwards compatibility the ambient tailor.* / tailordb.* types are still activated automatically when you import from @tailor-platform/sdk, so existing code keeps type-checking with no changes. This implicit activation will be removed in v2.0 — new code is encouraged to use the typed wrappers from @tailor-platform/sdk/runtime, or to opt into the globals explicitly via import "@tailor-platform/sdk/runtime/globals" (or by listing the entry in tsconfig.json's compilerOptions.types).

    The capital-cased Tailordb ambient namespace (Tailordb.QueryResult, Tailordb.CommandType, Tailordb.Client) is preserved as a @deprecated alias of the new lowercase tailordb.* namespace for source-level compatibility with @tailor-platform/function-types. It will be removed in v2.0; run pnpm dlx @tailor-platform/sdk-codemod v2/tailordb-namespace to migrate. The @tailor-platform/function-types declarations are vendored inside the SDK and activated automatically, so you can simply remove @tailor-platform/function-types from your package.json (and from tsconfig.json compilerOptions.types if listed) once you've upgraded.

    Other test-mock changes from @tailor-platform/sdk/vitest:

    • Breaking: when an openDownloadStream (or toFileStream()) call consumes a queued mock result, raw Uint8Array / ArrayBuffer payloads are now rejected. Enqueue a structured iterable of StreamValue items ({ type: "metadata" }, { type: "chunk", data, position }, { type: "complete" }) so test streams stay aligned with the platform's structured stream contract. The shorthand Uint8Array enqueue is still accepted by download / downloadAsBase64.

Patch Changes

  • #1215 65ffd8a Thanks @renovate! - fix(deps): update @opentelemetry

  • #1199 1b6d0d8 Thanks @toiroakr! - Fix: tailor-sdk tailordb truncate and the exec.mjs generated by the built-in seedPlugin no longer touch namespaces declared with { external: true }.

    • tailor-sdk tailordb truncate --all now only truncates namespaces the current app actually owns; namespaces declared with { external: true } are skipped. This also covers the --truncate path of seed/exec.mjs, so its seed:reset no longer wipes a sibling app's data.
    • tailor-sdk tailordb truncate --namespace <name> now rejects an external namespace with a dedicated error pointing the user to the owning app, instead of the generic "not found in config" message.
    • The generated seed/exec.mjs now starts with an @generated header to discourage hand-edits, since the entire file is regenerated on every sdk generate.

@tailor-platform/sdk-codemod@0.2.1

Patch Changes

  • #1131 f5d3d38 Thanks @toiroakr! - Add v2/tailordb-namespace codemod for the @tailor-platform/function-types@tailor-platform/sdk vendoring: rewrite references to the deprecated capital-cased Tailordb ambient namespace (Tailordb.QueryResult, Tailordb.CommandType, Tailordb.Client, typeof Tailordb.Client) to the new lowercase tailordb.* namespace re-published by the SDK.

@tailor-platform/create-sdk@1.51.0

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 27, 2026

⚡ pkg.pr.new

@tailor-platform/sdk

pnpm add https://pkg.pr.new/@tailor-platform/sdk@91cdb32
pnpm dlx https://pkg.pr.new/@tailor-platform/sdk@91cdb32 --help

@tailor-platform/create-sdk

pnpm add https://pkg.pr.new/@tailor-platform/create-sdk@91cdb32
pnpm dlx https://pkg.pr.new/@tailor-platform/create-sdk@91cdb32 my-app

commit: 91cdb32

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown

Code Metrics Report (packages/sdk)

main (f15385a) #1232 (b2afb6e) +/-
Coverage 63.9% 63.9% 0.0%
Code to Test Ratio 1:0.4 1:0.4 0.0
Details
  |                    | main (f15385a) | #1232 (b2afb6e) | +/-  |
  |--------------------|----------------|-----------------|------|
  | Coverage           |          63.9% |           63.9% | 0.0% |
  |   Files            |            375 |             375 |    0 |
  |   Lines            |          13016 |           13016 |    0 |
  |   Covered          |           8321 |            8321 |    0 |
  | Code to Test Ratio |          1:0.4 |           1:0.4 |  0.0 |
  |   Code             |          86618 |           86618 |    0 |
  |   Test             |          36919 |           36919 |    0 |

SDK Configure Bundle Size

main (f15385a) #1232 (b2afb6e) +/-
configure-index-size 18KB 18KB 0KB
dependency-chunks-size 33.52KB 33.52KB 0KB
total-bundle-size 51.51KB 51.51KB 0KB

Runtime Performance

main (f15385a) #1232 (b2afb6e) +/-
Generate Median 2,253ms 2,786ms 533ms
Generate Max 2,312ms 2,856ms 544ms
Apply Build Median 2,266ms 2,806ms 540ms
Apply Build Max 2,291ms 2,827ms 536ms

Type Performance (instantiations)

main (f15385a) #1232 (b2afb6e) +/-
tailordb-basic 35,133 35,133 0
tailordb-optional 3,841 3,841 0
tailordb-relation 7,428 7,428 0
tailordb-validate 2,566 2,566 0
tailordb-hooks 5,767 5,767 0
tailordb-object 12,136 12,136 0
tailordb-enum 2,462 2,462 0
resolver-basic 9,424 9,424 0
resolver-nested 26,111 26,111 0
resolver-array 18,187 18,187 0
executor-schedule 4,234 4,234 0
executor-webhook 873 873 0
executor-record 8,166 8,166 0
executor-resolver 4,369 4,369 0
executor-operation-function 868 868 0
executor-operation-gql 869 869 0
executor-operation-webhook 888 888 0
executor-operation-workflow 1,714 1,714 0

Reported by octocov

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.

0 participants