T1 node18 web runtime only

Merged
GR
5mo ago
+19099-108876

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.yaml and a single pnpm-lock.yaml; remove Lerna and all package-lock.json.
    • Set .nvmrc to v18 and packageManager to pnpm@10.15.0; enable Corepack in Docker.
    • Update GitHub Actions (use pnpm/action-setup@v4 with cache: "pnpm") and DO App Platform deploy to pnpm; convert publish-release and test workflows.
    • Rework Dockerfile-pwa and Dockerfile-server to Node 18 + pnpm, copying manifests for better layer caching.
    • Add webpack hashFunction: "sha256"; invoke webpack via node --openssl-legacy-provider in electron, tauri, and cordova to avoid shell-specific NODE_OPTIONS; drop it where not needed.
    • Tweak .prettierignore/.gitignore for pnpm-lock.yaml and internal docs.
  • Dependencies

    • Replace webextension-polyfill-ts with webextension-polyfill and add @types/webextension-polyfill; update extension imports and message typing.
    • Use workspace:* for intra-repo deps; add pnpm.overrides to pin versions (e.g., @types/node, pg-protocol, tiptap/*) consistent with the old lockfile.
    • Declare previously hoisted deps (e.g., date-fns in @padloc/core, yaml and @types/node in @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) via onlyBuiltDependencies in the workspace.

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.