Skip to content

Commit 020ef37

Browse files
authored
Undeprecate some APIs and prepare for publish of 0.4.2 (#140)
1 parent dd4bb85 commit 020ef37

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.4.2
2+
3+
- Undeprecate some APIs and helpers library that were deprecated in 0.4.1.
4+
Because deprecations are breaking in Flutter, they should be done in a
5+
breaking change.
6+
17
## 0.4.1
28

39
- Exported the helper libraries from `web.dart`.

lib/helpers.dart

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
@Deprecated('See instead package:web/web.dart.')
6-
library;
5+
// TODO(srujzs): Deprecate in 0.5.0 instead. This results in failures in Flutter
6+
// CI.
7+
// @Deprecated('See instead package:web/web.dart.')
8+
// library;
79

810
export 'web.dart';

lib/src/helpers/extensions.dart

+6-2
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,13 @@ extension CanvasRenderingContext2DGlue on CanvasRenderingContext2D {
6767

6868
extension NodeGlue on Node {
6969
set text(String s) => textContent = s;
70-
@Deprecated('See Node.appendChild()')
70+
// TODO(srujzs): Deprecate in 0.5.0 instead. Deprecations are breaking for
71+
// Flutter CI.
72+
// @Deprecated('See Node.appendChild()')
7173
Node append(Node other) => appendChild(other);
72-
@Deprecated('See Node.cloneNode()')
74+
// TODO(srujzs): Deprecate in 0.5.0 instead. Deprecations are breaking for
75+
// Flutter CI.
76+
// @Deprecated('See Node.cloneNode()')
7377
Node clone(bool? deep) => cloneNode(deep ?? false);
7478
}
7579

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: web
2-
version: 0.4.1
2+
version: 0.4.2
33
description: Lightweight browser API bindings built around JS static interop.
44
repository: https://github.com/dart-lang/web
55

0 commit comments

Comments
 (0)