From 21e25cf99ec7b2450e82ca4877d17ceba7540a13 Mon Sep 17 00:00:00 2001 From: Srujan Gaddam Date: Thu, 11 Jan 2024 17:10:46 -0800 Subject: [PATCH] Undeprecate some APIs and prepare for publish of 0.4.2 --- CHANGELOG.md | 6 ++++++ lib/helpers.dart | 6 ++++-- lib/src/helpers/extensions.dart | 8 ++++++-- pubspec.yaml | 2 +- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41cb0c6b..771b1d02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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`. diff --git a/lib/helpers.dart b/lib/helpers.dart index fc24d4e3..41463f0d 100644 --- a/lib/helpers.dart +++ b/lib/helpers.dart @@ -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'; diff --git a/lib/src/helpers/extensions.dart b/lib/src/helpers/extensions.dart index 01356444..c93d8147 100644 --- a/lib/src/helpers/extensions.dart +++ b/lib/src/helpers/extensions.dart @@ -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); } diff --git a/pubspec.yaml b/pubspec.yaml index 80d964ed..e45a4330 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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