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

Use yarn's patch protocol to patch suncalc3 #155

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

scinos
Copy link
Collaborator

@scinos scinos commented Nov 5, 2024

Pull Request Template for Home Assistant / Lovelace Card Repository

Overview

This repo has a local copy of suncalc3, with a few modifications. While this works, it is not explicit what did we change in suncalc3. Yarn provides a system for exactly this use case: patch protocol (basically it stores a diff that gets applied on yarn install).

In this PR I've deleted our local copy of suncalc3, and used to generate a patch that yarn will apply.

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Documentation update
  • Refactoring
  • Other (please describe):

Related Issues / Pull Requests

Related to #121

Additional Details

To generate the patch, I copypasted our local copy of suncalc3/suncalc.js into the library and then generated the patch, so I'm pretty confident all changes are present in the diff file.

@scinos
Copy link
Collaborator Author

scinos commented Nov 5, 2024

After this is merged I'll send a patch to suncalc3 with our changes.

Edit: done in Hypnos3/suncalc3#12

@ThomDietrich
Copy link

Wow that is amazing. Love the clean approach!

@ThomDietrich ThomDietrich merged commit 40a3052 into rejuvenate:main Nov 5, 2024
1 of 3 checks passed
@scinos scinos deleted the patch-suncalc3 branch November 6, 2024 05:58
@scinos scinos mentioned this pull request Nov 6, 2024
6 tasks
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