[Snyk] Upgrade react-calendar from 4.1.0 to 4.8.0#407
[Snyk] Upgrade react-calendar from 4.1.0 to 4.8.0#407nejidevelops wants to merge 1 commit intomasterfrom
Conversation
Snyk has created this PR to upgrade react-calendar from 4.1.0 to 4.8.0. See this package in npm: react-calendar See this project in Snyk: https://app.snyk.io/org/newtonombese1/project/d92f77c7-4d21-4560-a1c1-675c45b5ed71?utm_source=github&utm_medium=referral&page=upgrade-pr
Summary of ChangesHello @nejidevelops, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request automates the upgrade of the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request, generated by Snyk, upgrades react-calendar from version 4.1.0 to 4.8.0. This is a significant update spanning 10 versions. I have reviewed the release notes and the usage of react-calendar within the project. The most notable change is the library's internal rewrite to use React Hooks in v4.3.0. Based on the current usage, this upgrade appears to be safe. However, I have identified an issue in package-lock.json where the project name has been changed to a generated value, which should be corrected. It is also recommended to perform thorough testing on the calendar functionality after merging to ensure everything works as expected.
| @@ -1,11 +1,11 @@ | |||
| { | |||
| "name": "Bofulo-School", | |||
| "name": "relock-npm-lock-v2-r9NCF4", | |||
There was a problem hiding this comment.
The package name in package-lock.json has been changed to a generated string (relock-npm-lock-v2-r9NCF4), likely as a side effect of the tool that created this pull request. This is incorrect and could cause issues in build or deployment pipelines that rely on the package name. The name in package-lock.json should be derived from a name field in package.json.
Recommendation:
- Add a
nameproperty to yourpackage.jsonfile (e.g.,"name": "bofulo-school"). It's a good practice to use lowercase names for npm packages. - Run
npm installto regenerate thepackage-lock.jsonfile with the correct name.
For an immediate fix within this PR, you can revert this line to its previous value.
| "name": "relock-npm-lock-v2-r9NCF4", | |
| "name": "Bofulo-School", |
Snyk has created this PR to upgrade react-calendar from 4.1.0 to 4.8.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 10 versions ahead of your current version.
The recommended version was released 2 years ago.
Release notes
Package name: react-calendar
-
4.8.0 - 2024-01-09
- Added support for
- Replaced
- Fixed disabled neighboring tiles text color.
-
4.7.0 - 2023-12-09
- Improved developer experience by moving prop documentation to JSDoc. This means that you can now see descriptions, default values, and examples for all props in your IDE.
- Improved documentation.
-
4.6.1 - 2023-10-18
- Package is now published with npm provenance statements.
- Exported
- Exported
- Fix weekend indicators ignoring
-
4.6.0 - 2023-07-27
- Added support for native ESM modules (#886).
- Improved propTypes.
- Strengthened TypeScript types.
- Refactored tile rendering.
- Fixed propTypes declared twice in every declaration file.
-
4.5.0 - 2023-07-21
- Improved RSC compatibility. You no longer need to add
-
4.4.0 - 2023-07-16
- Renamed calendar types passed to
- Updated
-
4.3.0 - 2023-06-13
- Rewritten package using React Hooks (#858).
- Improved RTL language support (#841).
-
4.2.1 - 2023-04-04
- Improved type accuracy for value prop and all callbacks (it's now explicitly
- Fixed types for
- Fixed types for
- Fixed
-
4.2.0 - 2023-04-04
- Allowed array of strings to be passed as value.
-
4.1.1 - 2023-04-03
-
4.1.0 - 2023-03-26
from react-calendar GitHub release notesWhat's new?
showNeighboringCenturyandshowNeighboringDecadeprops.`What's changed?
tiny-warningwith more popular (and equally tiny!)warning.Bug fixes
What's new?
What's new?
OnArgstype to make it easier to create customon…callbacks (#897). Thanks, @ meszaros-lajos-gyorgy!TileArgstype to make it easier to create customtileClassName,tileContent,tileDisabledfunctions.Bug fixes
calendarTypeprop (#902). Thanks, @ abukati!What's new?
What's changed?
Bug fixes
What's new?
'use client';to the parent component for this component to work.Bug fixes
@ types/reactand@ types/react-domare now optional peerDependencies, which eliminates errors caused by duplicate typings.What's new?
NavigationLabelFunc,OnClickFunc,OnClickWeekNumberFunc,TileClassNameFunc,TileContentFuncandTileDisabledFunctypes are now exported for your convenience.What's changed?
calendarTypeprop to matchIntl.Locale.calendar. Thanks to this change, we will be able to support many more calendar types in the near future! Don't worry - old values are still supported, but will be deprecated in the future.clsxdependency to2.0.0to enable ESM support in the near future.Thanks to internal improvements, this is our smallest release ever, down to just 10kB Gzipped! 🥳
What's new?
CalendarPropstype is now exported for your convenience (#866).Bug fixes
[Date, Date]instead ofDate[]).onDrillDownandonDrillUpprops.tileClassNamenot allowingnullorundefinedreturn values.React.ComponentProps<typeof Calendar>incorrectly marking props with default values as required.What's new?
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: