From 6c80a745cd387250995fa3140aac54169466f5bb Mon Sep 17 00:00:00 2001 From: Ryotaro Onoue <73390859+YumNumm@users.noreply.github.com> Date: Mon, 30 Sep 2024 20:19:04 +0900 Subject: [PATCH] fix(yet_another_json_isolate): Conditional export now works correctly with Dart 3.5+ (#1048) * fix: change `dart.library.js` -> `dart.library.js_interop` * fix: conditional export for before dart 3.3 * add: changelog * Update packages/yet_another_json_isolate/CHANGELOG.md --------- Co-authored-by: Tyler --- .../lib/yet_another_json_isolate.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/yet_another_json_isolate/lib/yet_another_json_isolate.dart b/packages/yet_another_json_isolate/lib/yet_another_json_isolate.dart index da6c9676..a5f214ce 100644 --- a/packages/yet_another_json_isolate/lib/yet_another_json_isolate.dart +++ b/packages/yet_another_json_isolate/lib/yet_another_json_isolate.dart @@ -1,3 +1,5 @@ library yet_another_json_isolate; -export 'src/_isolates_io.dart' if (dart.library.js) 'src/_isolates_web.dart'; +export 'src/_isolates_io.dart' + if (dart.library.js_interop) 'src/_isolates_web.dart' // After Dart 3.3 + if (dart.library.js) 'src/_isolates_web.dart'; // Before Dart 3.3 (for backwards compatibility)