Skip to content

Replace node-fetch with centra#70

Merged
maybeanerd merged 4 commits intobotblock:masterfrom
MeerBiene:master
Apr 2, 2021
Merged

Replace node-fetch with centra#70
maybeanerd merged 4 commits intobotblock:masterfrom
MeerBiene:master

Conversation

@MeerBiene
Copy link
Copy Markdown
Contributor

As mentioned in #69 (nice) I replaced node-fetch with centra and made sure the functionality isn't compromised.

Comment thread package-lock.json
"lockfileVersion": 1,
"lockfileVersion": 2,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This might be considered a breaking change?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

IDK, is this breaking?
I mean as long as it doesn't change the way devs are supposed to use BLAPI, it can't really break anything, right?
But I'm not entirely sure if it still can't be considered breaking.

I'd definitely bump the minor version though

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Is that something yarn does? I don't usually use yarn and I don't want to produce a breaking change tbh

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@MattIPv4 what do you think? what's the main reason you would count it as a breaking change?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

pretty sure this will be annoying for anyone on node <15 trying to download/manage deps for editing the lib, but afaik it shouldn't affect end-users of the lib?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

npm 7 apparently also generates a lockfile with version 2 "[...] which is backwards compatible with npm 6 users [...]" https://github.blog/2021-02-02-npm-7-is-now-generally-available/

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

npm 7 apparently also generates a lockfile with version 2 "[...] which is backwards compatible with npm 6 users [...]" https://github.blog/2021-02-02-npm-7-is-now-generally-available/

nice, thanks for that info!
To me, this looks like a non-breaking change then - for development having at least npm v6 is something we could assume imo. It's not like there are many devs besides me and new people who open PRs anyways 🤷🏻‍♂️

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You could maybe write a contributing file where you can put information about the dev environment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

sounds good.
would you push the version in package.json to 2.1.0? I think then I can merge it onto master.

And i'm assuming you tested if it works? we could rely solely on the typings, but a real test would still be good just in case.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Will do.

Yes I've tested the botblock way and the manual posting. Also made sure botblocks ratelimits are working :D

Comment thread src/bttps.ts Outdated
Copy link
Copy Markdown
Member

@maybeanerd maybeanerd left a comment

Choose a reason for hiding this comment

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

LGTM

after deciding on the matter of breaking change or not, I'd bump the version accordingly and merge.

@maybeanerd maybeanerd merged commit 27f2367 into botblock:master Apr 2, 2021
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.

4 participants