Releases: ts-safeql/safeql
Releases · ts-safeql/safeql
@ts-safeql/eslint-plugin@3.0.0
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
Patch Changes
- 22a32bd: add type declarations
@ts-safeql/generate@1.0.3
Patch Changes
- d1b88ff: fixed an issue when selecting from a subselect with a join
@ts-safeql/eslint-plugin@2.0.3
@ts-safeql/generate@1.0.2
Patch Changes
- 5e35a22: Improve join expressions detection
@ts-safeql/eslint-plugin@2.0.2
@ts-safeql/generate@1.0.1
@ts-safeql/eslint-plugin@2.0.1
@ts-safeql/test-utils@0.0.12
Patch Changes
- Updated dependencies [f874247]
- @ts-safeql/shared@0.2.0
@ts-safeql/shared@0.2.0
Minor Changes
- f874247: Replaced the type
ParsedQuery
withLibPgQueryAST.ParseResult
improving type consistency in the code for parsing SQL queries.