Skip to content

Version Packages (next)#1810

Merged
toiroakr merged 1 commit into
v2from
changeset-release/v2
Jul 19, 2026
Merged

Version Packages (next)#1810
toiroakr merged 1 commit into
v2from
changeset-release/v2

Conversation

@tailor-platform-pr-trigger

Copy link
Copy Markdown
Contributor

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 v2, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

v2 is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on v2.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

@tailor-platform/sdk@2.0.0-next.8

Patch Changes

  • #1808 61ac76c Thanks @toiroakr! - Fix IdP and TailorDB permission condition types breaking when Attributes fields are optional. Since machine user attribute keys started mirroring the source field's optionality, the user operand key helpers leaked undefined into their key unions — failing typecheck against the generated permission types even for _loggedIn-only conditions — and rejected attribute keys derived from optional fields. Optional attribute fields are now valid operand keys and undefined no longer appears in the unions.

@tailor-platform/create-sdk@2.0.0-next.8

@tailor-platform-pr-trigger
tailor-platform-pr-trigger Bot requested review from a team as code owners July 19, 2026 06:53
@pkg-pr-new

pkg-pr-new Bot commented Jul 19, 2026

Copy link
Copy Markdown

Open in StackBlitz

pnpm add https://pkg.pr.new/@tailor-platform/create-sdk@3a6041c
pnpm add https://pkg.pr.new/@tailor-platform/eslint-plugin-sdk@3a6041c
pnpm add https://pkg.pr.new/@tailor-platform/sdk@3a6041c
pnpm add https://pkg.pr.new/@tailor-platform/sdk-plugin-tailordb-erd@3a6041c

commit: 3a6041c

@github-actions

Copy link
Copy Markdown

Code Metrics Report (packages/sdk)

main (4675aa4) #1810 (662de19) +/-
Coverage 74.5% 77.0% +2.5%
Code to Test Ratio 1:0.4 1:0.4 +0.0
Details
  |                    | main (4675aa4) | #1810 (662de19) |  +/-  |
  |--------------------|----------------|-----------------|-------|
+ | Coverage           |          74.5% |           77.0% | +2.5% |
  |   Files            |            457 |             443 |   -14 |
  |   Lines            |          16953 |           16478 |  -475 |
+ |   Covered          |          12636 |           12703 |   +67 |
+ | Code to Test Ratio |          1:0.4 |           1:0.4 |  +0.0 |
  |   Code             |         113445 |          115436 | +1991 |
+ |   Test             |          52708 |           54874 | +2166 |

Code coverage of files in pull request scope (76.5% → 84.4%)

Details
Files Coverage +/- Status
packages/sdk/example/tailordb/user.ts 0.0% -100.0% affected
packages/sdk/llm-challenge/src/types.ts 0.0% -100.0% affected
packages/sdk/packages/sdk-codemod/src/registry.ts 0.0% -60.0% affected
packages/sdk/packages/sdk-plugin-tailordb-erd/src/diff-command.ts 0.0% -71.0% affected
packages/sdk/packages/sdk-plugin-tailordb-erd/src/diff.ts 0.0% -89.5% affected
packages/sdk/packages/sdk-plugin-tailordb-erd/src/export.ts 0.0% -4.4% affected
packages/sdk/packages/sdk-plugin-tailordb-erd/src/local-schema.ts 0.0% -25.0% affected
packages/sdk/packages/sdk-plugin-tailordb-erd/src/serve.ts 0.0% -18.8% affected
packages/sdk/packages/sdk-plugin-tailordb-erd/src/viewer.ts 0.0% -82.8% affected
packages/sdk/src/cli/commands/auth/index.ts 100.0% +100.0% affected
packages/sdk/src/cli/commands/auth/token.ts 33.3% +33.3% affected
packages/sdk/src/cli/commands/deploy/test_fixtures/prepare.ts 90.9% -2.5% affected
packages/sdk/src/cli/commands/deploy/test_fixtures/tailor.config.generators-compat.ts 0.0% -100.0% affected
packages/sdk/src/cli/commands/deploy/test_fixtures/tailor.config.plugins-compat.ts 0.0% -100.0% affected
packages/sdk/src/cli/commands/deploy/auth-invoker.ts 0.0% -100.0% affected
packages/sdk/src/cli/commands/deploy/deploy.ts 89.9% +84.6% affected
packages/sdk/src/cli/commands/deploy/executor.ts 83.8% +2.0% affected
packages/sdk/src/cli/commands/deploy/invoker.ts 100.0% +100.0% affected
packages/sdk/src/cli/commands/deploy/tailordb/index.ts 87.8% -0.3% affected
packages/sdk/src/cli/commands/function/logs.ts 39.7% -4.6% affected
packages/sdk/src/cli/commands/function/test-run.ts 56.8% -3.4% affected
packages/sdk/src/cli/commands/generate/service.ts 69.3% +1.3% affected
packages/sdk/src/cli/commands/login.ts 82.9% -0.9% affected
packages/sdk/src/cli/commands/plugin/index.ts 50.0% +50.0% affected
packages/sdk/src/cli/commands/plugin/list.ts 6.6% +6.6% affected
packages/sdk/src/cli/commands/profile/create.ts 77.2% +72.7% affected
packages/sdk/src/cli/commands/profile/update.ts 92.3% +0.2% affected
packages/sdk/src/cli/commands/skills/install.ts 0.0% -57.2% affected
packages/sdk/src/cli/commands/tailordb/migrate/db-types-generator.ts 95.8% -1.4% affected
packages/sdk/src/cli/commands/tailordb/migrate/diff-calculator.ts 72.9% -0.8% affected
packages/sdk/src/cli/commands/tailordb/migrate/snapshot-manifest.ts 61.7% -0.3% affected
packages/sdk/src/cli/commands/tailordb/migrate/snapshot.ts 80.2% -1.1% affected
packages/sdk/src/cli/commands/user/switch.ts 88.2% +0.7% affected
packages/sdk/src/cli/commands/workflow/start.ts 83.6% +12.5% affected
packages/sdk/src/cli/commands/workspace/create.ts 89.0% +0.2% affected
packages/sdk/src/cli/crashreport/report.ts 88.0% +2.2% affected
packages/sdk/src/cli/index.ts 50.0% -50.0% affected
packages/sdk/src/cli/query/type-field-order.ts 86.6% +86.6% affected
packages/sdk/src/cli/services/application.ts 84.3% +3.3% affected
packages/sdk/src/cli/services/executor/loader.ts 84.6% +1.2% affected
packages/sdk/src/cli/services/stale-cleanup.ts 0.0% -91.0% affected
packages/sdk/src/cli/services/tailordb/hooks-validate-bundler.ts 85.7% -1.0% affected
packages/sdk/src/cli/services/workflow/service.ts 83.7% +3.7% affected
packages/sdk/src/cli/services/workflow/start-transformer.ts 87.5% +87.5% affected
packages/sdk/src/cli/services/workflow/trigger-transformer.ts 0.0% -88.9% affected
packages/sdk/src/cli/shared/auth-namespace.ts 100.0% +100.0% affected
packages/sdk/src/cli/shared/builtin-commands.ts 100.0% +100.0% affected
packages/sdk/src/cli/shared/config-loader.ts 77.4% -6.9% affected
packages/sdk/src/cli/shared/context.ts 94.5% +15.1% affected
packages/sdk/src/cli/shared/plugin.ts 85.8% +85.8% affected
packages/sdk/src/cli/shared/register-ts-hook.ts 100.0% +100.0% affected
packages/sdk/src/cli/shared/register-tsconfig-paths-hook.ts 0.0% -100.0% affected
packages/sdk/src/cli/shared/register-typescript-runtime.ts 0.0% -100.0% affected
packages/sdk/src/cli/shared/skills-installer.ts 0.0% -93.4% affected
packages/sdk/src/cli/shared/start-context.ts 82.6% +82.6% affected
packages/sdk/src/cli/shared/trigger-context.ts 0.0% -82.7% affected
packages/sdk/src/cli/ts-hook.mjs 92.3% +92.3% affected
packages/sdk/src/cli/tsconfig-paths-hook.mjs 0.0% -96.0% affected
packages/sdk/src/configure/services/auth/index.ts 100.0% +25.0% affected
packages/sdk/src/configure/services/staticwebsite/index.ts 100.0% +100.0% affected
packages/sdk/src/configure/services/tailordb/schema.ts 96.6% +7.6% affected
packages/sdk/src/configure/services/workflow/job.ts 90.0% +4.2% affected
packages/sdk/src/configure/services/workflow/registry.ts 100.0% +9.0% affected
packages/sdk/src/configure/services/workflow/test-env-key.ts 100.0% +6.6% affected
packages/sdk/src/configure/services/workflow/workflow.ts 66.6% -13.4% affected
packages/sdk/src/parser/service/auth/schema.ts 92.6% +4.8% affected
packages/sdk/src/parser/service/executor/schema.ts 92.3% +1.3% affected
packages/sdk/src/parser/service/tailordb/builder-helpers.ts 100.0% +100.0% affected
packages/sdk/src/parser/service/tailordb/field.ts 83.8% -16.2% affected
packages/sdk/src/parser/service/tailordb/relation.ts 92.0% -0.6% affected
packages/sdk/src/parser/service/tailordb/type-script.ts 100.0% +100.0% affected
packages/sdk/src/plugin/builtin/kysely-type/type-processor.ts 91.9% +0.1% affected
packages/sdk/src/plugin/builtin/seed/index.ts 0.0% -1.6% affected
packages/sdk/src/utils/test/index.ts 95.0% -5.0% affected
packages/sdk/src/vitest/mocks/file.ts 92.5% +7.4% affected
packages/sdk/src/vitest/mocks/workflow.ts 91.2% -0.3% affected
packages/sdk/src/vitest/workflow-local.ts 77.1% +77.1% affected
packages/sdk/src/vitest/workflow-runtime.ts 70.0% +12.8% affected

SDK Configure Bundle Size

main (4675aa4) #1810 (662de19) +/-
configure-index-size 32.17KB 31.26KB -0.91KB
dependency-chunks-size 29.88KB 24.97KB -4.91KB
total-bundle-size 62.05KB 56.22KB -5.83KB

Runtime Performance

main (4675aa4) #1810 (662de19) +/-
Generate Median 3,134ms 2,438ms -696ms
Generate Max 3,297ms 2,477ms -820ms
Apply Build Median 3,150ms 2,495ms -655ms
Apply Build Max 3,169ms 2,522ms -647ms

Type Performance (instantiations)

main (4675aa4) #1810 (662de19) +/-
tailordb-basic 43,881 40,190 -3,691
tailordb-optional 4,451 4,535 84
tailordb-relation 6,220 3,854 -2,366
tailordb-validate 753 666 -87
tailordb-hooks 5,279 5,499 220
tailordb-object 12,547 16,345 3,798
tailordb-enum 1,486 1,538 52
resolver-basic 9,252 12,107 2,855
resolver-nested 26,119 35,406 9,287
resolver-array 18,059 24,043 5,984
executor-schedule 4,310 4,481 171
executor-webhook 949 1,120 171
executor-record 6,762 4,532 -2,230
executor-resolver 4,090 5,777 1,687
executor-operation-function 937 1,108 171
executor-operation-gql 945 1,116 171
executor-operation-webhook 956 1,127 171
executor-operation-workflow 1,798 1,921 123

Reported by octocov

@toiroakr
toiroakr merged commit a2fa202 into v2 Jul 19, 2026
44 checks passed
@toiroakr
toiroakr deleted the changeset-release/v2 branch July 19, 2026 07:36
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.

1 participant