Skip to content

FEAT-198: Upgrade React Router#84

Merged
hstrowd merged 2 commits intomainfrom
FEAT-198-react-router-upgrade
Apr 25, 2025
Merged

FEAT-198: Upgrade React Router#84
hstrowd merged 2 commits intomainfrom
FEAT-198-react-router-upgrade

Conversation

@hstrowd
Copy link
Collaborator

@hstrowd hstrowd commented Apr 25, 2025

Upgrades the react-router-dom package to address security vulnerability reported in the react-router package.

Verified that the documentation site still builds and renders properly.


def map_files_to_features(files)
return @@map_files_to_features if @@map_files_to_features&.keys && @@map_files_to_features.keys.count.positive?
return @@map_files_to_features if @@map_files_to_features&.any?
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does something give nil a .any??

CleanShot 2025-04-25 at 12 14 01@2x

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nope, but that's why we're using the &. operator here. If the value of @@map_files_to_features is nil then the if condition will evaluate to nil and fail, causing the mapping to be loaded fresh and returned. Otherwise if the value of @@map_files_to_features is NOT nil, then .any? will be evaluated on it and if it's a non-empty hash, then it will be returned as a the cached value, otherwise it will still be loaded fresh and returned. Happy to chat in realtime if this doesn't align with your understanding of the expected behavior. Thanks.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Uhhh yup, duh at me. Just keeping you on your toes. Total brain-fart; thanks and sorry for the noise.


def map_files_to_features(files)
return @@map_files_to_features if @@map_files_to_features&.keys && @@map_files_to_features.keys.count.positive?
return @@map_files_to_features if @@map_files_to_features&.any?
Copy link
Collaborator

Choose a reason for hiding this comment

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

Uhhh yup, duh at me. Just keeping you on your toes. Total brain-fart; thanks and sorry for the noise.

@hstrowd hstrowd merged commit 32fe142 into main Apr 25, 2025
10 checks passed
@hstrowd hstrowd deleted the FEAT-198-react-router-upgrade branch April 25, 2025 17:21
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.

2 participants