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

perf: Simplify time handling #7625

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

VIKTORVAV99
Copy link
Member

@VIKTORVAV99 VIKTORVAV99 commented Dec 27, 2024

This pull request focuses on updating the date-fns library to version 4.1.0 and refactoring various parts of the codebase to use the new functions provided by this updated version. The most important changes include updating the package.json and pnpm-lock.yaml files, refactoring the getWeatherData.ts file, and making adjustments in other related files.

Library update and refactoring:

  • web/package.json: Updated the date-fns dependency from version 3.6.0 to 4.1.0.
  • web/pnpm-lock.yaml: Updated the date-fns version from 3.6.0 to 4.1.0 in multiple sections including importers, packages, and snapshots. [1] [2] [3]

Code refactoring to use new date-fns functions:

Additional minor adjustments:

@VIKTORVAV99 VIKTORVAV99 requested a review from a team as a code owner December 27, 2024 20:14
@VIKTORVAV99 VIKTORVAV99 requested review from cadeban and Copilot and removed request for a team and cadeban December 27, 2024 20:14
@github-actions github-actions bot added frontend 🎨 dependencies Pull requests that update a dependency file labels Dec 27, 2024

Choose a reason for hiding this comment

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

Copilot reviewed 5 out of 7 changed files in this pull request and generated no comments.

Files not reviewed (2)
  • web/package.json: Language not supported
  • web/src/api/getWeatherData.ts: Evaluated as low risk
@VIKTORVAV99
Copy link
Member Author

I realized I never requested reviews on this, but it still works so doing it now 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file frontend 🎨 performance 🏎
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant