Skip to content
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

feat: runtime enum support #131

Merged

Conversation

lsnow99
Copy link
Contributor

@lsnow99 lsnow99 commented Feb 18, 2024

Resolves #115

Support for generating enums in the format

export enum Mood {
  happy = "happy",
  happyOrSad = "happy_or_sad",
  sad = "sad",
}

src/serializer/serializer.ts Outdated Show resolved Hide resolved
@RobinBlomberg RobinBlomberg merged commit 73d81a2 into RobinBlomberg:master Mar 17, 2024
@RobinBlomberg
Copy link
Owner

RobinBlomberg commented Mar 17, 2024

Very very nice! Released in 0.14.0!

github-merge-queue bot referenced this pull request in dotkom/monoweb Aug 20, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [kysely-codegen](https://togithub.com/RobinBlomberg/kysely-codegen) |
[`^0.11.0` ->
`^0.15.0`](https://renovatebot.com/diffs/npm/kysely-codegen/0.11.0/0.15.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/kysely-codegen/0.15.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/kysely-codegen/0.15.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/kysely-codegen/0.11.0/0.15.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/kysely-codegen/0.11.0/0.15.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>RobinBlomberg/kysely-codegen (kysely-codegen)</summary>

###
[`v0.15.0`](https://togithub.com/RobinBlomberg/kysely-codegen/releases/tag/0.15.0)

#### What's Changed

- fix: domain flag is respected by
[@&#8203;RobinClowers](https://togithub.com/RobinClowers) in
[https://github.com/RobinBlomberg/kysely-codegen/pull/141](https://togithub.com/RobinBlomberg/kysely-codegen/pull/141)
- fix flags in readme by [@&#8203;jrhizor](https://togithub.com/jrhizor)
in
[https://github.com/RobinBlomberg/kysely-codegen/pull/142](https://togithub.com/RobinBlomberg/kysely-codegen/pull/142)
- Fixing bit IdentifierNode to be boolean instead of Buffer by
[@&#8203;gittgott](https://togithub.com/gittgott) in
[https://github.com/RobinBlomberg/kysely-codegen/pull/145](https://togithub.com/RobinBlomberg/kysely-codegen/pull/145)

#### New Contributors

- [@&#8203;jrhizor](https://togithub.com/jrhizor) made their first
contribution in
[https://github.com/RobinBlomberg/kysely-codegen/pull/142](https://togithub.com/RobinBlomberg/kysely-codegen/pull/142)
- [@&#8203;gittgott](https://togithub.com/gittgott) made their first
contribution in
[https://github.com/RobinBlomberg/kysely-codegen/pull/145](https://togithub.com/RobinBlomberg/kysely-codegen/pull/145)

**Full Changelog**:
RobinBlomberg/kysely-codegen@0.14.0...0.15.0

###
[`v0.14.0`](https://togithub.com/RobinBlomberg/kysely-codegen/releases/tag/0.14.0)

#### What's Changed

- Add a skip-domains flag for postgres by
[@&#8203;RobinClowers](https://togithub.com/RobinClowers) in
[https://github.com/RobinBlomberg/kysely-codegen/pull/136](https://togithub.com/RobinBlomberg/kysely-codegen/pull/136)
- Update compatible tedious versions by
[@&#8203;timclark97](https://togithub.com/timclark97) in
[https://github.com/RobinBlomberg/kysely-codegen/pull/137](https://togithub.com/RobinBlomberg/kysely-codegen/pull/137)
- Set kysely-bun-worker as an optional peer dep by
[@&#8203;arempe93](https://togithub.com/arempe93) in
[https://github.com/RobinBlomberg/kysely-codegen/pull/138](https://togithub.com/RobinBlomberg/kysely-codegen/pull/138)
- typescript comments based on columns comments by
[@&#8203;elitan](https://togithub.com/elitan) in
[https://github.com/RobinBlomberg/kysely-codegen/pull/139](https://togithub.com/RobinBlomberg/kysely-codegen/pull/139)
- feat: runtime enum support by
[@&#8203;lsnow99](https://togithub.com/lsnow99) in
[https://github.com/RobinBlomberg/kysely-codegen/pull/131](https://togithub.com/RobinBlomberg/kysely-codegen/pull/131)

#### New Contributors

- [@&#8203;RobinClowers](https://togithub.com/RobinClowers) made their
first contribution in
[https://github.com/RobinBlomberg/kysely-codegen/pull/136](https://togithub.com/RobinBlomberg/kysely-codegen/pull/136)
- [@&#8203;arempe93](https://togithub.com/arempe93) made their first
contribution in
[https://github.com/RobinBlomberg/kysely-codegen/pull/138](https://togithub.com/RobinBlomberg/kysely-codegen/pull/138)
- [@&#8203;elitan](https://togithub.com/elitan) made their first
contribution in
[https://github.com/RobinBlomberg/kysely-codegen/pull/139](https://togithub.com/RobinBlomberg/kysely-codegen/pull/139)
- [@&#8203;lsnow99](https://togithub.com/lsnow99) made their first
contribution in
[https://github.com/RobinBlomberg/kysely-codegen/pull/131](https://togithub.com/RobinBlomberg/kysely-codegen/pull/131)

**Full Changelog**:
RobinBlomberg/kysely-codegen@0.13.0...0.14.0

###
[`v0.13.0`](https://togithub.com/RobinBlomberg/kysely-codegen/releases/tag/0.13.0)

[Compare
Source](https://togithub.com/RobinBlomberg/kysely-codegen/compare/0.12.0...0.13.0)

#### What's Changed

- fix: add 'bun-sqlite' in VALID_DIALECTS by
[@&#8203;mtt-artis](https://togithub.com/mtt-artis) in
[https://github.com/RobinBlomberg/kysely-codegen/pull/129](https://togithub.com/RobinBlomberg/kysely-codegen/pull/129)
- Add MSSQL Support by
[@&#8203;timclark97](https://togithub.com/timclark97) in
[https://github.com/RobinBlomberg/kysely-codegen/pull/128](https://togithub.com/RobinBlomberg/kysely-codegen/pull/128)
- Add include/exclude pattern instructions to README.md by
[@&#8203;divmgl](https://togithub.com/divmgl) in
[https://github.com/RobinBlomberg/kysely-codegen/pull/133](https://togithub.com/RobinBlomberg/kysely-codegen/pull/133)
- Expand environment variables from .env by
[@&#8203;iffa](https://togithub.com/iffa) in
[https://github.com/RobinBlomberg/kysely-codegen/pull/130](https://togithub.com/RobinBlomberg/kysely-codegen/pull/130)

#### New Contributors

- [@&#8203;mtt-artis](https://togithub.com/mtt-artis) made their first
contribution in
[https://github.com/RobinBlomberg/kysely-codegen/pull/129](https://togithub.com/RobinBlomberg/kysely-codegen/pull/129)
- [@&#8203;timclark97](https://togithub.com/timclark97) made their first
contribution in
[https://github.com/RobinBlomberg/kysely-codegen/pull/128](https://togithub.com/RobinBlomberg/kysely-codegen/pull/128)
- [@&#8203;divmgl](https://togithub.com/divmgl) made their first
contribution in
[https://github.com/RobinBlomberg/kysely-codegen/pull/133](https://togithub.com/RobinBlomberg/kysely-codegen/pull/133)
- [@&#8203;iffa](https://togithub.com/iffa) made their first
contribution in
[https://github.com/RobinBlomberg/kysely-codegen/pull/130](https://togithub.com/RobinBlomberg/kysely-codegen/pull/130)

**Full Changelog**:
RobinBlomberg/kysely-codegen@0.12.0...0.13.0

###
[`v0.12.0`](https://togithub.com/RobinBlomberg/kysely-codegen/releases/tag/0.12.0)

[Compare
Source](https://togithub.com/RobinBlomberg/kysely-codegen/compare/0.11.0...0.12.0)

#### What's Changed

- Fix Postgres JSON type by
[@&#8203;BoscoDomingo](https://togithub.com/BoscoDomingo) in
[https://github.com/RobinBlomberg/kysely-codegen/pull/126](https://togithub.com/RobinBlomberg/kysely-codegen/pull/126)
- Update cli.ts by [@&#8203;seivan](https://togithub.com/seivan) in
[https://github.com/RobinBlomberg/kysely-codegen/pull/108](https://togithub.com/RobinBlomberg/kysely-codegen/pull/108)
- Added support for bun:sqlite by
[@&#8203;KaruroChori](https://togithub.com/KaruroChori) in
[https://github.com/RobinBlomberg/kysely-codegen/pull/120](https://togithub.com/RobinBlomberg/kysely-codegen/pull/120)

#### New Contributors

- [@&#8203;BoscoDomingo](https://togithub.com/BoscoDomingo) made their
first contribution in
[https://github.com/RobinBlomberg/kysely-codegen/pull/126](https://togithub.com/RobinBlomberg/kysely-codegen/pull/126)
- [@&#8203;KaruroChori](https://togithub.com/KaruroChori) made their
first contribution in
[https://github.com/RobinBlomberg/kysely-codegen/pull/120](https://togithub.com/RobinBlomberg/kysely-codegen/pull/120)

**Full Changelog**:
RobinBlomberg/kysely-codegen@0.11.0...0.12.0

</details>

---

### 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job log](https://developer.mend.io/github/dotkom/monoweb).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generate runtime enums
2 participants