Skip to content

chore: version packages - #170

Merged
G4brym merged 1 commit into
mainfrom
changeset-release/main
Jul 24, 2026
Merged

chore: version packages#170
G4brym merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

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

Releases

workers-qb@1.15.0

Minor Changes

  • #169 5c9bdc0 Thanks @G4brym! - Harden structured SQL inputs against injection while preserving existing fields expressions. Table and column identifiers, aliases, CTE names, join types and conditions, conflict modes, set operations, ordering, limits, and offsets are now validated before SQL generation.

    Bound values now receive unique parameter positions across CTEs, subqueries, WHERE, and HAVING. Queries that previously reused the same numbered position across clauses may consume more bound-parameter slots; D1 and SQLite-backed Durable Objects allow up to 100 per query.

    Upgrade notes

    • Existing SQL expressions passed through fields continue to work without changes.
    • Plain groupBy, distinct, and returning values must be identifiers. Plain orderBy values must be identifiers with an optional ASC or DESC direction, and join conditions must use simple comparisons joined by AND or OR. Wrap more complex, trusted expressions in Raw.
    • Ordinary WHERE and HAVING values remain bound parameters. Passing Raw in a parameter position now explicitly inlines trusted SQL and must never be used with request-controlled input.
    • Split or batch D1 and Durable Object queries that can exceed 100 independently supplied bound values.
    • Custom database adapters must execute query.toStatement('sqlite') or query.toStatement('postgres') instead of query.query so nested parameters retain unique binding positions.

@G4brym
G4brym merged commit 38ccea7 into main Jul 24, 2026
2 of 3 checks passed
@G4brym
G4brym deleted the changeset-release/main branch July 24, 2026 14:08
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