Skip to content

v0.25.3

Choose a tag to compare

@github-actions github-actions released this 25 Oct 02:00
· 11 commits to main since this release
d1ab077

Patch Changes

  • #295 04e401b Thanks @abrahamguo! - The embedded-sql processor now lints statements that use postgres.js's
    sql(...) helpers, such as WHERE id IN ${sql(ids)},
    INSERT INTO users ${sql(user)} and UPDATE users SET ${sql(user)}. Before,
    every ${...} became a bare identifier, which cannot parse in those spots, so
    the whole statement was silently skipped. A ${...} there now stands in as
    the list, rows or assignments it expands to.

  • #296 2bad365 Thanks @abrahamguo! - no-syntax-error now reports syntax errors in sql templates that contain a
    ${...}, such as sql`SELECT id,, name FROM users WHERE id = ${id}`.
    Before, the embedded-sql processor skipped every such template that failed
    to parse, because the identifier standing in for a ${...} can itself be what
    does not parse. It now skips a template only when the parse fails on that
    identifier, or right after it at the end of the statement or on a reserved
    word such as SELECT or WHERE: there, the ${...} held a clause rather
    than a value.