Skip to content

Commit

Permalink
[bump] version 0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
schultek committed Jan 23, 2023
1 parent 7f08347 commit be04487
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# 0.10.0

- [BREAKING] Switched to generating `part` files for each model.
- Migrate by adding `part <myfile>.schema.dart` on top of each model file.
- [BREAKING] Changed how **View**s are defined.
- The `@Model()` annotation now only defines the names of existing views as `Symbol`s:
`@Model(views: [#Full, #Reduced, #Other])`.
- Field modifications are done by annotating the specific field with either `@HiddenIn(#MyView)`,
`@ViewedIn(#MyView, as: #OtherView)` and `@TransformedIn(#MyView, by: MyTransformer())`.
- The CLI supports setting connection values via command args or prompts missing values.
- Views are now virtual (queries) and not written to the database. This enables more flexibility for queries
and fixes some migration issues.
- All query inputs are now properly parameterized to prevent sql injections.
- [BREAKING] The `on conflict` clause for inserts is removed. Inserts now fail when a given key already exists.
- Added proper testing.

# 0.9.2

- Fixed bug with email encoding.
Expand Down
2 changes: 0 additions & 2 deletions lib/src/cli/migration/schema.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// ignore_for_file: depend_on_referenced_packages

import 'dart:convert';
import 'dart:io';

Expand Down
5 changes: 4 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: stormberry
description: Access your postgres database effortlessly from dart code.
version: 0.9.2
version: 0.10.0
repository: https://github.com/schultek/stormberry
issue_tracker: https://github.com/schultek/stormberry/issues

Expand All @@ -14,12 +14,15 @@ dependencies:
collection: ^1.16.0
crypto: ^3.0.2
dart_style: ^2.2.4
file: ^6.1.4
glob: ^2.1.1
path: ^1.8.2
postgres: ^2.5.1
source_gen: ^1.2.3
yaml: ^3.1.1

dev_dependencies:
build_resolvers: ^2.1.0
build_runner: ^2.2.0
build_test: ^2.1.5
docker_process: ^1.3.1
Expand Down
1 change: 0 additions & 1 deletion test/polyfill.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'package:build/build.dart';
import 'package:build_test/build_test.dart';
// ignore: depend_on_referenced_packages
import 'package:build_resolvers/build_resolvers.dart';

Future testBuilder2(
Expand Down

0 comments on commit be04487

Please sign in to comment.