Skip to content

@ts-safeql/plugin-utils@5.3.0

Choose a tag to compare

@github-actions github-actions released this 30 Jun 08:59
7338ad1

Minor Changes

  • 09fcf97: Validate the <T> annotation on raw sql fragments embedded in Kysely query-builder chains.

    SafeQL now checks that annotation against the type the database returns and autofixes it on a mismatch. A selection like sql<number>`name || bio`.as("credit_line") whose column is string gets flagged; a .where(sql<number>`bio is not null`) condition gets corrected to boolean. Conditions accept both SqlBool and boolean, and fragments wrapped in parentheses or as are checked like bare ones.