Skip to content

Commit 9f8609e

Browse files
bjlaadependabot[bot]paulsoucheClemogincubateur-ademe-admin
authored
đź”– Release 2.36.0 (#1341)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Benjamin Arias <12382534+bjlaa@users.noreply.github.com> Co-authored-by: Paul Souche <paul@bettercallpaul.fr> Co-authored-by: Clément <55186402+Clemog@users.noreply.github.com> Co-authored-by: Clément <clem.auger@hotmail.fr> Co-authored-by: Bot Incubateur Ademe <153178900+incubateur-ademe-admin@users.noreply.github.com>
1 parent b71e9f6 commit 9f8609e

File tree

39 files changed

+948
-1078
lines changed

39 files changed

+948
-1078
lines changed

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,5 @@ coverage
6868
.husky/pre-push-custom
6969

7070
*.log
71+
72+
/public/mockServiceWorker.js

‎check-memory.mjs‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import os from 'node:os'
2+
import v8 from 'node:v8'
3+
4+
const { heap_size_limit } = v8.getHeapStatistics()
5+
const old_space = v8
6+
.getHeapSpaceStatistics()
7+
.find(({ space_name }) => space_name === 'old_space')
8+
const heapSizeInGB = heap_size_limit / (1024 * 1024 * 1024)
9+
const totalMemory = os.totalmem() / (1024 * 1024 * 1024)
10+
11+
console.log(`${heapSizeInGB} GB`)
12+
console.log(`${totalMemory.toFixed(3)} GB`)
13+
console.log(old_space)

‎package.json‎

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"test:ui": "vitest --ui",
1818
"dev": "next dev",
1919
"dev:turbo": "next dev --turbopack",
20-
"build": "NODE_OPTIONS=--max-old-space-size=7168 next build",
20+
"build": "node ./check-memory.mjs && node --max-old-space-size=4608 --trace-gc-ignore-scavenger node_modules/next/dist/bin/next build",
2121
"build:analyze": "ANALYZE=true next build",
2222
"build:debug-memory": "next build --experimental-debug-memory-usage",
2323
"build:turbo": "next build --turbopack",
@@ -45,12 +45,11 @@
4545
},
4646
"dependencies": {
4747
"@incubateur-ademe/legal-pages-react": "^0.5.0",
48-
"@incubateur-ademe/nosgestesclimat": "^3.12.0",
49-
"@next/mdx": "^15.3.2",
48+
"@incubateur-ademe/nosgestesclimat": "^3.12.1",
49+
"@next/mdx": "^15.5.4",
5050
"@publicodes/react-ui": "^1.9.1",
5151
"@publicodes/tools": "^1.8.0",
5252
"@sentry/nextjs": "^9.38.0",
53-
"@socialgouv/react-departements": "^3.0.0",
5453
"@splidejs/react-splide": "^0.7.12",
5554
"@tailwindcss/postcss": "^4.1.10",
5655
"@tanstack/react-query": "^5.83.0",
@@ -67,7 +66,7 @@
6766
"is-mobile": "^5.0.0",
6867
"jszip": "^3.10.1",
6968
"markdown-to-jsx": "^7.7.3",
70-
"next": "15.3.4",
69+
"next": "15.5.4",
7170
"next-i18n-router": "^5.5.2",
7271
"postcss": "8.5.3",
7372
"posthog-js": "^1.255.1",
@@ -77,7 +76,7 @@
7776
"react-debounce-input": "^3.3.0",
7877
"react-dom": "19.1.1",
7978
"react-easy-emoji": "^1.8.1",
80-
"react-hook-form": "^7.60.0",
79+
"react-hook-form": "^7.63.0",
8180
"react-i18next": "^15.6.0",
8281
"react-modal": "^3.16.3",
8382
"react-number-format": "^5.4.4",
@@ -90,39 +89,38 @@
9089
"tailwind-merge": "^3.0.1",
9190
"tailwindcss": "^4.1.11",
9291
"use-count-up": "^3.0.1",
93-
"uuid": "^11.0.5",
94-
"yargs": "^18.0.0"
92+
"uuid": "^11.0.5"
9593
},
9694
"devDependencies": {
9795
"@babel/core": "^7.26.8",
9896
"@babel/eslint-parser": "^7.26.8",
9997
"@chromatic-com/storybook": "^4.0.1",
100-
"@faker-js/faker": "^9.8.0",
98+
"@faker-js/faker": "^10.0.0",
10199
"@incubateur-ademe/nosgestesclimat-scripts": "^0.6.0",
102100
"@mdx-js/loader": "^3.1.0",
103101
"@mdx-js/react": "^3.1.0",
104-
"@next/bundle-analyzer": "15.3.0",
102+
"@next/bundle-analyzer": "15.5.4",
105103
"@simonsmith/cypress-image-snapshot": "^9.1.0",
106-
"@storybook/addon-docs": "^9.0.16",
107-
"@storybook/addon-onboarding": "^9.0.16",
108-
"@storybook/addon-vitest": "9.0.16",
109-
"@storybook/nextjs": "^9.0.16",
110-
"@storybook/nextjs-vite": "^9.0.16",
104+
"@storybook/addon-docs": "^9.1.8",
105+
"@storybook/addon-onboarding": "^9.1.8",
106+
"@storybook/addon-vitest": "9.1.8",
107+
"@storybook/nextjs": "^9.1.8",
108+
"@storybook/nextjs-vite": "^9.1.8",
111109
"@swc/core": "^1.11.29",
112110
"@testing-library/dom": "^10.4.0",
113111
"@testing-library/jest-dom": "^6.6.3",
114112
"@testing-library/react": "^16.3.0",
115113
"@testing-library/user-event": "^14.6.1",
116114
"@types/mdx": "^2.0.10",
117115
"@types/mocha": "^10.0.10",
118-
"@types/node": "^22.13.1",
119-
"@types/react": "19.1.6",
120-
"@types/react-dom": "19.1.7",
116+
"@types/node": "^24.5.2",
117+
"@types/react": "19.1.13",
118+
"@types/react-dom": "19.1.9",
121119
"@types/react-modal": "^3.16.3",
122120
"@types/uuid": "^10.0.0",
123121
"@types/webpack": "^5.28.5",
124-
"@typescript-eslint/eslint-plugin": "^8.32.0",
125-
"@typescript-eslint/parser": "^8.36.0",
122+
"@typescript-eslint/eslint-plugin": "^8.44.1",
123+
"@typescript-eslint/parser": "^8.44.1",
126124
"@vitejs/plugin-react": "^4.6.0",
127125
"@vitest/browser": "^3.1.1",
128126
"@vitest/coverage-v8": "^3.2.4",
@@ -135,42 +133,43 @@
135133
"cypress-axe": "^1.6.0",
136134
"cypress-plugin-tab": "^1.0.5",
137135
"cypress-recurse": "^1.35.2",
138-
"deepl-node": "^1.19.0",
136+
"deepl-node": "^1.19.1",
139137
"dotenv": "^16.4.7",
140-
"eslint": "^9.32.0",
141-
"eslint-config-next": "15.3.0",
138+
"eslint": "^9.36.0",
139+
"eslint-config-next": "15.5.4",
142140
"eslint-config-prettier": "^10.1.5",
143141
"eslint-import-resolver-alias": "^1.1.2",
144142
"eslint-plugin-cypress": "^5.1.0",
145143
"eslint-plugin-import": "^2.31.0",
146144
"eslint-plugin-jsx-a11y": "^6.10.2",
147145
"eslint-plugin-react": "^7.37.4",
148146
"eslint-plugin-react-hooks": "^5.2.0",
149-
"eslint-plugin-storybook": "^9.0.16",
147+
"eslint-plugin-storybook": "^9.1.8",
150148
"glob": "^11.0.1",
151149
"happy-dom": "^18.0.1",
152150
"husky": "^9.1.7",
153151
"jsdom": "^26.1.0",
154152
"json-stable-stringify": "^1.3.0",
155-
"msw": "^2.8.4",
153+
"msw": "^2.11.3",
156154
"msw-storybook-addon": "^2.0.5",
157155
"next-router-mock": "^1.0.2",
158156
"pg": "^8.13.3",
159-
"playwright": "^1.52.0",
157+
"playwright": "^1.55.1",
160158
"postcss-loader": "^8.1.0",
161159
"prettier": "^3.5.3",
162-
"prettier-plugin-organize-imports": "^4.2.0",
160+
"prettier-plugin-organize-imports": "^4.3.0",
163161
"prettier-plugin-tailwindcss": "^0.6.12",
164-
"puppeteer": "^24.8.2",
162+
"puppeteer": "^24.22.2",
165163
"ramda": "^0.31.3",
166-
"storybook": "^9.0.16",
164+
"storybook": "^9.1.8",
167165
"ts-node": "^10.9.2",
168166
"ts-prune": "^0.10.3",
169167
"typescript": "^5.7.3",
170-
"typescript-eslint": "^8.24.0",
168+
"typescript-eslint": "^8.44.1",
171169
"vite": "^5.4.10",
172170
"vitest": "^3.2.4",
173-
"yaml-loader": "^0.8.1"
171+
"yaml-loader": "^0.8.1",
172+
"yargs": "^18.0.0"
174173
},
175174
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
176175
"msw": {
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Demo Iframe Simulation</title>
7+
</head>
8+
<body>
9+
<header>
10+
<h2>
11+
Exemple d'intégration du test avec région fixée par l'intégrateur.
12+
</h2>
13+
<p>
14+
Ci-dessous, nosgestesclimat.fr intégré comme un iframe paramétré ne
15+
contenant que la partie simulation du test. Dans cet exemple, la Suisse
16+
a été définie comme étant la région par défaut du test.
17+
</p>
18+
</header>
19+
<main>
20+
<script
21+
id="nosgestesclimat"
22+
src="/iframeSimulation.js"
23+
data-only-simulation="true"
24+
data-lang="en"
25+
data-region="CH"></script>
26+
</main>
27+
</body>
28+
</html>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Demo Iframe Simulation</title>
7+
</head>
8+
<body>
9+
<header>
10+
<h2>
11+
Exemple d'intégration du test avec région fixée par l'intégrateur.
12+
</h2>
13+
<p>
14+
Ci-dessous, nosgestesclimat.fr intégré comme un iframe paramétré ne
15+
contenant que la partie simulation du test. Dans cet exemple, la Suisse
16+
a été définie comme étant la région par défaut du test.
17+
</p>
18+
</header>
19+
<main>
20+
<script
21+
id="nosgestesclimat"
22+
src="/iframeSimulation.js"
23+
data-only-simulation="true"
24+
data-lang="fr"
25+
data-region="CH"></script>
26+
</main>
27+
</body>
28+
</html>

0 commit comments

Comments
 (0)