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

Fix docs for method in XHRUpload #5170

Closed
wants to merge 3 commits into from

Conversation

pedantic-git
Copy link

Following conversation with @Murderlon in #5165, this is a patch to the documentation that makes it clear methods need to be specified in capitals from version 3.6.5 onwards.

Copy link
Contributor

Diff output files
No diff

Amusingly, get the capitalisation correct in my own docs
Copy link
Member

@aduh95 aduh95 left a comment

Choose a reason for hiding this comment

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

TBH we should probably fix the regression (at least on the 3.x branch) rather than document it. This kind of breaking change should only happen in semver major versions.

docs/uploader/xhr.mdx Outdated Show resolved Hide resolved
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
@pedantic-git
Copy link
Author

@aduh95 I'm following the suggestion from @Murderlon here, who closed the above issue asking for it to be documented. FWIW I do agree with the semver point - it was surprising to find this component had been completely rewritten in TS between versions 3.6.1 and 3.6.2!

@aduh95
Copy link
Member

aduh95 commented May 17, 2024

I've opened #5179 to fix the regression. I'd be in favor to instead document that using lowercase method is deprecated, and then in 4.x only uppercase ones will be accepted.

it was surprising to find this component had been completely rewritten in TS between versions 3.6.1 and 3.6.2!

The TS refactor should not have any effect on the npm package, so IMO it's perfectly valid that it happened in a patch release.

@Murderlon
Copy link
Member

Fixing the regression is indeed the better solution. I was about to do that myself but didn't get around to it yet. For context, the source is in TS but the types are not published to theoretically nothing changed.

@Murderlon Murderlon closed this May 17, 2024
@aduh95
Copy link
Member

aduh95 commented May 17, 2024

@pedantic-git would you be making this PR document the deprecation, or would you rather have me do it?

@pedantic-git
Copy link
Author

I'd prefer it if you did, if that's OK. Thank you!

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.

None yet

3 participants