Releases: ForbesLindesay/atdatabases
Release list
@databases/pg-typed@1.1.0
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
Refactorings
-
Update
@databases/pg-data-type-idto remove "composite" built in types (#112)These actually represent tables within the
pg_catalogschema, and their IDs tend not to be stable across multiple Postgres versions.
@databases/pg-typed@1.0.3
Bug Fixes
-
Allow any version of
@databases/pginpeerDependencies(#112)This would have caused a warning from yarn when installing
@databases/pg-typed
@databases/pg-schema-print-types@2.1.0
Refactorings
-
Update
@databases/pg-data-type-idto remove "composite" built in types (#112)These actually represent tables within the
pg_catalogschema, and their IDs tend not to be stable across multiple Postgres versions.
@databases/pg-migrations@2.0.1
Bug Fixes
-
Removed
prettierfrompeerDependencies(#112)An earlier version of
@databases/pg-migrationsmade use of prettier internally, but this version does not.
@databases/pg-data-type-id@2.0.0
Breaking Changes
-
Remove "composite" built in types (#112)
These actually represent tables within the
pg_catalogschema, and their IDs tend not to be stable across multiple Postgres versions.
@databases/sql@2.2.0
New Features
- Improve error message for non-alphanumeric identifiers (#110)
@databases/pg@2.2.0
New Features
-
Define and export new types for
Queryable,Transaction,TaskandConnectionPool(#105)In the long term,
Queryableshould replaceConnectionas the go to interface name for an object that lets you query the database. This is because aConnectioncan currently be aTransactionorConnectionPoolin addition to a regular connection.
@databases/pg-typed@1.0.2
Bug Fixes
-
Fix
insertOrUpdate,insertOrIgnoreandupdate(#110)All methods now also have at least one test covering them.
@databases/pg-typed@1.0.1
Bug Fixes
- Allow re-exporting table types (#109)