T1 node18 web runtime only
Merged
GR
5mo ago+19099+19099+01234567890123456789012345678901234567890123456789-108876-108876-012345678901234567890123456789012345678901234567890123456789
Summary by cubic
Migrate the repo to Node 18 with pnpm workspaces and move CI/CD and Docker to pnpm for faster, more reliable builds. Switch the web extension to webextension-polyfill and make webpack OpenSSL handling shell-agnostic.
-
Migration
- Add
pnpm-workspace.yamland a singlepnpm-lock.yaml; remove Lerna and allpackage-lock.json. - Set
.nvmrctov18andpackageManagertopnpm@10.15.0; enable Corepack in Docker. - Update GitHub Actions (use
pnpm/action-setup@v4withcache: "pnpm") and DO App Platform deploy topnpm; convert publish-release and test workflows. - Rework
Dockerfile-pwaandDockerfile-serverto Node 18 +pnpm, copying manifests for better layer caching. - Add webpack
hashFunction: "sha256"; invoke webpack vianode --openssl-legacy-providerinelectron,tauri, andcordovato avoid shell-specificNODE_OPTIONS; drop it where not needed. - Tweak
.prettierignore/.gitignoreforpnpm-lock.yamland internal docs.
- Add
-
Dependencies
- Replace
webextension-polyfill-tswithwebextension-polyfilland add@types/webextension-polyfill; update extension imports and message typing. - Use
workspace:*for intra-repo deps; addpnpm.overridesto pin versions (e.g.,@types/node,pg-protocol,tiptap/*) consistent with the old lockfile. - Declare previously hoisted deps (e.g.,
date-fnsin@padloc/core,yamland@types/nodein@padloc/locale,@types/parse5,@simplewebauthn/typescript-types) to keep builds green. - Apply safe within‑major bumps for tooling (e.g.,
webpack,html-webpack-plugin,ts-node) and minor app libs; configure native deps (sharp) viaonlyBuiltDependenciesin the workspace.
- Replace
Summary by CodeRabbit
-
Chores
- Updated CI, release, and Docker build workflows to use pnpm/corepack, with consistent dependency installs and caching.
- Upgraded the project toolchain baseline to Node 18 and migrated away from the previous monorepo tooling approach.
- Refreshed deployment commands to match the pnpm-based workflow.
-
Bug Fixes
- Standardized build artifact hashing (sha256) across multiple targets for more consistent production outputs.
- Updated the browser extension polyfill integration for improved runtime typing/compatibility.
-
Localization
- Corrected the German “Theme” label.
-
Documentation
- Added modernization plan/spec documents.