From 3727c8f85e03d70960b69d7e9186e6b3d074ddd2 Mon Sep 17 00:00:00 2001 From: Greg Littlefield Date: Fri, 6 Oct 2023 14:58:04 -0700 Subject: [PATCH 1/2] Deprecate a few more APIs to be removed in 7.0.0 --- lib/react_client/react_interop.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/react_client/react_interop.dart b/lib/react_client/react_interop.dart index 51f9ae81..093e7c5a 100644 --- a/lib/react_client/react_interop.dart +++ b/lib/react_client/react_interop.dart @@ -486,6 +486,7 @@ class ReactClassConfig { /// Interop class for the data structure at `ReactElement._store`. /// /// Used to validate variadic children before they get to [React.createElement]. +@Deprecated('For internal use only. Will be made private in 7.0.0.') @JS() @anonymous class ReactElementStore { @@ -681,6 +682,7 @@ class ReactDartContextInternal { } /// Creates a new JS Error object with the provided message. +@Deprecated('For internal use only. Will be made private in 7.0.0.') @JS('Error') class JsError { external JsError(message); @@ -706,6 +708,7 @@ external void throwErrorFromJS(error); /// as a variadic child. /// /// Offloaded to the JS to avoid dart2js interceptor lookup. +@Deprecated('For internal use only. Will be made private in 7.0.0.') @JS('_markChildValidated') external void markChildValidated(child); From e3b960ceabc4ae9adfd57070bcf48233a094920b Mon Sep 17 00:00:00 2001 From: Greg Littlefield Date: Mon, 9 Oct 2023 11:04:03 -0700 Subject: [PATCH 2/2] Update version meta and changelog for 6.3.0 release --- CHANGELOG.md | 6 ++++++ pubspec.yaml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7057b9de..bbc9c9e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,12 @@ #### Potential behavior breakages - Component and Component2 members `props`/`state`/`jsThis` are late, will now throw instead of being null if accessed before initialized (e.g., in a constructor, final class field, or static lifecycle method). +## [6.3.0](https://github.com/Workiva/react-dart/compare/6.2.1...6.3.0) +- [#372], [#374] Add and update deprecations in preparation for 7.0.0 release, add WIP changelog +- [#372] Add APIs in preparation for null safety: + - `htmlMain` - replacement for deprecated `react.main`, to be removed in 7.0.0 + - `useRefInit` - `useRef` can't be used to create non-nullable-typed refs, but `useRefInit` can + ## [6.2.1](https://github.com/Workiva/react-dart/compare/6.2.0...6.2.1) - [#366] Fix lints and eliminate most implicit casts diff --git a/pubspec.yaml b/pubspec.yaml index 8b320d85..315d5409 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: react -version: 6.2.1 +version: 6.3.0 description: Bindings of the ReactJS library for building interactive interfaces. homepage: https://github.com/cleandart/react-dart environment: