Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Remove requests module example from docs#599

Merged
alexandrtovmach merged 2 commits into
nodejs:masterfrom
MattMartin1919:master
Apr 26, 2020
Merged

Remove requests module example from docs#599
alexandrtovmach merged 2 commits into
nodejs:masterfrom
MattMartin1919:master

Conversation

@MattMartin1919

Copy link
Copy Markdown
Contributor

The request module is "deprecated". While still supported, as in accepting PRs, I think it can be removed from the docs without any harm so newcomers can read up on promise based libraries instead. Completely ok if you don't agree! Feel free to reject the PR in that case 😄

Description

I removed the request example from the docs and fixed the wording that specifies Axios is a 3rd party library.

the request module is deprecated.  It also doesn't use promises which is the greatest benefit to node.

@alexandrtovmach alexandrtovmach left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Agree, we shouldn't show deprecated examples! Good catch @MattMartin1919

@alexandrtovmach

Copy link
Copy Markdown
Contributor

/gcbrun

@MattMartin1919

Copy link
Copy Markdown
Contributor Author

Hey @alexandrtovmach,

I tried to submit another PR to handle this issue: but it seems to have added it to this request instead.

Still getting the hang of git and contributing to open source projects through PRs so let me know how to proceed here!

@alexandrtovmach

alexandrtovmach commented Apr 25, 2020

Copy link
Copy Markdown
Contributor

@MattMartin1919

# undo unrelated changes
git reset a042093
# stash this changes
git stash 'Changes for #232'
# undo to expected changes
git reset --hard b81eacb
# push to origin repo with overriding
git push origin master --force
# creating new branch
git checkout -b patch/232
# apply and remove latest stash
git stash pop
# commit changes related to another issue
git add .
git commit -m "feat: Updated docs to solve #232"
# push to remote repo new branch with changes for issue #232
git push -u patch/232

and create a new PR from patch/232 to nodejs.dev:master

If something goes wrong, sorry, commented from phone 🤷

@MattMartin1919

Copy link
Copy Markdown
Contributor Author

Thanks for the help @alexandrtovmach! This PR should be just the "removing requests" change 😄

@alexandrtovmach

Copy link
Copy Markdown
Contributor

/gcbrun

@alexandrtovmach alexandrtovmach merged commit c93414e into nodejs:master Apr 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants