-
Notifications
You must be signed in to change notification settings - Fork 58
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
FED-1713 Null safety: perform migration, set up base for 5.0.0 integration branch #856
Merged
Merged
Changes from all commits
Commits
Show all changes
219 commits
Select commit
Hold shift + click to select a range
3b25e84
Widen analyzer dependency range to fix dev channel builds
aaronlademann-wf 155d73e
Move git diff check to its own step
aaronlademann-wf e8305c4
Try adding comments to speed up dev build?
aaronlademann-wf 800a9fc
Remove build_web_compilers/build_modules overrides
aaronlademann-wf 8f3a081
Copy dart version comment in generated parts
aaronlademann-wf fb6d7ce
Let the consumer know we don’t support this ish yet
aaronlademann-wf 5b31e99
Merge branch 'master' of github.com:Workiva/over_react into widen-ana…
aaronlademann-wf 570b422
Merge branch 'widen-analyzer-range' into null-unsafe-compat-builder
aaronlademann-wf ad10b8b
Prep for null-safety
greglittlefield-wf 15cb823
Generate files
greglittlefield-wf e6aece8
Add some hints
greglittlefield-wf c317210
Clean up some code to be easier to make null-safe
greglittlefield-wf ceaebc9
Use null safety tool to migrate most non-builder code in lib, adding …
greglittlefield-wf 8057181
More migration hints in core lib/src/component files
greglittlefield-wf 2b748f4
Convert builder to be null-safe (minus using null safe deps like anal…
greglittlefield-wf 8d905e1
Fix hints
greglittlefield-wf 09be6c8
Upgrade to latest analyzer
greglittlefield-wf 78afd8b
Remove BuiltReduxUiComponent and related built_redux APIs
greglittlefield-wf 64f2a42
Fix unnecessary ReactElement cast lints
greglittlefield-wf 1e7b574
Don't reference removed forwardRef
greglittlefield-wf 3f5846d
Fix misc lints
greglittlefield-wf 3114e3b
Remove dart2_constant dependency
greglittlefield-wf f830756
Point to null safety transformer utils branch
greglittlefield-wf 0ddfc25
Upgrade all dependencies to null safe releases except for w_common/w_…
greglittlefield-wf f2f827a
Fix analysis errors after upgrading dependencies
greglittlefield-wf 1687b64
Apply migration (Dart 2.13.3)
greglittlefield-wf 909a57f
Fix analysis errors in builder after running migration
greglittlefield-wf ad08ea2
Fix warnings in builder after running migration
greglittlefield-wf 2da1db8
Fix lints in builder after running migration
greglittlefield-wf 191cbb5
Remove conflicting extensions declared in package:collection
greglittlefield-wf a726eea
Fix errors in builder tests
greglittlefield-wf 7c78411
Fix lots of unnecessary null-aware warnings
greglittlefield-wf 7960c07
Fix remaining warnings in builder tests
greglittlefield-wf 2d44d59
Add missing null check
greglittlefield-wf b6f1564
Remove build configs for remove dependencies
greglittlefield-wf d5898bd
Fix syntax error in component_base.dart
greglittlefield-wf cd91e96
Fix DummyComponent2 implementation
greglittlefield-wf 22871ca
Update builder to emit correct nullability in generated code
greglittlefield-wf 0f9bfb8
Update generated code
greglittlefield-wf 1ef30bd
Add missing late
greglittlefield-wf f325b38
Update generated code
greglittlefield-wf 256f593
Fix overrides in component_base
greglittlefield-wf 617df73
Attempt to fix nullability issues in component_declaration and util
greglittlefield-wf 54f1c8f
Fix nullability issues in internal components
greglittlefield-wf 0374035
Generate code
greglittlefield-wf 1c93705
Fix syntax error in test
greglittlefield-wf 9795e89
Fix Redux nullability issues
greglittlefield-wf 45491fe
Fix bad casts added by tool
greglittlefield-wf 8356f21
Tweak nullability on prop key utils
greglittlefield-wf 10ad6c2
Properly convert CSSValue parsing to null safety
greglittlefield-wf b1f2669
Fix null and null-aware warnings
greglittlefield-wf de928f1
Fix incorrect null safety conversions
greglittlefield-wf eec4a99
Clean up null checks
greglittlefield-wf b24969d
Fix nullability in Component2
greglittlefield-wf 8785b15
Null check cleanup
greglittlefield-wf 7ace186
Fix InfluxStoreMixin nullability
greglittlefield-wf 869d2ac
Use runZonedGuarded instead of deprecated runZoned
greglittlefield-wf 6239714
Add more hasher test cases to support refactoring
greglittlefield-wf a84e48a
Fix a bunch of small nullability errors/warnings/lints
greglittlefield-wf 607097c
Fix incorrect nullability
greglittlefield-wf 3152bd6
Remove unused meta imports
greglittlefield-wf 46d2c07
Fix disposable method migration
greglittlefield-wf 2a341aa
Make getProps/getDartComponent dynamic so that consumers don't need t…
greglittlefield-wf 8240478
Clean up react wrappers tests
greglittlefield-wf 7273755
Add missing not-null-assertions
greglittlefield-wf a436845
Merge remote-tracking branch 'origin/master' into null-safety
greglittlefield-wf c23a399
Fix builder analysis errors after master merge
greglittlefield-wf 6225af6
Upgrade changes from master to null safety, misc fixes after merge
greglittlefield-wf 44731dc
Re-generate over_react parts
greglittlefield-wf a6a897f
Update mockito mocks
greglittlefield-wf 8c13e2d
More misc null safety error fixes
greglittlefield-wf 353f5d4
Fix lints related to type checking
greglittlefield-wf 19a8475
Remove unnecessary casts
greglittlefield-wf 51d5964
Add null-checks for non-nullable props, add nullability example
greglittlefield-wf 7fe5a1e
Conditionally generate null safe code (not using pubspec constraint yet)
greglittlefield-wf ebec2f2
Null-safe props: fix null checks / null awares
greglittlefield-wf d4851ed
Attempt to improve migrator tool inference when encountering generate…
greglittlefield-wf 9ba7c46
Factor late-ness into prop requiredness metadata
greglittlefield-wf 561f66d
Use uiJsComponent where possible so that we can benefit from props cl…
greglittlefield-wf 5ef8f6b
Use defaults when possible in accessor generation
greglittlefield-wf 541601f
Re-enable null safety in builder
greglittlefield-wf c49db91
Re-generate with null-safe parts and updated accessors
greglittlefield-wf 5686fb0
Default to null-safe builder output only for over_react for the time …
greglittlefield-wf 08a52d4
Add proof-of-concept for new required prop validation
greglittlefield-wf 9cb3308
Missing required prop diagnostic: clean up, add support for late
greglittlefield-wf 5a0a454
Add support for accessing non-nullable props in getPropKey, handle no…
greglittlefield-wf 812289c
Merge branch 'master' into null-safety
hunterbreathat-wk c42570a
Update deps
hunterbreathat-wk 307ffc1
Update deps
hunterbreathat-wk 11a9074
Update deps
hunterbreathat-wk 4135ecb
Update deps....
hunterbreathat-wk 5b4760f
Update deps....
hunterbreathat-wk 09a986f
Tweak workflow, move dependency_validator config
hunterbreathat-wk 03be47a
Bump min to 2.18.7
hunterbreathat-wk 800e38f
Tweaking pubspec
hunterbreathat-wk 1441d03
Resolve dependency issues
hunterbreathat-wk f3bf23e
Resolve dependency issues
hunterbreathat-wk 98130a8
Fix dart_dependency_validator
hunterbreathat-wk 4b7f25b
Tweaks to react version and remove null safe check
hunterbreathat-wk 010d5a2
(Test) Changes related to core lib
hunterbreathat-wk 0d33b34
(Test) Misc remaining fixes
hunterbreathat-wk aeb4111
(Test) Fix temp override
hunterbreathat-wk 551be17
(Test) Fix analyzer warning
hunterbreathat-wk b8df980
(Test) Fix analyzer warning...
hunterbreathat-wk efc89c7
Update react-dart null safety branch, adjust errors and ref typings
greglittlefield-wf e1ace93
Clean up casts and nullability in getProps
greglittlefield-wf cff04d5
Disable spike validateRequiredProps implementation
greglittlefield-wf fa13972
Fix casts to non-nullable values, enable lint
greglittlefield-wf 6ce859d
Commit generated code
greglittlefield-wf bbe7a77
Fix CssValue.parse handling of non-finite num values
greglittlefield-wf f01a402
Fix bad casts in AbstractTransition tests
greglittlefield-wf f4cd005
Remove function casts added by migrator tool that are either incorrec…
greglittlefield-wf 9287ee5
Fix errors after removing casts
greglittlefield-wf 84f954c
Fix nullability of flux actions in test fixture and examples
greglittlefield-wf 44e2466
Fix some typing in prop conversion and its tests
greglittlefield-wf 809d427
Revert dummy_component2 changes, add note about why it's generated
greglittlefield-wf fd4d839
Check in forgotten dummy_component2 generated file
greglittlefield-wf 371c05c
Update getPropKey tests to reflect new implementation
greglittlefield-wf a51b2cf
Fix more tests
greglittlefield-wf 2ed7a1a
Sync ref APIs with react-dart, update usages
greglittlefield-wf 825895e
Fix cast_nullable_to_non_nullable warnings in tests
greglittlefield-wf cf345d4
Remove unused import
greglittlefield-wf a174582
Fix remaining cast_nullable_to_non_nullable warnings
greglittlefield-wf 57e0e1f
Fix broken propTypes due to out-of-sync JS wrapper with incorrect arg…
greglittlefield-wf 26553dc
Fix connect not working with `null` state, use type alias
greglittlefield-wf 4ffbee7
Clean up noisy test output
greglittlefield-wf b5ea8e6
Clean up noisy test output
greglittlefield-wf ab0ade7
Upgrade Dockerfile Dart version
greglittlefield-wf 3848103
Upgrade Dockerfile Dart version
greglittlefield-wf b28c80e
Update Component2Bridge call with new nullability
greglittlefield-wf 2039a4e
Fix getDebugNameForDartComponent
greglittlefield-wf 1d4262a
Reinstate `?? null` in generated accessors until we work around the u…
greglittlefield-wf db6e6e7
Update generated code
greglittlefield-wf 31ec0ab
Merge remote-tracking branch 'origin/master' into null-safety
greglittlefield-wf 6b755e8
Update generated code
greglittlefield-wf 09bb9e7
Remove dart_dev override, re-enable dart_dev
greglittlefield-wf c4f62fd
Remove unused built_redux dependency
greglittlefield-wf ec4bca4
Clean up nullabilities
greglittlefield-wf c06c231
Clean up import
greglittlefield-wf 4254fe4
Merge branch 'prepare-for-react-dart-v7' into null-safety
greglittlefield-wf e772873
Clean up nullability in builder code
greglittlefield-wf 5f3ccf6
Fix typing of firstWhereType
greglittlefield-wf 1f699b8
Clean up non-null assertions on codegen fields sourceFile/outputConte…
greglittlefield-wf da70d64
Clean up nullability
greglittlefield-wf 7ee39a5
Update MissingRequiredProp after upgrading to analyzer 5
greglittlefield-wf c6ac61a
Clean up analyzer_plugin ignores now that the over_react builder is n…
greglittlefield-wf b01e498
Migrate test and tool entry points to null safety
greglittlefield-wf 52573f1
Re-enable diagnostics that imported non-null-safe builder code
greglittlefield-wf e688b3f
Merge remote-tracking branch 'origin/master' into null-safety
greglittlefield-wf a78586e
Update react-dart branch
greglittlefield-wf c7d94ff
Reenable type overrides since tests currently expect them
greglittlefield-wf 510f294
Conditionally output Accessor arguments to match old generation
greglittlefield-wf 5fa0d13
Opt existing test cases with gold files out of null safe generation
greglittlefield-wf ccc0b84
Fix inverted boolean typo
greglittlefield-wf 4c0f4e7
Fix accidentally removed `annotationCount++`
greglittlefield-wf 16bb496
Update generated code after PropDescriptor argument changes
greglittlefield-wf 903a8b1
Update generated code after restoring types in accessor overrides
greglittlefield-wf 406432e
Clean up null safety in redux dev tools middleware
greglittlefield-wf bf4d91d
Clean up spike implementations, update FIXMEs
greglittlefield-wf 6f20410
Point to released react
greglittlefield-wf e7e0069
Clean up non-null assertion operators
greglittlefield-wf f98bbfa
Clean up nullable iterable check
greglittlefield-wf c86e202
Make dom/aria helpers `late final`
greglittlefield-wf 222bbea
Fix generic parameter nullability
greglittlefield-wf fdf11a3
Make cloneElement argument non-nullable
greglittlefield-wf 8541686
Fix weird casting
greglittlefield-wf cf2148c
Make TActions arguments in connect callbacks not nullable
greglittlefield-wf 118b145
Get on null-safe w_flux, update Action usages
greglittlefield-wf 97e6216
Clean up missing required prop spike
greglittlefield-wf 5952428
Remove outdated FIXME
greglittlefield-wf 2780838
Clean up required props validation spike code
greglittlefield-wf fbc30d4
Clean up example / test Action class nullability
greglittlefield-wf 7132160
Clean up LHS types added by migrator
greglittlefield-wf 3939b10
Clean up nullability in examples
greglittlefield-wf b47f2e3
Clean up validateRequiredProps more
greglittlefield-wf 5779ef9
Revert accidental changes
greglittlefield-wf 0e5145b
Remove bad cast
greglittlefield-wf 199feb4
Clean up closest impl, make more optimal, null-safe
greglittlefield-wf 9644fb4
Clean up empty lines from language version comments
greglittlefield-wf f987644
Revert ReactElement return types made nullable by migrator
greglittlefield-wf 8057d39
Remove unnecessary ReactElement typings added by migrator
greglittlefield-wf 71a2dc5
Clean up SafeRenderManager tests nullability
greglittlefield-wf f5879d1
Clean up unnecessary LHS function types added by migrator
greglittlefield-wf 2ee5ba9
Fix handler chaining nullability
greglittlefield-wf fab842c
Add WIP 5.0.0 changelog entry
greglittlefield-wf dcf2bca
Merge remote-tracking branch 'origin/master' into null-safety
greglittlefield-wf 363dade
Eliminate a few more non-null assertion operators
greglittlefield-wf 23904de
Fix some lints
greglittlefield-wf db01841
Fix test expectation
greglittlefield-wf 46c8e35
Fix react_dom.render typing
greglittlefield-wf 85f4c9c
Clean up unnecessary LHS types (props/state, final variables)
greglittlefield-wf 51f47d0
Clean up unnecessary LHS types (props/state, var variables)
greglittlefield-wf e514c58
Clean up unnecessary LHS types (ReactElement, final variables)
greglittlefield-wf 102af7b
Clean up unnecessary LHS types (ReactElement, non-final variables)
greglittlefield-wf d824d5e
Clean up more LHS types
greglittlefield-wf 03cbec8
Remove deprecated displayName arguments
greglittlefield-wf a1ce8a5
Clean up FIXME comments
greglittlefield-wf b123072
Address fixme in test
greglittlefield-wf 72b7783
Ensure null node doesn't cause false positives with isNot assertions
greglittlefield-wf afb5267
Clean up typings
greglittlefield-wf 1ee7435
Remove test for removed displayName arg
greglittlefield-wf 128567f
Clean up nullabilities in resize sensor tests
greglittlefield-wf 1b8eea5
Make test variables non-nullable
greglittlefield-wf c3e6ee4
Use a fresh ref each time
greglittlefield-wf 9c2b4de
Test improvements: avoid false positives, clean up connectOptions, fi…
greglittlefield-wf c533529
Update FIXME comment
greglittlefield-wf 5b56c14
Revert unnecessary action arguments
greglittlefield-wf 8ded99d
Clean up unnecessary types added by migrator
greglittlefield-wf 5e82f0c
Clean up BoilerplateMembersHelper nullability and usage in tests
greglittlefield-wf 46314cc
Clean up test shared variables and getBoilerplateMembersFromString nu…
greglittlefield-wf 92f7e5a
Clean up more shared variables and null-checks
greglittlefield-wf e91e8e9
Clean up nullabilities in connect_test
greglittlefield-wf 468b948
Clean up some more nullable shared test variables
greglittlefield-wf 8a37dcb
Fix useSelector nullability, beef up test expectation
greglittlefield-wf 2034128
Add comment amount componentFactory nullability, add doc comment
greglittlefield-wf 02eb3f3
Improve nullable callback prop calls in tests
greglittlefield-wf c978df3
Make some test component props non-nullable
greglittlefield-wf 94d4d6b
Clean up test ! operators
greglittlefield-wf a15bd8f
Clean up fixmes and comments in required prop diagnostic
greglittlefield-wf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
exclude: | ||
- app/** | ||
- tools/** | ||
ignore: | ||
- mockito | ||
allow_pins: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 16 additions & 16 deletions
32
example/boilerplate_versions/dart2_only/basic_component1.over_react.g.dart
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.