]> Untitled Git - lemmy.git/blob - RELEASES.md
Updating releases.md
[lemmy.git] / RELEASES.md
1 # Lemmy v0.10.3 Release (2021-04-07)
2
3 - Fixing instances page.
4 - Fixed unban not working.
5 - Fixed post title fetching and cross-post search.
6 - Fixed navigating to a user page.
7
8 # Lemmy v0.10.2 Release (2021-04-05)
9
10 - Forcing a crash if config.hjson fails to load. Should show errors easier.
11
12 # Lemmy v0.10.0 Release (2021-04-05)
13
14 ## Changes
15
16 Since our last release in February, we've had [~150](https://github.com/LemmyNet/lemmy/compare/0.9.9...main) commits to Lemmy. The biggest changes, as we'll outline below, are a split of Lemmy's user tables into federated and local tables, necessitating a `v3` of Lemmy's API, federated moderation, i18n support in join.lemmy.ml, and lots of back-end cleanup.
17
18 ### Lemmy Server
19
20 #### General
21
22 - Rewrote config implementation, finally allowing us to use newer Rust versions.
23 - Removed categories. 
24 - Various refactors.
25
26 #### API
27
28 - A full list of the API changes can be seen on this diff of [lemmy-js-client: 0.9.9 -> 0.10.0](https://github.com/LemmyNet/lemmy-js-client/compare/0.9.9...0.10.0-rc.13) .
29 - Login invalidation on password change, thanks to @Mart-Bogdan
30
31 #### Federation
32
33 - It is now possible to add users from other instances as community mods.
34 - Federating Matrix ID.
35 - Many changes for better compatibility with ActivityPub standard.
36
37 #### Database 
38
39 - Split the `user_` into `person` and `local_user` tables.
40 - Strictly typed commonly used ID columns, to prevent DB errors using `i32` as ids.
41 - Strictly typed URL fields, thanks to ajyoon.
42 - Created default DB forms, now used in all the unit tests.
43
44 ### Lemmy UI
45
46 - Now using utf-8 emojis.
47 - Support for all the above changes to Lemmy.
48 - Typescript-safe i18n strings, thanks to @shilangyu.
49 - Added expandable post text (click on open book icon).
50 - Prettier cross-posting, which does smart quoting.
51 - Bugfixes for restoring scroll position on post page, custom site favicons, and autocomplete for login fields.
52
53 ### Lemmy Docs
54
55 - Gazconroy built an [Async API spec for Lemmy](https://join.lemmy.ml/api/index.html), that now serves as our main API docs.
56
57 ### join.lemmy.ml
58
59 - Rewrote in inferno isomorphic, added i18n support via [weblate](https://weblate.yerbamate.ml/projects/lemmy/joinlemmy/).
60 - Added a section on the support page thanking contributors.
61 - Changed some page urls / titles
62
63 ## Upgrade notes
64
65 **Important**: there are multiple breaking changes:
66
67 - Configuration via environment variables is not supported anymore, you must have all your config in the [lemmy.hjson](https://github.com/LemmyNet/lemmy/blob/main/ansible/templates/config.hjson) file ( except for `LEMMY_CONFIG_LOCATION` ).
68 - The config format for `allowed_instances` and `blocked_instances` has changed, and you need to adjust your config file manually:
69     - before: `allowed_instances: ds9.lemmy.ml,enterprise.lemmy.ml`
70     - now: `allowed_instances: ["ds9.lemmy.ml", "enterprise.lemmy.ml"]` , and only one of the `allowed_instances` or `blocked_instances` blocks can be set.
71 - The API has been upgraded from `v2` to `v3`, so all clients need to be updated: [lemmy-js-client: 0.9.9 -> 0.10.0](https://github.com/LemmyNet/lemmy-js-client/compare/0.9.9...0.10.0-rc.13) .
72
73 If you'd like to make a DB backup before upgrading, follow [this guide](https://join.lemmy.ml/docs/en/administration/backup_and_restore.html).
74
75 To upgrade your instance to `v0.10.0`, simply follow the instructions in the documentation:
76
77 - [Upgrade with manual Docker installation](https://join.lemmy.ml/docs/en/administration/install_docker.html#updating)
78 - [Upgrade with Ansible installation](https://join.lemmy.ml/docs/en/administration/install_ansible.html)
79
80
81 ## Compilation time
82
83 || v0.9.0 (Rust 1.47) | v0.10.0 (Rust 1.47) | v0.10.0 (Rust 1.51) |
84 |-| -------- | -------- | -------- |
85 |Clean | 140s     | 146s     | 119s     |
86 | Incremental | 28s | 22s | 19s |
87
88 Despite ongoing efforts to speed up compilation, it has actually gotten slower when comparing with the same Rust version. Only thanks to improvements in newer Rust versions has our build process gotten faster. This could be simply because we added more code, while Lemmy v0.9.0 had 22.4k lines of Rust, v0.10.0 has 23.8k (an increase of 6%).
89
90 v0.9.0 build graph:
91 ![](https://lemmy.ml/pictrs/image/GVBqFnrLqG.jpg)
92
93 v0.10.0 build graph:
94 ![](https://lemmy.ml/pictrs/image/NllzjVEyNK.jpg)
95
96 We extracted the crates `lemmy_api_crud` and `lemmy_apub_receive` from `lemmy_api` and `lemmy_apub`, respectively, and renamed `lemmy_structs` to `lemmy_api_common`. In the second graph you can see how parts of the api and apub crates are now built nicely in parallel, speeding up builds on multi-core systems.
97
98 On the other hand, some crates have gotten much slower to compile, in particular `lemmy_db_queries` (6.5s slower), `lemmy_apub` (6.5s slower if we include `lemmy_apub_receive`). And `lemmy_db_views` is quite slow, just as before.
99
100 # Lemmy v0.9.9 Release (2021-02-19)
101
102 ## Changes
103
104 ### Lemmy backend
105 - Added an federated activity query sorting order.
106 - Explicitly marking posts and comments as public.
107 - Added a `NewComment` / forum sort for posts.
108 - Fixed an issue with not setting correct published time for fetched posts.
109 - Fixed an issue with an open docker port on lemmy-ui.
110 - Using lemmy post link for RSS link.
111 - Fixed reason and display name lengths to use char counts instead.
112
113 ### Lemmy-ui
114
115 - Updated translations.
116 - Made websocket host configurable.
117 - Added some accessibility features.
118 - Always showing password reset link.
119
120 # Lemmy v0.9.7 Release (2021-02-08)
121
122 ## Changes
123
124 - Posts and comments are no longer live-sorted (meaning most content should stay in place).
125 - Fixed an issue with the create post title field not expanding when copied from iframely suggestion.
126 - Fixed broken federated community paging / sorting.
127 - Added aria attributes for accessibility, thx to @Mitch Lillie.
128 - Updated translations and added croatian.
129 - No changes to lemmy back-end.
130
131 # Lemmy v0.9.6 Release (2021-02-05)
132
133 ## Changes
134
135 - Fixed inbox_urls not being correctly set, which broke federation in `v0.9.5`. Added some logging to catch these.
136 - Fixing community search not using auth.
137 - Moved docs to https://join.lemmy.ml
138 - Fixed an issue w/ lemmy-ui with forms being cleared out.
139
140 # Lemmy v0.9.4 Pre-Release (2021-02-02)
141
142 ## Changes
143
144 ### Lemmy
145
146 - Fixed a critical bug with votes and comment unlike responses not being `0` for your user.
147 - Fixed a critical bug with comment creation not checking if its parent comment is in the post.
148 - Serving proper activities for community outbox.
149 - Added some active user counts, including `users_active_day`, `users_active_week`, `users_active_month`, `users_active_half_year` to `SiteAggregates` and `CommunityAggregates`. (Also added to lemmy-ui)
150 - Made sure banned users can't follow.
151 - Added `FederatedInstances` to `SiteResponse`, to show allowed and blocked instances. (Also added to lemmy-ui)
152 - Added a `MostComments` sort for posts. (Also added to lemmy-ui)
153
154 ### Lemmy-UI
155
156 - Added a scroll position restore to lemmy-ui.
157 - Reworked the combined inbox so incoming comments don't wipe out your current form.
158 - Fixed an updated bug on the user page.
159 - Fixed cross-post titles and body getting clipped.
160 - Fixing the post creation title height.
161 - Squashed some other smaller bugs.
162
163 # Lemmy v0.9.0 Release (2021-01-25)
164
165 ## Changes
166
167 Since our last release in October of last year, and we've had [~450](https://github.com/LemmyNet/lemmy/compare/v0.8.0...main) commits.
168
169 The biggest changes, as we'll outline below, are a re-work of Lemmy's database structure, a `v2` of Lemmy's API, and activitypub compliance fixes. The new re-worked DB is much faster, easier to maintain, and [now supports hierarchical rather than flat objects in the new API](https://github.com/LemmyNet/lemmy/issues/1275).
170
171 We've also seen the first release of [Lemmur](https://github.com/krawieck/lemmur/releases/tag/v0.1.1), an android / iOS (soon) / windows / linux client, as well as [Lemmer](https://github.com/uuttff8/Lemmy-iOS), a native iOS client. Much thanks to @krawieck, @shilangyu, and @uuttff8 for making these great clients. If you can, please contribute to their [patreon](https://www.patreon.com/lemmur) to help fund lemmur development.
172
173 ## LemmyNet projects
174
175 ### Lemmy Server
176
177 - [Moved views from SQL to Diesel](https://github.com/LemmyNet/lemmy/issues/1275). This was a spinal replacement for much of lemmy.
178   - Removed all the old fast_tables and triggers, and created new aggregates tables.
179 - Added a `v2` of the API to support the hierarchical objects created from the above changes.
180 - Moved continuous integration to [drone](https://cloud.drone.io/LemmyNet/lemmy/), now includes formatting, clippy, and cargo build checks, unit testing, and federation testing. [Drone also deploys both amd64 and arm64 images to dockerhub.](https://hub.docker.com/r/dessalines/lemmy)
181 - Split out documentation into git submodule.
182 - Shortened slur filter to avoid false positives.
183 - Added query performance testing and comparisons. Added indexes to make sure every query is `< 30 ms`.
184 - Added compilation time testing.
185
186 ### Federation
187
188 This release includes some bug fixes for federation, and some changes to get us closer to compliance with the ActivityPub standard.
189
190 - [Community bans now federating](https://github.com/LemmyNet/lemmy/issues/1287).
191 - [Local posts sometimes got marked as remote](https://github.com/LemmyNet/lemmy/issues/1302).
192 - [Creator of post/comment was not notified about new child comments](https://github.com/LemmyNet/lemmy/issues/1325).
193 - [Community deletion now federated](https://github.com/LemmyNet/lemmy/issues/1256).
194
195 None of these are breaking changes, so federation between 0.9.0 and 0.8.11 will work without problems.
196
197 ### Lemmy javascript / typescript client
198
199 - Updated the [lemmy-js-client](https://github.com/LemmyNet/lemmy-js-client) to use the new `v2` API. Our API docs now reference this project's files, to show what the http / websocket forms and responses should look like.
200 - Drone now handles publishing its [npm packages.](https://www.npmjs.com/package/lemmy-js-client)
201
202 ### Lemmy-UI
203
204 - Updated it to use the `v2` API via `lemmy-js-client`, required changing nearly every component.
205 - Added a live comment count.
206 - Added drone deploying, and builds for ARM.
207 - Fixed community link wrapping.
208 - Various other bug fixes.
209
210
211 ### Lemmy Docs
212
213 - We moved documentation into a separate git repository, and support translation for the docs now!
214 - Moved our code of conduct into the documentation.
215
216 ## Upgrading
217
218 If you'd like to make a DB backup before upgrading, follow [this guide](https://join.lemmy.ml/docs/en/administration/backup_and_restore.html).
219
220 - [Upgrade with manual Docker installation](https://join.lemmy.ml/docs/en/administration/install_docker.html#updating)
221 - [Upgrade with Ansible installation](https://join.lemmy.ml/docs/en/administration/install_ansible.html)
222
223 # Lemmy v0.8.0 Release (2020-10-16)
224
225 ## Changes
226
227 We've been working at warp speed since our `v0.7.0` release in June, adding over [870 commits](https://github.com/LemmyNet/lemmy/compare/v0.7.0...main) since then. :sweat: 
228
229 Here are some of the bigger changes:
230
231 ### LemmyNet projects
232
233 - Created [LemmyNet](https://github.com/LemmyNet), where all lemmy-related projects live.
234 - Split out the frontend into a separete repository, [lemmy-ui](https://github.com/LemmyNet/lemmy-ui)
235 - Created a [lemmy-js-client](https://github.com/LemmyNet/lemmy-js-client), for any js / typescript developers.
236 - Split out i18n [lemmy-translations](https://github.com/LemmyNet/lemmy-translations), that any app or site developers can import and use. Lemmy currently supports [~30 languages!](https://weblate.yerbamate.ml/projects/lemmy/lemmy/)
237
238 ### Lemmy Server
239
240 #### Federation
241
242 - The first **federation public beta release**, woohoo :fireworks: 
243 - All Lemmy functionality now works over ActivityPub (except turning remote users into mods/admins)
244 - Instance allowlist and blocklist
245 - Documentation for [admins](https://join.lemmy.ml/docs/administration_federation.html) and [devs](https://join.lemmy.ml/docs/contributing_federation_overview.html) on how federation works
246 - Upgraded to newest versions of @asonix activitypub libraries
247 - Full local federation setup for manual testing
248 - Automated testing for nearly every federation action
249 - Many additional security checks
250 - Lots and lots of refactoring
251 - Asynchronous sending of outgoing activities
252
253 ### User Interface
254
255 - Separated the UI from the server code, in [lemmy-ui](https://github.com/LemmyNet/lemmy-ui).
256 - The UI can now read with javascript disabled! 
257 - It's now a fully isomorphic application using [inferno-isomorphic](https://infernojs.org/docs/guides/isomorphic). This means that page loads are now much faster, as the server does the work.
258 - The UI now also supports open-graph and twitter cards! Linking to lemmy posts (from whatever platform you use) looks pretty now: ![](https://i.imgur.com/6TZ2v7s.png)
259 - Improved the search page ( more features incoming ).
260 - The default view is now `Local`, instead of `All`, since all would show all federated posts.
261 - User settings are now shared across browsers ( a page refresh will pick up changes ).
262 - A much leaner mobile view.
263
264 #### Backend
265
266 - Re-organized the rust codebase into separate workspaces for backend and frontend.
267 - Removed materialized views, making the database **a lot faster**.
268 - New post sorts `Active` (previously called hot), and `Hot`. Active shows posts with recent comments, hot shows highly ranked posts.
269 - New sort for `Local` ( meaning from local communities).
270 - Customizeable site, user, and community icons and banners.
271 - Added user preferred names / display names, bios, and cakedays.
272 - Visual / Audio captchas through the lemmy API.
273 - Lots of API field verifications.
274 - Upgraded to pictrs-v2 ( thanks to @asonix )
275 - Wayyy too many bugfixes to count.
276
277 ## Contributors
278
279 We'd also like to thank both the [NLnet foundation](https://nlnet.nl/) for their support in allowing us to work full-time on Lemmy ( as well as their support for [other important open-source projects](https://nlnet.nl/project/current.html) ), [those who sponsor us](https://lemmy.ml/sponsors), and those who [help translate Lemmy](https://weblate.yerbamate.ml/projects/lemmy/). Every little bit does help. We remain committed to never allowing advertisements, monetizing, or venture-capital in Lemmy; software should be communal, and should benefit humanity, not a small group of company owners. 
280
281 ## Upgrading
282
283 - [with manual Docker installation](https://join.lemmy.ml/docs/administration_install_docker.html#updating)
284 - [with Ansible installation](https://join.lemmy.ml/docs/administration_install_ansible.html)
285
286 ## Testing Federation
287
288 Federation is finally ready in Lemmy, pending possible bugs or other issues. So for now we suggest to enable federation only on test servers, or try it on our own test servers ( [enterprise](https://enterprise.lemmy.ml/), [ds9](https://ds9.lemmy.ml/), [voyager](https://voyager.lemmy.ml/) ).
289
290 If everything goes well, after a few weeks we will enable federation on lemmy.ml, at first with a limited number of trusted instances. We will also likely change the domain to https://lemmy.ml . Keep in mind that changing domains after turning on federation will break things.
291
292 To enable on your instance, edit your [lemmy.hjson](https://github.com/LemmyNet/lemmy/blob/main/config/defaults.hjson#L60) federation section to `enabled: true`, and restart.
293
294 ### Connecting to another server
295
296 The server https://ds9.lemmy.ml has open federation, so after either adding it to the `allowed_instances` list in your `config.hjson`, or if you have open federation, you don't need to add it explicitly.
297
298 To federate / connect with a server, type in `!community_name@server.tld`, in your server's search box [like so](https://voyager.lemmy.ml/search/q/!main%40ds9.lemmy.ml/type/All/sort/TopAll/page/1).
299
300 To connect with the `main` community on ds9, the search is `!main@ds9.lemmy.ml`.
301
302 You can then click the community, and you will see a local version of the community, which you can subscribe to. New posts and comments from `!main@ds9.lemmy.ml` will now show up on your front page, or `/c/All`
303
304 # Lemmy v0.7.40 Pre-Release (2020-08-05)
305
306 We've [added a lot](https://github.com/LemmyNet/lemmy/compare/v0.7.40...v0.7.0) in this pre-release:
307
308 - New post sorts `Active` (previously called hot), and `Hot`. Active shows posts with recent comments, hot shows highly ranked posts.
309 - Customizeable site icon and banner, user icon and banner, and community icon and banner.
310 - Added user preferred names / display names, bios, and cakedays.
311 - User settings are now shared across browsers (a page refresh will pick up changes).
312 - Visual / Audio captchas through the lemmy API.
313 - Lots of UI prettiness.
314 - Lots of bug fixes.
315 - Lots of additional translations.
316 - Lots of federation prepping / additions / refactors.
317
318 This release removes the need for you to have a pictrs nginx route (the requests are now routed through lemmy directly). Follow the upgrade instructions below to replace your nginx with the new one.
319
320 ## Upgrading
321
322 **With Ansible:**
323
324 ```
325 # run these commands locally
326 git pull
327 cd ansible
328 ansible-playbook lemmy.yml
329 ```
330
331 **With manual Docker installation:**
332 ```
333 # run these commands on your server
334 cd /lemmy
335 wget https://raw.githubusercontent.com/LemmyNet/lemmy/master/ansible/templates/nginx.conf
336 # Replace the {{ vars }}
337 sudo mv nginx.conf /etc/nginx/sites-enabled/lemmy.conf
338 sudo nginx -s reload
339 wget https://raw.githubusercontent.com/LemmyNet/lemmy/master/docker/prod/docker-compose.yml
340 sudo docker-compose up -d
341 ```
342
343
344 # Lemmy v0.7.0 Release (2020-06-23)
345
346 This release replaces [pictshare](https://github.com/HaschekSolutions/pictshare)
347 with [pict-rs](https://git.asonix.dog/asonix/pict-rs), which improves performance
348 and security.
349
350 Overall, since our last major release in January (v0.6.0), we have closed over
351 [100 issues!](https://github.com/LemmyNet/lemmy/milestone/16?closed=1)
352
353 - Site-wide list of recent comments
354 - Reconnecting websockets
355 - Many more themes, including a default light one.
356 - Expandable embeds for post links (and thumbnails), from
357 [iframely](https://github.com/itteco/iframely)
358 - Better icons
359 - Emoji autocomplete to post and message bodies, and an Emoji Picker
360 - Post body now searchable
361 - Community title and description is now searchable
362 - Simplified cross-posts
363 - Better documentation
364 - LOTS more languages
365 - Lots of bugs squashed
366 - And more ...
367
368 ## Upgrading
369
370 Before starting the upgrade, make sure that you have a working backup of your
371 database and image files. See our
372 [documentation](https://join.lemmy.ml/docs/administration_backup_and_restore.html)
373 for backup instructions.
374
375 **With Ansible:**
376
377 ```
378 # deploy with ansible from your local lemmy git repo
379 git pull
380 cd ansible
381 ansible-playbook lemmy.yml
382 # connect via ssh to run the migration script
383 ssh your-server
384 cd /lemmy/
385 wget https://raw.githubusercontent.com/LemmyNet/lemmy/master/docker/prod/migrate-pictshare-to-pictrs.bash
386 chmod +x migrate-pictshare-to-pictrs.bash
387 sudo ./migrate-pictshare-to-pictrs.bash
388 ```
389
390 **With manual Docker installation:**
391 ```
392 # run these commands on your server
393 cd /lemmy
394 wget https://raw.githubusercontent.com/LemmyNet/lemmy/master/ansible/templates/nginx.conf
395 # Replace the {{ vars }}
396 sudo mv nginx.conf /etc/nginx/sites-enabled/lemmy.conf
397 sudo nginx -s reload
398 wget https://raw.githubusercontent.com/LemmyNet/lemmy/master/docker/prod/docker-compose.yml
399 wget https://raw.githubusercontent.com/LemmyNet/lemmy/master/docker/prod/migrate-pictshare-to-pictrs.bash
400 chmod +x migrate-pictshare-to-pictrs.bash
401 sudo bash migrate-pictshare-to-pictrs.bash
402 ```
403
404 **Note:** After upgrading, all users need to reload the page, then logout and
405 login again, so that images are loaded correctly.
406
407 # Lemmy v0.6.0 Release (2020-01-16)
408
409 `v0.6.0` is here, and we've closed [41 issues!](https://github.com/LemmyNet/lemmy/milestone/15?closed=1) 
410
411 This is the biggest release by far:
412
413 - Avatars!
414 - Optional Email notifications for username mentions, post and comment replies.
415 - Ability to change your password and email address.
416 - Can set a custom language.
417 - Lemmy-wide settings to disable downvotes, and close registration.
418 - A better documentation system, hosted in lemmy itself.
419 - [Huge DB performance gains](https://github.com/LemmyNet/lemmy/issues/411) (everthing down to < `30ms`) by using materialized views. 
420 - Fixed major issue with similar post URL and title searching.
421 - Upgraded to Actix `2.0`
422 - Faster comment / post voting.
423 - Better small screen support.
424 - Lots of bug fixes, refactoring of back end code.
425
426 Another major announcement is that Lemmy now has another lead developer besides me, [@felix@radical.town](https://radical.town/@felix). Theyve created a better documentation system, implemented RSS feeds, simplified docker and project configs, upgraded actix, working on federation, a whole lot else.
427
428 https://lemmy.ml