Skip to content

fix(deps): update dependency politty to v0.12.1 - #2295

Open
renovate[bot] wants to merge 2 commits into
mainfrom
renovate/politty-0.x
Open

fix(deps): update dependency politty to v0.12.1#2295
renovate[bot] wants to merge 2 commits into
mainfrom
renovate/politty-0.x

Conversation

@renovate

@renovate renovate Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
politty (source) 0.11.90.12.1 age confidence

Release Notes

toiroakr/politty (politty)

v0.12.1

Compare Source

Patch Changes
  • f01148c: Fix createLogCollector (used by executeExamples/assertDocMatch) to also capture output written directly via process.stdout.write / process.stderr.write, not just console.* calls. Previously, a command that printed its primary output with process.stdout.write instead of console.log was invisible to examples verification — that output passed straight through to the real stdout and never showed up in the captured logs.
  • Updated dependencies [f01148c]

v0.12.0

Compare Source

Minor Changes
  • 53fdf95: Shrink the package entry point by no longer statically bundling the shell-completion generators (bash/zsh/fish, the dynamic __complete engine, and the on-disk install/refresh logic) into it. withCompletionCommand still works exactly as before, but its completion/__complete/__refresh-completion/__completion-worker-path subcommands now load lazily, only when one of them actually runs.

    Breaking: generateCompletion and generateBundledCompletionWorker are no longer exported from the package root. Both were already documented as importing from the /completion subpath — update any code that imported them from the root instead:

    - import { generateCompletion } from "politty";
    + import { generateCompletion } from "politty/completion";

    (same for @politty/zod/@politty/valibot, and for generateBundledCompletionWorker). withCompletionCommand itself is unaffected — keep importing it from the package root.

    Builds are also minified now, cutting total published package size by more than half on top of the entry-point reduction above (@politty/zod's dist JS: 620KB → 269KB).

Patch Changes

Configuration

📅 Schedule: (in timezone Asia/Tokyo)

  • Branch creation
    • Between 09:00 AM and 06:59 PM, Monday through Friday (* 9-18 * * 1-5)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot requested a review from a team as a code owner September 8, 2026 04:20
@changeset-bot

changeset-bot Bot commented Sep 8, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e9ca76d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@tailor-platform/sdk Patch
@tailor-platform/sdk-codemod Patch
@tailor-platform/sdk-plugin-seed Patch
@tailor-platform/sdk-plugin-setup Patch
@tailor-platform/sdk-plugin-tailordb-erd Patch
@tailor-platform/create-sdk Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@tailor-platform-pr-trigger
tailor-platform-pr-trigger Bot requested a review from a team as a code owner September 8, 2026 04:20
@pkg-pr-new

pkg-pr-new Bot commented Sep 8, 2026

Copy link
Copy Markdown

Open in StackBlitz

@tailor-platform/create-sdk

pnpm add https://pkg.pr.new/tailor-platform/sdk/@tailor-platform/create-sdk@e9ca76d

@tailor-platform/eslint-plugin-sdk

pnpm add https://pkg.pr.new/tailor-platform/sdk/@tailor-platform/eslint-plugin-sdk@e9ca76d

@tailor-platform/sdk

pnpm add https://pkg.pr.new/tailor-platform/sdk/@tailor-platform/sdk@e9ca76d

@tailor-platform/sdk-plugin-seed

pnpm add https://pkg.pr.new/tailor-platform/sdk/@tailor-platform/sdk-plugin-seed@e9ca76d

@tailor-platform/sdk-plugin-setup

pnpm add https://pkg.pr.new/tailor-platform/sdk/@tailor-platform/sdk-plugin-setup@e9ca76d

@tailor-platform/sdk-plugin-tailordb-erd

pnpm add https://pkg.pr.new/tailor-platform/sdk/@tailor-platform/sdk-plugin-tailordb-erd@e9ca76d

commit: e9ca76d

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

🗺️ ERD preview

Self-contained ERD viewer HTML built for this run. Each viewer can switch between the current schema and a diff against base branch main.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

🤖 Claude Dependency Review

❌ Recommended Actions

Breaking change requires code update: One test file imports generateCompletion from the deprecated root path and must be updated to import from "politty/completion" instead.

Required change:

- import { generateCompletion } from "politty";
+ import { generateCompletion } from "politty/completion";

File to update: packages/sdk/src/cli/completion.test.ts:1

📦 Update Summary

  • Library: politty
  • Version: 0.11.9 → 0.12.1
  • Change Type: Minor (0.11.9 → 0.12.0) + Patch (0.12.0 → 0.12.1)
📝 Release Notes

https://github.com/toiroakr/politty/blob/HEAD/packages/politty/CHANGELOG.md

v0.12.1 (Patch)

  • Fixed createLogCollector to capture output written via process.stdout.write and process.stderr.write, not just console.* calls
  • Improved boolean field coercion to recognize expanded literal values (1/t/T/TRUE/true/True for true, 0/f/F/FALSE/false/False for false)
  • Updated dependency @​politty/zod to v0.2.1

v0.12.0 (Minor - Breaking)

  • Breaking: generateCompletion and generateBundledCompletionWorker no longer exported from package root; must import from "politty/completion" subpath
  • Package size reduction: shell-completion generators now load lazily (only when completion subcommands run)
  • Minified builds reduce @​politty/zod distribution from 620KB → 269KB (>50% reduction)
  • withCompletionCommand API unchanged
🔐 Security Assessment
  • Risk: 🟢 Low
  • Known vulnerabilities: None found. No CVE or GHSA advisories detected for politty in either the old (0.11.9) or new (0.12.1) versions.
  • Supply-chain notes:
    • Package maintained by toiroakr (consistent with GitHub repository owner)
    • No suspicious maintainer changes detected
    • No unexpected dependencies or lifecycle scripts
    • Normal version progression (minor + patch bump)
    • Repository: https://github.com/toiroakr/politty
🚨 Breaking Changes

Import Path Change for Completion Generators

What changed: generateCompletion and generateBundledCompletionWorker are no longer exported from the package root.

Migration required:

- import { generateCompletion } from "politty";
+ import { generateCompletion } from "politty/completion";

This also applies to @​politty/zod and @​politty/valibot packages.

Why: To reduce bundle size by lazy-loading shell-completion generators. The completion subcommands (completion/__complete/__refresh-completion) now load only when actually invoked, shrinking the package entry point.

Not affected: withCompletionCommand still works as before when imported from the package root.

✨ Main Changes

v0.12.0

  • Package optimization: Entry point no longer statically bundles bash/zsh/fish completion generators
  • Size reduction: Combined with minification, total published package size reduced by >50%
  • Lazy loading: Completion generators load dynamically when completion subcommands run

v0.12.1

  • Log capture fix: Documentation verification tools (executeExamples/assertDocMatch) now correctly capture output from commands using process.stdout.write directly
  • Boolean parsing: Expanded recognized boolean literals to match Go's strconv.ParseBool convention, aligning with Docker, kubectl, Terraform, and GitHub Actions standards
🔍 Impact Analysis

📁 Usage Locations

politty is used extensively throughout the SDK. The breaking change affects 1 file:

  1. packages/sdk/src/cli/completion.test.ts
    import { generateCompletion } from "politty";
    • Feature used: generateCompletion function for shell completion script generation
    • Impact: ❌ Breaking - Must update import to "politty/completion"

✅ Already Correct

The following file already imports from the correct path and requires no changes:

✅ Unaffected Usage

The SDK extensively uses politty's main exports (in 98+ files) which are not affected by the breaking change:

Root package imports (still exported from "politty"):

  • defineCommand, runCommand, runMain, arg, createDefineCommand
  • extractFields, toCamelCase, isLazyCommand
  • Type imports: AnyCommand, RunResult, SubCommandValue

Other subpath imports (unchanged):

  • "politty/completion": CompletionDirective, extractCompletionData, generateCandidates, parseCompletionContext
  • "politty/skill": withSkillCommand

Packages using politty (all confirmed unaffected):

  • ✅ packages/sdk (98+ files) - 1 file needs update
  • ✅ packages/create-sdk - no breaking imports
  • ✅ packages/sdk-codemod - no breaking imports
  • ✅ packages/sdk-plugin-seed - no breaking imports
  • ✅ packages/sdk-plugin-setup - no breaking imports
  • ✅ packages/sdk-plugin-tailordb-erd - no breaking imports

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