chore(deps): update dependency kysely to v0.27.4 #1250
+8
−8
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.23.3
->0.27.4
Release Notes
kysely-org/kysely (kysely)
v0.27.4
Compare Source
Hey 👋
We've reached 100 contributors AND 1,000 pull requests since our last release! 🍾
Here's all the amazing work done since version 0.27.3...
🚀 Features
clearGroupBy()
by @dswbx in https://github.com/kysely-org/kysely/pull/921objectStrategy
option that allows to not mutate result objects/arrays @ParseJSONResultsPlugin
. by @igalklebanov in https://github.com/kysely-org/kysely/pull/953PostgreSQL 🐘 / SQLite 📘
MySQL 🐬 / MS SQL Server 🥅
PostgreSQL 🐘
MS SQL Server 🥅
OUTPUT
clause support. by @igalklebanov in https://github.com/kysely-org/kysely/pull/828🐞 Bugfixes
preventAwait
toalter-column-builder
.ts. by @igalklebanov in https://github.com/kysely-org/kysely/pull/1031eb
inselectFrom(eb => ...)
is wrong by @koskimas in 873671bPostgreSQL 🐘 / MS SQL Server 🥅
WhenNode
s with a space by @gittgott in https://github.com/kysely-org/kysely/pull/940InferResult
not working for merge queries. by @igalklebanov in https://github.com/kysely-org/kysely/pull/902PostgreSQL 🐘
MS SQL Server 🥅
MssqlDialect
streaming not handling backpressure. by @igalklebanov in https://github.com/kysely-org/kysely/pull/1041MssqlDriver
. by @igalklebanov in https://github.com/kysely-org/kysely/pull/1042📖 Documentation
tedious
support inBun
by @igalklebanov in https://github.com/kysely-org/kysely/pull/1018kysely-ctl
in migrations section. by @igalklebanov in https://github.com/kysely-org/kysely/pull/1035UpdateResult
by @movahhedi in https://github.com/kysely-org/kysely/pull/993📦 CICD & Tooling
🐤 New Contributors
Full Changelog: 0.27.3...0.27.4
v0.27.3
Compare Source
v0.27.2
Compare Source
allowUnorderedMigrations
option for the migrator. #723 Awesome work by @tracehelms ❤️Kysely<any>
.UpdateQueryBuilder#set
andInsertQueryBuilder#values
methods.v0.27.1
Compare Source
$notNull
type helperfor update of table
and friends #683insert into "person" default values
#685limit
andoffset
fn.agg
regression where two type arguments were required #829v0.27.0
Compare Source
json_agg
andto_json
functions to function moduleis distinct from
operator #673set('first_name', 'Jennifer')
variant for update query'sset
method #672as
statement support for createTable #771. Thank you @viraxslot ❤️nulls not distinct
option for constraints #770. Thank you @viraxslot ❤️addIndex
&dropIndex
@ AlterTableBuilder #720. Thank you @Gasperostream()
support for sqlite dialect #754. Thank you @tgriesser ❤️$if
#793. Thank you @igalklebanov ❤️onConflict..doUpdateSet
used select types instead of update types. #792. Thank you @igalklebanov ❤️eb.jsonPath<$>
#791. Thank you @igalklebanov ❤️$narrowType
supports new type tagNotNull
for an easier way to mark columns not nullable manuallymin
andmax
aggregate functions.Breaking changes
selectNoFrom
is removed fromExpressionBuilder
due to severe typescript performance issues.selectNoFrom
still exists in theKysely
instance, and in most cases, you can use that instead. See this example on how to migrate: https://kyse.link/?p=s\&i=sqAZIvTQktxgXYzHGkqX.where('first_name', '=', sql`something`)
. You need to explicitly give a type for thesql
expressions like thissql<string>`something`
eb.cmpr
andeb.bxp
have been removed. Useeb
as a function instead.v0.26.3
Compare Source
select(eb => [autocompletion works here now])
.v0.26.2
Compare Source
from
clause. The function is called selectNoFrom. The function name was selected after a lot of discussion. The most natural name would just beselect
, but new users would find that in a list of autocompletions beforeselectFrom
and naturally use it when trying to create aselect from
query. This would be especially true for people coming from knex where aselect from
query is started using aselect
call. #605and
andor
functions. Allows easywhere(eb => eb.and(object))
filters. #583any
function to function module. #612between
method to expression builder. #602lit
method to expression builder. #600orderBy
. #423 Thank you @igalklebanov ❤️An example of an object
and
call:v0.26.1
Compare Source
v0.26.0
Compare Source
Expression builder improvements
We improved the expression builder based on excellent feedback from the community in this issue in addition to many discord discussions. Unfortunately this means deprecating the recently added
cmpr
andbxp
methods, but the migration should be painless. Read more @ #565.Before you could create comparisons and arbitrary binary expressions using
cmpr
andbxp
respectively:After this release, you'd do this instead:
As you can see we made the expression builder callable and it can create all kinds of binary expressions. You can still use destructuring as before since the expression builder has a new property
eb
that returns itself:or
andand
chainingWe've also added new way to create
and
andor
expressions using chainingThe old
and
andor
methods are still there and are not going anywhere.JSON references
The expression builder's
ref
function can now be used to reference nested JSON columns' fields and array items in a type-safe way:The JSON reference builder is just our first guess of a good API. We're eager to hear your feedback. More examples and a recipe on the subject will follow shortly after this release. Read more @ #440.
Other changes
v0.25.0
Compare Source
Large amount of contributions from many awesome people in this one, but one definitely stands out:
Using his sorcerous knowledge of the typescript compiler internals @schusovskoy was able to significantly reduce the possibility of the notorious
Type instantiation is excessively deep and possibly infinite
compiler error throughout Kysely. Check out the PR here #483 🧙. In our typing tests, we were able to at least double the complexity of the troublesome queries without hitting slowdowns or compiler errors. In some cases the issue seems to have gone away completely.Simply amazing work. Thank you so much @schusovskoy ❤️
Other fixes and improvements in no particular order:
case when then end
builder #404. Thanks @igalklebanov ❤️$narrowType
helper for narrowing the query output type #380. Thanks @igalklebanov ❤️agg
method to expression builder for arbitrary aggregate function calls #417 @igalklebanov ❤️$if
method should no longer cause performance issues or excessively deep typesIn addition to this there were small fixes from multiple awesome people including:
v0.24.2
Compare Source
jsonArrayFrom
andjsonObjectFrom
functions. See this recipe for more info.v0.24.1
Compare Source
v0.24.0
Compare Source
So much new stuff and big improvements, I don't know where to start! 🎉. There should be no breaking changes, but with this amount of changes and new features, it's always possible we've broken something 😬. As always, please open an issue if something is broken.
Let's start with the reason some of you are here: the deprecated filter methods and the improved
ExpressionBuilder
:The improved
ExpressionBuilder
We've deprecated most of the
where
,having
,on
and other filter methods likewhereExists
,whereNotExists
,orWhere
,orWhereExists
in favour of the new expression builder. To get an idea what the expression builder is and what it can do, you should take a look at this recipe. Here are some of the most common migrations you should do:You can fine more examples here and here.
The new website 🎉
The first version of kysely.dev is out 🎉 A huge thanks to @fhur for the initiative and for doing allmost all work on that ❤️
Now that the site is out, we'll concentrate on adding more documentation and examples there. For now, it's pretty minimal.
Other changes
returningAll('table')
overload forDeleteQueryBuilder
. Thank you @anirudh1713 ❤️ #314update
,insert
anddelete
query results on postgres. Thank you @igalklebanov ❤️ #377where
method toCreateIndexBuilder
. Thank you @igalklebanov ❤️ #371kysely/helpers/postgres
for some postgres-spcific higher level helpers. Similar packages will be added for other dialects too in the future. See this recipe for the newly available helpers.v0.23.5
Compare Source
Thank you @steida for pointing me to the
Simplify
helper.v0.23.4
Compare Source
ifNotExists
forCreateIndexBuilder
#253using
clause support forDeleteQueryBuilder
#241. Thank you @igalklebanov ❤️match
to the list of supported comparison operators #280. Thank you @jonluca ❤️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 is behind base branch, 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.