Skip to content

Version Packages - #107

Merged
kimjbstar merged 1 commit into
mainfrom
changeset-release/main
Aug 12, 2026
Merged

Version Packages#107
kimjbstar merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

prisma-class-generator@0.7.0

Minor Changes

  • #108 5696c4c Thanks @kimjbstar! - Add makeDtoFiles, which generates Create<Model> and Update<Model> classes alongside each
    model class. They're compositions rather than copies — CreateUser extends OmitType(User, [...] as const) and UpdateUser extends PartialType(CreateUser) — so a field's type, Swagger metadata and
    validators stay declared in exactly one place, and NestJS's mapped types carry all three through.
    Imported from @nestjs/swagger when useSwagger is on, @nestjs/mapped-types otherwise.

    A field leaves the Create DTO only when the schema itself says a client can't supply it: a
    function-based @default(...) (autoincrement(), uuid(), now(), dbgenerated(...), …),
    @updatedAt, or a relation field. Literal defaults like @default(0), relation foreign-key
    scalars, and an @id without a default all stay — nothing is inferred from field names. Off by
    default, so existing output is unchanged.

Patch Changes

  • #106 5be2cb0 Thanks @kimjbstar! - Fix useNonNullableAssertions producing TypeScript that doesn't compile. A field with a literal
    @default(...) was emitted as views!: number = 0, which is TS1263 — "Declarations with
    initializers cannot also have definite assignment assertions". Any model with at least one
    defaulted field made the whole generated file fail to build, and useUndefinedDefault hit the
    same thing. The assertion is now omitted whenever the field has an initializer, which is what
    definite assignment already means.

@github-actions
github-actions Bot force-pushed the changeset-release/main branch from bd13634 to 5af7b7c Compare August 12, 2026 07:37
@kimjbstar
kimjbstar merged commit 26965ff into main Aug 12, 2026
1 check passed
@kimjbstar
kimjbstar deleted the changeset-release/main branch August 12, 2026 07:41
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.

1 participant