Skip to content

Releases: ts-safeql/safeql

@ts-safeql/shared@0.1.1

08 May 22:36
5b88a17
Compare
Choose a tag to compare

Patch Changes

  • c5b4af1: add support for custom type overrides

@ts-safeql/generate@0.1.1

08 May 22:36
5b88a17
Compare
Choose a tag to compare

Patch Changes

  • c5b4af1: add support for custom type overrides
  • Updated dependencies [c5b4af1]
    • @ts-safeql/shared@0.1.1
    • @ts-safeql/test-utils@0.0.11

@ts-safeql/eslint-plugin@1.1.2

08 May 22:36
5b88a17
Compare
Choose a tag to compare

Patch Changes

  • c5b4af1: add support for custom type overrides
  • Updated dependencies [c5b4af1]
    • @ts-safeql/generate@0.1.1
    • @ts-safeql/shared@0.1.1
    • @ts-safeql/test-utils@0.0.11

@ts-safeql/eslint-plugin@1.1.1

08 May 09:08
cc2b29c
Compare
Choose a tag to compare

Patch Changes

  • 6c15534: fixed an issue where INSERT INTO with a null value was invalid

@ts-safeql/test-utils@0.0.10

07 May 19:22
a4d8a93
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [30965b2]
    • @ts-safeql/shared@0.1.0

@ts-safeql/shared@0.1.0

07 May 19:22
a4d8a93
Compare
Choose a tag to compare

Minor Changes

  • 30965b2: add support for regex matching

@ts-safeql/generate@0.1.0

07 May 19:22
a4d8a93
Compare
Choose a tag to compare

Minor Changes

  • 30965b2: add support for regex matching

Patch Changes

  • Updated dependencies [30965b2]
    • @ts-safeql/shared@0.1.0
    • @ts-safeql/test-utils@0.0.10

@ts-safeql/eslint-plugin@1.1.0

07 May 19:22
a4d8a93
Compare
Choose a tag to compare

Minor Changes

  • 30965b2: add support for regex matching
  • dc5ed22: add support for skipTypeAnnotations.

Patch Changes

  • 92ca1bd: fixed an issue where SafeQL throwed an error when inserting a nullable value into a nullable column
  • Updated dependencies [30965b2]
    • @ts-safeql/generate@0.1.0
    • @ts-safeql/shared@0.1.0
    • @ts-safeql/test-utils@0.0.10

@ts-safeql/eslint-plugin@1.0.2

02 May 00:07
9c8a755
Compare
Choose a tag to compare

Patch Changes

  • d221910: ## Improved connections.overrides.types:

    Sometimes, the TypeScript type of the parameter (sql variable) is not the same as the type of the result. For example:

    import postgres from "postgres";
    import { sql } from "./sql";
    
    function run(value: postgres.Parameter<LocalDate>) {
      const result = sql<{ date: LocalDate }>`SELECT ${value}`;
      // ...
    }

    In this case, you can use the following syntax:

    {
      "connections": {
        "overrides": {
          "types": {
            "date": {
              // the type of the parameter (can be a glob pattern)
              "parameter": "Parameter<LocalDate>",
              // the generated type
              "return": "LocalDate"
            }
          }
        }
      }
    }

@ts-safeql/test-utils@0.0.9

24 Apr 23:36
0531780
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [77c060d]
    • @ts-safeql/shared@0.0.9