Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.4.2

- Undeprecate some APIs and helpers library that were deprecated in 0.4.1.
Because deprecations are breaking in Flutter, they should be done in a
breaking change.

## 0.4.1

- Exported the helper libraries from `web.dart`.
Expand Down
6 changes: 4 additions & 2 deletions lib/helpers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

@Deprecated('See instead package:web/web.dart.')
library;
// TODO(srujzs): Deprecate in 0.5.0 instead. This results in failures in Flutter
// CI.
// @Deprecated('See instead package:web/web.dart.')
// library;

export 'web.dart';
8 changes: 6 additions & 2 deletions lib/src/helpers/extensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,13 @@ extension CanvasRenderingContext2DGlue on CanvasRenderingContext2D {

extension NodeGlue on Node {
set text(String s) => textContent = s;
@Deprecated('See Node.appendChild()')
// TODO(srujzs): Deprecate in 0.5.0 instead. Deprecations are breaking for
// Flutter CI.
// @Deprecated('See Node.appendChild()')
Node append(Node other) => appendChild(other);
@Deprecated('See Node.cloneNode()')
// TODO(srujzs): Deprecate in 0.5.0 instead. Deprecations are breaking for
// Flutter CI.
// @Deprecated('See Node.cloneNode()')
Node clone(bool? deep) => cloneNode(deep ?? false);
}

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: web
version: 0.4.1
version: 0.4.2
description: Lightweight browser API bindings built around JS static interop.
repository: https://github.com/dart-lang/web

Expand Down