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

Replace got with fetch #38

Open
wants to merge 1 commit into
base: 1.0.0
Choose a base branch
from
Open

Replace got with fetch #38

wants to merge 1 commit into from

Conversation

wesleytodd
Copy link
Member

While the tests pass and it all seems fine, the cache key used to be a Map for got to use. Now it is just a simple in memory lookup. Same api to pass, but technically someone could have been looking at the contents of the map they passed in, so this could break them so marking it as major.

@wesleytodd wesleytodd changed the base branch from main to 1.0.0 July 16, 2024 23:48
"semver": "^7.1.1",
"yargs": "^16.2.0"
},
"devDependencies": {
"@types/node": "^20.14.11",
Copy link
Member Author

Choose a reason for hiding this comment

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

There was in implicit dependency on these types which was satisfied by bringing in got. Why it had it as a prod dep I don't think I understand, but removing got broke the type generation.

Copy link
Member

Choose a reason for hiding this comment

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

it should be node 18, given engines.node, no?

@RafaelGSS
Copy link
Member

@wesleytodd can we move on with this? Also, I think this is not a breaking change, is it?

@wesleytodd
Copy link
Member Author

wesleytodd commented Nov 12, 2024

I am fine doing it as minor, and yeah we can move on it, I just have not had time to test and make sure everything was good, nor do the release. Do you have perms do to all that? If not, and I am this delayed again circling back feel free to ping me in slack.

}).json()
const cached = cache.get('schedule')
if (cached) {
return Promise.resolve(cached)
Copy link
Member

Choose a reason for hiding this comment

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

if this was made an async function then you wouldn't need the promise wrapper

}).json()
const cached = cache.get('versions')
if (cached) {
return Promise.resolve(cached)
Copy link
Member

Choose a reason for hiding this comment

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

same here

"semver": "^7.1.1",
"yargs": "^16.2.0"
},
"devDependencies": {
"@types/node": "^20.14.11",
Copy link
Member

Choose a reason for hiding this comment

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

it should be node 18, given engines.node, no?

@wesleytodd
Copy link
Member Author

I am probably unable to make these updates, but I agree with them. If someone wants to take this over feel free.

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