Skip to content

fix(deps): update dependency politty to v0.11.0#1626

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

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

Conversation

@renovate

@renovate renovate Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
politty 0.10.10.11.0 age confidence

Release Notes

toiroakr/politty (politty)

v0.11.0

Compare Source

Minor Changes
  • 50013d2: Disable default boolean negation unless negation: true is set.

    Boolean options no longer accept --no-<name> or --no<Name> by default. Set negation: true to enable and advertise the default negation form, set negation to a string to use a custom negation name, or leave it unset / set it to false to reject default negation.


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 July 2, 2026 03:07
@changeset-bot

changeset-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 06cc5f2

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

This PR includes changesets to release 3 packages
Name Type
@tailor-platform/sdk Patch
@tailor-platform/sdk-codemod 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 July 2, 2026 03:07
@pkg-pr-new

pkg-pr-new Bot commented Jul 2, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: 06cc5f2

@renovate

renovate Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

Code Metrics Report (packages/sdk)

main (31b645b) #1626 (28c5e41) +/-
Coverage 71.2% 71.2% 0.0%
Code to Test Ratio 1:0.4 1:0.4 0.0
Details
  |                    | main (31b645b) | #1626 (28c5e41) | +/-  |
  |--------------------|----------------|-----------------|------|
  | Coverage           |          71.2% |           71.2% | 0.0% |
  |   Files            |            428 |             428 |    0 |
  |   Lines            |          15737 |           15737 |    0 |
  |   Covered          |          11211 |           11211 |    0 |
  | Code to Test Ratio |          1:0.4 |           1:0.4 |  0.0 |
  |   Code             |         107016 |          107016 |    0 |
  |   Test             |          48418 |           48418 |    0 |

SDK Configure Bundle Size

main (31b645b) #1626 (28c5e41) +/-
configure-index-size 20.32KB 20.32KB 0KB
dependency-chunks-size 47.12KB 47.12KB 0KB
total-bundle-size 67.44KB 67.44KB 0KB

Runtime Performance

main (31b645b) #1626 (28c5e41) +/-
Generate Median 2,911ms 3,004ms 93ms
Generate Max 2,922ms 3,157ms 235ms
Apply Build Median 2,958ms 3,056ms 98ms
Apply Build Max 2,974ms 3,090ms 116ms

Type Performance (instantiations)

main (31b645b) #1626 (28c5e41) +/-
tailordb-basic 39,480 39,480 0
tailordb-optional 4,385 4,385 0
tailordb-relation 5,103 5,103 0
tailordb-validate 742 742 0
tailordb-hooks 5,222 5,222 0
tailordb-object 12,510 12,510 0
tailordb-enum 1,450 1,450 0
resolver-basic 9,272 9,272 0
resolver-nested 26,139 26,139 0
resolver-array 18,078 18,078 0
executor-schedule 4,310 4,310 0
executor-webhook 949 949 0
executor-record 5,664 5,664 0
executor-resolver 4,108 4,108 0
executor-operation-function 937 937 0
executor-operation-gql 945 945 0
executor-operation-webhook 956 956 0
executor-operation-workflow 1,785 1,785 0

Reported by octocov

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

🤖 Claude Dependency Review

📦 Update Summary

  • Library: politty
  • Version: 0.10.1 → 0.11.0
  • Change Type: Minor

📝 Release Notes

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

🔐 Security Assessment

  • Risk: 🟢 Low
  • Known vulnerabilities: None found. No CVEs or GitHub Security Advisories exist for politty in either version.
  • Supply-chain notes: No red flags detected. The package is a CLI framework library by toiroakr with stable maintainer ownership. No suspicious lifecycle scripts, abnormal version jumps, or unexpected dependencies were identified.

🚨 Breaking Changes

Boolean Negation Now Requires Explicit Configuration

Boolean command-line options no longer automatically accept --no-<name> or --no<Name> negation patterns. Previously, all boolean options supported negation by default. With v0.11.0, developers must explicitly configure this behavior:

  • Set negation: true to enable default negation forms (--no-<name>)
  • Set negation: "custom-name" for a custom negation pattern
  • Leave unset or set to false to reject negation entirely

Why This Matters: This addresses a behavioral inconsistency where boolean options automatically supported negation without explicit declaration. By making negation opt-in, CLI authors gain finer control over their command interfaces and prevent accidental acceptance of negation forms they didn't intend to support.

✨ Main Changes

This release focuses entirely on refining boolean option handling. No new features were introduced beyond the negation configuration system described above.

🔍 Impact Analysis

📁 Usage Locations

politty is extensively used throughout the SDK CLI implementation. The library is imported in 100+ files across three packages:

Core Imports and Command Infrastructure:

  1. packages/sdk/src/cli/index.ts

    • Main CLI entry point using runMain and defineCommand
    • Impact: Core CLI orchestration - no direct boolean negation usage
  2. packages/sdk/src/cli/shared/command.ts

    • Shared command definition utilities using defineCommand
    • Impact: Command infrastructure - no direct boolean negation usage
  3. packages/sdk/src/cli/shared/args.ts

    • Common argument definitions including boolean options like verbose and json
    • Impact: No negation needed (positive flags only)

Critical Issue - Boolean Negation in Documentation:

  1. packages/sdk/src/cli/query/index.ts

    "newline-on-enter": arg(z.boolean().optional(), {
      description:
        "REPL: when true, Enter inserts a newline and Shift+Enter submits. Use --no-newline-on-enter to swap.",
    }),
    • Feature used: Boolean option with documented negation pattern
    • Impact: ⚠️ BREAKING - The documentation explicitly instructs users to use --no-newline-on-enter, but the option definition does not include negation: true. This will break with politty v0.11.0.
  2. packages/sdk/docs/cli/query.md

    • CLI documentation table explicitly mentions --no-newline-on-enter
    • Impact: ⚠️ Documentation will be incorrect unless the option is fixed

Deploy Command Boolean Options:

  1. packages/sdk/src/cli/commands/deploy/index.ts
    "dry-run": arg(z.boolean().optional(), { ... }),
    "no-schema-check": arg(z.boolean().optional(), { ... }),
    "no-validate": arg(z.boolean().optional(), { ... }),
    "no-cache": arg(z.boolean().optional(), { ... }),
    "clean-cache": arg(z.boolean().optional(), { ... }),
    • Feature used: Boolean flags for deployment control
    • Impact: ✅ No issue - Options like no-schema-check, no-validate, no-cache are already negative forms, so they don't need negation support

Other Package Usage:

  1. packages/create-sdk/src/index.ts

    • Uses defineCommand, runMain, and arg for project creation CLI
    • Feature used: Only string arguments (no boolean options)
    • Impact: ✅ No impact - No boolean options defined
  2. packages/sdk-codemod/src/index.ts

    "dry-run": arg(z.boolean().default(false), {
      alias: "d",
      description: "Preview changes without modifying files",
    }),
    • Feature used: Boolean dry-run flag
    • Impact: ✅ No issue - Positive flag, no negation needed

Additional CLI Commands (36 boolean options total):

9-100. Multiple CLI command files

  • Boolean options across commands: open, init, all, watch, logs, wait, attempts, yes, ci, tag, force, erd-preview, require-preview-label, write, delete-protection, edit, verbose, json, etc.
  • Feature used: Various boolean flags for command options
  • Impact: ✅ Most are positive flags that don't require negation. The breaking change primarily affects newline-on-enter which explicitly documents negation usage.

Search Verification Completed:

  • ✅ Executed comprehensive search patterns across all TypeScript files
  • ✅ Searched for import statements (from 'politty', require('politty'))
  • ✅ Searched for boolean option definitions (arg(z.boolean())
  • ✅ Searched for negation patterns (negation, --no-)
  • ✅ Verified all found files with Read tool
  • ✅ Identified all usage locations (100+ files)
  • ✅ Found 36 boolean options across the CLI
  • ✅ Identified 1 critical breaking change location

✅ Recommended Actions

Required Fix:

  1. Add negation: true to the newline-on-enter option in packages/sdk/src/cli/query/index.ts:
    "newline-on-enter": arg(z.boolean().optional(), {
      negation: true,  // ADD THIS LINE
      description:
        "REPL: when true, Enter inserts a newline and Shift+Enter submits. Use --no-newline-on-enter to swap.",
    }),

Testing Recommendations:

  1. Test the --no-newline-on-enter flag after the fix to ensure it still works as documented
  2. Run existing test suite to verify no other boolean options are affected
  3. Review all 36 boolean options to confirm none others rely on implicit negation behavior

Merge Guidance:

  • ⚠️ Do not merge without fixing the newline-on-enter option first
  • Once fixed, this update is safe to merge
  • The breaking change is isolated to one option that explicitly documents negation usage

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