diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f743530..c72ca7b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,26 @@ +# Prisma Dart v5.0.3 + +To install Prisma ORM for Dart v5.0.3 run this command: + +```bash +dart pub add orm:^5.0.3 +``` + +or update your `pubspec.yaml` file: + +```yaml +dependencies: + orm: ^5.0.3 +``` + +* [**"Prisma Dart v4 -> v5 & Flutter integration" Upgrade Guides**](https://prisma.pub/getting-started/upgrade_guides.html) + +## What's Changed + +* **BUG**: Fixed binary engine copy location error. + +**Full Changelog**: https://github.com/medz/prisma-dart/compare/orm-v5.0.2+orm_flutter-v0.1.2...orm-v5.0.3 + # Prisma Dart v5.0.2 & Flutter integration 0.1.2 To install Prisma ORM for Dart v5.0.2 run this command: @@ -32,7 +55,7 @@ dependencies: * Prisma C-ABI query engine is provided by default in Flutter integration * Flutter integration Android downloads Prisma C-ABI query engine in cmake script -**Full Changelog**: https://github.com/medz/prisma-dart/compare/orm-v5.0.2+orm_flutter-v0.1.2...orm-v5.0.2+orm_flutter-v0.1.2 +**Full Changelog**: https://github.com/medz/prisma-dart/compare/orm-v5.0.1+orm_flutter-v0.1.1...orm-v5.0.2+orm_flutter-v0.1.2 # Prisma Dart v5.0.1 & Flutter integration 0.1.1 diff --git a/packages/orm/bin/src/download_engine.dart b/packages/orm/bin/src/download_engine.dart index 49a17fa4..e01821c0 100644 --- a/packages/orm/bin/src/download_engine.dart +++ b/packages/orm/bin/src/download_engine.dart @@ -27,15 +27,11 @@ Future downloadEngine(GeneratorOptions options) async { } final target = - File(path.join(options.generator.output!.value, 'prisma-query-engine')); + File(path.join(path.dirname(options.schemaPath), 'prisma-query-engine')); if (await target.exists()) { await target.delete(recursive: true); } - if (!await target.parent.exists()) { - await target.parent.create(recursive: true); - } - await source.copy(target.path); } diff --git a/packages/orm/pubspec.yaml b/packages/orm/pubspec.yaml index 36c593cc..ff3b487e 100644 --- a/packages/orm/pubspec.yaml +++ b/packages/orm/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: 5.0.2 +version: 5.0.3 homepage: https://prisma.pub repository: https://github.com/medz/prisma-dart funding: