Skip to content

Commit

Permalink
chore(version): 2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Seven Du committed Sep 20, 2022
1 parent a26c2d7 commit 77b5810
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 12 deletions.
24 changes: 22 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,30 @@
## {next}
## 2.2.1

🌟 Help us spread the word about [Prisma ORM for Dart](https://github.com/odroe/prisma-dart) by starring the repo or [Tweeting](https://twitter.com/intent/tweet?text=Check%20out%20the%20latest%20@prisma%20ORM%20for%20Dart%20release%20v{next}🚀%0D%0A%0D%0Ahttps://github.com/odroe/prisma-dart/releases/tag/{next}) about the release. 🌟
🌟 Help us spread the word about [Prisma ORM for Dart](https://github.com/odroe/prisma-dart) by starring the repo or [Tweeting](https://twitter.com/intent/tweet?text=Check%20out%20the%20latest%20@prisma%20ORM%20for%20Dart%20release%20v2.2.1🚀%0D%0A%0D%0Ahttps://github.com/odroe/prisma-dart/releases/tag/2.2.1) about the release. 🌟

### Major improvements

Auto fix enum name and model name conflicts:
```prisma
enum role {
user
admin
}
model user {
id Int @id @default(autoincrement())
role role
}
```

Before this release, the above schema would result in a `role` enum and a `user` model. This is not valid in Dart, so we now auto fix the enum name to `Role` and the model name to `User`.

> Thanks to [@moepoi](https://github.com/moepoi)
### Bug fixes

1. Fixed `$transaction` options not being passed.
2. FIxed Using lowercase keywords in schema.prisma cannot generate clients correctly. - [#26](https://github.com/odroe/prisma-dart/issues/26)

## Other

Expand Down
8 changes: 0 additions & 8 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,3 @@

🌟 Help us spread the word about [Prisma ORM for Dart](https://github.com/odroe/prisma-dart) by starring the repo or [Tweeting](https://twitter.com/intent/tweet?text=Check%20out%20the%20latest%20@prisma%20ORM%20for%20Dart%20release%20v{next}🚀%0D%0A%0D%0Ahttps://github.com/odroe/prisma-dart/releases/tag/{next}) about the release. 🌟

### Bug fixes

1. Fixed `$transaction` options not being passed.
2. FIxed Using lowercase keywords in schema.prisma cannot generate clients correctly.

## Other

* Update `code_builder` to `^4.3.0`.
2 changes: 1 addition & 1 deletion lib/version.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ const String binaryVersion = 'c875e43600dfe042452e0b868f7a48b817b9640b';
const String capiVersion = '0.0.1';

/// The Prisma CLI version.
const String packageVersion = '2.2.0';
const String packageVersion = '2.2.1';
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: orm
description: ◭ Next-generation ORM for Dart & Flutter | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB.
version: 2.2.0
version: 2.2.1
homepage: https://prisma.pub
repository: https://github.com/odroe/prisma-dart

Expand Down

0 comments on commit 77b5810

Please sign in to comment.