mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-30 14:14:09 +02:00
Compare commits
3 commits
68e982b0b7
...
9c621a76ac
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9c621a76ac | ||
|
|
e2b2e56bd2 | ||
|
|
282a44f5c5 |
15
.github/workflows/release.yaml
vendored
15
.github/workflows/release.yaml
vendored
|
|
@ -12,6 +12,9 @@ jobs:
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: packages/npm
|
working-directory: packages/npm
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- name: 🧮 Checkout code
|
- name: 🧮 Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -23,6 +26,10 @@ jobs:
|
||||||
cache-dependency-path: packages/npm/yarn.lock
|
cache-dependency-path: packages/npm/yarn.lock
|
||||||
registry-url: "https://registry.npmjs.org"
|
registry-url: "https://registry.npmjs.org"
|
||||||
|
|
||||||
|
# Ensure npm 11.5.1 or later is installed
|
||||||
|
- name: Update npm
|
||||||
|
run: npm install -g npm@latest
|
||||||
|
|
||||||
- name: 🔨 Install dependencies
|
- name: 🔨 Install dependencies
|
||||||
run: "yarn install --frozen-lockfile"
|
run: "yarn install --frozen-lockfile"
|
||||||
|
|
||||||
|
|
@ -33,10 +40,4 @@ jobs:
|
||||||
VERSION: ${{ github.event.release.tag_name }}.0
|
VERSION: ${{ github.event.release.tag_name }}.0
|
||||||
|
|
||||||
- name: 🚀 Publish to npm
|
- name: 🚀 Publish to npm
|
||||||
id: npm-publish
|
run: npm publish --provenance --access public --tag latest
|
||||||
uses: JS-DevTools/npm-publish@19c28f1ef146469e409470805ea4279d47c3d35c # v3.1.1
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.NPM_TOKEN }}
|
|
||||||
package: packages/npm
|
|
||||||
access: public
|
|
||||||
ignore-scripts: false
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
M_RESOURCE_LIMIT_EXCEEDED is now listed as a common error code.
|
||||||
1
changelogs/internal/newsfragments/2239.clarification
Normal file
1
changelogs/internal/newsfragments/2239.clarification
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Use NPM Trusted Publishers for publishing `@matrix-org/spec` to npm.
|
||||||
|
|
@ -136,6 +136,17 @@ code if the endpoint is implemented, but the incorrect HTTP method is used.
|
||||||
{{% added-in v="1.17" %}} The device ID supplied by the application service does
|
{{% added-in v="1.17" %}} The device ID supplied by the application service does
|
||||||
not belong to the user ID during [identity assertion](/application-service-api/#identity-assertion).
|
not belong to the user ID during [identity assertion](/application-service-api/#identity-assertion).
|
||||||
|
|
||||||
|
`M_RESOURCE_LIMIT_EXCEEDED`
|
||||||
|
The request cannot be completed because the homeserver has reached a
|
||||||
|
resource limit imposed on it. For example, a homeserver held in a shared
|
||||||
|
hosting environment may reach a resource limit if it starts using too
|
||||||
|
much memory or disk space. The error MUST have an `admin_contact` field
|
||||||
|
to provide the user receiving the error a place to reach out to.
|
||||||
|
Typically, this error will appear on routes which attempt to modify
|
||||||
|
state (e.g.: sending messages, account data, etc) and not routes which
|
||||||
|
only read state (e.g.: [`/sync`](#get_matrixclientv3sync),
|
||||||
|
[`/user/{userId}/account_data/{type}`](#get_matrixclientv3useruseridaccount_datatype), etc).
|
||||||
|
|
||||||
`M_UNKNOWN`
|
`M_UNKNOWN`
|
||||||
An unknown error has occurred.
|
An unknown error has occurred.
|
||||||
|
|
||||||
|
|
@ -221,17 +232,6 @@ The request or entity was too large.
|
||||||
The resource being requested is reserved by an application service, or
|
The resource being requested is reserved by an application service, or
|
||||||
the application service making the request has not created the resource.
|
the application service making the request has not created the resource.
|
||||||
|
|
||||||
`M_RESOURCE_LIMIT_EXCEEDED`
|
|
||||||
The request cannot be completed because the homeserver has reached a
|
|
||||||
resource limit imposed on it. For example, a homeserver held in a shared
|
|
||||||
hosting environment may reach a resource limit if it starts using too
|
|
||||||
much memory or disk space. The error MUST have an `admin_contact` field
|
|
||||||
to provide the user receiving the error a place to reach out to.
|
|
||||||
Typically, this error will appear on routes which attempt to modify
|
|
||||||
state (e.g.: sending messages, account data, etc) and not routes which
|
|
||||||
only read state (e.g.: [`/sync`](#get_matrixclientv3sync),
|
|
||||||
[`/user/{userId}/account_data/{type}`](#get_matrixclientv3useruseridaccount_datatype), etc).
|
|
||||||
|
|
||||||
`M_CANNOT_LEAVE_SERVER_NOTICE_ROOM`
|
`M_CANNOT_LEAVE_SERVER_NOTICE_ROOM`
|
||||||
The user is unable to reject an invite to join the server notices room.
|
The user is unable to reject an invite to join the server notices room.
|
||||||
See the [Server Notices](#server-notices) module for more information.
|
See the [Server Notices](#server-notices) module for more information.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue