|
| 1 | +## 7.0.0-wip |
| 2 | + |
| 3 | +- Migrate to null safety |
| 4 | + |
| 5 | +#### Deprecated API removals |
| 6 | +- forwardRef (use forwardRef2 instead) |
| 7 | +- memo (use memo2 instead) |
| 8 | +- main (use htmlMain instead) |
| 9 | +- Ref class constructors: default and `useRefInit` (use useRef/createRef instead) |
| 10 | +- ReducerHook and StateHook class constructors (use hook functions instead). |
| 11 | +- APIs that have been no-ops since react-dart 6.0.0 |
| 12 | + - SyntheticEvent members `persist` and `isPersistent` |
| 13 | + - unconvertJsEventHandler |
| 14 | +- APIs that were never intended for public use: |
| 15 | + - JsPropValidator |
| 16 | + - dartInteropStatics |
| 17 | + - ComponentStatics(2) |
| 18 | + - createReactDartComponentClass(2) |
| 19 | + - JsComponentConfig(2) |
| 20 | + - ReactDartInteropStatics |
| 21 | + - InteropContextValue |
| 22 | + - markChildrenValidated |
| 23 | + |
| 24 | +#### Other API breakages |
| 25 | +- ReducerHook and StateHook have no public constructors and can no longer be extended |
| 26 | +- Ref.fromJs is now a factory constructor, meaning the Ref class can no longer be extended |
| 27 | +- ReactComponentFactoryProxy.call and .build return type changed from dynamic to ReactElement |
| 28 | + - This matches the type returned from `build` for all subclasses, which is what’s returned by call, and reflects the type returned at runtime |
| 29 | + - Has potential to cause some static analysis issues, but for the most part should not affect anything since ReactElement is typically treated as an opaque type |
| 30 | + - Needs consumer tests |
| 31 | + - Top-level component factories are typed as ReactDomComponentFactoryProxy instead of being `dynamic`: react.div |
| 32 | +- All PropValidatorInfo arguments are required |
| 33 | +- Changes to public but internal code that should not affect consumers: |
| 34 | + - ReactDartComponentInternal |
| 35 | + - Constructor now takes a required argument, props is final |
| 36 | + - initComponentInternal arguments are typed to reflect runtime assumptions |
| 37 | +- ReactComponentFactoryProxy no longer `implements Function` |
| 38 | + - This should not be a breakage, since as of Dart 2.0 inheriting from Function has had no effect |
| 39 | + |
| 40 | +#### Potential behavior breakages |
| 41 | +- 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). |
| 42 | + |
1 | 43 | ## [6.2.1](https://github.com/Workiva/react-dart/compare/6.2.0...6.2.1) |
2 | 44 | - [#366] Fix lints and eliminate most implicit casts |
3 | 45 |
|
|
0 commit comments