diff --git a/packages/brick_graphql/pubspec.yaml b/packages/brick_graphql/pubspec.yaml index b77d4eb6..b84a8471 100644 --- a/packages/brick_graphql/pubspec.yaml +++ b/packages/brick_graphql/pubspec.yaml @@ -10,7 +10,7 @@ environment: sdk: ">=2.18.0 <4.0.0" dependencies: - brick_core: ^1.2.1 + brick_core: ^1.3.0 collection: ">=1.15.0 <2.0.0" gql: ">=0.13.0 <2.0.0" gql_exec: ">=0.3.0 <2.0.0" diff --git a/packages/brick_json_generators/pubspec.yaml b/packages/brick_json_generators/pubspec.yaml index 858500ba..01e91202 100644 --- a/packages/brick_json_generators/pubspec.yaml +++ b/packages/brick_json_generators/pubspec.yaml @@ -12,7 +12,7 @@ environment: dependencies: analyzer: ">=6.0.0 <7.0.0" brick_build: ">=3.0.0 <4.0.0" - brick_core: ^1.1.1 + brick_core: ^1.3.0 build: ">=2.0.0 <3.0.0" dart_style: ">=2.0.0 <3.0.0" source_gen: ">=1.2.2 <2.0.0" diff --git a/packages/brick_rest/pubspec.yaml b/packages/brick_rest/pubspec.yaml index e5e14cf0..c640395e 100644 --- a/packages/brick_rest/pubspec.yaml +++ b/packages/brick_rest/pubspec.yaml @@ -10,7 +10,7 @@ environment: sdk: ">=2.18.0 <4.0.0" dependencies: - brick_core: ^1.2.1 + brick_core: ^1.3.0 http: ">=1.0.0 <2.0.0" logging: ">=1.0.0 <2.0.0" meta: ">=1.3.0 <2.0.0" diff --git a/packages/brick_sqlite/CHANGELOG.md b/packages/brick_sqlite/CHANGELOG.md index 3e058345..03601644 100644 --- a/packages/brick_sqlite/CHANGELOG.md +++ b/packages/brick_sqlite/CHANGELOG.md @@ -1,5 +1,9 @@ ## Unreleased +## 3.2.1 + +- Remove `dart:io` dependency + ## 3.2.0 - **DEPRECATION** `Query(providerArgs: {'collate':})` is now `Query(forProviders: [SqliteProviderQuery(collate:)])` diff --git a/packages/brick_sqlite/lib/src/sqlite_provider.dart b/packages/brick_sqlite/lib/src/sqlite_provider.dart index 165c820d..f3e95c93 100644 --- a/packages/brick_sqlite/lib/src/sqlite_provider.dart +++ b/packages/brick_sqlite/lib/src/sqlite_provider.dart @@ -1,5 +1,3 @@ -import 'dart:io'; - import 'package:brick_core/core.dart'; import 'package:brick_sqlite/src/db/migration.dart'; import 'package:brick_sqlite/src/db/migration_commands/insert_table.dart'; @@ -250,17 +248,13 @@ class SqliteProvider implements Provider resetDb() async { - try { - await (await getDb()).close(); + await (await getDb()).close(); - await databaseFactory.deleteDatabase(dbName); + await databaseFactory.deleteDatabase(dbName); - // recreate - _openDb = null; - await getDb(); - } on FileSystemException { - // noop - } + // recreate + _openDb = null; + await getDb(); } /// Perform actions within a database transaction. diff --git a/packages/brick_sqlite/pubspec.yaml b/packages/brick_sqlite/pubspec.yaml index 34a952be..e9f87017 100644 --- a/packages/brick_sqlite/pubspec.yaml +++ b/packages/brick_sqlite/pubspec.yaml @@ -4,7 +4,7 @@ homepage: https://github.com/GetDutchie/brick/tree/main/packages/brick_sqlite issue_tracker: https://github.com/GetDutchie/brick/issues repository: https://github.com/GetDutchie/brick -version: 3.2.0+1 +version: 3.2.0+2 environment: sdk: ">=2.18.0 <4.0.0"