-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RM-217585 FED-1716 Release react-dart 7.0.0 (null-safety) #380
Conversation
It can't really be made null safe, and we always intended on removing it in the next major.
Simulated synthetic events will be missing some properties if they're not included in eventData, meaning the non-nullable typings on them are incorrect. As opposed to making everything nullable to account for that, we'll treat those simulated events the same way Mockito treats mock objects, and just require that any properties being accessed get stubbed in using the eventData argument.
versioning it useRef without an argument is more common than with one, and this approach improves that experience by: 1. not requiring consumers explicitly provide `null` and provide a nullable type argument 2. not involving a new, versioned API that must be migrated to
Importantly, this fixes some callback ref typing issues after fixing unnecessary_lambdas lints
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
FED-1881 Fix regression in SyntheticEvent mock class type-checking
Skynet test results failed initially for this build but were approved by rob.becker |
@Workiva/release-management-p |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 from RM
Motivation
We've been working on a 7.0.0 null-safe release, and it's time to merge it!
Changes
All commits through 440c5e3 have been reviewed in other PRs:
Leaving only commits later than 440c5e3 to be reviewed.
New changes in those commits include:
dartInteropStatics
as@internal
(I had it in the changelog draft listed as a removal, but apparently it was never public in the first place)Testing