diff --git a/dio_cache_interceptor_db_store/CHANGELOG.md b/dio_cache_interceptor_db_store/CHANGELOG.md index 1a055d4..0344e7c 100644 --- a/dio_cache_interceptor_db_store/CHANGELOG.md +++ b/dio_cache_interceptor_db_store/CHANGELOG.md @@ -1,3 +1,9 @@ +## 6.0.0 +- feat: Updated dependencies for make this package compatible with WASM. +- fix: `exists` method was not returning result from filtered key. +- chore: Raised dart SDK minimum to 3.0.0. +- chore: Raised Drift minimum to 2.9.0. + ## 5.1.1 - chore: Updated dependencies. diff --git a/dio_cache_interceptor_db_store/README.md b/dio_cache_interceptor_db_store/README.md index d84806a..edbd43c 100644 --- a/dio_cache_interceptor_db_store/README.md +++ b/dio_cache_interceptor_db_store/README.md @@ -5,4 +5,7 @@ Drift cache store implementation. - __Android - iOS support__: Add sqlite3_flutter_libs as dependency in your app (version 0.4.0+1 or later). - __Desktop support__: Follow Drift install [documentation](https://drift.simonbinder.eu/docs/platforms/). -- __Web support__: You must include 'sql.js' library. Follow Drift install [documentation](https://drift.simonbinder.eu/web/) for further info. +- __Web support__: + - You __must__ provide 'sqlite3.wasm' library and 'drift_worker.js'. + - Those aren't shipped with the package to allow you unsynced upgrades regarding this package since `Drift` dependency is not pinned. + - Follow Drift install [documentation](https://drift.simonbinder.eu/web/) for further info. diff --git a/dio_cache_interceptor_db_store/build.yaml b/dio_cache_interceptor_db_store/build.yaml index c9bfbfd..4b798a5 100644 --- a/dio_cache_interceptor_db_store/build.yaml +++ b/dio_cache_interceptor_db_store/build.yaml @@ -12,3 +12,5 @@ targets: # Less code generated skip_verification_code: true override_hash_and_equals_in_result_sets: false + generate_values_in_copy_with: false + generate_manager: false diff --git a/dio_cache_interceptor_db_store/example/pubspec.lock b/dio_cache_interceptor_db_store/example/pubspec.lock index 6c59120..ac3ad97 100644 --- a/dio_cache_interceptor_db_store/example/pubspec.lock +++ b/dio_cache_interceptor_db_store/example/pubspec.lock @@ -5,10 +5,10 @@ packages: dependency: transitive description: name: async - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + sha256: d2872f9c19731c2e5f10444b14686eb7cc85c76274bd6c16e1816bff9a3bab63 url: "https://pub.dev" source: hosted - version: "2.11.0" + version: "2.12.0" characters: dependency: transitive description: @@ -21,66 +21,82 @@ packages: dependency: transitive description: name: collection - sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 + sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf url: "https://pub.dev" source: hosted - version: "1.17.2" + version: "1.19.0" convert: dependency: transitive description: name: convert - sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" + sha256: b30acd5944035672bc15c6b7a8b47d773e41e2f17de064350988c5d02adb1c68 url: "https://pub.dev" source: hosted - version: "3.1.1" + version: "3.1.2" crypto: dependency: transitive description: name: crypto - sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab + sha256: "1e445881f28f22d6140f181e07737b22f1e099a5e1ff94b0af2f9e4a463f4855" url: "https://pub.dev" source: hosted - version: "3.0.3" + version: "3.0.6" dio: dependency: "direct main" description: name: dio - sha256: "01870acd87986f768e0c09cc4d7a19a59d814af7b34cbeb0b437d2c33bdfea4c" + sha256: "5598aa796bbf4699afd5c67c0f5f6e2ed542afc956884b9cd58c306966efc260" url: "https://pub.dev" source: hosted - version: "5.3.4" + version: "5.7.0" dio_cache_interceptor: dependency: "direct main" description: name: dio_cache_interceptor - sha256: "7c0cb435963f08aa751ae8769b360d462f01160adc1d2d5b80e3b8c450b386e3" + sha256: "1346705a2057c265014d7696e3e2318b560bfb00b484dac7f9b01e2ceaebb07d" url: "https://pub.dev" source: hosted - version: "3.4.4" + version: "3.5.1" dio_cache_interceptor_db_store: dependency: "direct main" description: name: dio_cache_interceptor_db_store - sha256: "2a3715c445ee7dc7dc232cded13d6502bb8b5c60250ca9b7fc475dd1b960db9c" + sha256: "920d9984b97522dc5bdd78a7d228ab41f3e64df57704490c5a367ca28e682e72" url: "https://pub.dev" source: hosted - version: "5.1.0" + version: "5.1.1" + dio_web_adapter: + dependency: transitive + description: + name: dio_web_adapter + sha256: "33259a9276d6cea88774a0000cfae0d861003497755969c92faa223108620dc8" + url: "https://pub.dev" + source: hosted + version: "2.0.0" drift: dependency: transitive description: name: drift - sha256: d542088d353585a252f015b81c1e7603c57c996ba59a80d53a3f4644cc47f543 + sha256: af3941e4d544727b2eb80590eb64e9cb8d77cd68c7690265502ea6a2427aa621 url: "https://pub.dev" source: hosted - version: "2.13.2" + version: "2.23.1" ffi: dependency: transitive description: name: ffi - sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878" + sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6" + url: "https://pub.dev" + source: hosted + version: "2.1.3" + fixnum: + dependency: transitive + description: + name: fixnum + sha256: b6dc7065e46c974bc7c5f143080a6764ec7a4be6da1285ececdc37be96de53be url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "1.1.1" flutter: dependency: transitive description: flutter @@ -90,18 +106,10 @@ packages: dependency: transitive description: name: http_parser - sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" + sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571" url: "https://pub.dev" source: hosted - version: "4.0.2" - js: - dependency: transitive - description: - name: js - sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 - url: "https://pub.dev" - source: hosted - version: "0.6.7" + version: "4.1.2" lints: dependency: "direct dev" description: @@ -114,50 +122,50 @@ packages: dependency: transitive description: name: material_color_utilities - sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec url: "https://pub.dev" source: hosted - version: "0.5.0" + version: "0.11.1" meta: dependency: transitive description: name: meta - sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.15.0" path: dependency: transitive description: name: path - sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" + sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5" url: "https://pub.dev" source: hosted - version: "1.8.3" + version: "1.9.1" path_provider: dependency: "direct main" description: name: path_provider - sha256: a1aa8aaa2542a6bc57e381f132af822420216c80d4781f7aa085ca3229208aaa + sha256: "50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd" url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.5" path_provider_android: dependency: transitive description: name: path_provider_android - sha256: e595b98692943b4881b219f0a9e3945118d3c16bd7e2813f98ec6e532d905f72 + sha256: "4adf4fd5423ec60a29506c76581bc05854c55e3a0b72d35bb28d661c9686edf2" url: "https://pub.dev" source: hosted - version: "2.2.1" + version: "2.2.15" path_provider_foundation: dependency: transitive description: name: path_provider_foundation - sha256: "19314d595120f82aca0ba62787d58dde2cc6b5df7d2f0daf72489e38d1b57f2d" + sha256: "4843174df4d288f5e29185bd6e72a6fbdf5a4a4602717eed565497429f179942" url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.4.1" path_provider_linux: dependency: transitive description: @@ -170,47 +178,47 @@ packages: dependency: transitive description: name: path_provider_platform_interface - sha256: "94b1e0dd80970c1ce43d5d4e050a9918fce4f4a775e6142424c30a29a363265c" + sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" path_provider_windows: dependency: transitive description: name: path_provider_windows - sha256: "8bc9f22eee8690981c22aa7fc602f5c85b497a6fb2ceb35ee5a5e5ed85ad8170" + sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7 url: "https://pub.dev" source: hosted - version: "2.2.1" + version: "2.3.0" platform: dependency: transitive description: name: platform - sha256: "0a279f0707af40c890e80b1e9df8bb761694c074ba7e1d4ab1bc4b728e200b59" + sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984" url: "https://pub.dev" source: hosted - version: "3.1.3" + version: "3.1.6" plugin_platform_interface: dependency: transitive description: name: plugin_platform_interface - sha256: f4f88d4a900933e7267e2b353594774fc0d07fb072b47eedcd5b54e1ea3269f8 + sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" url: "https://pub.dev" source: hosted - version: "2.1.7" + version: "2.1.8" sky_engine: dependency: transitive description: flutter source: sdk - version: "0.0.99" + version: "0.0.0" source_span: dependency: transitive description: name: source_span - sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c" url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.10.1" sprintf: dependency: transitive description: @@ -223,50 +231,58 @@ packages: dependency: transitive description: name: sqlite3 - sha256: db65233e6b99e99b2548932f55a987961bc06d82a31a0665451fa0b4fff4c3fb + sha256: cb7f4e9dc1b52b1fa350f7b3d41c662e75fc3d399555fa4e5efcf267e9a4fbb5 + url: "https://pub.dev" + source: hosted + version: "2.5.0" + stack_trace: + dependency: transitive + description: + name: stack_trace + sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1" url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "1.12.1" stream_channel: dependency: transitive description: name: stream_channel - sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d" url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.4" string_scanner: dependency: transitive description: name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43" url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.4.1" term_glyph: dependency: transitive description: name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e" url: "https://pub.dev" source: hosted - version: "1.2.1" + version: "1.2.2" typed_data: dependency: transitive description: name: typed_data - sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c + sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006 url: "https://pub.dev" source: hosted - version: "1.3.2" + version: "1.4.0" uuid: dependency: transitive description: name: uuid - sha256: df5a4d8f22ee4ccd77f8839ac7cb274ebc11ef9adcce8b92be14b797fe889921 + sha256: a5be9ef6618a7ac1e964353ef476418026db906c4facdedaa299b7a2e71690ff url: "https://pub.dev" source: hosted - version: "4.2.1" + version: "4.5.1" vector_math: dependency: transitive description: @@ -279,26 +295,18 @@ packages: dependency: transitive description: name: web - sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 - url: "https://pub.dev" - source: hosted - version: "0.1.4-beta" - win32: - dependency: transitive - description: - name: win32 - sha256: "7c99c0e1e2fa190b48d25c81ca5e42036d5cac81430ef249027d97b0935c553f" + sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb url: "https://pub.dev" source: hosted - version: "5.1.0" + version: "1.1.0" xdg_directories: dependency: transitive description: name: xdg_directories - sha256: "589ada45ba9e39405c198fe34eb0f607cddb2108527e658136120892beac46d2" + sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15" url: "https://pub.dev" source: hosted - version: "1.0.3" + version: "1.1.0" sdks: - dart: ">=3.1.0 <4.0.0" - flutter: ">=3.7.0" + dart: ">=3.5.0 <4.0.0" + flutter: ">=3.24.0" diff --git a/dio_cache_interceptor_db_store/lib/dio_cache_interceptor_db_store.dart b/dio_cache_interceptor_db_store/lib/dio_cache_interceptor_db_store.dart index c23b022..dba3f19 100644 --- a/dio_cache_interceptor_db_store/lib/dio_cache_interceptor_db_store.dart +++ b/dio_cache_interceptor_db_store/lib/dio_cache_interceptor_db_store.dart @@ -1,3 +1 @@ -library dio_cache_interceptor_db_store; - export 'src/store/dio_cache_interceptor_db_store.dart'; diff --git a/dio_cache_interceptor_db_store/lib/src/store/database.dart b/dio_cache_interceptor_db_store/lib/src/store/database.dart index 97162a3..1d16d9f 100644 --- a/dio_cache_interceptor_db_store/lib/src/store/database.dart +++ b/dio_cache_interceptor_db_store/lib/src/store/database.dart @@ -13,7 +13,7 @@ typedef _MigrateFunction = Future Function( @DriftDatabase(include: {'cache_table.drift'}, daos: [DioCacheDao]) class DioCacheDatabase extends _$DioCacheDatabase { - DioCacheDatabase(QueryExecutor e) : super(e); + DioCacheDatabase(super.e); final Map _migrationsMap = { 1: _migrateToV2, @@ -62,7 +62,7 @@ class DioCacheDatabase extends _$DioCacheDatabase { @DriftAccessor(include: {'cache_table.drift'}) class DioCacheDao extends DatabaseAccessor with _$DioCacheDaoMixin { - DioCacheDao(DioCacheDatabase db) : super(db); + DioCacheDao(super.db); Future clean({ CachePriority priorityOrBelow = CachePriority.high, @@ -97,11 +97,10 @@ class DioCacheDao extends DatabaseAccessor } Future exists(String key) async { - final countExp = dioCache.cacheKey.count(); - final query = selectOnly(dioCache)..addColumns([countExp]); - final count = await query.map((row) => row.read(countExp)).getSingle(); - - return count == 1; + final query = select(dioCache) + ..where((t) => t.cacheKey.equals(key)) + ..limit(1); + return (await query.getSingleOrNull()) != null; } Future get(String key) async { diff --git a/dio_cache_interceptor_db_store/lib/src/store/database.g.dart b/dio_cache_interceptor_db_store/lib/src/store/database.g.dart index 75bf687..a83a65f 100644 --- a/dio_cache_interceptor_db_store/lib/src/store/database.g.dart +++ b/dio_cache_interceptor_db_store/lib/src/store/database.g.dart @@ -244,35 +244,58 @@ class DioCacheData extends DataClass implements Insertable { DioCacheData copyWith( {String? cacheKey, - Value date = const Value.absent(), - Value cacheControl = const Value.absent(), - Value content = const Value.absent(), - Value eTag = const Value.absent(), - Value expires = const Value.absent(), - Value headers = const Value.absent(), - Value lastModified = const Value.absent(), - Value maxStale = const Value.absent(), + DateTime? date, + String? cacheControl, + Uint8List? content, + String? eTag, + DateTime? expires, + Uint8List? headers, + String? lastModified, + DateTime? maxStale, int? priority, - Value requestDate = const Value.absent(), + DateTime? requestDate, DateTime? responseDate, String? url}) => DioCacheData( cacheKey: cacheKey ?? this.cacheKey, - date: date.present ? date.value : this.date, - cacheControl: - cacheControl.present ? cacheControl.value : this.cacheControl, - content: content.present ? content.value : this.content, - eTag: eTag.present ? eTag.value : this.eTag, - expires: expires.present ? expires.value : this.expires, - headers: headers.present ? headers.value : this.headers, - lastModified: - lastModified.present ? lastModified.value : this.lastModified, - maxStale: maxStale.present ? maxStale.value : this.maxStale, + date: date ?? this.date, + cacheControl: cacheControl ?? this.cacheControl, + content: content ?? this.content, + eTag: eTag ?? this.eTag, + expires: expires ?? this.expires, + headers: headers ?? this.headers, + lastModified: lastModified ?? this.lastModified, + maxStale: maxStale ?? this.maxStale, priority: priority ?? this.priority, - requestDate: requestDate.present ? requestDate.value : this.requestDate, + requestDate: requestDate ?? this.requestDate, responseDate: responseDate ?? this.responseDate, url: url ?? this.url, ); + DioCacheData copyWithCompanion(DioCacheCompanion data) { + return DioCacheData( + cacheKey: data.cacheKey.present ? data.cacheKey.value : this.cacheKey, + date: data.date.present ? data.date.value : this.date, + cacheControl: data.cacheControl.present + ? data.cacheControl.value + : this.cacheControl, + content: data.content.present ? data.content.value : this.content, + eTag: data.eTag.present ? data.eTag.value : this.eTag, + expires: data.expires.present ? data.expires.value : this.expires, + headers: data.headers.present ? data.headers.value : this.headers, + lastModified: data.lastModified.present + ? data.lastModified.value + : this.lastModified, + maxStale: data.maxStale.present ? data.maxStale.value : this.maxStale, + priority: data.priority.present ? data.priority.value : this.priority, + requestDate: + data.requestDate.present ? data.requestDate.value : this.requestDate, + responseDate: data.responseDate.present + ? data.responseDate.value + : this.responseDate, + url: data.url.present ? data.url.value : this.url, + ); + } + @override String toString() { return (StringBuffer('DioCacheData(') diff --git a/dio_cache_interceptor_db_store/lib/src/store/db_platform/db_none.dart b/dio_cache_interceptor_db_store/lib/src/store/db_platform/db_none.dart index 5495ff8..528ef72 100644 --- a/dio_cache_interceptor_db_store/lib/src/store/db_platform/db_none.dart +++ b/dio_cache_interceptor_db_store/lib/src/store/db_platform/db_none.dart @@ -1,8 +1,10 @@ -import '../database.dart'; +import 'package:drift/drift.dart'; -DioCacheDatabase openDb({ +DatabaseConnection openDb({ required String databasePath, required String databaseName, + required String webSqlite3WasmPath, + required String webDriftWorkerPath, bool logStatements = false, }) { throw 'Platform not supported'; diff --git a/dio_cache_interceptor_db_store/lib/src/store/db_platform/db_os.dart b/dio_cache_interceptor_db_store/lib/src/store/db_platform/db_os.dart index 1494422..e92249c 100644 --- a/dio_cache_interceptor_db_store/lib/src/store/db_platform/db_os.dart +++ b/dio_cache_interceptor_db_store/lib/src/store/db_platform/db_os.dart @@ -1,21 +1,20 @@ import 'dart:io'; +import 'package:drift/drift.dart'; import 'package:drift/native.dart'; import 'package:path/path.dart' as p; -import '../database.dart'; - -DioCacheDatabase openDb({ +DatabaseConnection openDb({ required String databasePath, required String databaseName, + required String webSqlite3WasmPath, + required String webDriftWorkerPath, bool logStatements = false, }) { Directory(databasePath).createSync(recursive: true); final dbFile = File(p.join(databasePath, '$databaseName.db')); - return DioCacheDatabase( - NativeDatabase.createBackgroundConnection( - dbFile, - logStatements: logStatements, - ), + return NativeDatabase.createBackgroundConnection( + dbFile, + logStatements: logStatements, ); } diff --git a/dio_cache_interceptor_db_store/lib/src/store/db_platform/db_web.dart b/dio_cache_interceptor_db_store/lib/src/store/db_platform/db_web.dart index e3b43bc..226c087 100644 --- a/dio_cache_interceptor_db_store/lib/src/store/db_platform/db_web.dart +++ b/dio_cache_interceptor_db_store/lib/src/store/db_platform/db_web.dart @@ -1,13 +1,20 @@ -import 'package:drift/web.dart'; +import 'package:drift/drift.dart'; +import 'package:drift/wasm.dart'; -import '../database.dart'; - -DioCacheDatabase openDb({ +DatabaseConnection openDb({ required String databasePath, required String databaseName, + required String webSqlite3WasmPath, + required String webDriftWorkerPath, bool logStatements = false, }) { - return DioCacheDatabase( - WebDatabase(databaseName, logStatements: logStatements), - ); + return DatabaseConnection.delayed(Future(() async { + final result = await WasmDatabase.open( + databaseName: databaseName, + sqlite3Uri: Uri.parse(webSqlite3WasmPath), + driftWorkerUri: Uri.parse(webDriftWorkerPath), + ); + + return result.resolvedExecutor; + })); } diff --git a/dio_cache_interceptor_db_store/lib/src/store/dio_cache_interceptor_db_store.dart b/dio_cache_interceptor_db_store/lib/src/store/dio_cache_interceptor_db_store.dart index 24a3069..59b31cd 100644 --- a/dio_cache_interceptor_db_store/lib/src/store/dio_cache_interceptor_db_store.dart +++ b/dio_cache_interceptor_db_store/lib/src/store/dio_cache_interceptor_db_store.dart @@ -12,7 +12,7 @@ class DbCacheStore extends CacheStore { /// - Useful if you want more than one DB. final String databaseName; - /// Data base location. + /// Database location. /// /// - On mobile, prefer getApplicationDocumentsDirectory() /// given by path_provider. @@ -26,15 +26,25 @@ class DbCacheStore extends CacheStore { // Our DB connection final DioCacheDatabase _db; + /// SQLite WASM library path + final String webSqlite3WasmPath; + + /// Drift worker path + final String webDriftWorkerPath; + DbCacheStore({ required this.databasePath, this.databaseName = tableName, this.logStatements = false, - }) : _db = openDb( + this.webSqlite3WasmPath = 'sqlite3.wasm', + this.webDriftWorkerPath = 'drift_worker.dart.js', + }) : _db = DioCacheDatabase(openDb( databasePath: databasePath, databaseName: databaseName, + webSqlite3WasmPath: webSqlite3WasmPath, + webDriftWorkerPath: webDriftWorkerPath, logStatements: logStatements, - ) { + )) { clean(staleOnly: true); } diff --git a/dio_cache_interceptor_db_store/pubspec.yaml b/dio_cache_interceptor_db_store/pubspec.yaml index 6d117c9..62ac80b 100644 --- a/dio_cache_interceptor_db_store/pubspec.yaml +++ b/dio_cache_interceptor_db_store/pubspec.yaml @@ -1,15 +1,15 @@ name: dio_cache_interceptor_db_store description: A DB cache store implementation with Drift for dio_cache_interceptor package. homepage: https://github.com/llfbandit/dio_cache_interceptor/tree/master/dio_cache_interceptor_db_store -version: 5.1.1 +version: 6.0.0 environment: - sdk: ">=2.14.0 <4.0.0" + sdk: ^3.0.0 dependencies: dio_cache_interceptor: ^3.4.4 # https://pub.dev/packages/drift - drift: ^2.5.0 + drift: ^2.9.0 # https://pub.dev/packages/path path: ^1.8.0 @@ -19,7 +19,7 @@ dev_dependencies: # https://pub.dev/packages/build_runner build_runner: ^2.3.3 # https://pub.dev/packages/lints - lints: ^3.0.0 + lints: ^5.0.0 # https://pub.dev/packages/test test: ^1.23.1