Skip to content

Commit

Permalink
Merge branch 'develop' into hs/stabilize-msc2409
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot authored Oct 31, 2024
2 parents 1089422 + c705bee commit 816ce0d
Show file tree
Hide file tree
Showing 53 changed files with 748 additions and 156 deletions.
60 changes: 60 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,63 @@
# Synapse 1.118.0 (2024-10-29)

No significant changes since 1.118.0rc1.

### Python 3.8 support will be dropped in the next release

Python 3.8 is now [end-of-life](https://devguide.python.org/versions/). As per our [Deprecation Policy for Platform Dependencies](https://element-hq.github.io/synapse/latest/deprecation_policy.html#policy), Synapse will be dropping support for Python 3.8 in the next release; Synapse 1.119.0.

Synapse 1.118.x will be the final release to support Python 3.8. If you are running Synapse with Python 3.8, please upgrade before the 1.119.0 release, due in less than one month.

### Python 3.13 and PostgreSQL 17 support

On the other end of the spectrum, Synapse 1.118.0 is the first release to support [Python 3.13](https://www.python.org/downloads/release/python-3130/)! [PostgreSQL 17](https://www.postgresql.org/about/news/postgresql-17-released-2936/) is also supported as of this release.


# Synapse 1.118.0rc1 (2024-10-22)

### Features

- Added the `display_name_claim` option to the JWT configuration. This option allows specifying the claim key that contains the user's display name in the JWT payload. ([\#17708](https://github.com/element-hq/synapse/issues/17708))
- Implement [MSC4210](https://github.com/matrix-org/matrix-spec-proposals/pull/4210): Remove legacy mentions. Contributed by @tulir @ Beeper. ([\#17783](https://github.com/element-hq/synapse/issues/17783))

### Bugfixes

- Fix saving of PNG thumbnails, when the original image is in the CMYK color space. ([\#17736](https://github.com/element-hq/synapse/issues/17736))
- Fix bug with sliding sync where the server would not return state that was added to the `required_state` config. ([\#17785](https://github.com/element-hq/synapse/issues/17785), [\#17805](https://github.com/element-hq/synapse/issues/17805))
- Fix a bug in [MSC4186](https://github.com/matrix-org/matrix-spec-proposals/pull/4186) Sliding Sync that would cause rooms to stay forgotten and hidden even after rejoining. ([\#17835](https://github.com/element-hq/synapse/issues/17835))

### Improved Documentation

- Clarify when the `user_may_invite` and `user_may_send_3pid_invite` module callbacks are called. ([\#17627](https://github.com/element-hq/synapse/issues/17627))
- Correct documentation to refer to the `--config-path` argument instead of `--config-file`. ([\#17802](https://github.com/element-hq/synapse/issues/17802))
- Fix typo in `target_cache_memory_usage` docs. ([\#17825](https://github.com/element-hq/synapse/issues/17825))

### Internal Changes

- Slight optimization when fetching state/events for Sliding Sync. ([\#17718](https://github.com/element-hq/synapse/issues/17718))
- Add Python 3.13 and Postgres 17 to the test matrix. ([\#17752](https://github.com/element-hq/synapse/issues/17752))
- Test github token before running release script steps. ([\#17803](https://github.com/element-hq/synapse/issues/17803))
- Build debian packages for new Ubuntu versions, and stop building for no longer supported versions. ([\#17824](https://github.com/element-hq/synapse/issues/17824))
- Enable the `.org.matrix.msc4028.encrypted_event` push rule by default in accordance with [MSC4028](https://github.com/matrix-org/matrix-spec-proposals/pull/4028). Note that the corresponding experimental feature must still be switched on for this push rule to have any effect. ([\#17826](https://github.com/element-hq/synapse/issues/17826))
- Fix some typing issues uncovered by upgrading mypy to 1.11.x. ([\#17842](https://github.com/element-hq/synapse/issues/17842))



### Updates to locked dependencies

* Bump mypy from 1.10.1 to 1.11.2. ([\#17842](https://github.com/element-hq/synapse/issues/17842))
* Bump mypy-zope from 1.0.5 to 1.0.7. ([\#17827](https://github.com/element-hq/synapse/issues/17827))
* Bump phonenumbers from 8.13.46 to 8.13.47. ([\#17797](https://github.com/element-hq/synapse/issues/17797))
* Bump psycopg2 from 2.9.9 to 2.9.10. ([\#17843](https://github.com/element-hq/synapse/issues/17843))
* Bump ruff from 0.6.8 to 0.6.9. ([\#17794](https://github.com/element-hq/synapse/issues/17794))
* Bump sentry-sdk from 2.14.0 to 2.15.0. ([\#17795](https://github.com/element-hq/synapse/issues/17795))
* Bump sentry-sdk from 2.15.0 to 2.16.0. ([\#17829](https://github.com/element-hq/synapse/issues/17829))
* Bump sentry-sdk from 2.16.0 to 2.17.0. ([\#17844](https://github.com/element-hq/synapse/issues/17844))
* Bump sigstore/cosign-installer from 3.6.0 to 3.7.0. ([\#17798](https://github.com/element-hq/synapse/issues/17798))
* Bump tomli from 2.0.1 to 2.0.2. ([\#17796](https://github.com/element-hq/synapse/issues/17796))
* Bump types-requests from 2.32.0.20240914 to 2.32.0.20241016. ([\#17841](https://github.com/element-hq/synapse/issues/17841))
* Bump types-setuptools from 75.1.0.20240917 to 75.1.0.20241014. ([\#17828](https://github.com/element-hq/synapse/issues/17828))

# Synapse 1.117.0 (2024-10-15)

No significant changes since 1.117.0rc1.
Expand Down
28 changes: 14 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions changelog.d/17374.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Support [MSC4151](https://github.com/matrix-org/matrix-spec-proposals/pull/4151)'s stable report room API.
1 change: 0 additions & 1 deletion changelog.d/17627.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17708.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17718.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17736.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17752.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17783.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17785.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17802.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17803.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17805.bugfix

This file was deleted.

1 change: 1 addition & 0 deletions changelog.d/17813.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Avoid lost data on some database query retries.
1 change: 1 addition & 0 deletions changelog.d/17814.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Avoid lost data on some database query retries.
1 change: 1 addition & 0 deletions changelog.d/17815.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Avoid lost data on some database query retries.
1 change: 1 addition & 0 deletions changelog.d/17816.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Avoid lost data on some database query retries.
1 change: 1 addition & 0 deletions changelog.d/17817.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Avoid lost data on some database query retries.
1 change: 1 addition & 0 deletions changelog.d/17818.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Avoid lost data on some database query retries.
1 change: 0 additions & 1 deletion changelog.d/17824.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17825.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17826.misc

This file was deleted.

1 change: 1 addition & 0 deletions changelog.d/17830.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Include the destination in the error of 'Destination mismatch' on federation requests.
1 change: 0 additions & 1 deletion changelog.d/17835.bugfix

This file was deleted.

1 change: 1 addition & 0 deletions changelog.d/17839.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Check if user has membership in a room before tagging it. Contributed by Lama Alosaimi.
1 change: 0 additions & 1 deletion changelog.d/17842.misc

This file was deleted.

2 changes: 2 additions & 0 deletions changelog.d/17847.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix a bug in the admin redact endpoint where the background task would not run if a worker was specified in
the config option `run_background_tasks_on`.
1 change: 1 addition & 0 deletions changelog.d/17861.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix detection when the built Rust library was outdated when using source installations.
1 change: 1 addition & 0 deletions changelog.d/17884.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Minor speed-up of sliding sync by computing extensions results in parallel.
12 changes: 12 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
matrix-synapse-py3 (1.118.0) stable; urgency=medium

* New Synapse release 1.118.0.

-- Synapse Packaging team <[email protected]> Tue, 29 Oct 2024 15:29:53 +0100

matrix-synapse-py3 (1.118.0~rc1) stable; urgency=medium

* New Synapse release 1.118.0rc1.

-- Synapse Packaging team <[email protected]> Tue, 22 Oct 2024 11:48:14 +0100

matrix-synapse-py3 (1.117.0) stable; urgency=medium

* New Synapse release 1.117.0.
Expand Down
3 changes: 3 additions & 0 deletions docs/admin_api/user_admin_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1365,6 +1365,9 @@ _Added in Synapse 1.72.0._

## Redact all the events of a user

This endpoint allows an admin to redact the events of a given user. There are no restrictions on redactions for a
local user. By default, we puppet the user who sent the message to redact it themselves. Redactions for non-local users are issued using the admin user, and will fail in rooms where the admin user is not admin/does not have the specified power level to issue redactions.

The API is
```
POST /_synapse/admin/v1/user/$user_id/redact
Expand Down
52 changes: 26 additions & 26 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ module-name = "synapse.synapse_rust"

[tool.poetry]
name = "matrix-synapse"
version = "1.117.0"
version = "1.118.0"
description = "Homeserver for the Matrix decentralised comms protocol"
authors = ["Matrix.org Team and Contributors <[email protected]>"]
license = "AGPL-3.0-or-later"
Expand Down Expand Up @@ -320,7 +320,7 @@ all = [
# failing on new releases. Keeping lower bounds loose here means that dependabot
# can bump versions without having to update the content-hash in the lockfile.
# This helps prevents merge conflicts when running a batch of dependabot updates.
ruff = "0.6.9"
ruff = "0.7.1"
# Type checking only works with the pydantic.v1 compat module from pydantic v2
pydantic = "^2"

Expand Down
Loading

0 comments on commit 816ce0d

Please sign in to comment.