Skip to content

Commit d101425

Browse files
committed
Wasm ready.
1 parent a0dabf1 commit d101425

5 files changed

Lines changed: 14 additions & 19 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [2.0.0]
2+
3+
* Wasm ready.
4+
15
## [1.0.1+2]
26

37
* href, userAgent and platform.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019-2021 Mahdi K. Fard
3+
Copyright (c) 2019-2025 Mahdi K. Fard
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

lib/src/html.dart

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
import 'dart:html';
1+
import 'package:web/web.dart';
22
import 'platform.dart';
33

4-
/// Gets `window.location.href` on web, `null` on other platforms.
5-
@Deprecated('Please use `href`')
6-
String? get getHref {
7-
return window.location.href;
8-
}
9-
104
/// Gets `window.location.href` on web, `null` on other platforms.
115
String? get href {
126
return window.location.href;

lib/src/io.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
import 'dart:io' as io;
22
import 'platform.dart';
33

4-
/// Gets `window.location.href` on web, `null` on other platforms.
5-
@Deprecated('Please use `href`')
6-
String? get getHref {
7-
return null;
8-
}
9-
104
/// Gets `window.location.href` on web, `null` on other platforms.
115
String? get href {
126
return null;

pubspec.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
name: window_location_href
22
description: Cross-platfrom window.location.href. Supports all platforms and is easy.
3-
version: 1.0.1+2
3+
version: 2.0.0
44
homepage: https://pwa.ir
5-
repository: https://github.com/xclud/window_location_href
5+
repository: https://github.com/olutter/window_location_href
66

77
environment:
8-
sdk: '>=2.12.0 <3.0.0'
8+
sdk: '>=2.12.0 <4.0.0'
9+
10+
dependencies:
11+
web: ^1.1.1
912

1013
dev_dependencies:
11-
test: ^1.21.0
12-
lints: ^2.0.0
14+
test: ^1.26.0
15+
lints: ^6.0.0

0 commit comments

Comments
 (0)