github ts-safeql/safeql @ts-safeql/plugin-utils@5.3.0

latest releases: @ts-safeql/eslint-plugin@5.4.1, @ts-safeql/generate@5.4.1, @ts-safeql/plugin-auth-aws@4.3.4...
6 hours ago

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.

Don't miss a new safeql release

NewReleases is sending notifications on new releases.