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

[stable26] Replace deprecated "request" with "axios" #793

Merged

Conversation

danxuliu
Copy link
Member

@danxuliu danxuliu commented Aug 8, 2023

Backport of #740

I set the milestone to 26.0.6, although technically it does not change anything in the app behaviour (it changes only development dependencies), so it could be in 26.0.5 anyway. But let's respect the RC and not merge yet :-) (hence the draft state) Sigh... I forgot that we have a job that blocks merges during freezes xD

"request" was used only to get the "pdfjs-XXX-dist.zip" file when
building the app, but it was not used in the app itself.

It seems that it is not possible (with axios options only) to throttle
the "onDownloadProgress" event. Nevertheless, an external throttle
function was not used, as the event is not triggered very often and
therefore it does not need to be throttled.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu danxuliu added bug 3. to review dependencies Pull requests that update a dependency file labels Aug 8, 2023
@danxuliu danxuliu added this to the Nextcloud 26.0.6 milestone Aug 8, 2023
@danxuliu danxuliu marked this pull request as ready for review August 8, 2023 14:04
@danxuliu
Copy link
Member Author

danxuliu commented Aug 8, 2023

I had to re-run the node job twice because it failed due to removing js/pdfjs/web/locale/oc/viewer.properties 🤷

@danxuliu danxuliu requested a review from szaimen August 8, 2023 14:13
@danxuliu danxuliu enabled auto-merge August 8, 2023 14:14
Copy link
Collaborator

@szaimen szaimen left a comment

Choose a reason for hiding this comment

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

Tested and works :)

@danxuliu danxuliu merged commit 1e25ca3 into stable26 Aug 11, 2023
17 checks passed
@delete-merged-branch delete-merged-branch bot deleted the backport/740/stable26-replace-deprecated-request-with-axios branch August 11, 2023 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review bug dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants