Commit Graph

904 Commits

Author SHA1 Message Date
dependabot[bot] eaeeba7cca Bump the development-dependencies group across 1 directory with 6 updates (#481)
Bumps the development-dependencies group with 6 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js) | `9.6.0` | `9.7.0` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `20.11.5` | `20.14.11` |
| [eslint](https://github.com/eslint/eslint) | `9.6.0` | `9.7.0` |
| [mocha](https://github.com/mochajs/mocha) | `10.2.0` | `10.7.0` |
| [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha) | `10.0.6` | `10.0.7` |
| [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) | `7.15.0` | `7.16.1` |



Updates `@eslint/js` from 9.6.0 to 9.7.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/commits/v9.7.0/packages/js)

Updates `@types/node` from 20.11.5 to 20.14.11
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `eslint` from 9.6.0 to 9.7.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/v9.6.0...v9.7.0)

Updates `mocha` from 10.2.0 to 10.7.0
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v10.2.0...v10.7.0)

Updates `@types/mocha` from 10.0.6 to 10.0.7
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha)

Updates `typescript-eslint` from 7.15.0 to 7.16.1
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.16.1/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: "@eslint/js"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: development-dependencies
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: development-dependencies
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: development-dependencies
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: development-dependencies
- dependency-name: "@types/mocha"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: development-dependencies
- dependency-name: typescript-eslint
  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>
2024-07-22 16:59:44 +01:00
Gnuxie 8973db487b Migrate to eslint-9 flat config, typescript 5, typescript-eslint strictTypeChecked (#476)
* Migrate to eslint-9 strictTypeChecked & typescript 5.

* Update to MPS 0.23.0.

Required for strict type checks.

* Looks like we found a test that was complete garbage, amazing really.

* FIXUP

* Well, the command handler was bugged previously...

The command handler used to always only return the command
without the prefix due to an operator precedence bug.
This meant that when we made the order of operations explicit,
we were now including the prefix of the command in the copy.
So when we parsed arguments the code wasn't expecting the prefix
to be there.

* update to MPS 0.23.1.

MPS 0.23.0 was bugged because we didn't enable
`noUncheckedIndexedAccess` while upgrading to typescript 5.

* Make sure eslint runs on all ts files.

* eslint fixes.

* enable `noUncheckedIndexedAccess` & `exactOptionalPropertyTypes`.

* eslint ignores is clearly not understood by me.

* Update SuperCoolStream for eslint and ts5.

* stricter eslint done i thinks

* Whoops, added on .only somewhere.

* Update MPS.

* fix broken test realted things.

* Well I guess that part of getMessagesByUserIn was part of the interface.

* Fix redactionCommandTest.

* Account for escapeHTML in tests.

* Fix tests.

* stuff not matching with .editorconfig fixes.

* Fix appservice webAPI test.

* Update for MPS 0.23.3.
2024-07-22 16:54:04 +01:00
Marcel 87222588f9 Remove the attest step until we figure out how it is meant to work (#479)
* Remove the attest step until we figure out how it is meant to work

* Fix end of files
2024-07-19 09:53:56 +01:00
Marcel d334912706 Ensure that we use the correct docker registry (#478)
This is stated at https://github.com/actions/attest-build-provenance/blob/456d685447f4ceab20b87f8042f8f14bbb71dafc/README.md?plain=1#L187-L188 but I missed it.
2024-07-18 10:01:46 +01:00
Marcel 337d7c72a6 Add SBOM and Attestation to the Docker release process (#477)
* feat: Add SBOM and Attestation to the Docker release process. Also ensure we only deploy platforms on the qemu action as needed and update versions.

This also limits the permissions used

* fix: Make sure there is an empty line at the end of the file

* Fix the qemu platforms
2024-07-18 09:44:56 +01:00
Aminda Suomalainen ⚧ 8587280cdc [Yarn Classic] Enable corepack & fix pre-commit run --all-files (#472)
* Setup Yarn Classic through Corepack

* pre-commit: use corepack and silence warnings, add .eslintignore's

* .github/workflows/mjolnir.yml: use yarn through corepack

* mx-tester.yml: use corepack

* mx-tester.yml & package.json: replace references to npx and call corepack more

At least yarn build didn't break locally for me, so I think it's supported here too

* rm & gitignore .yarnrc

* mx-tester.yml & package.json: return to npx since yarn dlx doesn't exist in classic
2024-07-04 11:22:33 +01:00
morguldir 7f01383974 Avoid invalid createRoom calls when making a list as the draupnir user (#471)
Signed-off-by: morguldir <morguldir@protonmail.com>
2024-07-01 17:44:52 +01:00
dependabot[bot] c1a4d6147d Bump ws from 8.16.0 to 8.17.1 (#457)
Bumps [ws](https://github.com/websockets/ws) from 8.16.0 to 8.17.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.16.0...8.17.1)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-24 13:33:40 +01:00
dependabot[bot] 459917febd Bump braces from 3.0.2 to 3.0.3 (#459)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-24 12:51:17 +01:00
Gnuxie 908f558cc4 Stop declaring typescript JSX config as global. (#455) 2024-06-17 13:13:25 +01:00
Gnuxie 54437ee000 Merge pull request #454 from the-draupnir-project/gnuxie/dead-document
TypeCheck JSX expressions, children, and attributes ^-^
2024-06-15 20:56:11 +01:00
gnuxie d0cc9caea9 Bugs caught by the new JSX type checker x3 2024-06-15 20:29:10 +01:00
gnuxie 3b969b1c5a Add type checking for org.matrix.custom.html in DeadDocument.
Awesome.

The documentation was not very explicit, I had to play around
a lot to figure it out but I'm so happy that this works.
https://www.typescriptlang.org/docs/handbook/jsx.html.

Please note that `undefined` as a child will not be caught
yet, as we need to enable `exactOptionalPropertyTypes` for
this to work.
2024-06-15 20:29:10 +01:00
Aminda Suomalainen ⚧ c4ac8ad4ee .pre-commit-config.yaml: add local hook to run linting (#87)
Signed-off-by: Aminda Suomalainen <suomalainen+git@mikaela.info>
2024-06-08 17:57:56 +01:00
dependabot[bot] 27e058711e Bump actions/github-script from 6 to 7 in the github-actions group (#398)
Bumps the github-actions group with 1 update: [actions/github-script](https://github.com/actions/github-script).


Updates `actions/github-script` from 6 to 7
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-29 14:56:23 +01:00
gnuxie 4c2ea7f155 v2.0.0-beta.4 v2.0.0-beta.4 2024-05-29 12:35:18 +01:00
Gnuxie baee388886 Change dependabot interval to monthly + group production deps too. (#438)
Too much maintnence burden to review weekly... and we may aswell
just review all the production deps at the same time so we can
checkout the branch and just fix things that are broken.
2024-05-24 15:56:25 +01:00
Gnuxie 14aa20e56f Merge pull request #437 from the-draupnir-project/gnuxie/draupnir-documentation-links
Update documentation links and provide a link to the documentation in the status and help commands.
2024-05-24 15:47:32 +01:00
gnuxie 5304b260e1 Add documentation link to status and help commands. 2024-05-24 15:40:16 +01:00
gnuxie 8aa46b8526 Add README link to v1.87.0. 2024-05-24 15:40:16 +01:00
gnuxie 7d4009cf1a Update documentation links for new base url.
Context is that we had `docs` as part of the base URL, fixed in https://github.com/the-draupnir-project/draupnir-documentation/pull/13.
2024-05-24 15:40:16 +01:00
Gnuxie 829712c9fd Merge pull request #422 from the-draupnir-project/gnuxie/invitations-fun
Invitation protections
https://github.com/the-draupnir-project/planning/issues/15
2024-05-22 16:40:29 +01:00
gnuxie 16435bd8fc Add some spaces around room pills in protection prompts. 2024-05-22 16:35:36 +01:00
gnuxie 48c0fec134 Remove acceptInvitesFromSpace.
https://github.com/the-draupnir-project/Draupnir/issues/433.
Sucks balls, mare.
2024-05-22 16:15:58 +01:00
gnuxie 8664d91b1a Update protect prompt for config.protectAllJoinedRooms.
Stop sending prompts to protect room when config.protectAllJoinedRooms
is enabled.
2024-05-22 15:37:31 +01:00
gnuxie b14a8723ca Rename ProtectRoomsOnInviteProtection to JoinRoomsOnInviteProtection. 2024-05-22 13:53:18 +01:00
gnuxie 38553b7221 Time to split out the ProtectRoomsOnInviteProtection. 2024-05-22 13:53:18 +01:00
gnuxie d156eb3f6e Sometimes we see invitations twice on protect rooms on invite. 2024-05-20 16:56:47 +01:00
gnuxie 180594502d Ignore invitation events to rooms we are already protecting. 2024-05-20 16:56:47 +01:00
gnuxie 9792df15d3 Use MPS logger in MatrixReactionhandler. 2024-05-20 16:56:47 +01:00
gnuxie 95007952fe Allow prompts to be cancelled. 2024-05-20 16:56:46 +01:00
gnuxie 3b20fe1122 Update to MPS v0.22.0. 2024-05-20 16:56:46 +01:00
gnuxie 1041105aa8 ProtectRoomsOnInviteProtection.
Currently creates two prompts sometimes for some reason.
We also need a way to cancel prompts see https://github.com/the-draupnir-project/Draupnir/issues/423.
Especially once we have finished protecting a room, it doesn't make sense for them to keep clicking.
2024-05-15 18:11:27 +01:00
gnuxie d1950fbb54 Update for new MPS handleExternalInvite handle. 2024-05-13 16:23:26 +01:00
gnuxie 771edf387e v2.0.0-beta.3 v2.0.0-beta.3 2024-05-06 17:48:16 +01:00
Gnuxie 603ac6a4a5 Merge pull request #404 from the-draupnir-project/gnuxie/ban-command-fixes
Fix ban and unban command bugs

Fixes https://github.com/the-draupnir-project/Draupnir/issues/401
Fixes https://github.com/the-draupnir-project/Draupnir/issues/385
2024-05-06 17:47:17 +01:00
gnuxie 269a3edb65 Fix prompt for accept.
Avoid presentation conflict while finding prestnation renderer for
DeadDocuments
https://github.com/the-draupnir-project/Draupnir/issues/403

Make sure we printReadably when serializing `ReadItem`s.
2024-05-06 17:39:35 +01:00
gnuxie a4833bcf3a Fix unban command.
https://github.com/the-draupnir-project/Draupnir/issues/401.
2024-05-06 16:40:03 +01:00
Gnuxie be374755bb Update to MPS 0.20.0. (#399)
Part of https://github.com/the-draupnir-project/Draupnir/issues/380.
We've updated typebox and changed the way events are decoded.
2024-05-06 13:51:44 +01:00
Catalan Lover bbea4155ea Add Signoff CI to Enforce Signoff requirement. (#395)
* Add Signoff CI to Enforce Signoff requirement.

* Integrate Changes to Signoff CI from Docs Repo Version
2024-05-05 14:49:56 +01:00
Catalan Lover 86dcbdc41a Move Synapse module to new website (#391)
* Migrate Synapse module to new docs

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-04 21:03:42 +01:00
gnuxie f8cbaee973 Update to MPS 0.19.1.
This contains a workaround for this issue https://github.com/the-draupnir-project/Draupnir/issues/380
please see https://github.com/Gnuxie/matrix-protection-suite/commit/e57f266da86165c49e5a7e82a25eb7cf2e4709c4.
2024-05-04 18:09:21 +01:00
Catalan Lover 34a6a53af8 Documentation Website Move (#387)
* Documentation Website Move

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-04 17:10:30 +01:00
gnuxie aa72badd3e Display notice for missing permissions. 2024-05-02 15:57:44 +01:00
gnuxie 0049dfd367 Update for MPS ProtectedRoomsManager. 2024-05-02 15:57:44 +01:00
gnuxie a85d292841 Renderers for UserConsequence UsersInRoom. 2024-05-02 15:57:44 +01:00
gnuxie 2bbca6d27a Update for MPS's PowerLevelMirror. 2024-05-02 15:57:44 +01:00
gnuxie 9ea217c8ca Update for MPS 0.19.0. 2024-05-02 15:57:44 +01:00
gnuxie 005cf6e24f Update typebox to match MPS. 2024-05-02 15:57:44 +01:00
avdb13 c7a93941ae Update README.md (#368) 2024-04-25 19:47:20 +01:00