Skip to content

Releases: ForbesLindesay/atdatabases

@databases/pg-typed@1.1.0

Choose a tag to compare

@ForbesLindesay ForbesLindesay released this 31 Oct 20:46
0d79f2a

New Features

  • You can now provide a defaultConnection when constructing the typed API (#113)

    If you provide a default connection, the connection will then be optional within the table API:

    import createConnectionPool from '@databases/pg'
    import tables from '@databases/pg-typed'
    
    const db = createConnectionPool()
    const {users} = tables<Schema>({defaultConnection: db})
    
    // this uses the default connection
    await users().selectOne({id: 42})
    
    await db.tx(async tx => {
      // this uses `tx` as the connection so it works with transactions
      await users(tx).selectOne({id: 42})
    })

@databases/pg@2.3.0

Choose a tag to compare

@ForbesLindesay ForbesLindesay released this 29 Oct 22:21
73a64bb

Refactorings

  • Update @databases/pg-data-type-id to remove "composite" built in types (#112)

    These actually represent tables within the pg_catalog schema, and their IDs tend not to be stable across multiple Postgres versions.

@databases/pg-typed@1.0.3

Choose a tag to compare

@ForbesLindesay ForbesLindesay released this 29 Oct 22:21
73a64bb

Bug Fixes

  • Allow any version of @databases/pg in peerDependencies (#112)

    This would have caused a warning from yarn when installing @databases/pg-typed

@databases/pg-schema-print-types@2.1.0

Choose a tag to compare

@ForbesLindesay ForbesLindesay released this 29 Oct 22:21
73a64bb

Refactorings

  • Update @databases/pg-data-type-id to remove "composite" built in types (#112)

    These actually represent tables within the pg_catalog schema, and their IDs tend not to be stable across multiple Postgres versions.

@databases/pg-migrations@2.0.1

Choose a tag to compare

@ForbesLindesay ForbesLindesay released this 29 Oct 22:21
73a64bb

Bug Fixes

  • Removed prettier from peerDependencies (#112)

    An earlier version of @databases/pg-migrations made use of prettier internally, but this version does not.

@databases/pg-data-type-id@2.0.0

Choose a tag to compare

@ForbesLindesay ForbesLindesay released this 29 Oct 22:21
73a64bb

Breaking Changes

  • Remove "composite" built in types (#112)

    These actually represent tables within the pg_catalog schema, and their IDs tend not to be stable across multiple Postgres versions.

@databases/sql@2.2.0

Choose a tag to compare

@ForbesLindesay ForbesLindesay released this 19 Oct 17:25
d829ca9

New Features

  • Improve error message for non-alphanumeric identifiers (#110)

@databases/pg@2.2.0

Choose a tag to compare

@ForbesLindesay ForbesLindesay released this 19 Oct 14:09
6d71c25

New Features

  • Define and export new types for Queryable, Transaction, Task and ConnectionPool (#105)

    In the long term, Queryable should replace Connection as the go to interface name for an object that lets you query the database. This is because a Connection can currently be a Transaction or ConnectionPool in addition to a regular connection.

@databases/pg-typed@1.0.2

Choose a tag to compare

@ForbesLindesay ForbesLindesay released this 19 Oct 17:25
d829ca9

Bug Fixes

  • Fix insertOrUpdate, insertOrIgnore and update (#110)

    All methods now also have at least one test covering them.

@databases/pg-typed@1.0.1

Choose a tag to compare

@ForbesLindesay ForbesLindesay released this 19 Oct 14:09
6d71c25

Bug Fixes

  • Allow re-exporting table types (#109)