ActivityPub-federated video streaming platform using P2P directly in your web browser
Breaking: only support node 18
Chocobozzz678ae8abbdb2
diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.ymlindex 3bb9036f2e..e945070180 100644--- a/.github/workflows/benchmark.yml+++ b/.github/workflows/benchmark.yml@@ -35,7 +35,7 @@ jobs:- uses: './.github/actions/reusable-prepare-peertube-build'with:- node-version: '16.x'+ node-version: '18.x'- uses: './.github/actions/reusable-prepare-peertube-run'diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.ymlindex bb1f27a6b3..c56aed67a2 100644--- a/.github/workflows/nightly.yml+++ b/.github/workflows/nightly.yml@@ -18,7 +18,7 @@ jobs:- uses: './.github/actions/reusable-prepare-peertube-build'with:- node-version: '16.x'+ node-version: '18.x'- name: Buildrun: npm run nightlydiff --git a/.github/workflows/stats.yml b/.github/workflows/stats.ymlindex 573b42975f..493043b19f 100644--- a/.github/workflows/stats.yml+++ b/.github/workflows/stats.yml@@ -22,7 +22,7 @@ jobs:- uses: './.github/actions/reusable-prepare-peertube-build'with:- node-version: '16.x'+ node-version: '18.x'- name: Angular bundlewatchuses: jackyef/bundlewatch-gh-action@masterdiff --git a/.github/workflows/test.yml b/.github/workflows/test.ymlindex baddba758e..5e78ff0387 100644--- a/.github/workflows/test.yml+++ b/.github/workflows/test.yml@@ -56,7 +56,7 @@ jobs:- uses: './.github/actions/reusable-prepare-peertube-build'with:- node-version: '16.x'+ node-version: '18.x'- uses: './.github/actions/reusable-prepare-peertube-run'diff --git a/package.json b/package.jsonindex ca0a0ff150..7f49445d34 100644--- a/package.json+++ b/package.json@@ -5,7 +5,7 @@"private": true,"licence": "AGPL-3.0","engines": {- "node": ">=16.x",+ "node": ">=18.x","yarn": ">=1.x"},"type": "module",diff --git a/server/core/lib/opentelemetry/metric-helpers/nodejs-observers-builder.ts b/server/core/lib/opentelemetry/metric-helpers/nodejs-observers-builder.tsindex 40df12b8d5..b22e417238 100644--- a/server/core/lib/opentelemetry/metric-helpers/nodejs-observers-builder.ts+++ b/server/core/lib/opentelemetry/metric-helpers/nodejs-observers-builder.ts@@ -107,12 +107,7 @@ export class NodeJSObserversBuilder {const obs = new PerformanceObserver(list => {const entry = list.getEntries()[0]- // Node < 16 uses entry.kind- // Node >= 16 uses entry.detail.kind- // See: https://nodejs.org/docs/latest-v16.x/api/deprecations.html#deprecations_dep0152_extension_performanceentry_properties- const kind = entry.detail- ? kinds[(entry.detail as NodeGCPerformanceDetail).kind]- : kinds[(entry as any).kind]+ const kind = kinds[(entry.detail as NodeGCPerformanceDetail).kind]// Convert duration from milliseconds to secondshistogram.record(entry.duration / 1000, {diff --git a/support/doc/dependencies.md b/support/doc/dependencies.mdindex 1f51278058..f43f9f9536 100644--- a/support/doc/dependencies.md+++ b/support/doc/dependencies.md@@ -4,7 +4,7 @@Main dependencies version supported by PeerTube:- * `node` >=16.x+ * `node` >=18.x* `yarn` >=1.x* `postgres` >=10.x* `redis-server` >=6.x@@ -41,7 +41,7 @@ _note_: only **LTS** versions of external dependencies are supported. If no LTS2. It would be wise to disable root access and to continue this tutorial with a user with sudoers group access. You can see a guide for how to do this in Debian/Ubuntu [here](https://www.digitalocean.com/community/tutorials/how-to-add-and-delete-users-on-ubuntu-20-04).-3. Install NodeJS 16.x:+3. Install NodeJS 18.x:[https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions](https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions)4. Install yarn, and be sure to have [a recent version](https://github.com/yarnpkg/yarn/releases/latest):[https://yarnpkg.com/en/docs/install#linux-tab](https://yarnpkg.com/en/docs/install#linux-tab)@@ -96,7 +96,7 @@ sudo systemctl start redis postgresql## CentOS 7-1. Install NodeJS 16.x:+1. Install NodeJS 18.x:[https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora](https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora)2. Install yarn:@@ -143,7 +143,7 @@ sudo systemctl enable --now postgresql## Centos 8-1. Install NodeJS 16.x:+1. Install NodeJS 18.x:[https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora](https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora)2. Install yarn:@@ -193,9 +193,9 @@ sudo systemctl enable --now postgresqlsudo dnf update -y```-2. Install NodeJS 16.x:+2. Install NodeJS 18.x:```-sudo dnf module install -y nodejs:16+sudo dnf module install -y nodejs:18```3. Install yarn:@@ -252,7 +252,7 @@ su my-peertube-user3. (Optional) Install certbot (choose instructions for your distribution):[https://certbot.eff.org/all-instructions](https://certbot.eff.org/all-instructions)-4. Install NodeJS 16.x:+4. Install NodeJS 18.x:[https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora](https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora)5. Install yarn:@@ -345,7 +345,7 @@ echo fs.inotify.max_user_watches=582222 | sudo tee -a /etc/sysctl.conf && sudo s2. Install Node.JS```-sudo dnf module install nodejs:16+sudo dnf module install nodejs:18```3. Install Yarndiff --git a/support/docker/production/Dockerfile.bookworm b/support/docker/production/Dockerfile.bookwormindex bcdef7a7f4..d9b639349b 100644--- a/support/docker/production/Dockerfile.bookworm+++ b/support/docker/production/Dockerfile.bookworm@@ -1,4 +1,4 @@-FROM node:16-bookworm-slim+FROM node:18-bookworm-slim# Install dependenciesRUN apt update \