Skip to content

Commit

Permalink
Merge pull request #354 from medz/string-format
Browse files Browse the repository at this point in the history
fix for `code_builder` not handling CRLF case
  • Loading branch information
Seven Du authored Mar 28, 2024
2 parents 3d30cea + 84b4120 commit 19a982a
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Files and directories created by pub.
.dart_tool/
.packages
.env
node_modules/

# Omit committing pubspec.lock for library packages; see
Expand Down
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
# Prisma Client Dart v4.0.3

To install Prisma Client for Dart v4.0.3 run:

```bash
dart pub add orm:4.0.3
```

Or update your `pubspec.yaml` file:

```yaml
dependencies:
orm: 4.0.3
```
## What's Changed
- **Bug**: fix for `code_builder` not handling CRLF case

# Prisma Client Dart v4.0.2

To install Prisma Client for Dart v4.0.2 run:
Expand Down
4 changes: 3 additions & 1 deletion bin/src/generate_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ extension on Generator {
.assign(
refer('BinaryEngine', 'package:orm/engines/binary.dart')
.newInstance([], {
'schema': literalString(options.schema),
'schema':
// TODO: https://github.com/dart-lang/code_builder/issues/452
literalString(options.schema.replaceAll('\r\n', '\n')),
'datasources': refer('datasources'),
}),
)
Expand Down
4 changes: 2 additions & 2 deletions docs/getting-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ bun add prisma
Please run the following command to install `orm`:

```bash
dart pub add orm:4.0.2
dart pub add orm:4.0.3
```

Or add the following to your `pubspec.yaml` file:

```yaml
dependencies:
orm: ^4.0.2 // [!code focus]
orm: ^4.0.3 // [!code focus]
```
2 changes: 1 addition & 1 deletion lib/version.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
library prisma.version;

const version = '4.0.2';
const version = '4.0.3';
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: 4.0.2
version: 4.0.3
homepage: https://prisma.pub
repository: https://github.com/medz/prisma-dart
funding:
Expand Down

0 comments on commit 19a982a

Please sign in to comment.