matrix-org / matrix-js-sdk

Matrix Client-Server SDK for JavaScript
Apache License 2.0
1.49k stars 578 forks source link

Add missing (and common-ish) HTTP method verbs to types #4188

Closed turt2live closed 2 months ago

turt2live commented 2 months ago

See https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods

We notably don't include the following:

We add the following, though:

We add them now instead of later to avoid relatively tiny PRs needing to go through heavyweight process. Instead, other layers can just use these verbs if and as needed.

It was briefly considered to use https://github.com/jrylan/http-method-enum instead, though the supply chain vulnerability risk doesn't feel worth it.

Checklist