-
Notifications
You must be signed in to change notification settings - Fork 6
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
base: 1.0.0
Are you sure you want to change the base?
Conversation
"semver": "^7.1.1", | ||
"yargs": "^16.2.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.14.11", |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 can we move on with this? Also, I think this is not a breaking change, is it? |
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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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?
I am probably unable to make these updates, but I agree with them. If someone wants to take this over feel free. |
While the tests pass and it all seems fine, the
cache
key used to be aMap
forgot
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.