Skip to content

Commit bc910f3

Browse files
authored
Merge branch 'develop' into renovate/csrf-csrf-4.x
2 parents 3e10746 + 588b65d commit bc910f3

File tree

16 files changed

+402
-98
lines changed

16 files changed

+402
-98
lines changed

.github/workflows/dev.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,33 @@ permissions:
1919
pull-requests: write # for PR comments
2020

2121
jobs:
22+
check-affected:
23+
name: Check affected jobs (NX)
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout the repository
27+
uses: actions/checkout@v4
28+
with:
29+
fetch-depth: 0 # needed for https://github.com/marketplace/actions/nx-set-shas
30+
31+
- uses: pnpm/action-setup@v4
32+
- name: Set up node & dependencies
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version: 22
36+
cache: 'pnpm'
37+
- name: Install dependencies
38+
run: pnpm install --frozen-lockfile
39+
40+
- uses: nrwl/nx-set-shas@v4
41+
- name: Check affected
42+
run: pnpm nx affected -t rebuild-deps
43+
2244
report-electron-size:
2345
name: Report Electron size
2446
runs-on: ubuntu-latest
47+
needs:
48+
- check-affected
2549
steps:
2650
- name: Checkout the repository
2751
uses: actions/checkout@v4
@@ -55,6 +79,8 @@ jobs:
5579
report-server-size:
5680
name: Report server size
5781
runs-on: ubuntu-latest
82+
needs:
83+
- check-affected
5884
steps:
5985
- name: Checkout the repository
6086
uses: actions/checkout@v4
@@ -87,6 +113,8 @@ jobs:
87113
test_dev:
88114
name: Test development
89115
runs-on: ubuntu-latest
116+
needs:
117+
- check-affected
90118
steps:
91119
- name: Checkout the repository
92120
uses: actions/checkout@v4
@@ -107,6 +135,7 @@ jobs:
107135
runs-on: ubuntu-latest
108136
needs:
109137
- test_dev
138+
- check-affected
110139
steps:
111140
- uses: actions/checkout@v4
112141
- uses: pnpm/action-setup@v4
@@ -127,6 +156,7 @@ jobs:
127156
runs-on: ubuntu-latest
128157
needs:
129158
- build_docker
159+
- check-affected
130160
strategy:
131161
matrix:
132162
include:

_regroup/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@playwright/test": "1.51.1",
3939
"@stylistic/eslint-plugin": "4.2.0",
4040
"@types/express": "5.0.1",
41-
"@types/node": "22.14.1",
41+
"@types/node": "22.15.3",
4242
"@types/yargs": "17.0.33",
4343
"@vitest/coverage-v8": "3.1.2",
4444
"eslint": "9.24.0",
@@ -49,7 +49,7 @@
4949
"rcedit": "4.0.1",
5050
"rimraf": "6.0.1",
5151
"tslib": "2.8.1",
52-
"typedoc": "0.28.2",
52+
"typedoc": "0.28.3",
5353
"typedoc-plugin-missing-exports": "4.0.0"
5454
},
5555
"optionalDependencies": {

_regroup_monorepo/apps/server/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN npm ci && \
2222
# as we install necessary dependencies in runtime buildstage anyways
2323

2424
# Runtime stage
25-
FROM node:22.14.0-bullseye-slim
25+
FROM node:22.15.0-bullseye-slim
2626

2727
WORKDIR /usr/src/app
2828

_regroup_monorepo/apps/server/Dockerfile.alpine

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build stage
2-
FROM node:22.14.0-alpine AS builder
2+
FROM node:22.15.0-alpine AS builder
33

44
WORKDIR /usr/src/app/build
55

apps/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"jsplumb": "2.15.6",
3939
"knockout": "3.5.1",
4040
"leaflet": "1.9.4",
41-
"leaflet-gpx": "2.1.2",
41+
"leaflet-gpx": "2.2.0",
4242
"mark.js": "8.11.1",
4343
"marked": "15.0.11",
4444
"mermaid": "11.6.0",

apps/desktop/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@triliumnext/server": "workspace:*",
1919
"copy-webpack-plugin": "13.0.0",
2020
"electron": "35.1.5",
21-
"@electron/rebuild": "3.7.2",
21+
"@electron/rebuild": "4.0.1",
2222
"@electron-forge/cli": "7.8.0",
2323
"@electron-forge/maker-deb": "7.8.0",
2424
"@electron-forge/maker-dmg": "7.8.0",
@@ -53,7 +53,7 @@
5353
"cache": true,
5454
"configurations": {
5555
"default": {
56-
"command": "cross-env DEBUG=* tsx scripts/rebuild.ts",
56+
"command": "cross-env DEBUG=* tsx scripts/rebuild.mts",
5757
"cwd": "{projectRoot}"
5858
},
5959
"nixos": {

apps/desktop/scripts/rebuild.ts renamed to apps/desktop/scripts/rebuild.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import { fileURLToPath } from "url";
1010
import { dirname, join } from "path";
11-
import rebuild from "@electron/rebuild"
11+
import { rebuild } from "@electron/rebuild"
1212
import { readFileSync } from "fs";
1313

1414
const scriptDir = dirname(fileURLToPath(import.meta.url));

apps/edit-docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.1",
44
"private": true,
55
"devDependencies": {
6-
"@electron/rebuild": "3.7.2",
6+
"@electron/rebuild": "4.0.1",
77
"@triliumnext/client": "workspace:*",
88
"@triliumnext/desktop": "workspace:*",
99
"@types/fs-extra": "11.0.4",
@@ -21,7 +21,7 @@
2121
"cache": true,
2222
"configurations": {
2323
"default": {
24-
"command": "cross-env DEBUG=* tsx scripts/rebuild.ts",
24+
"command": "cross-env DEBUG=* tsx scripts/rebuild.mts",
2525
"cwd": "{projectRoot}"
2626
},
2727
"nixos": {

apps/edit-docs/scripts/rebuild.ts renamed to apps/edit-docs/scripts/rebuild.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
import { fileURLToPath } from "url";
1212
import { dirname, join } from "path";
13-
import rebuild from "@electron/rebuild"
13+
import { rebuild } from "@electron/rebuild"
1414
import { readFileSync } from "fs";
1515

1616
const scriptDir = dirname(fileURLToPath(import.meta.url));

apps/edit-docs/tsconfig.app.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
"eslint.config.mjs"
1919
],
2020
"references": [
21-
{
22-
"path": "../server/tsconfig.app.json"
23-
},
2421
{
2522
"path": "../desktop/tsconfig.app.json"
2623
},

apps/edit-docs/tsconfig.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
"files": [],
44
"include": [],
55
"references": [
6-
{
7-
"path": "../server"
8-
},
96
{
107
"path": "../desktop"
118
},

apps/server/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
FROM node:22.14.0-bullseye-slim AS builder
1+
FROM node:22.15.0-bullseye-slim AS builder
22
RUN corepack enable
33

44
# Install native dependencies since we might be building cross-platform.
55
WORKDIR /usr/src/app/build
66
COPY ./dist/package.json ./dist/pnpm-lock.yaml ./docker/pnpm-workspace.yaml /usr/src/app/
77
RUN pnpm install --frozen-lockfile --prod && pnpm rebuild
88

9-
FROM node:22.14.0-bullseye-slim
9+
FROM node:22.15.0-bullseye-slim
1010
# Install only runtime dependencies
1111
RUN apt-get update && \
1212
apt-get install -y --no-install-recommends \

apps/server/Dockerfile.alpine

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
FROM node:22.14.0-alpine AS builder
1+
FROM node:22.15.0-alpine AS builder
22
RUN corepack enable
33

44
# Install native dependencies since we might be building cross-platform.
55
WORKDIR /usr/src/app
66
COPY ./dist/package.json ./dist/pnpm-lock.yaml ./docker/pnpm-workspace.yaml /usr/src/app/
77
RUN pnpm install --frozen-lockfile --prod && pnpm rebuild
88

9-
FROM node:22.14.0-alpine
9+
FROM node:22.15.0-alpine
1010
# Install runtime dependencies
1111
RUN apk add --no-cache su-exec shadow
1212

nx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "./node_modules/nx/schemas/nx-schema.json",
3-
"defaultBase": "master",
3+
"defaultBase": "develop",
44
"namedInputs": {
55
"default": [
66
"{projectRoot}/**/*",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"@swc/helpers": "~0.5.11",
4040
"@triliumnext/server": "workspace:*",
4141
"@types/express": "^4.17.21",
42-
"@types/node": "18.16.9",
42+
"@types/node": "22.15.3",
4343
"@vitest/coverage-v8": "^3.0.5",
4444
"@vitest/ui": "^3.0.0",
4545
"cross-env": "7.0.3",

0 commit comments

Comments
 (0)