Skip to content

Commit 4022b30

Browse files
authored
Redeprecate deprecated APIs in 0.4.1 (#142)
1 parent 020ef37 commit 4022b30

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
## 0.5.0-wip
2+
3+
- Redeprecate APIs that were deprecated in `0.4.1` but undeprecated in `0.4.2`.
4+
15
## 0.4.2
26

3-
- Undeprecate some APIs and helpers library that were deprecated in 0.4.1.
7+
- Undeprecate some APIs and helpers library that were deprecated in `0.4.1`.
48
Because deprecations are breaking in Flutter, they should be done in a
59
breaking change.
610

lib/helpers.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
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-
// 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;
5+
@Deprecated('See instead package:web/web.dart.')
6+
library;
97

108
export 'web.dart';

lib/src/helpers/extensions.dart

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,9 @@ extension CanvasRenderingContext2DGlue on CanvasRenderingContext2D {
6767

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

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: web
2-
version: 0.4.2
2+
version: 0.5.0-wip
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)