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

Bump webdav to ^4 #1184

Merged
merged 1 commit into from
Aug 26, 2022
Merged

Bump webdav to ^4 #1184

merged 1 commit into from
Aug 26, 2022

Conversation

skjnldsv
Copy link
Member

@skjnldsv skjnldsv commented Aug 26, 2022

Removed unused service since 3 years...
https://github.com/nextcloud/photos/pull/4/files#diff-239342c3890dc7339f0c87a00179a78c0502d3f74b5b387f18fd2e00cb19d194L57

Webdav 3 is deprecated and don't receive updates anymore

@skjnldsv skjnldsv self-assigned this Aug 26, 2022
@skjnldsv skjnldsv added the 3. to review Waiting for reviews label Aug 26, 2022
@skjnldsv skjnldsv requested review from a team, PVince81, artonge and Pytal and removed request for a team August 26, 2022 10:38
@skjnldsv skjnldsv added the dependencies Pull requests that update a dependency file label Aug 26, 2022
@marcelklehr
Copy link
Member

Does the client API stay the same? That's nice!

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
@skjnldsv
Copy link
Member Author

Does the client API stay the same? That's nice!

Yes and no, I had to adapt a few hacks we do as well as their new esm export.

@@ -41,9 +42,10 @@ webpackConfig.module.rules = Object.values(webpackRules)
webpackConfig.plugins.push(
// patch webdav/dist/request.js
new webpack.NormalModuleReplacementPlugin(
/request.js/,
/request(\.js)?/,
Copy link
Member

Choose a reason for hiding this comment

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

oof, I didn't know about this. :'D

Copy link
Member Author

Choose a reason for hiding this comment

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

We could make it upstream, but perry-mitchell/webdav-client#179

@skjnldsv skjnldsv merged commit 6920dd9 into master Aug 26, 2022
@skjnldsv skjnldsv deleted the feat/webdav branch August 26, 2022 17:42
function(resource) {
if (resource.context.indexOf('webdav/dist') > -1) {
if (resource.context.indexOf('webdav') > -1) {
console.debug('Patched request for webdav', basename(resource.contextInfo.issuer))
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't seem to work on latest master, though :S I've put a direct throw Error into patchedRequest and it never gets thrown?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants