Skip to content
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

Enable strict types mode #362

Merged
merged 25 commits into from
Feb 2, 2024
Merged

Enable strict types mode #362

merged 25 commits into from
Feb 2, 2024

Conversation

RDIL
Copy link
Member

@RDIL RDIL commented Jan 15, 2024

Slowly but surely enabling strict null checking on the codebase for enhanced security.

Opening this PR just to note for myself where potentially breaking changes are.

RDIL added 6 commits January 13, 2024 21:04
Signed-off-by: Reece Dunham <[email protected]>
Signed-off-by: Reece Dunham <[email protected]>
Signed-off-by: Reece Dunham <[email protected]>
Signed-off-by: Reece Dunham <[email protected]>
Signed-off-by: Reece Dunham <[email protected]>
components/webFeatures.ts Dismissed Show dismissed Hide dismissed
components/webFeatures.ts Dismissed Show dismissed Hide dismissed
Comment on lines -177 to +165
challenge.InclusionData.ContractTypes.filter(
challenge.InclusionData?.ContractTypes?.filter(
(type) => type !== "tutorial",
),
) || [],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possible behavior change

Comment on lines +232 to 242
const mainGroup = gameGroups.get(location)?.get(groupId)

if (groupId === "feats" && gameVersion !== "h3") {
if (!mainGroup) {
// emergency bailout - shouldn't happen in practice
return undefined
}

return mergeSavedChallengeGroups(
gameGroups.get(location)?.get(groupId),
mainGroup,
gameGroups.get("GLOBAL_ESCALATION_CHALLENGES")?.get(groupId),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possible behavior change

components/controller.ts Show resolved Hide resolved
components/flags.ts Show resolved Hide resolved
components/index.ts Show resolved Hide resolved
RDIL added 10 commits January 14, 2024 21:25
Signed-off-by: Reece Dunham <[email protected]>
Signed-off-by: Reece Dunham <[email protected]>
Signed-off-by: Reece Dunham <[email protected]>
Signed-off-by: Reece Dunham <[email protected]>
Signed-off-by: Reece Dunham <[email protected]>
Signed-off-by: Reece Dunham <[email protected]>
Signed-off-by: Reece Dunham <[email protected]>
Signed-off-by: Reece Dunham <[email protected]>
Signed-off-by: Reece Dunham <[email protected]>
components/candle/progressionService.ts Dismissed Show dismissed Hide dismissed
Signed-off-by: Reece Dunham <[email protected]>
@RDIL RDIL requested a review from LennardF1989 January 28, 2024 05:01
Signed-off-by: Reece Dunham <[email protected]>
components/index.ts Dismissed Show dismissed Hide dismissed
Signed-off-by: Reece Dunham <[email protected]>
components/profileHandler.ts Dismissed Show dismissed Hide dismissed
RDIL added 3 commits January 28, 2024 21:43
Signed-off-by: Reece Dunham <[email protected]>
Signed-off-by: Reece Dunham <[email protected]>
Signed-off-by: Reece Dunham <[email protected]>
@RDIL RDIL marked this pull request as ready for review January 31, 2024 16:56
Signed-off-by: Reece Dunham <[email protected]>
@RDIL RDIL merged commit 04bb6eb into v7 Feb 2, 2024
5 checks passed
@RDIL RDIL deleted the rdil/type-fixes branch February 2, 2024 19:44
RDIL added a commit that referenced this pull request Feb 2, 2024
@moonysolari
Copy link
Member

I have a feeling that this PR has brought about more bugs than we realize...

@RDIL
Copy link
Member Author

RDIL commented Feb 16, 2024

It probably has, but without people able to test it, we won't know.

@LennardF1989
Copy link
Member

LennardF1989 commented Feb 16, 2024

I have a feeling that this PR has brought about more bugs than we realize...

A small price to pay for the greater good, IMO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants