Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mise à jour vers node@22 #1226

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ permissions:

# Allow one concurrent deployment
concurrency:
group: "pages"
group: 'pages'
cancel-in-progress: true

jobs:
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "18"
node-version-file: docs/.node-version
cache: ${{ steps.detect-package-manager.outputs.manager }}
- name: Setup Pages
uses: actions/configure-pages@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ jobs:
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
carryforward: 'run-front,run-graphql,run-export'
carryforward: 'run-front,run-graphql'
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18
v22
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Plus d'informations sur [la documentation](http://stylo-doc.ecrituresnumeriques.

# Pré-requis

- Node.js v18+
- MongoDB
- Node.js v22+
- MongoDB 4.4

## Sous MacOS

Expand Down
8 changes: 4 additions & 4 deletions docs/netlify.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build]
command = "npm run build"
publish = "_site"
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ."
environment = { NODE_VERSION = "18.20.4" }
command = "npm run build"
publish = "_site"
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ."
environment = { NODE_VERSION = "18" }
2 changes: 1 addition & 1 deletion front/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = {
plugins: ['react', 'vitest', 'jsdoc'],
settings: {
react: {
version: '16.13',
version: '18.3',
},
},
globals: {
Expand Down
28 changes: 16 additions & 12 deletions front/babel.config.cjs
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
/* eslint-disable no-undef */
module.exports = {
"presets": [
['@babel/preset-react', {
runtime: 'automatic',
development: process.env.NODE_ENV === 'development',
importSource: '@welldone-software/why-did-you-render',
}],
presets: [
[
'@babel/preset-env', {
corejs: "3.21",
useBuiltIns: "entry"
}
]
]
'@babel/preset-react',
{
runtime: 'automatic',
development: process.env.NODE_ENV === 'development',
importSource: '@welldone-software/why-did-you-render',
},
],
[
'@babel/preset-env',
{
corejs: '3.38',
useBuiltIns: 'entry',
},
],
],
}
8 changes: 4 additions & 4 deletions front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"> 0.2%"
],
"engines": {
"node": ">=18",
"node": ">=22",
"npm": ">=10"
},
"scripts": {
Expand Down Expand Up @@ -110,7 +110,7 @@
"vitest": "^3.0.3"
},
"volta": {
"node": "18.20.4",
"npm": "10.9.0"
"node": "22.13.1",
"npm": "10.9.2"
}
}
}
2 changes: 1 addition & 1 deletion front/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { fileURLToPath } from 'node:url'
import { defineConfig, loadEnv } from 'vite'
import { sentryVitePlugin } from '@sentry/vite-plugin'
import pkg from './package.json' assert { type: 'json' }
import pkg from './package.json' with { type: 'json' }
import react from '@vitejs/plugin-react'
import handlebars from 'vite-plugin-handlebars'
import graphql from '@rollup/plugin-graphql'
Expand Down
4 changes: 1 addition & 3 deletions graphql/dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Alpine 3.17 and Node 18 uses OpenSSL 3.0 but humanid.huma-num.fr does not yet support this version
# if you want to upgrade to Alpine 3.17 or Node 18 make sure that humanid.huma-num.fr supports OpenSSL 3.0 otherwise OAuth won't work!
FROM node:16.20-alpine3.16
FROM node:22-alpine

WORKDIR /usr/src/app

Expand Down
Loading
Loading