Skip to content

Bump kysely-codegen from 0.19.0 to 0.20.0#365

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/kysely-codegen-0.20.0
Open

Bump kysely-codegen from 0.19.0 to 0.20.0#365
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/kysely-codegen-0.20.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 16, 2026

Bumps kysely-codegen from 0.19.0 to 0.20.0.

Release notes

Sourced from kysely-codegen's releases.

0.20.0

Many great contributions, bug fixes and new features.

Resolves #284, #287, #307, #308, #72, #301, #275, #283.

defineConfig() and postprocess()

kysely-codegen@0.20.0 adds a defineConfig function that makes it easy to configure kysely-codegen in a type-safe way. It also adds a new Config#postprocess function that makes it possible to process the introspected metadata before generating code. This function allows you to reuse the active kysely-codegen connection to further introspect the database and modify the metadata as needed.

Example of generating enum types from PostGraphile enum tables:

import { sql } from "kysely";
import { defineConfig } from "kysely-codegen";
import pluralize from "pluralize";
export default defineConfig({
camelCase: false,
dateParser: "timestamp",
dialect: "postgres",
excludePattern: "(graphile_migrate.|graphile_worker.private)",
outFile: "./types/database-types.ts",
postprocess: async ({ db, metadata }) => {
const rows = await db
.selectFrom("pg_catalog.pg_constraint as foreign_key_constraint")
.innerJoin(
"pg_catalog.pg_class as from_table",
"from_table.oid",
"foreign_key_constraint.conrelid",
)
.innerJoin(
"pg_catalog.pg_namespace as from_table_namespace",
"from_table_namespace.oid",
"from_table.relnamespace",
)
.innerJoin("pg_catalog.pg_attribute as from_column", (join) =>
join
.onRef("from_column.attrelid", "=", "from_table.oid")
.on(sqlfrom_column.attnum = any(foreign_key_constraint.conkey)),
)
.innerJoin(
"pg_catalog.pg_class as to_table",
"to_table.oid",
"foreign_key_constraint.confrelid",
)
.innerJoin(
"pg_catalog.pg_namespace as to_table_namespace",
"to_table_namespace.oid",
"to_table.relnamespace",
)
</tr></table>

... (truncated)

Commits
  • dacb4fa chore: Fix knip issues
  • 1b5d0fb chore: Ignore spellings
  • e6f503e chore: Patch axios vulnerability
  • 4b903f2 feat(generator): Silence dotenv tips
  • 05eb580 chore: Bump version
  • 3fad1b2 docs(config): Add postprocess JSDoc comment
  • e394c01 feat: Add postprocess option
  • ba33f98 refactor: Improve imports, ESLint config and schema types
  • c010362 feat: Improve config handling
  • 81cbc20 Merge branch 'master' into support-nullable-override
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [kysely-codegen](https://github.com/RobinBlomberg/kysely-codegen) from 0.19.0 to 0.20.0.
- [Release notes](https://github.com/RobinBlomberg/kysely-codegen/releases)
- [Commits](RobinBlomberg/kysely-codegen@0.19.0...0.20.0)

---
updated-dependencies:
- dependency-name: kysely-codegen
  dependency-version: 0.20.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants