# Changelog
-## v4.0.0-rc.1
+## v4.0.0
### IMPORTANT NOTES
+ * **Important** You need to execute manually a migration script (can be executed after your upgrade, while your PeerTube instance is running) to migrate HLS files name:
+ * Classic installation: `cd /var/www/peertube/peertube-latest && sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production node dist/scripts/migrations/peertube-4.0.js`
+ * Docker installation: `cd /var/www/peertube-docker && docker-compose exec -u peertube peertube node dist/scripts/migrations/peertube-4.0.js`
* **Important** We fixed configuration inconsistencies and added some keys. **You must change/add them in your production.yaml**
* `log.rotation.maxFileSize` becomes `log.rotation.max_file_size`
* `log.rotation.maxFiles` becomes `log.rotation.max_files`
* Add client plugin hooks:
* `filter:api.video-watch.video-playlist-elements.get.params` and `filter:api.video-watch.video-playlist-elements.get.result` [#4387](https://github.com/Chocobozzz/PeerTube/pull/4387)
+ * Introduce plugin id selectors: https://docs.joinpeertube.org/contribute-plugins?id=plugin-selector-on-html-elements
+ * Add `#plugin-selector-login-form` to login form
### Docker
* Add embed preview in share modal
* Add user username in modal when deleting a user
* Add video name in modal when blocking/removing a video
+ * Improve notification settings organization
* Video/live views:
* Add ability for admins to change local buffer update interval
* Add ability for admins to change view expiration for a specific IP
* Correctly set HTTP request timeout
* Process slow/bad targets in a dedicated queue
* Optimize ActivityPub outbox fetch
+ * Automatically update `publishedAt` attribute when re-streaming in a permanent live
* Add ability for users to view their followers
* Add ability for users to filter their videos per channel
* Add ability for admins to show author display name instead of username in video miniatures [#4422](https://github.com/Chocobozzz/PeerTube/pull/4422)
* Fix account switch in account channels page
* Hide job progress information for jobs that don't support it
* Fix player settings menu keyboard navigation
+ * Fix player placeholder width
+ * Fix playlist miniature size with big description
+ * Correctly escape meta tags
+ * Fix audio upload client bug if not enabled by instance
+ * Add header Vary Accept-Language [#4588](https://github.com/Chocobozzz/PeerTube/pull/4588)
+ * Fix additional extensions admin config description
+ * Fix upload of video with long filename
+ * Fix pending transcoding counter with failed job
+ * Fix client header search on ios
+ * Fix iframe attribute `allow-popups` for oembed
+ * Fix theme update when logged in
+ * Fix homepage title
## v3.4.1