Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

fix(deps): update dependency kysely to ^0.27.0 #434

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 30, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
kysely ^0.26.1 -> ^0.27.0 age adoption passing confidence

Release Notes

kysely-org/kysely (kysely)

v0.27.1

Compare Source

  • Add $notNull type helper
  • Support for update of table and friends #​683
  • Support insert into "person" default values #​685
  • Support arbitrary expressions in limit and offset
  • Support insert, update and delete queries in raw SQL substitutions #​680
  • Fix node 14 regression #​824
  • Fix fn.agg regression where two type arguments were required #​829

v0.27.0

Compare Source

Breaking changes
  • selectNoFrom is removed from ExpressionBuilder due to severe typescript performance issues. selectNoFrom still exists in the Kysely instance, and in most cases, you can use that instead. See this example on how to migrate: https://kyse.link/?p=s\&i=sqAZIvTQktxgXYzHGkqX.
  • Types are once again a little bit stricter in some places. You might get type errors from code like where('first_name', '=', sql`something`). You need to explicitly give a type for the sql expressions like this sql<string>`something`
  • Deprecated functions eb.cmpr and eb.bxp have been removed. Use eb as a function instead.

v0.26.3

Compare Source

  • Type performance improvements. We got ~30% speedup in our type test suite. Results will vary.
  • Fix autocompletion issues select(eb => [autocompletion works here now]).

v0.26.2

Compare Source

  • Added support for select statements without a from clause. The function is called selectNoFrom. The function name was selected after a lot of discussion. The most natural name would just be select, but new users would find that in a list of autocompletions before selectFrom and naturally use it when trying to create a select from query. This would be especially true for people coming from knex where a select from query is started using a select call. #​605
  • Add object variants of and and or functions. Allows easy where(eb => eb.and(object)) filters. #​583
  • Add support for tuples. See some examples here. #​611
  • Add addPrimaryKeyConstraint for AlterTableBuilder. #​639 Thank you @​n7olkachev ❤️
  • Add any function to function module. #​612
  • Add between method to expression builder. #​602
  • Add lit method to expression builder. #​600
  • Add multi-column variant of orderBy. #​423 Thank you @​igalklebanov ❤️

An example of an object and call:

const persons = await db
  .selectFrom('person')
  .selectAll()
  .where((eb) => eb.and({
    first_name: 'Jennifer',
    last_name: eb.ref('first_name')
  }))
  .execute()
select * from "person"
where "first_name" = $1 and "last_name" = "first_name"

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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

Copy link

cloudflare-workers-and-pages bot commented Dec 30, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 576fd1e
Status: ✅  Deploy successful!
Preview URL: https://d61350ce.sonicj.pages.dev
Branch Preview URL: https://renovate-kysely-0-x.sonicj.pages.dev

View logs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants