Skip to content

fix(deps): update dependency @toiroakr/lines-db to v0.11.0 - #1964

Merged
toiroakr merged 3 commits into
mainfrom
renovate/toiroakr-lines-db-0.x
Aug 3, 2026
Merged

fix(deps): update dependency @toiroakr/lines-db to v0.11.0#1964
toiroakr merged 3 commits into
mainfrom
renovate/toiroakr-lines-db-0.x

Conversation

@renovate

@renovate renovate Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
@toiroakr/lines-db 0.10.10.11.0 age confidence

Release Notes

toiroakr/lines-db (@​toiroakr/lines-db)

v0.11.0: @​toiroakr/lines-db v0.11.0

Compare Source

Minor Changes
  • 15cd137: Let a sync write back only the fields you name, instead of always rewriting the whole row.

    Write-back materialized every column, so values a validation schema computed and fields the JSONL
    file omitted were baked into the file - lines-db migrate rewrote far more than the transform
    touched. Naming the fields keeps the rest of each line exactly as the file had it:

    # users.jsonl before: {"name":"John"}
    npx lines-db migrate ./data/users.jsonl "(row) => row" --fields id
    # users.jsonl after:  {"name":"John","id":"..."}
    • --fields <list> on the migrate CLI
    • db.sync(table, { fields: ['id'] }) for a single sync
    • writeBackFields on the database config, which also covers the automatic sync after insert,
      update, and transaction

    One list covers every table a run touches: a table without a named field has nothing written back to
    it, so a directory of tables that do not all share an id works with a single --fields id. The CLI
    still rejects a field no table has, and sync(table, { fields }) rejects a field that one table does
    not have.

    Declaring nothing keeps the previous behaviour of writing every field.

Patch Changes
  • 15cd137: Keep the order a JSONL file lists its rows in when syncing.

    A sync wrote rows back in database order. An integer primary key is SQLite's rowid, so a file whose
    lines were not already sorted by id came back reshuffled - a whole-file diff out of a one-field
    change. Rows now keep the order the file has them in, and rows the file did not have are appended.
    When rows cannot be matched to their lines (no usable primary key and a changed row count), a full
    write-back falls back to database order as before.

  • 15cd137: Fix lines-db migrate <file> on Windows.

    The command split the given path on / and fell back to . when it found none, so a Windows path
    turned into a table name and the data directory became the current directory:
    Table 'D:\...\User' not found in directory '.'. Paths now go through node:path, which is
    separator-aware.


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 August 3, 2026 06:01
@changeset-bot

changeset-bot Bot commented Aug 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: acbdf2c

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

This PR includes changesets to release 2 packages
Name Type
@tailor-platform/sdk 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 August 3, 2026 06:01
@pkg-pr-new

pkg-pr-new Bot commented Aug 3, 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@acbdf2c

@tailor-platform/eslint-plugin-sdk

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

@tailor-platform/sdk

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

@tailor-platform/sdk-plugin-seed

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

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

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

commit: acbdf2c

@renovate

renovate Bot commented Aug 3, 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 Aug 3, 2026

Copy link
Copy Markdown

🤖 Claude Dependency Review

📦 Update Summary

  • Library: @​toiroakr/lines-db
  • Version: 0.10.1 → 0.11.0
  • Change Type: Minor

📝 Release Notes

https://github.com/toiroakr/lines-db/releases/tag/%40toiroakr%2Flines-db%400.11.0

🔐 Security Assessment

  • Risk: 🟢 Low
  • Known vulnerabilities: None found. Searched GitHub Advisory Database, OSV, and general CVE databases — no advisories for this package in either the old (0.10.1) or new (0.11.0) version.
  • Supply-chain notes:
    • No maintainer changes detected (consistent author: toiroakr)
    • No install/preinstall/postinstall lifecycle scripts present
    • No suspicious new dependencies or unexpected version jumps
    • This is a relatively new but actively maintained library for working with JSONL files as SQLite database tables

✨ Main Changes

Minor Changes:

  • Selective field write-back: Previously, sync operations rewrote all columns in JSONL files, materializing computed values and omitted fields. Now you can specify which fields to persist:
    • CLI: --fields <list> parameter for the migrate command
    • API: db.sync(table, { fields: ['id'] }) for individual syncs
    • Config: writeBackFields option that applies to automatic syncs after insert/update/transaction
    • This preserves the rest of each line exactly as the file had it, reducing unnecessary diffs

Patch Changes:

  • Row order preservation: Syncs now maintain the original file's row sequence instead of reordering by database ID, preventing whole-file diffs from one-field changes
  • Windows path fix: Fixed lines-db migrate <file> on Windows by using node:path instead of splitting on /, resolving "Table not found" errors with backslash-separated paths

🔍 Impact Analysis

📁 Usage Locations

@​toiroakr/lines-db is used in the following 4 files:

  1. packages/sdk/src/plugin/builtin/seed/types.ts

    import type { ForeignKeyDefinition, IndexDefinition } from "@​toiroakr/lines-db";
    • Feature used: Type definitions for foreign keys and indexes
    • Impact: None. Type-only import; the new version maintains backward compatibility for these type definitions
  2. packages/sdk/src/plugin/builtin/seed/lines-db-processor.ts

    import type { ForeignKeyDefinition, IndexDefinition } from "@​toiroakr/lines-db";
    • Feature used: Type definitions for foreign keys and indexes used in schema generation
    • Impact: None. Type-only import; backward compatible
  3. packages/sdk/src/seed/index.ts

    import { LinesDB, ErrorFormatter } from "@​toiroakr/lines-db";
    
    export { defineSchema } from "@​toiroakr/lines-db";
    export type { ForeignKeyDefinition, IndexDefinition } from "@​toiroakr/lines-db";
    • Feature used:
      • LinesDB class for database initialization and validation
      • ErrorFormatter for formatting validation errors
      • defineSchema function (re-exported)
      • Type definitions (re-exported)
    • Impact: None. The code uses LinesDB.create() and db.initialize() methods which are unchanged. The new optional features (sync with fields, writeBackFields) are not used and maintain backward compatibility
  4. packages/sdk-plugin-seed/src/validate.ts

    const { validateSeedData } = await import("@​tailor-platform/sdk/seed");
    • Feature used: Indirectly uses validateSeedData which internally uses LinesDB and ErrorFormatter
    • Impact: Positive. The row order preservation fix will reduce unnecessary diffs in validation outputs, and the Windows path fix will make the validation work correctly on Windows systems

Additional Context:

  • No usage of the new CLI --fields option, sync() with fields parameter, or writeBackFields config option was found
  • The library is used primarily for seed data validation in the Tailor Platform SDK
  • All usage is through the SDK's re-export layer (@​tailor-platform/sdk/seed), which maintains a stable API

✅ Recommended Actions

No breaking changes — this update can be safely merged.

Benefits:

  • Fixes Windows compatibility issue for users on Windows systems
  • Reduces unnecessary file diffs during seed data operations (row order preservation)
  • Provides new optional features for more granular control over sync operations

Testing:

  • Existing tests should continue to pass as the changes are backward compatible
  • The new features are opt-in and don't affect existing behavior when not used

@github-actions

This comment has been minimized.

Copilot AI requested a review from toiroakr August 3, 2026 06:57
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

Code Metrics Report (packages/sdk)

main (233cac1) #1964 (1d2cded) +/-
Coverage 78.5% 78.5% 0.0%
Code to Test Ratio 1:0.4 1:0.4 +0.0
Details
  |                    | main (233cac1) | #1964 (1d2cded) | +/-  |
  |--------------------|----------------|-----------------|------|
  | Coverage           |          78.5% |           78.5% | 0.0% |
  |   Files            |            462 |             462 |    0 |
  |   Lines            |          17731 |           17731 |    0 |
  |   Covered          |          13920 |           13920 |    0 |
+ | Code to Test Ratio |          1:0.4 |           1:0.4 | +0.0 |
  |   Code             |         126564 |          126565 |   +1 |
+ |   Test             |          61875 |           61876 |   +1 |

SDK Configure Bundle Size

main (233cac1) #1964 (1d2cded) +/-
configure-index-size 39.25KB 39.25KB 0KB
dependency-chunks-size 24.96KB 24.96KB 0KB
total-bundle-size 64.22KB 64.22KB 0KB

Runtime Performance

main (233cac1) #1964 (1d2cded) +/-
Generate Median 2,447ms 2,422ms -25ms
Generate Max 2,484ms 2,430ms -54ms
Apply Build Median 2,510ms 2,472ms -38ms
Apply Build Max 2,547ms 2,494ms -53ms

Type Performance (instantiations)

main (233cac1) #1964 (1d2cded) +/-
tailordb-basic 40,450 40,450 0
tailordb-optional 4,535 4,535 0
tailordb-relation 3,854 3,854 0
tailordb-validate 666 666 0
tailordb-hooks 5,499 5,499 0
tailordb-object 16,345 16,345 0
tailordb-enum 1,538 1,538 0
resolver-basic 12,120 12,120 0
resolver-nested 35,419 35,419 0
resolver-array 24,056 24,056 0
executor-schedule 4,489 4,489 0
executor-webhook 1,130 1,130 0
executor-record 4,542 4,542 0
executor-resolver 5,808 5,808 0
executor-operation-function 1,118 1,118 0
executor-operation-gql 1,126 1,126 0
executor-operation-webhook 1,137 1,137 0
executor-operation-workflow 1,931 1,931 0

Reported by octocov

@toiroakr
toiroakr merged commit 7963895 into main Aug 3, 2026
48 checks passed
@toiroakr
toiroakr deleted the renovate/toiroakr-lines-db-0.x branch August 3, 2026 13:44
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