- The legacy
/users
,/rooms
, and/transactions
endpoints have been removed in this release and now redirect to the appropriate spec'd path. (#63) - Add support for Node 20, and drop support for Node 16. (#65)
- Update the version of
express
to match that ofmatrix-appservice-bridge
. (#60)
- A subclass of the
AppService
class can now signal user query errors in its onUserQuery method by throwing anAppserviceHttpError
exception. This allows the appservice to return a HTTP status, a Matrix errorcode, and a Matrix error message. (#56)
- Add new CI workflow to check for signoffs. (#58)
This release drops support for Node 12 and adds support for Node 18
- The project has been modernized to be in-line with our other matrix-org bridge repos. This means:
- We now use yarn for dependency management.
- We now use GitHub CI.
- There is a contributing file. (#57)
- Remove tailing new line on http-log events (#50)
- Update dependencies, including Typescript to
4.5.2
(#45)
- The
master
branch has been renamed todevelop
to be consistent wih othermatrix-org
projects. (#40) - Update to Typescript 4.3.5 and update Typedoc. (#44)
- Add health check endpoint (#38)
- Export
AppServiceOutput
andRegexObj
interfaces. (#35)
- Fix issue where
AppServiceRegistration.getOutput()
would fail ifde.sorunome.msc2409.push_ephemeral
is undefined. (#34)
- Add experimental support for receiving ephemeral data from the homeserver (MSC2409) (#32)
- Expose
AppService.app
so that services may add their own Express request handlers. (#26) - Expose
AppService.expressApp
(#27) - Documentation is now generated for Typescript files (#28)
- Remove
request
dependency (#25)
- Fixed an issue which caused the package to fail to install.
- The library is now written in Typescript.
This change should not cause any breakages, as the library will
compile itself on installation via the
postinstall
script.
Updated body-parser
, express
, morgan
and request
packages to fix security vulnerabilities.
AppServiceRegistration
:
- Added
getProtocols()
andsetProtocols(string[])
. (Thanks @Half-Shot!)AppService
: - Add HTTPS support if the environment variables
MATRIX_AS_TLS_KEY
andMATRIX_AS_TLS_CERT
exist. (Thanks @AndrewJDR!)
AppService
:
- Redact access tokens in the AppService logs.
AppServiceRegistration
: - Added a flag to indicate to the HS not to rate limit the AS client or any users belonging to the AS. The default is set to
true
. Set by callingsetRateLimited(false)
.
Expanded AppService.listen
to accept more parameters to control how the service
listens for connections.
AppServiceRegistration
:
- Bug fix which prevented registration files from being loaded correctly.
AppServiceRegistration
:
- Require an ID to be set with the
setId
method.
AppServiceRegistration
:
- Added instance method
setAppServiceUrl
. Setting the URL in the constructor is still possible but discouraged as it is less clear which URL should go there (HS or AS).
AppServiceRegistration
:
- Added static method
fromObject
- Added instance methods
isUserMatch
,isAliasMatch
,isRoomMatch
.