diff --git a/CHANGELOG.md b/CHANGELOG.md index 840443d9..d3b52995 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index 476b9f58..422e49f6 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -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`. diff --git a/lib/version.dart b/lib/version.dart index fab96248..24750bae 100644 --- a/lib/version.dart +++ b/lib/version.dart @@ -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'; diff --git a/pubspec.yaml b/pubspec.yaml index dc1f9e19..e647b61e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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