-
Notifications
You must be signed in to change notification settings - Fork 0
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/kysely-codegen-0.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ab3e32f to
7204c02
Compare
7204c02 to
1027c5f
Compare
1027c5f to
bb82e28
Compare
124fa53 to
3fc8546
Compare
3fc8546 to
cf636af
Compare
fafb08b to
7606061
Compare
7606061 to
a7c1093
Compare
bfbb606 to
204fb28
Compare
204fb28 to
e6748e1
Compare
e6748e1 to
0143cde
Compare
0143cde to
8df74e0
Compare
dbcee67 to
a3407b5
Compare
e50fcec to
9a5f17b
Compare
c7cf780 to
fc6030e
Compare
fc6030e to
3bb48e2
Compare
3bb48e2 to
248130c
Compare
248130c to
db97004
Compare
db97004 to
ba13223
Compare
ba13223 to
cd5de28
Compare
cd5de28 to
047bcf8
Compare
047bcf8 to
02e3031
Compare
02e3031 to
7b8177d
Compare
7b8177d to
bbff6e2
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.16.8→^0.19.0Release Notes
RobinBlomberg/kysely-codegen (kysely-codegen)
v0.19.0New 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:
What's Changed
New Contributors
Full Changelog: RobinBlomberg/kysely-codegen@0.18.0...0.19.0
v0.18.0Compare Source
Migration to 0.18.0
The follow CLI options have been changed:
--schemahas been renamed to--default-schema.--singularhas been renamed to--singularize.--runtime-enumsand--runtime-enums-stylehave 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,.yamletc.) file or thekysely-codegenproperty inpackage.json. See Cosmiconfig 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:
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):Example output:
Similarly, it's also possible to supply a custom
dialectvalue, allowing you to create a completely new kysely-codegen dialects or extending an existing one with extra logic.What's Changed
...IdentifierNodeclasses into a singleIdentifierNodeclassskipAutogenerationFileCommentserializer optionoverridesnot always applying to the correct columnNew Contributors
Full Changelog: RobinBlomberg/kysely-codegen@0.17.0...0.18.0
v0.17.0What's Changed
.envfile is missingNew 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.
This PR was generated by Mend Renovate. View the repository job log.