MTRNord
632cac5baf
Fix repository path
2023-09-14 09:50:33 +02:00
MTRNord
daa8d4091d
Merge commit 'efe842cc9f6fc67185702169933ecf7408bcb2e8' into MTRNord/draupnir4all
2023-09-13 11:09:13 +02:00
gnuxie
efe842cc9f
v1.85.1
2023-09-12 11:58:14 +01:00
dependabot[bot]
272d81946b
Bump config and @types/config ( #118 )
...
Bumps [config](https://github.com/node-config/node-config ) and [@types/config](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/config ). These dependencies needed to be updated together.
Updates `config` from 3.3.8 to 3.3.9
- [Release notes](https://github.com/node-config/node-config/releases )
- [Changelog](https://github.com/node-config/node-config/blob/master/History.md )
- [Commits](https://github.com/node-config/node-config/compare/v3.3.8...v3.3.9 )
Updates `@types/config` from 3.3.0 to 3.3.1
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/config )
---
updated-dependencies:
- dependency-name: config
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: "@types/config"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 15:08:49 +01:00
dependabot[bot]
a328f52558
Bump yaml from 2.2.2 to 2.3.2 ( #111 )
...
Bumps [yaml](https://github.com/eemeli/yaml ) from 2.2.2 to 2.3.2.
- [Release notes](https://github.com/eemeli/yaml/releases )
- [Commits](https://github.com/eemeli/yaml/compare/v2.2.2...v2.3.2 )
---
updated-dependencies:
- dependency-name: yaml
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 15:03:58 +01:00
dependabot[bot]
0112a995b7
Bump the development-dependencies group with 9 updates ( #116 )
...
Bumps the development-dependencies group with 9 updates:
| Package | From | To |
| --- | --- | --- |
| [@types/crypto-js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/crypto-js ) | `4.0.2` | `4.1.2` |
| [@types/nedb](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/nedb ) | `1.8.12` | `1.8.13` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) | `18.16.7` | `20.6.0` |
| [eslint](https://github.com/eslint/eslint ) | `7.32.0` | `8.49.0` |
| [expect](https://github.com/jestjs/jest/tree/HEAD/packages/expect ) | `27.2.4` | `29.6.4` |
| [mocha](https://github.com/mochajs/mocha ) | `9.2.2` | `10.2.0` |
| [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha ) | `9.0.0` | `10.0.1` |
| [ts-mocha](https://github.com/piotrwitek/ts-mocha ) | `9.0.2` | `10.0.0` |
| [typescript](https://github.com/Microsoft/TypeScript ) | `5.1.6` | `5.2.2` |
Updates `@types/crypto-js` from 4.0.2 to 4.1.2
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/crypto-js )
Updates `@types/nedb` from 1.8.12 to 1.8.13
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/nedb )
Updates `@types/node` from 18.16.7 to 20.6.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Updates `eslint` from 7.32.0 to 8.49.0
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v7.32.0...v8.49.0 )
Updates `expect` from 27.2.4 to 29.6.4
- [Release notes](https://github.com/jestjs/jest/releases )
- [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/jestjs/jest/commits/v29.6.4/packages/expect )
Updates `mocha` from 9.2.2 to 10.2.0
- [Release notes](https://github.com/mochajs/mocha/releases )
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mochajs/mocha/compare/v9.2.2...v10.2.0 )
Updates `@types/mocha` from 9.0.0 to 10.0.1
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha )
Updates `ts-mocha` from 9.0.2 to 10.0.0
- [Release notes](https://github.com/piotrwitek/ts-mocha/releases )
- [Changelog](https://github.com/piotrwitek/ts-mocha/blob/master/CHANGELOG.md )
- [Commits](https://github.com/piotrwitek/ts-mocha/commits )
Updates `typescript` from 5.1.6 to 5.2.2
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.1.6...v5.2.2 )
---
updated-dependencies:
- dependency-name: "@types/crypto-js"
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: development-dependencies
- dependency-name: "@types/nedb"
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: development-dependencies
- dependency-name: "@types/node"
dependency-type: direct:development
update-type: version-update:semver-major
dependency-group: development-dependencies
- dependency-name: eslint
dependency-type: direct:development
update-type: version-update:semver-major
dependency-group: development-dependencies
- dependency-name: expect
dependency-type: direct:development
update-type: version-update:semver-major
dependency-group: development-dependencies
- dependency-name: mocha
dependency-type: direct:development
update-type: version-update:semver-major
dependency-group: development-dependencies
- dependency-name: "@types/mocha"
dependency-type: direct:development
update-type: version-update:semver-major
dependency-group: development-dependencies
- dependency-name: ts-mocha
dependency-type: direct:development
update-type: version-update:semver-major
dependency-group: development-dependencies
- dependency-name: typescript
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: development-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 13:38:45 +01:00
Marcel
645dd8950f
Upgrade matrix-appservice bridge to ^9.0.1 ( #102 )
2023-09-11 11:08:16 +01:00
MTRNord
f78d69530e
Update D4All to matrix-appservice-bridge@9.0.1
2023-09-09 12:30:32 +02:00
gnuxie
fb0199fdc9
v1.85.0
2023-09-07 16:00:02 +01:00
Gnuxie
bef21850e8
Use --forbid-only flag in integration test suite. ( #97 )
...
Yes this has happened again, at least we know how to fix it now.
2023-09-07 14:13:26 +01:00
MTRNord
54eea7972d
Fix merge conflicts
2023-09-04 14:23:08 +02:00
Aminda Suomalainen
bc0fc7c25a
package.json: refer to https clone url ( #90 )
...
Signed-off-by: Aminda Suomalainen <suomalainen+git@mikaela.info >
2023-09-04 12:38:07 +01:00
dependabot[bot]
c9cc5693ac
Bump matrix-appservice-bridge from 8.1.1 to 8.1.2 ( #71 )
...
Bumps [matrix-appservice-bridge](https://github.com/matrix-org/matrix-appservice-bridge ) from 8.1.1 to 8.1.2.
- [Release notes](https://github.com/matrix-org/matrix-appservice-bridge/releases )
- [Changelog](https://github.com/matrix-org/matrix-appservice-bridge/blob/8.1.2/CHANGELOG.md )
- [Commits](https://github.com/matrix-org/matrix-appservice-bridge/compare/8.1.1...8.1.2 )
---
updated-dependencies:
- dependency-name: matrix-appservice-bridge
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-04 12:37:09 +01:00
MTRNord
0add0aa78c
Fix repo
2023-09-03 11:37:40 +02:00
MTRNord
96e331b3e9
Update matrix-appservice fork
2023-09-02 18:39:20 +02:00
MTRNord
847e9038b1
Update matrix-appservice fork
2023-09-02 18:34:00 +02:00
MTRNord
0f95a92168
Update matrix-appservice fork
2023-09-02 18:24:13 +02:00
MTRNord
e513b00785
Update matrix-appservice fork
2023-09-02 18:16:22 +02:00
MTRNord
d410af5e4d
Update matrix-appservice fork
2023-09-02 18:11:28 +02:00
MTRNord
762938a8ba
Tracing for the appservice handler
2023-09-02 17:01:06 +02:00
MTRNord
be1d3b8990
Update matrix-appservice-bridge
2023-09-01 19:19:14 +02:00
MTRNord
3c1953dcb6
Disable metrics
2023-09-01 19:15:23 +02:00
MTRNord
77a7a9da45
Try metrics again
2023-09-01 19:14:27 +02:00
MTRNord
fffd8563e3
Add opentelemetry tracing support
...
Add logging to tracing
Improve logging
Fix order of imports
Add missing pieces of tracing code
Add more logging
Try nested spans
Expand traces using an decorator
Improve quality of spans
Add missing tracing decorations
Filter metrics and healthz
Add more traces
Fix return type error
2023-09-01 19:13:55 +02:00
Marcel
1f9d37564b
Update to typescript 5 ( #68 )
2023-08-19 14:46:23 +01:00
gnuxie
df432121de
v1.84.0
2023-07-04 17:31:46 +01:00
Gnuxie
bed8f72686
v1.83.0
2023-05-31 17:44:11 +01:00
Gnuxie
8e1f930240
Merge pull request #52 from Gnuxie/gnuxie/update-to-node-18
...
Update to node 18.
2023-05-13 15:45:30 +01:00
gnuxie
3c007083f7
v1.82.0
2023-05-13 03:09:38 +01:00
gnuxie
74312e43f6
Update to node 18.
...
End of life was moved forwards by 7 months so we don't have a choice.
https://nodejs.org/en/blog/announcements/nodejs16-eol .
2023-05-10 19:57:17 +01:00
dependabot[bot]
4e0e832855
Bump yaml from 2.1.1 to 2.2.2 ( #49 )
...
Bumps [yaml](https://github.com/eemeli/yaml ) from 2.1.1 to 2.2.2.
- [Release notes](https://github.com/eemeli/yaml/releases )
- [Commits](https://github.com/eemeli/yaml/compare/v2.1.1...v2.2.2 )
---
updated-dependencies:
- dependency-name: yaml
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-28 22:30:02 +01:00
Gnuxie
9e8783312a
Use matrix-appservice-bridge's PostgreSQL datastore for Draupnir appservice ( #46 )
...
* use matrix-appservice-bridge support for postgres
* upgrade matrix-appservice-bridge to include postgres fixes.
These are unreleased and a specific develop commit, but we're the only ones
who have made changes so far to the develop branch,
so should be fine.
* Upgrade matrix-appservice-bridge to 8.1.1.
8.0.1 was never added to npm for some weird reason.
2023-03-31 18:16:23 +01:00
gnuxie
d8ef8a94d9
v1.81.4
2023-03-28 22:01:47 +01:00
gnuxie
7de96bda34
v1.81.3
2023-03-28 20:01:27 +01:00
gnuxie
0f8826f810
v1.81.2
2023-03-28 14:03:00 +01:00
gnuxie
009ece3281
v1.81.1
2023-03-16 20:36:41 +00:00
gnuxie
9ff1bcf3e1
v1.81.0
2023-03-14 12:22:54 +00:00
gnuxie
64e721d690
v1.80.1
2023-02-20 20:05:37 +00:00
gnuxie
5e2a175645
v1.80.0
2023-02-11 20:57:39 +00:00
gnuxie
88f711b8f4
Update yarn:version to account for pre-releases.
2023-02-11 20:57:35 +00:00
gnuxie
7178b01dbb
Do not touch version.txt if generating the version fails.
2023-02-11 20:16:30 +00:00
gnuxie
b7139b398c
Move version.txt to project top level.
2023-02-11 14:20:46 +00:00
gnuxie
cbddf71ebe
Include version information in !draupnir status.
2023-02-11 14:20:46 +00:00
gnuxie
58ebc39c03
v1.80.0-beta.0
2023-02-08 15:25:13 +00:00
gnuxie
d17d94a80a
Update TypeScript so it can infer from narrowing unknown.
2023-01-19 17:56:48 +00:00
Gnuxie
433ff7eadd
A look at PolicyList.update ( #454 )
...
This started out as just a way to find out why mjolnir was syncing with lists several times for each update to a policy list.
The main changes are
- Verbosity was irrelevant to the sync command but for some reason was an option.
Unfortunately all this did was suppress whether to tell you when it had finished, meaning it wouldn't
when verbose logging was disabled. Historically this was probably a parameter that got passed through
to applyServerAcl/applyUserBans, which can be horribly verbose, but they access the config directly.
- Stop emitting `'PolicyList.update'` when there are no changes.
- Include a revision ID for the `'PolicyList.update'`method and event.
- Use the revision ID in the `ProtectedRoomsSet` so that we don't unnecessarily resynchronize all rooms when the `'PolicyList.update'` event is received. Though not when the `sync` command is used. Since this is supposed to `sync` in the case when there is a state reset or otherwise or the user has changed some room settings.
- insert an await lock around the `PolicyList.update` method to avoid a race condition where a call can be started and finished within the extent of an existing call (via another task, this can happen if the server is slow with handling one request). `PolicyList.udpate` now has a helper that is synchronous to be called directly after requesting the room state. The reason for this is to enforce that no one `await`s while updating the policy list's cache of rules. Which is important because it is one of the biggest methods that I tolerate and visually checking for `await` is impossible.
- The revision ID uses a ULID, but this is unnecessary and could have just been a "dumb counter".
closes https://github.com/matrix-org/mjolnir/issues/447
2022-12-08 16:09:55 +00:00
David Teller
2915757b7d
Very basic support for Sentry. ( #398 )
...
The Sentry package is very useful for monitoring runtime errors. With this PR,
we simply add the necessary mechanism to:
- log to sentry any uncaught error that reaches the toplevel, including startup errors.
2022-11-30 16:06:02 +01:00
Gnuxie
e35b855744
Gnuxie/appservice logging ( #441 )
...
* upgrade to matrix-appservice-bridge 8.0.0
this is so we can use their new logger
* Configure and use matrix-appservice-bridge's `Logger`
https://github.com/matrix-org/mjolnir/issues/422
Haven't changed all of the mjolnir components to use this,
just the appservice.
The fact that we've configured this properly means we get
logging from matrix-appservice-bridge components too (we didn't before).
* use try/catch instead
2022-11-30 13:30:38 +00:00
gnuxie
1bc329b5e8
v1.6.1
2022-11-23 10:56:46 +00:00
Gnuxie
333c55e18c
Config fixes ( #432 )
...
* Use the npm package `config` to load the config.
This is what was used prior to https://github.com/matrix-org/mjolnir/pull/347 .
It was a nice idea motivated to drop a dependency that was confusing.
It was just never followed through and was underestimated how much disruption it would cause.
It was also believed that the library would mean there could only ever be one global copy of the config,
It was followed up by:
https://github.com/matrix-org/mjolnir/pull/369
https://github.com/matrix-org/mjolnir/pull/357
https://github.com/matrix-org/mjolnir/pull/429
https://github.com/matrix-org/mjolnir/pull/397/files
https://github.com/matrix-org/mjolnir/issues/365
For simplicity sake I am reinstating the library.
The practice of loading default.yaml by default is also dangerous
and has led to issues multiple times in #mjolnir:matrix.org.
It is a sample and not a default.
In a following commit I will be adding the ability to specify the
config to use from the cli.
* Allow config to be specified with an explicit cli argument.
* Update doc to transition away from old config handling
2022-11-23 10:55:22 +00:00