Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

feat(node): switched to node v24 (#616)

Corentin Thomasset1922f24c0ad2
diff --git a/.changeset/metal-pianos-think.md b/.changeset/metal-pianos-think.md
new file mode 100644
index 00000000..34985820
--- /dev/null
+++ b/.changeset/metal-pianos-think.md
@@ -0,0 +1,5 @@
+---
+"@papra/docker": patch
+---
+
+Upgraded to node v24
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index cd5c2881..5499407b 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -12,14 +12,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
-
+
- name: Install pnpm
uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
- node-version: 22
- cache: 'pnpm'
+ node-version: 24
+ cache: "pnpm"
- name: Install dependencies
run: pnpm i
@@ -44,4 +44,4 @@ jobs:
run: pnpm -r --parallel -F "./apps/*" build
- name: Ensure no non-excluded files are changed for the whole repo
- run: git diff --exit-code > /dev/null || (echo "After running the CI, some un-committed changes were detected. Please ensure cleanness before merging." && exit 1)
\ No newline at end of file
+ run: git diff --exit-code > /dev/null || (echo "After running the CI, some un-committed changes were detected. Please ensure cleanness before merging." && exit 1)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index b6378091..62eebd41 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -25,7 +25,7 @@ jobs:
- uses: actions/setup-node@v4
with:
- node-version: 22
+ node-version: 24
cache: "pnpm"
# Ensure npm 11.5.1 or later is installed
diff --git a/.nvmrc b/.nvmrc
index 8fdd954d..a45fd52c 100644
--- a/.nvmrc
+++ b/.nvmrc
@@ -1 +1 @@
-22
\ No newline at end of file
+24
diff --git a/apps/docs/src/content/docs/03-guides/02-intake-emails-with-cf-email-worker.mdx b/apps/docs/src/content/docs/03-guides/02-intake-emails-with-cf-email-worker.mdx
index 8c76f393..569c14c7 100644
--- a/apps/docs/src/content/docs/03-guides/02-intake-emails-with-cf-email-worker.mdx
+++ b/apps/docs/src/content/docs/03-guides/02-intake-emails-with-cf-email-worker.mdx
@@ -52,7 +52,7 @@ The code for the Email Worker proxy is available in the [papra-hq/email-proxy](h
- **Option 2**: Build and deploy the Email Worker
- Clone the [papra-hq/email-proxy](https://github.com/papra-hq/email-proxy) repository and deploy the worker using Wrangler cli. You will need to have Node.js v22 and pnpm installed.
+ Clone the [papra-hq/email-proxy](https://github.com/papra-hq/email-proxy) repository and deploy the worker using Wrangler cli. You will need to have Node.js v24 and pnpm installed.
```bash
# Clone the repository
diff --git a/apps/papra-client/.nvmrc b/apps/papra-client/.nvmrc
index 8fdd954d..a45fd52c 100644
--- a/apps/papra-client/.nvmrc
+++ b/apps/papra-client/.nvmrc
@@ -1 +1 @@
-22
\ No newline at end of file
+24
diff --git a/apps/papra-client/package.json b/apps/papra-client/package.json
index 881da594..36da9735 100644
--- a/apps/papra-client/package.json
+++ b/apps/papra-client/package.json
@@ -11,7 +11,7 @@
"url": "https://github.com/papra-hq/papra"
},
"engines": {
- "node": ">=22.0.0"
+ "node": ">=24.0.0"
},
"scripts": {
"start": "vite",
diff --git a/apps/papra-server/Dockerfile b/apps/papra-server/Dockerfile
index 2644fba3..94bcd8f9 100644
--- a/apps/papra-server/Dockerfile
+++ b/apps/papra-server/Dockerfile
@@ -1,7 +1,7 @@
# syntax = docker/dockerfile:1
# Adjust NODE_VERSION as desired
-ARG NODE_VERSION=22.19.0
+ARG NODE_VERSION=24.11.0
FROM node:${NODE_VERSION}-slim AS base
LABEL fly_launch_runtime="Node.js"
diff --git a/packages/docker/Dockerfile b/packages/docker/Dockerfile
index c1b7083d..f918972e 100644
--- a/packages/docker/Dockerfile
+++ b/packages/docker/Dockerfile
@@ -1,5 +1,5 @@
# Base stage with pnpm
-FROM node:22-slim AS base
+FROM node:24-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN npm install -g corepack@latest
diff --git a/packages/docker/Dockerfile.rootless b/packages/docker/Dockerfile.rootless
index ccdd292c..0823d320 100644
--- a/packages/docker/Dockerfile.rootless
+++ b/packages/docker/Dockerfile.rootless
@@ -1,5 +1,5 @@
# Base stage with pnpm
-FROM node:22-slim AS base
+FROM node:24-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
# Set corepack home to nonroot user home to avoid permission issues
@@ -60,4 +60,4 @@ ENV CLIENT_BASE_URL=http://localhost:1221
# Disable Better Auth telemetry
ENV BETTER_AUTH_TELEMETRY=0
-CMD ["pnpm", "start:with-migrations"]
\ No newline at end of file
+CMD ["pnpm", "start:with-migrations"]
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index b90241aa..d5cf3ed1 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -13,14 +13,20 @@ catalogs:
specifier: 2.1.0
version: 2.1.0
'@types/node':
- specifier: ^22.15.21
- version: 22.16.0
+ specifier: ^24.0.0
+ version: 24.0.10
+ '@vitest/coverage-v8':
+ specifier: ^4.0.3
+ version: 4.0.3
better-auth:
specifier: 1.3.32
version: 1.3.32
eslint:
specifier: ^9.38.0
version: 9.38.0
+ tsdown:
+ specifier: ^0.13.4
+ version: 0.13.4
typescript:
specifier: ^5.6.2
version: 5.8.3
@@ -185,7 +191,7 @@ importers:
version: 5.7.1
unocss-preset-animations:
specifier: ^1.3.0
unstorage:
specifier: ^1.16.0
version: 1.16.0(@azure/[email protected])([email protected])
@@ -195,7 +201,7 @@ importers:
devDependencies:
'@antfu/eslint-config':
specifier: 'catalog:'
'@iconify-json/tabler':
specifier: ^1.2.19
version: 1.2.19
@@ -204,7 +210,7 @@ importers:
version: 1.53.1
'@types/node':
specifier: 'catalog:'
- version: 22.16.0
+ version: 24.0.10
eslint:
specifier: 'catalog:'
version: 9.38.0([email protected])
@@ -219,16 +225,16 @@ importers:
version: 5.8.3
unocss:
specifier: ^66.5.4
vite:
specifier: ^7.1.9
vite-plugin-solid:
specifier: ^2.11.9
vitest:
specifier: 'catalog:'
apps/papra-server:
dependencies:
@@ -358,7 +364,7 @@ importers:
devDependencies:
'@antfu/eslint-config':
specifier: 'catalog:'
'@crowlog/pretty':
specifier: ^2.0.1
version: 2.0.1
@@ -385,7 +391,7 @@ importers:
version: 2.1.4
'@types/node':
specifier: 'catalog:'
- version: 22.16.0
+ version: 24.0.10
'@types/node-cron':
specifier: ^3.0.11
version: 3.0.11
@@ -400,7 +406,7 @@ importers:
version: 2.16.0
'@vitest/coverage-v8':
specifier: 'catalog:'
esbuild:
specifier: ^0.24.2
version: 0.24.2
@@ -421,7 +427,7 @@ importers:
version: 5.8.3
vitest:
specifier: 'catalog:'
packages/api-sdk:
dependencies:
@@ -477,13 +483,13 @@ importers:
devDependencies:
'@antfu/eslint-config':
specifier: 'catalog:'
'@types/mime-types':
specifier: ^2.1.4
version: 2.1.4
'@types/node':
specifier: 'catalog:'
- version: 22.16.0
+ version: 24.0.10
eslint:
specifier: 'catalog:'
version: 9.38.0([email protected])
@@ -498,7 +504,7 @@ importers:
version: 5.8.3
vitest:
specifier: 'catalog:'
packages/docker: {}
@@ -528,13 +534,13 @@ importers:
devDependencies:
'@antfu/eslint-config':
specifier: 'catalog:'
'@types/node':
specifier: 'catalog:'
- version: 22.16.0
+ version: 24.0.10
'@vitest/coverage-v8':
specifier: 'catalog:'
eslint:
specifier: 'catalog:'
version: 9.38.0([email protected])
@@ -552,7 +558,7 @@ importers:
version: 5.8.3
vitest:
specifier: 'catalog:'
packages/webhooks:
dependencies:
@@ -3623,9 +3629,6 @@ packages:
resolution: {integrity: sha512-K7DIaHnh0mzVxreCR9qwgNxp3MH9dltPNIEddW9MYUlcKAzm+3grKNSTe2vCJHI1FaLpvpL5JGJrz1UZDKYvDg==}
- '@types/[email protected]':
- resolution: {integrity: sha512-B2egV9wALML1JCpv3VQoQ+yesQKAmNMBIAY7OteVrikcOcAkWm+dGL6qpeCktPjAv6N1JLnhbNiqS35UpFyBsQ==}
-
resolution: {integrity: sha512-ENHwaH+JIRTDIEEbDK6QSQntAYGtbvdDXnMXnZaZ6k13Du1dPMmprkEHIL7ok2Wl2aZevetwTAb5S+7yIF+enA==}
@@ -7480,9 +7483,6 @@ packages:
resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==}
- resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==}
-
resolution: {integrity: sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==}
@@ -8076,56 +8076,7 @@ snapshots:
'@jridgewell/gen-mapping': 0.3.13
'@jridgewell/trace-mapping': 0.3.31
- dependencies:
- '@antfu/install-pkg': 1.1.0
- '@clack/prompts': 0.11.0
- '@eslint-community/eslint-plugin-eslint-comments': 4.5.0([email protected]([email protected]))
- '@eslint/markdown': 7.5.0
- '@stylistic/eslint-plugin': 5.5.0([email protected]([email protected]))
- '@typescript-eslint/parser': 8.46.2([email protected]([email protected]))([email protected])
- ansis: 4.2.0
- cac: 6.7.14
- eslint: 9.38.0([email protected])
- eslint-config-flat-gitignore: 2.1.0([email protected]([email protected]))
- eslint-flat-config-utils: 2.1.4
- eslint-merge-processors: 2.0.0([email protected]([email protected]))
- eslint-plugin-antfu: 3.1.1([email protected]([email protected]))
- eslint-plugin-command: 3.3.1([email protected]([email protected]))
- eslint-plugin-import-lite: 0.3.0([email protected]([email protected]))([email protected])
- eslint-plugin-jsdoc: 61.1.9([email protected]([email protected]))
- eslint-plugin-jsonc: 2.21.0([email protected]([email protected]))
- eslint-plugin-no-only-tests: 3.3.0
- eslint-plugin-perfectionist: 4.15.1([email protected]([email protected]))([email protected])
- eslint-plugin-pnpm: 1.3.0([email protected]([email protected]))
- eslint-plugin-regexp: 2.10.0([email protected]([email protected]))
- eslint-plugin-toml: 0.12.0([email protected]([email protected]))
- eslint-plugin-unicorn: 61.0.2([email protected]([email protected]))
- eslint-plugin-yml: 1.19.0([email protected]([email protected]))
- eslint-processor-vue-blocks: 2.0.0(@vue/[email protected])([email protected]([email protected]))
- globals: 16.4.0
- jsonc-eslint-parser: 2.4.1
- local-pkg: 1.1.2
- parse-gitignore: 2.0.0
- toml-eslint-parser: 0.10.0
- vue-eslint-parser: 10.2.0([email protected]([email protected]))
- yaml-eslint-parser: 1.3.0
- optionalDependencies:
- astro-eslint-parser: 1.1.0([email protected])
- transitivePeerDependencies:
- - '@eslint/json'
- - '@vue/compiler-sfc'
- - supports-color
- - typescript
- - vitest
-
dependencies:
'@antfu/install-pkg': 1.1.0
'@clack/prompts': 0.11.0
@@ -8134,7 +8085,7 @@ snapshots:
'@stylistic/eslint-plugin': 5.5.0([email protected]([email protected]))
'@typescript-eslint/parser': 8.46.2([email protected]([email protected]))([email protected])
ansis: 4.2.0
cac: 6.7.14
eslint: 9.38.0([email protected])
@@ -8437,7 +8388,7 @@ snapshots:
'@astrojs/[email protected]':
dependencies:
ci-info: 4.2.0
- debug: 4.4.1
+ debug: 4.4.3
dlv: 1.1.3
dset: 3.1.4
is-docker: 3.0.0
@@ -9103,7 +9054,7 @@ snapshots:
dependencies:
- '@babel/types': 7.28.4
+ '@babel/types': 7.28.5
dependencies:
@@ -9232,7 +9183,7 @@ snapshots:
outdent: 0.5.0
prettier: 2.8.8
resolve-from: 5.0.0
- semver: 7.7.2
+ semver: 7.7.3
'@changesets/[email protected]':
dependencies:
@@ -9241,7 +9192,7 @@ snapshots:
'@changesets/should-skip-package': 0.1.2
'@changesets/types': 6.1.0
'@manypkg/get-packages': 1.1.3
- semver: 7.7.2
+ semver: 7.7.3
'@changesets/[email protected]':
dependencies:
@@ -9305,7 +9256,7 @@ snapshots:
'@changesets/types': 6.1.0
'@manypkg/get-packages': 1.1.3
picocolors: 1.1.1
- semver: 7.7.2
+ semver: 7.7.3
'@changesets/[email protected]':
dependencies:
@@ -11481,16 +11432,16 @@ snapshots:
dependencies:
- '@babel/types': 7.28.4
+ '@babel/types': 7.28.5
dependencies:
- '@babel/parser': 7.28.4
- '@babel/types': 7.28.4
+ '@babel/parser': 7.28.5
+ '@babel/types': 7.28.5
dependencies:
- '@babel/types': 7.28.4
+ '@babel/types': 7.28.5
dependencies:
@@ -11571,10 +11522,6 @@ snapshots:
dependencies:
undici-types: 5.26.5
- '@types/[email protected]':
- dependencies:
- undici-types: 6.21.0
-
dependencies:
undici-types: 7.8.0
@@ -11727,13 +11674,13 @@ snapshots:
- supports-color
- vue
dependencies:
'@unocss/core': 66.5.4
'@unocss/reset': 66.5.4
optionalDependencies:
dependencies:
@@ -11749,7 +11696,7 @@ snapshots:
magic-string: 0.30.17
pathe: 1.1.2
perfect-debounce: 1.0.0
- tinyglobby: 0.2.14
+ tinyglobby: 0.2.15
transitivePeerDependencies:
- rollup
- supports-color
@@ -11820,7 +11767,7 @@ snapshots:
'@unocss/rule-utils': 0.65.0-beta.2
css-tree: 3.1.0
postcss: 8.5.6
- tinyglobby: 0.2.14
+ tinyglobby: 0.2.15
transitivePeerDependencies:
- supports-color
@@ -11997,14 +11944,14 @@ snapshots:
'@unocss/inspector': 0.65.0-beta.2([email protected]([email protected]))
chokidar: 3.6.0
magic-string: 0.30.17
- tinyglobby: 0.2.14
+ tinyglobby: 0.2.15
transitivePeerDependencies:
- rollup
- supports-color
- vue
dependencies:
'@jridgewell/remapping': 2.3.5
'@unocss/config': 66.5.4
@@ -12015,9 +11962,9 @@ snapshots:
pathe: 2.0.3
tinyglobby: 0.2.15
unplugin-utils: 0.3.1
dependencies:
'@bcoe/v8-coverage': 1.0.2
'@vitest/utils': 4.0.3
@@ -12030,29 +11977,18 @@ snapshots:
magicast: 0.3.5
std-env: 3.9.0
tinyrainbow: 3.0.3
- transitivePeerDependencies:
- - supports-color
-
- dependencies:
- '@typescript-eslint/scope-manager': 8.46.2
- '@typescript-eslint/utils': 8.46.2([email protected]([email protected]))([email protected])
- eslint: 9.38.0([email protected])
- optionalDependencies:
- typescript: 5.8.3
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/scope-manager': 8.46.2
'@typescript-eslint/utils': 8.46.2([email protected]([email protected]))([email protected])
eslint: 9.38.0([email protected])
optionalDependencies:
typescript: 5.8.3
transitivePeerDependencies:
- supports-color
@@ -12087,22 +12023,6 @@ snapshots:
chai: 6.2.0
tinyrainbow: 3.0.3
- dependencies:
- '@vitest/spy': 4.0.3
- estree-walker: 3.0.3
- magic-string: 0.30.19
- optionalDependencies:
-
- dependencies:
- '@vitest/spy': 4.0.3
- estree-walker: 3.0.3
- magic-string: 0.30.19
- optionalDependencies:
-
dependencies:
'@vitest/spy': 4.0.3
@@ -13837,7 +13757,7 @@ snapshots:
'@petamoriken/float16': 3.9.1
debug: 4.4.3
env-paths: 3.0.0
- semver: 7.7.2
+ semver: 7.7.3
shell-quote: 1.8.2
which: 4.0.0
transitivePeerDependencies:
@@ -15997,7 +15917,7 @@ snapshots:
dependencies:
color: 4.2.3
detect-libc: 2.0.3
- semver: 7.7.2
+ semver: 7.7.3
optionalDependencies:
'@img/sharp-darwin-arm64': 0.33.5
'@img/sharp-darwin-x64': 0.33.5
@@ -16586,8 +16506,6 @@ snapshots:
-
@@ -16671,9 +16589,9 @@ snapshots:
optionalDependencies:
'@unocss/preset-wind3': 66.5.4
dependencies:
optionalDependencies:
'@unocss/preset-wind3': 66.5.4
@@ -16704,9 +16622,9 @@ snapshots:
- supports-color
- vue
dependencies:
'@unocss/cli': 66.5.4
'@unocss/core': 66.5.4
'@unocss/postcss': 66.5.4([email protected])
@@ -16724,9 +16642,9 @@ snapshots:
'@unocss/transformer-compile-class': 66.5.4
'@unocss/transformer-directives': 66.5.4
'@unocss/transformer-variant-group': 66.5.4
optionalDependencies:
transitivePeerDependencies:
- postcss
- supports-color
@@ -16811,7 +16729,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@babel/core': 7.28.4
'@types/babel__core': 7.20.5
@@ -16819,8 +16737,8 @@ snapshots:
merge-anything: 5.1.7
solid-js: 1.9.9
solid-refresh: 0.6.3([email protected])
transitivePeerDependencies:
- supports-color
@@ -16839,7 +16757,7 @@ snapshots:
tsx: 4.20.3
yaml: 2.8.0
dependencies:
esbuild: 0.25.10
fdir: 6.5.0([email protected])
@@ -16848,27 +16766,12 @@ snapshots:
rollup: 4.52.4
tinyglobby: 0.2.15
optionalDependencies:
- '@types/node': 22.16.0
+ '@types/node': 24.0.10
fsevents: 2.3.3
jiti: 2.6.1
tsx: 4.19.4
yaml: 2.8.1
- dependencies:
- esbuild: 0.25.10
- fdir: 6.5.0([email protected])
- picomatch: 4.0.3
- postcss: 8.5.6
- rollup: 4.52.4
- tinyglobby: 0.2.15
- optionalDependencies:
- '@types/node': 22.16.0
- fsevents: 2.3.3
- jiti: 2.6.1
- tsx: 4.20.3
- yaml: 2.8.1
-
dependencies:
esbuild: 0.25.10
@@ -16907,54 +16810,14 @@ snapshots:
optionalDependencies:
optionalDependencies:
-
- dependencies:
- '@vitest/expect': 4.0.3
- '@vitest/pretty-format': 4.0.3
- '@vitest/runner': 4.0.3
- '@vitest/snapshot': 4.0.3
- '@vitest/spy': 4.0.3
- '@vitest/utils': 4.0.3
- debug: 4.4.3
- es-module-lexer: 1.7.0
- expect-type: 1.2.2
- magic-string: 0.30.19
- pathe: 2.0.3
- picomatch: 4.0.3
- std-env: 3.9.0
- tinybench: 2.9.0
- tinyexec: 0.3.2
- tinyglobby: 0.2.15
- tinyrainbow: 3.0.3
- why-is-node-running: 2.3.0
- optionalDependencies:
- '@types/debug': 4.1.12
- '@types/node': 22.16.0
- jsdom: 26.0.0
- transitivePeerDependencies:
- - jiti
- - less
- - lightningcss
- - msw
- - sass
- - sass-embedded
- - stylus
- - sugarss
- - supports-color
- - terser
- - tsx
- - yaml
dependencies:
'@vitest/expect': 4.0.3
'@vitest/pretty-format': 4.0.3
'@vitest/runner': 4.0.3
'@vitest/snapshot': 4.0.3
@@ -16971,11 +16834,11 @@ snapshots:
tinyexec: 0.3.2
tinyglobby: 0.2.15
tinyrainbow: 3.0.3
why-is-node-running: 2.3.0
optionalDependencies:
'@types/debug': 4.1.12
- '@types/node': 22.16.0
+ '@types/node': 24.0.10
jsdom: 26.0.0
transitivePeerDependencies:
- jiti
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 0a0ad672..e9f4d8cf 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -3,16 +3,16 @@ packages:
- apps/*
catalog:
- '@antfu/eslint-config': ^6.1.0
- '@types/node': ^22.15.21
+ "@antfu/eslint-config": ^6.1.0
+ "@types/node": ^24.0.0
eslint: ^9.38.0
tsx: ^4.17.0
typescript: ^5.6.2
vitest: ^4.0.3
- '@vitest/coverage-v8': ^4.0.3
+ "@vitest/coverage-v8": ^4.0.3
better-auth: 1.3.32
tsdown: ^0.13.4
- '@corentinth/chisels': 2.1.0
+ "@corentinth/chisels": 2.1.0
ignoredBuiltDependencies:
- esbuild