Skip to content

Releases: ts-safeql/safeql

@ts-safeql/eslint-plugin@3.0.0

25 Apr 07:56
1f81ad3
Compare
Choose a tag to compare

Major Changes

  • 649a592: Significantly improved the validation and type-inference of JSON/B expressions (e.g., jsonb_agg, json_build_object).

    Before:

    sql<{ rows: any[] }>`
      SELECT jsonb_agg(json_build_object('id', id, 'name', name)) AS rows
    `;

    After:

    sql<{ rows: { id: number; name: string }[] }>`
      SELECT jsonb_agg(json_build_object('id', id, 'name', name)) AS rows
    `;

Patch Changes

  • 7475acd: improve query type inference by AST lookup
  • ad221c9: improved json/b type inference for subselects and aggregators
  • 54de7d2: fixed json/b type inference bugs
  • 3614126: fix build artifact
  • Updated dependencies [649a592]
  • Updated dependencies [7475acd]
  • Updated dependencies [ad221c9]
  • Updated dependencies [54de7d2]
  • Updated dependencies [3614126]
    • @ts-safeql/generate@3.0.0
    • @ts-safeql/shared@3.0.0
    • @ts-safeql/test-utils@0.0.13

@ts-safeql/sql-tag@0.1.2

18 Oct 14:08
3e66da5
Compare
Choose a tag to compare

Patch Changes

@ts-safeql/generate@1.0.3

24 Aug 18:11
830cd76
Compare
Choose a tag to compare

Patch Changes

  • d1b88ff: fixed an issue when selecting from a subselect with a join

@ts-safeql/eslint-plugin@2.0.3

24 Aug 18:11
830cd76
Compare
Choose a tag to compare

Patch Changes

  • d1b88ff: fixed an issue when selecting from a subselect with a join
  • Updated dependencies [d1b88ff]
    • @ts-safeql/generate@1.0.3

@ts-safeql/generate@1.0.2

10 Aug 00:33
8eacb25
Compare
Choose a tag to compare

Patch Changes

  • 5e35a22: Improve join expressions detection

@ts-safeql/eslint-plugin@2.0.2

10 Aug 00:33
8eacb25
Compare
Choose a tag to compare

Patch Changes

  • 5e35a22: Improve join expressions detection
  • Updated dependencies [5e35a22]
    • @ts-safeql/generate@1.0.2

@ts-safeql/generate@1.0.1

08 Aug 08:08
b00afdf
Compare
Choose a tag to compare

Patch Changes

  • 0340f4c: feat: add nullAsUndefined and nullAsOptional connection options
  • 895c4dc: select from subselect with alias should not throw internal error

@ts-safeql/eslint-plugin@2.0.1

08 Aug 08:08
b00afdf
Compare
Choose a tag to compare

Patch Changes

  • 0340f4c: feat: add nullAsUndefined and nullAsOptional connection options
  • 895c4dc: select from subselect with alias should not throw internal error
  • Updated dependencies [0340f4c]
  • Updated dependencies [895c4dc]
    • @ts-safeql/generate@1.0.1

@ts-safeql/test-utils@0.0.12

09 Jul 11:03
22efaa0
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [f874247]
    • @ts-safeql/shared@0.2.0

@ts-safeql/shared@0.2.0

09 Jul 11:03
22efaa0
Compare
Choose a tag to compare

Minor Changes

  • f874247: Replaced the type ParsedQuery with LibPgQueryAST.ParseResult improving type consistency in the code for parsing SQL queries.