From df797c90c74245f80a55ecfe0d2e9e0be9b83b62 Mon Sep 17 00:00:00 2001 From: Balint Rozgonyi Date: Tue, 11 Aug 2026 08:11:54 +0200 Subject: [PATCH] Update SDK constraint and improve type checking for JSString --- lib/src/util/js_interop_type_adapter.dart | 2 +- pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/util/js_interop_type_adapter.dart b/lib/src/util/js_interop_type_adapter.dart index a6e77fa..6baaed8 100644 --- a/lib/src/util/js_interop_type_adapter.dart +++ b/lib/src/util/js_interop_type_adapter.dart @@ -4,5 +4,5 @@ import 'dart:js_interop'; bool isString(Object obj) { - return obj is JSString; + return obj.isA(); } diff --git a/pubspec.yaml b/pubspec.yaml index ad19bc7..02626cb 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -6,7 +6,7 @@ repository: https://github.com/rikulo/socket_io_common issue_tracker: https://github.com/rikulo/socket_io_common/issues environment: - sdk: '>=3.0.0 <4.0.0' + sdk: '>=3.12.0 <4.0.0' dependencies: logging: '^1.2.0'