Releases: medz/prisma-dart
Prisma Dart client v3.4.6
To install Prisma Dart client v3.4.6, run the following command:
dart pub add orm
To update Prisma Dart client v3.4.6, update the orm
dependency in your pubspec.yaml
file.
dependencies:
orm: ^3.4.6
What's Changed
- The binary engine will be copied to the current working command and named
prisma-query-engine
- Add the
.dart_tool
directory to the search directory
About not found prisma-query-engine
error
Cannot find the query engine binary (Basename: C:\path\does\not\matter\query-engine-windows.exe | prisma-query-engine)
If you just run your app using the dart run {script}.dart command, you don’t need to do anything.
If you use dart compile exe to package your app as a executable, copy prisma-query-engine to the same location as your run file
Prisma Dart client v4.0.0-alpha.1
To install Prisma Dart client v4.0.0-alpha.1 run:
dart pub add orm:4.0.0-alpha.1
Or update your pubspec.yaml
file:
dependencies:
orm: 4.0.0-alpha.1
What's Changed
- Refactor the entire client generator
PrismaClient
is now generated by the generator- Ability to operate transactions on your own
- Use binary engine by default
- Supports full select and include features.
Prisma Dart client v4.0.0-alpha.0
To install Prisma Dart client v4.0.0-alpha.0 run:
# If you are using Dart
dart pub add orm:4.0.0-alpha.0
# Or if you are using Flutter
flutter pub add orm:4.0.0-alpha.0
To upgrade to Prisma Dart client v4.0.0-alpha.0, Please follow the announcements and update your pubspec.yaml
file:
dependencies:
orm: 4.0.0-alpha.0
Read Prisma Dart Client v4.0.0-alpha.0 release notes on the Prisma Dart discussions
What's Changed
- Whole project refactoring
- Remove any JSON serialization tool, now it's ready to use by just generating the client without any other dependencies and extra commands
- Switch from GraphQL protocol to JSON protocol
- Client takes a standalone Prisma engine instance
- Client and all input/output types are standalone and can be distributed to any Dart platform
- Add database field reference support
- Support
select
feature (incomplete, currently only support rough one-level Model fields) - Support
include
feature (incomplete, currently only support rough one-level Model fields) PrismaUnion
regression, now can structure nested inputs of multiple parameters via unionPrismaNull
regression, now support databasenull
data setting- DMMF, generator helpers regression, no need to depend on other packages, can directly use
orm
as the base package for developing Dart Prisma ecosystem packages - Add
Decimal
type support (from decimal package, exported byorm
proxy)
Prisma Dart client v3.4.5
To install Prisma Dart client v3.4.5, run the following command:
dart pub add orm
To update Prisma Dart client v3.4.5, update the orm
dependency in your pubspec.yaml
file.
dependencies:
orm: ^3.4.5
What's Changed
orm: v3.4.4
orm: v3.4.3
orm: v3.4.2
orm-v3.4.1
chore: release 3.4.1
orm-v3.4.0
BREAKING CHANGE
- Update Dart SDK to
^3.0.0
- Generator: Adapt to upstream dependencies