Skip to content

Commit 9b13fff

Browse files
authored
Update deps 2026-03 (#1665)
* Update Node.js and Rust versions in Dockerfile and configuration files - Updated base Node.js version from 22 to 24 in Dockerfile.node.base.dockerfile and related build scripts. - Changed Node.js version in pnpm-workspace.yaml files to 24.14.0 for compatibility. - Updated Rust toolchain version from 1.92 to 1.93 in rust-toolchain.toml and Cargo.toml files * Update dependencies for repo root * pnpm audit for repo root * Update dependencies for system-tests * Update dependencies for cms * pnpm audit for cms * Update dependencies for example-exercise * pnpm audit for example-exercise * Update dependencies for main-frontend * pnpm audit for main-frontend * Update dependencies for quizzes * pnpm audit for quizzes * Update dependencies for tmc * pnpm audit for tmc * Update dependencies for shared-module * Update dependencies for shared-module/common * pnpm audit for shared-module/common * Update rust dependencies * Fix extract gutenberg attribute types * Generate gutenberg types * Update block implementations * Eslint fixes * Rust fixes * Update pnpm * Rust fixes * Fixes * Double check that at least one chapter unlocked * CMS fixes * System test fixes * Test fixes * Update test to use base module for unlocking logic in user chapter locking statuses * Test fixes * Add messages if dynamic component imporint is taking a long time * Add missing translations * Handle errors better when doing dynamic imports * Install jotai * System test fixes * System test fixes
1 parent e05962e commit 9b13fff

161 files changed

Lines changed: 27046 additions & 24579 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Dockerfile.node.base.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Create a dummy project for installing the right pnpm and node versions
2-
FROM node:22-bookworm-slim AS dummy-project-builder
2+
FROM node:24-bookworm-slim AS dummy-project-builder
33

44
RUN mkdir -p /tmp/dummy-project
55
WORKDIR /tmp/dummy-project
@@ -8,7 +8,7 @@ COPY package.json /tmp/dummy-project/real-package.json
88
RUN PNPM_VERSION=$(grep -o '"packageManager": "pnpm@[^"]*"' real-package.json | sed 's/.*pnpm@\([^"]*\).*/\1/') && \
99
echo "{\"name\": \"temp\", \"version\": \"1.0.0\", \"packageManager\": \"pnpm@$PNPM_VERSION\"}" > package.json
1010

11-
FROM node:22-bookworm-slim AS node-base
11+
FROM node:24-bookworm-slim AS node-base
1212

1313
RUN apt-get update \
1414
&& apt-get upgrade -yy \

bin/build-dockerfile-node-base

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ RELATIVE_PATH=$(realpath --relative-to="$(pwd)" "$FOLDER_PATH")
88

99
run_command cd "$RELATIVE_PATH" || exit
1010

11-
run_command docker pull node:22-bookworm-slim
11+
run_command docker pull node:24-bookworm-slim
1212

1313
run_command docker build . --file Dockerfile.node.base.dockerfile -t eu.gcr.io/moocfi-public/project-331-node-base "$@"

bin/build-dockerfile-node-cache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ run_command cd "$RELATIVE_PATH" || exit
1111
# Build the base image first if it doesn't exist or if --force-base is passed
1212
if [[ "$*" == *"--force-base"* ]] || ! docker image inspect eu.gcr.io/moocfi-public/project-331-node-base:latest >/dev/null 2>&1; then
1313
echo -e "${BLUE}Building base image first...${RESET_EVERYTHING}"
14-
run_command docker pull node:22-bookworm-slim
14+
run_command docker pull node:24-bookworm-slim
1515
run_command docker build . --file Dockerfile.node.base.dockerfile -t eu.gcr.io/moocfi-public/project-331-node-base
1616
else
1717
echo -e "${GREEN}Base image already exists, skipping base build${RESET_EVERYTHING}"

bin/extract-gutenberg-types

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,15 @@ if [ -f "./services/main-frontend/types/DeprecatedGutenbergBlockAttributes.guard
2323
fi
2424

2525
run_command pnpm exec ts-auto-guard --export-all --paths services/main-frontend/types/GutenbergBlockAttributes.ts --project services/main-frontend/tsconfig.json
26-
run_command pnpm exec prettier --write services/main-frontend/types/GutenbergBlockAttributes.ts services/main-frontend/types/GutenbergBlockAttributes.guard.ts
26+
if [ -f "./services/main-frontend/types/GutenbergBlockAttributes.guard.ts" ]; then
27+
run_command pnpm exec prettier --write services/main-frontend/types/GutenbergBlockAttributes.ts services/main-frontend/types/GutenbergBlockAttributes.guard.ts
28+
else
29+
run_command pnpm exec prettier --write services/main-frontend/types/GutenbergBlockAttributes.ts
30+
fi
2731

2832
run_command pnpm exec ts-auto-guard --export-all --paths services/main-frontend/types/DeprecatedGutenbergBlockAttributes.ts --project services/main-frontend/tsconfig.json
29-
run_command pnpm exec prettier --write services/main-frontend/types/DeprecatedGutenbergBlockAttributes.ts services/main-frontend/types/DeprecatedGutenbergBlockAttributes.guard.ts
33+
if [ -f "./services/main-frontend/types/DeprecatedGutenbergBlockAttributes.guard.ts" ]; then
34+
run_command pnpm exec prettier --write services/main-frontend/types/DeprecatedGutenbergBlockAttributes.ts services/main-frontend/types/DeprecatedGutenbergBlockAttributes.guard.ts
35+
else
36+
run_command pnpm exec prettier --write services/main-frontend/types/DeprecatedGutenbergBlockAttributes.ts
37+
fi

bin/translations-translate-missing

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ def create_payload(prompt: str, user_message: str) -> Dict[str, Any]:
3030
{"role": "system", "content": prompt},
3131
{"role": "user", "content": user_message},
3232
],
33-
"temperature": 0.4,
34-
"top_p": 1.0,
35-
"frequency_penalty": 0.0,
36-
"presence_penalty": 0.0,
37-
"stop": None,
38-
"stream": False,
3933
}
4034

4135

package.json

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "",
55
"homepage": "https://github.com/rage/secret-project-331#readme",
66
"main": "index.js",
7-
"packageManager": "pnpm@10.26.2",
7+
"packageManager": "pnpm@10.30.3",
88
"type": "module",
99
"bugs": {
1010
"url": "https://github.com/rage/secret-project-331/issues"
@@ -26,38 +26,43 @@
2626
"dependencies": {
2727
"@vectopus/atlas-icons": "^0.0.7"
2828
},
29+
"pnpm": {
30+
"overrides": {
31+
"eslint-plugin-jsx-a11y>minimatch": "3.1.2"
32+
}
33+
},
2934
"devDependencies": {
30-
"@eslint/js": "^9.36.0",
31-
"@next/eslint-plugin-next": "^15.5.4",
35+
"@eslint/js": "^9.39.3",
36+
"@next/eslint-plugin-next": "^16.1.6",
3237
"@stylelint/postcss-css-in-js": "^0.38.0",
33-
"@tanstack/eslint-plugin-query": "^5.91.0",
34-
"@types/node": "^24.6.2",
35-
"@typescript-eslint/eslint-plugin": "^8.45.0",
36-
"@typescript-eslint/parser": "^8.45.0",
38+
"@tanstack/eslint-plugin-query": "^5.91.4",
39+
"@types/node": "^25.3.3",
40+
"@typescript-eslint/eslint-plugin": "^8.56.1",
41+
"@typescript-eslint/parser": "^8.56.1",
3742
"concurrently": "^9.2.0",
38-
"esbuild": "^0.25.10",
39-
"eslint": "^9.32.0",
40-
"eslint-config-next": "^15.4.5",
43+
"esbuild": "^0.27.3",
44+
"eslint": "^9.39.3",
45+
"eslint-config-next": "^16.1.6",
4146
"eslint-config-prettier": "^10.1.8",
4247
"eslint-plugin-explicit-use-directives": "^0.0.3",
4348
"eslint-plugin-i18next": "^6.1.3",
4449
"eslint-plugin-import": "^2.32.0",
4550
"eslint-plugin-jsx-a11y": "^6.10.2",
46-
"eslint-plugin-playwright": "^2.2.2",
47-
"eslint-plugin-prettier": "^5.5.3",
51+
"eslint-plugin-playwright": "^2.9.0",
52+
"eslint-plugin-prettier": "^5.5.5",
4853
"eslint-plugin-react": "^7.37.5",
49-
"eslint-plugin-react-hooks": "^6.1.0",
50-
"globals": "^16.4.0",
54+
"eslint-plugin-react-hooks": "^7.0.1",
55+
"globals": "^17.4.0",
5156
"husky": "^9.1.7",
52-
"lint-staged": "^16.2.3",
57+
"lint-staged": "^16.3.1",
5358
"postcss": "^8.5.6",
5459
"postcss-styled-syntax": "^0.7.1",
5560
"postcss-syntax": "^0.36.2",
56-
"prettier": "^3.6.2",
57-
"stylelint": "^16.23.0",
58-
"stylelint-config-recommended": "^17.0.0",
61+
"prettier": "^3.8.1",
62+
"stylelint": "^17.4.0",
63+
"stylelint-config-recommended": "^18.0.0",
5964
"ts-auto-guard": "^5.0.1",
60-
"tsx": "^4.20.3",
65+
"tsx": "^4.21.0",
6166
"typescript": "^5.9.3"
6267
}
6368
}

0 commit comments

Comments
 (0)