Closed aaronlademann-wf closed 4 years ago
Release PR detected; using previous release (4.9.2) as the diff base.
Recommendation: **:bangbang: Major version bump (fyi @Workiva/semver-audit-group )** ```diff @@ line 24: package:react/react_server.dart @@ - typedef String OwnerFactory([String ownerId, num position, String key]); // Removing a typedef is a major change. ``` ```diff @@ line 39: package:react/react_client/js_interop_helpers.dart @@ - _GetPropertyFn get getProperty; // Removing a top-level variable is a major change. ``` ```diff @@ line 285: package:react/react_client/react_interop.dart @@ - ReactClassConfig createReactDartComponentClassConfig(ReactDartInteropStatics dartInteropStatics, ComponentStatics componentStatics, [JsComponentConfig jsConfig]); // Removing a top-level function is a major change. ``` ```diff - react/react_test.dart // Removing an entry point is a major change. ``` ```diff - react/react_server.dart // Removing an entry point is a major change. ```
---
```diff
@@ line 36: package:react/react_server.dart @@
- typedef Component ComponentFactory();
// Removing a typedef is a major change.
```
```diff
@@ line 411: package:react/react_server.dart @@
- void setServerConfiguration();
// Removing a top-level function is a major change.
```
```diff
@@ line 65: package:react/react_client/js_interop_helpers.dart @@
- _SetPropertyFn get setProperty;
// Removing a top-level variable is a major change.
```
```diff
@@ line 639: package:react/react_client.dart @@
- SyntheticDataTransfer syntheticDataTransferFactory(Object dt);
+ SyntheticDataTransfer syntheticDataTransferFactory(events.SyntheticDataTransfer dt);
// `type` of `dt` has changed.
// Changing a parameter signature is a major change.
```
```diff
@@ line 323: package:react/react_test_utils.dart @@
- bool isElementOfType(dynamic element, ReactComponentFactory componentFactory);
// Removing a top-level function is a major change.
```
```diff
@@ line 293: package:react/react_test_utils.dart @@
- bool isCompositeComponentWithType(instance, ReactComponentFactory componentFactory);
// Removing a top-level function is a major change.
```
```diff
@@ line 93: package:react/react_client/js_interop_helpers.dart @@
- EmptyObject jsify(Map map);
// Removing a top-level function is a major change.
```
```diff
@@ line 41: package:react/react_test.dart @@
- void setTestConfiguration();
// Removing a top-level function is a major change.
```
```diff
@@ line 33: package:react/react_client.dart @@
- typedef ReactElement ReactComponentFactory(Map props, [dynamic children]);
// Removing a typedef is a major change.
```
```diff
@@ line 29: package:react/react_test_utils.dart @@
- dynamic getComponentType(ReactComponentFactory componentFactory);
// Removing a top-level function is a major change.
```
```diff
@@ line 343: package:react/react_test_utils.dart @@
- List
+1
This stable, major release of react includes:
ReactJS 16.x Support
.js
files provided by this package are now ReactJS version16.10.1
.5.1.0
.🚨 NOTE: This will be the last release of react that supports the Dart 1 SDK. 🚨
Breaking Changes
ReactJS 16 breaking changes
ErrorBoundary
utility component.props.style
string values are no longer auto-converted topx
.This has been a warning since React 15.0.0.react_dom.render
calls within React lifecycle methods are no longer guaranteed to be synchronous, and may returnnull
setState
callbacks (second argument) now fire immediately after componentDidMount / componentDidUpdate instead of after all components have rendered.componentDidUpdate
.unmountComponentAtNode
..toString()
the value in any places where "false" or "true" are needed.ref
to a component would always detach the ref before that component’s render is called. Now, we change theref
later, when applying the changes to the DOM.<A />
with<B />
,B.componentWillMount
now always happens beforeA.componentWillUnmount
. Previously,A.componentWillUnmount
could fire first in some cases.componentWillMount
tocomponentDidMount
should resolve the issue, and will be functionally equivalent in most cases.Dart API breaking changes
react_server.dart
entrypoint has been removedreact_test.dart
entrypoint has been removedComponent.bind
is removedreact_test_utils.SimulateNative
is removedreact_test_utils.Simulate
instead.jsify
is removed fromjs_interop_helpers.dart
dart:js
, and replacejsify
withJsObject.jsify
.getProperty
/setProperty
are removed fromjs_interop_helpers.dart
dart:js
instead.ReactComponentFactory
is removedReactComponentFactoryProxy
instead.emptyJsMap
is removednewObject()
fromdart:js_util
instead.EmptyObject
is removednewObject()
fromdart:js_util
instead.ReactComponent.isMounted
is removed