diff --git a/CHANGELOG.md b/CHANGELOG.md index 04e6239..083abc3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ +# 0.10.0 + +- [BREAKING] Switched to generating `part` files for each model. + - Migrate by adding `part .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. diff --git a/lib/src/cli/migration/schema.dart b/lib/src/cli/migration/schema.dart index a6a58aa..240e102 100644 --- a/lib/src/cli/migration/schema.dart +++ b/lib/src/cli/migration/schema.dart @@ -1,5 +1,3 @@ -// ignore_for_file: depend_on_referenced_packages - import 'dart:convert'; import 'dart:io'; diff --git a/pubspec.yaml b/pubspec.yaml index b7a1f3d..a37e366 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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 @@ -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 diff --git a/test/polyfill.dart b/test/polyfill.dart index 90e9dfa..180bce4 100644 --- a/test/polyfill.dart +++ b/test/polyfill.dart @@ -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(