Update dependency kysely to v0.28.5 #874
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.27.6
->0.28.5
Release Notes
kysely-org/kysely (kysely)
v0.28.5
: 0.28.5Compare Source
Hey 👋
A small batch of bug fixes. Please report any issues. 🤞😰🤞
🚀 Features
🐞 Bugfixes
Buffer
breakingShallowDehydrateValue
in non-Node.js TypeScript environments. by @igalklebanov in #1542.📖 Documentation
📦 CICD & Tooling
🐤 New Contributors
Full Changelog: kysely-org/kysely@v0.28.4...v0.28.5
v0.28.4
: 0.28.4Compare Source
Hey 👋
A small batch of bug fixes. Please report any issues. 🤞😰🤞
🚀 Features
🐞 Bugfixes
PostgreSQL 🐘
📖 Documentation
📦 CICD & Tooling
a9bcfa5
🐤 New Contributors
Full Changelog: kysely-org/kysely@v0.28.3...v0.28.4
v0.28.3
: 0.28.3Compare Source
Hey 👋
A small batch of bug fixes. Please report any issues. 🤞😰🤞
🚀 Features
CockroachDB 🟣
🐞 Bugfixes
Kysely<any>
type errors with narrow table name types by @koskimas in #1443AsyncDisposable
usage erroring for older TypeScript versions. by @igalklebanov in #1507Date
s and other JS/Node-native instances that require data type metadata. by @igalklebanov in #1477MySQL 🐬 / MS SQL Server 🥅
MS SQL Server 🥅
📖 Documentation
📦 CICD & Tooling
1ae8829
7d1c4e5
🐤 New Contributors
Full Changelog: kysely-org/kysely@0.28.2...v0.28.3
v0.28.2
Compare Source
Hey 👋
v0.28 broke an undocumented TypeScript behavior our API had that allowed you to pass table name unions to query builders and enable some DRYing of queries. Seeing that this pattern was quite popular, we decided to support it officially with the addition of the
table
method in the dynamic module.You can pull off some crazy complex stuff like:
...and it'll narrow the downstream query context to the intersection of all the possible shapes of tables in the union type. (DONT DO THIS AT HOME KIDS!)
A simpler example would be:
If you attempt to refer to a column that doesn't exist in both "person" and "pet" (e.g. "pet"'s "species" column), the compiler will correctly yell at you.
🚀 Features
table
toDynamicModule
for dynamic table references by @koskimas in #1434🐞 Bugfixes
SQLite 📘
orderBy(array)
. by @igalklebanov in #1435📖 Documentation
📦 CICD & Tooling
🐤 New Contributors
Full Changelog: kysely-org/kysely@0.28.1...0.28.2
v0.28.1
Compare Source
Hey 👋
Just a small crucial bug fix release. Please inform us if you see any more regressions since v0.28. 🙏
🚀 Features
🐞 Bugfixes
PostgreSQL 🐘
📖 Documentation
📦 CICD & Tooling
🐤 New Contributors
Full Changelog: kysely-org/kysely@0.28.0...0.28.1
v0.28.0
Compare Source
Hey 👋
Transactions are getting a lot of love in this one!
As part an effort to replace Knex with Kysely, B4nan, the author of mikro-orm drove the new
setAccessMode('read only'|'read write')
method when starting transactions.You can now commit/rollback transactions manually and there's even savepoint support:
We also added
using
keyword support, so now you can write:and
db.destroy()
will be called automatically once the current scope is exited.If you plan on trying this out (it is optional, you can still
const db = new Kysely({...})
andawait db.destroy()
manually), theusing
keyword requirestypescript >= 5.2
and the followingtsconfig.json
options:We also added a plugin to handle
in ()
andnot in ()
. It comes with 2 handling strategies, one similar to how Knex.js, PrismaORM, Laravel and SQLAlchemy do it, and one similar to how TypeORM and Sequelize do it. It also supports custom strategies, e.g. throwing an error to avoid making a call to the database and wasting resources. Here's an example with one of the strategies we ship:🚀 Features
InferResult
should output plural. by @igalklebanov in #1064ControlledTransaction
. by @igalklebanov in #962 & #1193await using kysely = new Kysely()
support. by @igalklebanov in #1167c95f499
queryId
toCompiledQuery
and all transformer methods. by @igalklebanov in #176PostgreSQL 🐘 / MySQL 🐬
PostgreSQL 🐘 / MS SQL Server 🥅
PostgreSQL 🐘 / SQLite 📘
PostgreSQL 🐘
returning
support inMERGE
queries. by @igalklebanov in #1171MySQL 🐬
MS SQL Server 🥅
validateConnections
andresetConnectionsOnRelease
to root of config, flip defaultresetConnectionsOnRelease
behavior. by @igalklebanov in #1388SQLite 📘
🐞 Bugfixes
PostgreSQL 🐘
📖 Documentation
1c5e03a
📦 CICD & Tooling
9736aeb
f348dfb
6eaf754
ca11632
InferResult
now outputsInsertResult[]
,UpdateResult[]
,DeleteResult[]
,MergeResult[]
, instead ofInsertResult
,UpdateResult
,DeleteResult
,MergeResult
. To get the singular form, usetype Result = InferResult<T>[number]
.QueryCreator
's methods should no longer pass type checks. We never supported these officially.preventAwait
is now removed on all builders, you must avoid awaiting builders without callingexecute
-like methods on your own.QueryResult.numUpdatedOrDeletedRows
has been removed (after spending ~2 years in deprecation). We still log a warning. Outdated dialects that don't useQueryResult.numAffectedRows
should be updated OR forked.DefaultQueryExecutor.compileQuery
now requires passing aqueryId
argument. Use the newly exportedcreateQueryId()
as that argument value from now on.UpdateValuesNode
type has been removed.MssqlDialectConfig.tedious.resetConnectionOnRelease
has been deprecated, and had it's default flipped tofalse
. UseMssqlDialectConfig.resetConnectionsOnRelease
instead.MssqlDialectConfig.tarn.options.validateConnections
has been deprecated. UseMssqlDialectConfig.validateConnections
instead.'
injection protected, hopefully. Please report any issues.🐤 New Contributors
Full Changelog: kysely-org/kysely@0.27.6...0.28.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.