Skip to content

Finally the production ready release

Compare
Choose a tag to compare
@Sharaal Sharaal released this 17 Oct 14:13

Major

  • The sql`` tag not anymore return the function with text and values assigned. So if it's used with a native pg client instance, it's needed to add the function call building the query (#40)

From:

client.query(sql`...`)

To:

client.query(sql`...`())

But it's still not recommend to use the SQL tag directly with the native pg client.query. Better use the manipulation and selection methods or sql.query() which handles it, so no changes needed if using them:

sql.query(sql`...`)

Minor

  • Added sql.identifier() for a better semantic usage escaping identifiers which are not tables or columns like trigger names (#40)
  • Added integration tests to ensure the library and migration script works with the native pg client instance and an actual database (#42 and #34)

Patch

  • Renamed parameters to values in the query response for the native pg client (#40)
  • Drop trigger before creating one for the updated_at of a table to avoid duplication issues (#40)
  • Remove surrounding " for the SELECT * because it was interpreted as column name (#40)