Skip to content

Commit c02b780

Browse files
Merge pull request #359 from Workiva/release_react-dart_6.2.0
RM-171359 Release react-dart 6.2.0
2 parents 2d32405 + 7b089e9 commit c02b780

File tree

2 files changed

+23
-17
lines changed

2 files changed

+23
-17
lines changed

Diff for: CHANGELOG.md

+22-16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [6.2.0](https://github.com/cleandart/react-dart/compare/6.1.8...6.2.0)
2+
- [#357] Export Suspense component
3+
- [#354] Raise analyzer minimum & unpin meta
4+
- [#355] Pin mockito 5
5+
- [#356] Unpin mockito, fix CI
6+
17
## [6.1.8](https://github.com/cleandart/react-dart/compare/6.1.7...6.1.8)
28
- [#350] Return `jsUndefined` instead of `null` when children prop is empty
39

@@ -57,16 +63,16 @@ The underlying `.js` files provided by this package are now ReactJS version `17.
5763
5864
## [5.7.1](https://github.com/cleandart/react-dart/compare/5.7.0...5.7.1)
5965

60-
- [#289] Update most deprecations that were slated for removal in v6.0.0 to be slated for removal in v7.0.0 instead. To keep the migration to v6.0.0 as easy as possible, only APIs that are known to be completely unused will be removed in v6.0.0. Therefore, most APIs that were marked for removal in v6.0.0 will remain until the v7.0.0 release. This PR updated deprecation annotations to reflect this.
61-
- [#287] Deprecate `SyntheticEvent.isFormEvent`. Because form events do not exist as their own type in ReactJS, this helper will be removed in v6.0.0. Instead, check for the expected [form event types](https://reactjs.org/docs/events.html#form-events).
66+
- [#289] Update most deprecations that were slated for removal in v6.0.0 to be slated for removal in v7.0.0 instead. To keep the migration to v6.0.0 as easy as possible, only APIs that are known to be completely unused will be removed in v6.0.0. Therefore, most APIs that were marked for removal in v6.0.0 will remain until the v7.0.0 release. This PR updated deprecation annotations to reflect this.
67+
- [#287] Deprecate `SyntheticEvent.isFormEvent`. Because form events do not exist as their own type in ReactJS, this helper will be removed in v6.0.0. Instead, check for the expected [form event types](https://reactjs.org/docs/events.html#form-events).
6268

6369
## [5.7.0](https://github.com/cleandart/react-dart/compare/5.6.1...5.7.0)
6470

65-
- [#282] Add `SyntheticEvent` helpers that eliminate the need to use synthetic event class constructors. Additionally, added utilities to assist in type checking events without manually using the `is` keyword.
71+
- [#282] Add `SyntheticEvent` helpers that eliminate the need to use synthetic event class constructors. Additionally, added utilities to assist in type checking events without manually using the `is` keyword.
6672

6773
## [5.6.1](https://github.com/cleandart/react-dart/compare/5.6.0...5.6.1)
6874

69-
- [#280] Update React dev JS files to include a [workaround](https://github.com/dart-lang/sdk/issues/43193) to a DDC bug when using Chrome 86+ (fixed in Dart 2.9.3)
75+
- [#280] Update React dev JS files to include a [workaround](https://github.com/dart-lang/sdk/issues/43193) to a DDC bug when using Chrome 86+ (fixed in Dart 2.9.3)
7076

7177
## [5.6.0](https://github.com/cleandart/react-dart/compare/5.5.1...5.6.0)
7278

@@ -87,8 +93,8 @@ __New Features__
8793

8894
- 🎉 🎉 🎉 __Support for function components, memo and hooks!!!__ 🎉 🎉 🎉
8995

90-
Sooooo much work from so many amazing people made this possible, but to summarize:
91-
96+
Sooooo much work from so many amazing people made this possible, but to summarize:
97+
9298
- [#221] Add support for function components
9399
- [#252] Add support for `memo` higher order component
94100
- Hooks, hooks, and more hooks!
@@ -104,40 +110,40 @@ __New Features__
104110
- [#246] useDebugValue
105111

106112
<p><br>It works like this...</p>
107-
113+
108114
Define the component:
109115
```dart
110116
import 'package:react/react.dart' as react;
111-
117+
112118
final SomeWidget = react.registerFunctionComponent(_SomeWidget, displayName: 'SomeWidget');
113-
119+
114120
_SomeWidget(Map props) {
115121
// You can use hooks in here, too!
116-
122+
117123
return react.div({}, [
118124
// Some children...
119125
]);
120126
}
121127
```
122-
128+
123129
Render the component _(exact same consumer API as a class-based component)_:
124130
```dart
125131
import 'package:react/react_dom.dart' as react_dom;
126132
import 'some_widget.dart'; // Where your component is defined
127-
133+
128134
main() {
129135
final renderedWidget = SomeWidget({
130136
// put some props here
131137
}, [
132138
// put some children here!
133139
]);
134-
140+
135141
react_dom.render(renderedWidget, querySelector('#idOfSomeNodeInTheDom'));
136142
}
137143
```
138-
144+
139145
> Check out all the [function component and hooks examples](https://github.com/cleandart/react-dart/blob/c9a1211d5d77a9e354b864e99ef8f52b60eeff85/example/test/function_component_test.dart) for more information!
140-
146+
141147
__Fixes / Updates__
142148
- [#253] Deprecate `setClientConfiguration`.
143149
- It is no longer necessary - and can be removed from your implementations
@@ -147,7 +153,7 @@ __Fixes / Updates__
147153
148154
__New Features__
149155
- [#244] Add support for [HTML Composition events](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent)
150-
- [#263] Add support for [`SyntheticEvent.persist()`](https://reactjs.org/docs/events.html#event-pooling)
156+
- [#263] Add support for [`SyntheticEvent.persist()`](https://reactjs.org/docs/events.html#event-pooling)
151157
152158
__Fixes / Updates__
153159
- [#261] Stop errors thrown within the call stack of `Component.render()` from being swallowed

Diff for: pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: react
2-
version: 6.1.8
2+
version: 6.2.0
33
description: Bindings of the ReactJS library for building interactive interfaces.
44
homepage: https://github.com/cleandart/react-dart
55
environment:

0 commit comments

Comments
 (0)