Skip to content

v0.0.186

Compare
Choose a tag to compare
@dirkdev98 dirkdev98 released this 20 Feb 12:06
· 1641 commits to main since this release
a115d79
Changes
  • build(deps): bump @babel/core from 7.17.2 to 7.17.5 (#1612, #1615)
  • build(deps): bump @types/node from 17.0.16 to 17.0.18 (#1598, #1609)
  • build(deps): bump eslint from 8.8.0 to 8.9.0 (#1605)
  • build(deps): bump eslint-plugin-jsdoc from 37.8.0 to 37.9.4 (#1596, #1607, #1613, #1614, #1617)
  • build(deps): bump follow-redirects from 1.14.7 to 1.14.8 (#1603)
  • build(deps): bump pino from 7.6.5 to 7.8.0 (#1611)
  • build(deps): bump sharp from 0.30.0 to 0.30.1 (#1597)
  • chore(types): remove a bunch of file global type imports (#1618)
  • feat(code-gen): support atomic updates and dynamic return types in generated update queries (#1601)
  • fix(cli): make sure that --serial runs tests without worker threads (#1599)
  • test(code-gen): jsonb null insert behavior (#1602)
Breaking changes
  • code-gen: support atomic updates and dynamic return types in generated update queries
    • Various keys starting with $ are recursively reserved in T.object() types with .enableQueries().
    • Updated signature for queries.entityUpdate. Providing better intent and less prone to bugs by naming the keys. See compas code-mod list for the update-queries-signature-change code-mod which can automatically fix most cases. Note that it may add some extra whitespace, this needs to be cleaned up manually.
    • queries.entityUpdate by default does not return any values anymore. See the docs for more information.
    • Removed xxxUpdateSet functions from the generator output.
    • Stricter checks on update queries if both where and update are specified
Documentation updates
  • Added more docs to Code generator SQL with examples for where-clauses, atomic updates and docs about relations.