You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _guides/upgrade.md
+33-7Lines changed: 33 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,42 @@
1
1
---
2
2
layout: documentation
3
-
title: Upgrade to The Lounge v3
4
-
description: List of all potential breaking changes when upgrading to The Lounge v3 from an older version
3
+
title: Upgrade The Lounge
4
+
description: List of all potential breaking changes when upgrading The Lounge from an older version
5
5
---
6
6
7
+
## Upgrading to The Lounge v4
8
+
9
+
We are marking this release as a major update due to the sheer amount of internal code changes, and it is impossible to predict what could have been broken as a result.
10
+
11
+
Before upgrading, make sure The Lounge does not report any warnings or deprecations in the console.
12
+
13
+
This guide lists all breaking changes made between the releases of v3.3.0 and v4.0.0 that may require you taking actions before upgrading and running The Lounge.
14
+
15
+
For a more detailed list of all changes and additions, refer to the [release notes](https://github.com/thelounge/thelounge/releases/tag/v4.0.0) and [all merged pull requests](https://github.com/thelounge/thelounge/pulls?q=milestone%3A4.0.0+is%3Amerged+-label%3A%22Type%3A+Dependencies%22+-label%3A%22Meta%3A+Internal%22) for this release.
16
+
17
+
### Breaking changes
18
+
19
+
- You need Node.js v10.15 or more recent.
20
+
- Some default CSS selectors have changed, so you might need to update your themes or custom CSS accordingly.
21
+
- Replace `.chan` class in sidebar with `.channel-list-item`. This class can be used globally, and it isn't recommended to prefix it with `#sidebar` or any other selector, since these elements might be used outside the sidebar in future features.
22
+
- Remove the type class (lobby, channel, query and special) from `.channel-list-item` and `.chan` and instead use a data attribute e.g. `data-type="lobby"`. Use the following selector in themes: e.g. `.channel-list-item[data-type="lobby"]`.
23
+
For the child element of the `#chat` container, remove classes `.chan` and `.active` and add class `.chat-view`. Before: `.chan.channel`, now: `.chat-view[data-type="channel"]`.
24
+
- Remove `#windows`.
25
+
-`#upload-progressbar` is now part of `#form` so the content doesn't shift.
26
+
- Added a CSS variable `--overlay-bg-color` for sidebar overlay, upload dragover overlay.
27
+
- Relocate `.not-secure` and `.not-connected` classes to `.channel-list-item` from parent element.
28
+
- All hash urls have changed to include a leading slash due to vue-router. For example `/#settings` is now `/#/settings`. The old urls should still work but they redirect to the new format.
29
+
30
+
31
+
## Upgrading to The Lounge v3
32
+
7
33
This guide lists all breaking changes made between the releases of v2.7.1 and v3.0.0 that may require you taking actions before upgrading and running The Lounge.
8
34
9
35
In addition to the items listed in this guide, you may want to enable or configure new features of The Lounge v3 manually. For a more detailed list of all changes and additions, refer to the [release notes](https://github.com/thelounge/thelounge/releases/tag/v3.0.0) and [all merged pull requests](https://github.com/thelounge/thelounge/pulls?q=milestone%3A3.0.0+is%3Amerged+-label%3A%22Type%3A+Dependencies%22+-label%3A%22Meta%3A+Internal%22) for this release.
10
36
11
37
{% include toc.md %}
12
38
13
-
## TL;DR
39
+
###TL;DR
14
40
15
41
- You need Node.js v6.13.0 or more recent.
16
42
- Everything called `lounge` (such as commands, directories, etc.) becomes `thelounge`.
@@ -19,15 +45,15 @@ In addition to the items listed in this guide, you may want to enable or configu
19
45
- In the client, we warn when using insecure IRC servers, some shortcuts have changed, and the browser support list has changed.
20
46
- User log format has changed and may break your tools and scripts.
21
47
22
-
## Environment
48
+
###Environment
23
49
24
50
- The Lounge v3.0.0 now requires Node.js v6.13.0 or more recent to run. However, we recommend using the latest Node.js v8.x, current LTS version at the time of writing this guide. [Node.js v7 and v9 have reached End-of-Life](https://github.com/nodejs/Release) and are therefore not supported.
25
51
- The environment variable `$LOUNGE_HOME` that can be used to point The Lounge to a specific home directory (housing configuration file, packages, user settings, etc.) is now called `$THELOUNGE_HOME`. More details [here](/docs/usage#specifying-a-different-configuration-file).
26
52
- In situations where The Lounge has been installed [from the `npmjs.com` registry](https://www.npmjs.com/package/thelounge) or [from source](https://github.com/thelounge/thelounge), we now recommend using the [`yarn` package manager](https://yarnpkg.com/) in lieu of the `npm`. More details [here](/docs/install-and-upgrade).
27
53
- User log files, located `${THELOUNGE_HOME}/logs/<user>/` by default, have changed. Server directories are now named after their name in The Lounge plus a randomized identifier to avoid duplicates (see [#2366](https://github.com/thelounge/thelounge/pull/2366)). Changes were also made to the logging format itself (see [#2501](https://github.com/thelounge/thelounge/pull/2501)). If you are using tools or scripts relying on log format, you will need to update them accordingly.
28
54
- The Docker image has been renamed into [`thelounge/thelounge`](https://hub.docker.com/r/thelounge/thelounge/) on DockerHub. The base image does not come with `vim` nor `nano`, and the `slim` flavor was removed. The default data path was changed from `/home/lounge/data` to `/var/opt/thelounge`.
29
55
30
-
## CLI
56
+
###CLI
31
57
32
58
- The `lounge` CLI has now been renamed into `thelounge`.
33
59
- The Lounge will now print a warning on the server console if CLI commands are not run under the same system user than the configuration file owner.
@@ -41,7 +67,7 @@ In addition to the items listed in this guide, you may want to enable or configu
41
67
- The `--home` option has been removed. Use the `$THELOUNGE_HOME` environment variable instead.
42
68
-`thelounge config` has been removed. To edit the configuration file, you must now open it manually using your preferred editor. As a reminder, The Lounge's home directory is displayed as part of `thelounge --help`, and the actual configuration file path loaded by The Lounge is displayed when running `thelounge start`.
43
69
44
-
## Configuration file
70
+
###Configuration file
45
71
46
72
- The `autoload` setting has had no effect since v2.2.0 as The Lounge automatically loads user configuration files on creation, edition, and deletion. The warning recommending to remove this setting from your configuration file has now been removed.
47
73
- The `debug` setting has been an object since v2.2.0 to control debugging with more granularity. Available keys are `ircFramework` and `raw`. The fallback allowing you to use the previous boolean format has now been removed.
@@ -50,7 +76,7 @@ In addition to the items listed in this guide, you may want to enable or configu
50
76
- Two themes that previously shipped with The Lounge, `crypto` and `zenburn`, have now been extracted into external themes at [`thelounge-theme-crypto`](https://github.com/thelounge/thelounge-theme-crypto) and [`thelounge-theme-zenburn`](https://github.com/thelounge/thelounge-theme-zenburn). If you were using them in the `theme` setting, you need to install them and update the setting accordingly. These themes are now looking for maintainers.
51
77
- The `logs.format` and `logs.timezone` settings have been removed. The Lounge now logs timestamps using a format of `YYYY-MM-DD HH:mm:ss` (which used to be the default value) in UTC timezone.
52
78
53
-
## Client
79
+
###Client
54
80
55
81
- IRC servers connected to an insecure connection (i.e. the TLS checkbox was not checked when filling the network connect form) now display a warning sign icon and are colored in orange in the channel list. If it is available for this network, you can change this setting by right-clicking on the network name in the channel list, click on "Edit this network...", and update the checkbox (along with the port and sometimes the hostname) before saving the settings again. You will have to disconnect and re-connect to this server.
56
82
- To navigate through windows in the channel list from your keyboard, you must now use <kbd>alt</kbd>+<kbd>↓</kbd> / <kbd>alt</kbd>+<kbd>↑</kbd> in lieu of <kbd>ctrl</kbd>+<kbd>↓</kbd> / <kbd>ctrl</kbd>+<kbd>↑</kbd>, more often used in other chat clients.
0 commit comments