Skip to content

Commit 5ba28e3

Browse files
aranmosuem
andauthored
fix: Use package:web to get HttpStatus (#749)
* Use package:web to get HttpStatus * docs: add CHANGELOG.md entry --------- Co-authored-by: Moritz <[email protected]>
1 parent 8406614 commit 5ba28e3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* Upgrade to `package:lints` version 5.0.0 and Dart SDK version 3.5.0.
88
* Upgrade `example/grpc-web` code.
99
* Update xhr transport to migrate off legacy JS/HTML apis.
10+
* Use `package:web` to get `HttpStatus`
1011

1112
## 4.0.1
1213

lib/src/shared/io_bits/io_bits.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
1515

16-
export 'io_bits_io.dart' if (dart.library.html) 'io_bits_web.dart';
16+
export 'io_bits_io.dart' if (dart.library.js_interop) 'io_bits_web.dart';

lib/src/shared/io_bits/io_bits_web.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
1515

16-
// ignore: deprecated_member_use (#756)
17-
export 'dart:html' show HttpStatus;
16+
export 'package:web/web.dart' show HttpStatus;
1817

1918
/// Unavailable on the web
2019
class InternetAddress {}

0 commit comments

Comments
 (0)