Skip to content

Commit

Permalink
chore(version): 2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Seven Du committed Oct 8, 2022
1 parent 62142bd commit 21e3c33
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 35 deletions.
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,40 @@
## 2.3.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%20v2.3.1🚀%0D%0A%0D%0Ahttps://github.com/odroe/prisma-dart/releases/tag/2.3.1) about the release. 🌟

### Features

#### Logging (Preview)

Prisma ORM for Dart now supports [logging](https://www.prisma.io/docs/concepts/components/prisma-client/working-with-prismaclient/logging) as a preview feature. That means, it might have some flaws, but we hope you'll try it out and provide feedback.

To enable logging, you need to set the `log` property on the `PrismaClient` constructor and `generate` command:

```bash
prisma generate --preview=logging
```

```dart
PrismaClient(
log: [
PrismaLogDefinition(
level: PrismaLogLevel.query,
emit: PrismaLogEvent.stdout,
),
],
)
```

##### Subscribe to log events

You can subscribe to log events to perform custom actions when a log occurs.

```dart
prisma.$on([PrismaLogLevel.query], (e) {
print(e);
});
```

## 2.3.0

🌟 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.3.0🚀%0D%0A%0D%0Ahttps://github.com/odroe/prisma-dart/releases/tag/2.3.0) about the release. 🌟
Expand Down
33 changes: 0 additions & 33 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,3 @@
## {next}

🌟 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. 🌟

### Features

#### Logging (Preview)

Prisma ORM for Dart now supports [logging](https://www.prisma.io/docs/concepts/components/prisma-client/working-with-prismaclient/logging) as a preview feature. That means, it might have some flaws, but we hope you'll try it out and provide feedback.

To enable logging, you need to set the `log` property on the `PrismaClient` constructor and `generate` command:

```bash
prisma generate --preview=logging
```

```dart
PrismaClient(
log: [
PrismaLogDefinition(
level: PrismaLogLevel.query,
emit: PrismaLogEvent.stdout,
),
],
)
```

##### Subscribe to log events

You can subscribe to log events to perform custom actions when a log occurs.

```dart
prisma.$on([PrismaLogLevel.query], (e) {
print(e);
});
```
2 changes: 1 addition & 1 deletion lib/version.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const String binaryVersion = 'c875e43600dfe042452e0b868f7a48b817b9640b';
const String capiVersion = '0.0.1';

/// The Prisma CLI version.
const String packageVersion = '2.3.0';
const String packageVersion = '2.3.1';

/// Prisma data proxy remote client version.
const String dataProxyRemoteClientVersion = '4.3.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.3.0
version: 2.3.1
homepage: https://prisma.pub
repository: https://github.com/odroe/prisma-dart
funding:
Expand Down

1 comment on commit 21e3c33

@vercel
Copy link

@vercel vercel bot commented on 21e3c33 Oct 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.