Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore(deps): update dependency kysely-codegen to ^0.19.0#139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
renovate wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromrenovate/kysely-codegen-0.x

Conversation

@renovate
Copy link
Contributor

@renovaterenovatebot commentedOct 18, 2024
edited
Loading

This PR contains the following updates:

PackageChangeAgeConfidence
kysely-codegen^0.16.8 ->^0.19.0ageconfidence

Release Notes

RobinBlomberg/kysely-codegen (kysely-codegen)

v0.19.0

New features

Thanks to amazing contributions from@​kevinmichaelchen in#​274, you can now override types on a global level:

.kysely-codegenrc.json

{"customImports": {"InstantRange":"./custom-types","CustomDuration":"@​my-org/custom-types#Duration","Temporal":"@​js-temporal/polyfill",  },"typeMapping": {"timestamptz":"Temporal.Instant","tstzrange":"InstantRange","date":"Temporal.PlainDate","interval":"CustomDuration"  }}

Example of generated output:

importtype{InstantRange}from'./custom-types';importtype{DurationasCustomDuration}from'@&#8203;my-org/custom-types';importtype{Temporal}from'@&#8203;js-temporal/polyfill';exportinterfaceEventModel{createdAt:Temporal.Instant;dateRange:ColumnType<InstantRange,InstantRange,never>;eventDate:Temporal.PlainDate;interval:CustomDuration;}exportinterfaceDB{events:EventModel;}

What's Changed

New Contributors

Full Changelog:RobinBlomberg/kysely-codegen@0.18.0...0.19.0

v0.18.0

Compare Source

Migration to 0.18.0

The follow CLI options have been changed:

  • --schema has been renamed to--default-schema.
  • --singular has been renamed to--singularize.
  • --runtime-enums and--runtime-enums-style have been merged into a single CLI option--runtime-enums.

Configuration file

All codegen options can also be configured in a.kysely-codegenrc.json (or.js,.ts,.yaml etc.) file or thekysely-codegen property inpackage.json. SeeCosmiconfig for all available configuration file formats.

The default configuration:

{"camelCase":false,"dateParser":"timestamp","defaultSchemas": [],// ["public"] for PostgreSQL."dialect":null,"domains":true,"envFile":null,"excludePattern":null,"includePattern":null,"logLevel":"warn","numericParser":"string","outFile":"./node_modules/kysely-codegen/dist/db.d.ts","overrides": {},"partitions":false,"print":false,"runtimeEnums":false,"singularize":false,"typeOnlyImports":true,"url":"env(DATABASE_URL)","verify":false}

The configuration object adds support for more advanced options:

{"camelCase":true,"overrides": {"columns": {"users.settings":"{ theme: 'dark' }"    }  },"singularize": {"/^(.*?)s?$/":"$1_model","/(bacch)(?:us|i)$/i":"$1us"  }}

The generated output:

exportinterfaceUserModel{settings:{theme:'dark'};}// ...exportinterfaceDB{bacchi:Bacchus;users:UserModel;}

Custom serializers and dialects

The new configuration support also adds support for supplying custom serializers.

Here is a stub example of a basic Zod serializer (.kysely-codegenrc.ts):

import{toKyselyCamelCase}from'../../generator';importtype{Config}from'../config';constconfig:Config={logLevel:'debug',outFile:null,serializer:{serializeFile:(metadata)=>{letoutput='import { z } from "zod";\n\n';for(consttableofmetadata.tables){output+='export const ';output+=toKyselyCamelCase(table.name);output+='Schema = z.object({\n';for(constcolumnoftable.columns){output+='  ';output+=column.name;output+=': ';switch(column.dataType){case'int4':output+='z.number().int()';break;default:output+='z.unknown()';}output+=',\n';}output+='});\n\n';}returnoutput;},},url:'postgres://user:password@localhost:5433/database',};exportdefaultconfig;

Example output:

import{z}from"zod";exportconstusersSchema=z.object({baz_qux:z.number().int(),});

Similarly, it's also possible to supply a customdialect value, allowing you to create a completely new kysely-codegen dialects or extending an existing one with extra logic.

What's Changed

  • feat!: Merge "runtime-enums" and "runtime-enums-style" options
  • feat!: Deprecate "schemas" option and rename it to "defaultSchemas"
  • feat!: Rename "singular" option to "singularize"
  • feat: Support kysely-codegen configuration files (usingcosmiconfig)
  • feat: Add support for custom singularization rules
  • feat: Merge all...IdentifierNode classes into a singleIdentifierNode class
  • feat: AddskipAutogenerationFileComment serializer option
  • fix: Fixoverrides not always applying to the correct column
  • fix: Fix test flakiness by running all tests in sequence
  • fix: Make bun sqlite codegen work again (re-introduce KyselyBunSqliteIntrospectorDialect using the sqlite database from bun:sqlite and the Kysely dialect from 'kysely-bun-sqlite') by@​meck93 in#​238
  • fix: Fix update function example @​ README. by@​igalklebanov in#​227
  • chore: Upgrade all dependencies
  • chore: Allow@​libsql/kysely-libsql@​^0.4.1 as a peer dependency@​alsiola in#​233

New Contributors

Full Changelog:RobinBlomberg/kysely-codegen@0.17.0...0.18.0

v0.17.0

What's Changed

New Contributors

Full Changelog:RobinBlomberg/kysely-codegen@0.16.7...0.17.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.


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

This PR was generated byMend Renovate. View therepository job log.

@renovaterenovatebotforce-pushed therenovate/kysely-codegen-0.x branch fromab3e32f to7204c02CompareNovember 2, 2024 08:06
@renovaterenovatebotforce-pushed therenovate/kysely-codegen-0.x branch from7204c02 to1027c5fCompareJanuary 29, 2025 05:56
@renovaterenovatebot changed the titlechore(deps): update dependency kysely-codegen to ^0.17.0chore(deps): update dependency kysely-codegen to ^0.18.0Mar 2, 2025
@renovaterenovatebotforce-pushed therenovate/kysely-codegen-0.x branch from1027c5f tobb82e28CompareMarch 2, 2025 14:28
@renovaterenovatebotforce-pushed therenovate/kysely-codegen-0.x branch 2 times, most recently from124fa53 to3fc8546CompareMarch 24, 2025 02:24
@renovaterenovatebotforce-pushed therenovate/kysely-codegen-0.x branch from3fc8546 tocf636afCompareMay 5, 2025 16:42
@renovaterenovatebotforce-pushed therenovate/kysely-codegen-0.x branch 2 times, most recently fromfafb08b to7606061CompareMay 19, 2025 17:23
@renovaterenovatebotforce-pushed therenovate/kysely-codegen-0.x branch from7606061 toa7c1093CompareJune 23, 2025 10:32
@renovaterenovatebotforce-pushed therenovate/kysely-codegen-0.x branch 3 times, most recently frombfbb606 to204fb28CompareAugust 13, 2025 11:58
@renovaterenovatebotforce-pushed therenovate/kysely-codegen-0.x branch from204fb28 toe6748e1CompareAugust 19, 2025 13:54
@renovaterenovatebotforce-pushed therenovate/kysely-codegen-0.x branch frome6748e1 to0143cdeCompareAugust 31, 2025 14:02
@renovaterenovatebot changed the titlechore(deps): update dependency kysely-codegen to ^0.18.0chore(deps): update dependency kysely-codegen to ^0.19.0Sep 3, 2025
@renovaterenovatebotforce-pushed therenovate/kysely-codegen-0.x branch from0143cde to8df74e0CompareSeptember 3, 2025 09:37
@renovaterenovatebotforce-pushed therenovate/kysely-codegen-0.x branch 6 times, most recently fromdbcee67 toa3407b5CompareSeptember 29, 2025 09:06
@renovaterenovatebotforce-pushed therenovate/kysely-codegen-0.x branch 2 times, most recently frome50fcec to9a5f17bCompareOctober 5, 2025 21:12
@renovaterenovatebotforce-pushed therenovate/kysely-codegen-0.x branch 5 times, most recently fromc7cf780 tofc6030eCompareOctober 6, 2025 20:54
@renovaterenovatebotforce-pushed therenovate/kysely-codegen-0.x branch fromfc6030e to3bb48e2CompareOctober 21, 2025 10:36
@renovaterenovatebotforce-pushed therenovate/kysely-codegen-0.x branch from3bb48e2 to248130cCompareNovember 10, 2025 17:36
@renovaterenovatebotforce-pushed therenovate/kysely-codegen-0.x branch from248130c todb97004CompareNovember 18, 2025 14:15
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@benjaminstrasserbenjaminstrasserAwaiting requested review from benjaminstrasserbenjaminstrasser is a code owner

@jjnpjjnpAwaiting requested review from jjnpjjnp is a code owner

@mledlmledlAwaiting requested review from mledlmledl is a code owner

@sjaghorisjaghoriAwaiting requested review from sjaghorisjaghori is a code owner

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant


[8]ページ先頭

©2009-2025 Movatter.jp