Skip to content

Commit 92d4e0c

Browse files
committed
Update Transition and bump packages to match
* lodash: 4.17.21 => 4.17.23 * @types.lodash: 4.17.21 => 4.17.23 * yargs: 17.7.2 => 18.0.0 For `yargs` update, change the `.argv` to use `.parseSync()` instead. In the root `package.json` add a resolution of `kdbush` to 3.0.0 to avoid compilation errors with some packages depending on a more recent version. This requirement comes from Transition, who does the same.
1 parent f2ade4d commit 92d4e0c

File tree

12 files changed

+153
-264
lines changed

12 files changed

+153
-264
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2121
### Security
2222

2323
### Dependency updates
24+
- lodash: 4.17.21 => 4.17.23
25+
- @types/lodash: 4.17.21 => 4.17.23
26+
- yargs: 17.7.2 => 18.0.0
27+
- In the root `package.json` add a resolution of `kdbush` to 3.0.0 to avoid compilation errors with some packages depending on a more recent version. This requirement comes from Transition, who does the same (see https://github.com/chairemobilite/transition/issues/921 to track issue to upgrade/remove `kdbush`).
2428

2529

2630
## [0.5.0] - 2026-01-30

example/demo_generator/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@
3838
"evolution-frontend": "^0.6.0",
3939
"evolution-generator": "^0.6.0",
4040
"i18next": "^25.7.4",
41-
"lodash": "^4.17.21",
41+
"lodash": "^4.17.23",
4242
"moment": "^2.30.1",
4343
"moment-business-days": "^1.2.0"
4444
},
4545
"devDependencies": {
4646
"@types/geojson": "^7946.0.16",
47-
"@types/lodash": "^4.17.21",
47+
"@types/lodash": "^4.17.23",
4848
"@types/node": "^24.10.4",
4949
"@typescript-eslint/eslint-plugin": "^8.31.1",
5050
"@typescript-eslint/parser": "^8.31.1",

example/demo_survey/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"evolution-frontend": "^0.6.0",
4141
"geojson-validation": "^1.0.2",
4242
"json2csv": "^5.0.7",
43-
"lodash": "^4.17.21",
43+
"lodash": "^4.17.23",
4444
"moment": "^2.30.1",
4545
"moment-business-days": "^1.2.0",
4646
"moment-timezone": "^0.5.46",
@@ -53,7 +53,7 @@
5353
"devDependencies": {
5454
"@alienfast/i18next-loader": "^2.0.2",
5555
"@types/geojson": "^7946.0.16",
56-
"@types/lodash": "^4.17.21",
56+
"@types/lodash": "^4.17.23",
5757
"@types/node": "^24.10.4",
5858
"clean-webpack-plugin": "^4.0.0",
5959
"compression-webpack-plugin": "^11.1.0",

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@
5454
"generateSurvey:generator": "yarn workspace evolution-generator run generateSurvey --config_path ../../example/demo_generator/references/generatorConfigs.yaml",
5555
"jsdoc": "yarn workspace evolution-common run jsdoc"
5656
},
57+
"resolutions": {
58+
"kdbush": "^3.0.0"
59+
},
5760
"dependencies": {},
5861
"devDependencies": {
5962
"depcheck": "^1.4.3",

packages/evolution-backend/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"jsdom": "^20.0.3",
3939
"knex": "^3.1.0",
4040
"knex-postgis": "^0.14.3",
41-
"lodash": "^4.17.21",
41+
"lodash": "^4.17.23",
4242
"moment": "^2.30.1",
4343
"morgan": "^1.10.0",
4444
"p-queue": "^6.6.2",
@@ -50,15 +50,15 @@
5050
"slugify": "^1.6.6",
5151
"uuid": "^11.1.0",
5252
"workerpool": "^6.5.1",
53-
"yargs": "^17.7.2"
53+
"yargs": "^18.0.0"
5454
},
5555
"devDependencies": {
5656
"@types/express": "^5.0.6",
5757
"@types/express-session": "^1.18.2",
5858
"@types/geojson": "^7946.0.16",
5959
"@types/jest": "^30.0.0",
6060
"@types/jest-each": "^24.3.0",
61-
"@types/lodash": "^4.17.21",
61+
"@types/lodash": "^4.17.23",
6262
"@types/node": "^24.10.4",
6363
"@typescript-eslint/eslint-plugin": "^8.50.0",
6464
"@typescript-eslint/parser": "^8.50.0",

packages/evolution-backend/src/apps/admin/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ import { createServer as httpCreateServer } from 'http';
1010
import { createServer as httpsCreateServer } from 'https';
1111
import fs from 'fs';
1212
import { join } from 'path';
13-
import yargs from 'yargs/yargs';
13+
import yargs from 'yargs';
1414
import { hideBin } from 'yargs/helpers';
1515
import { registerTranslationDir } from 'chaire-lib-backend/lib/config/i18next';
1616
import express, { Express } from 'express';
1717
import { setupServerApp } from './serverApp';
1818

19-
const argv = yargs(hideBin(process.argv)).argv as { ssl?: boolean; port?: string };
19+
const argv = yargs(hideBin(process.argv)).parseSync();
2020

21-
const useSSL = argv.ssl;
22-
const port = argv.port ? parseInt(argv.port) : useSSL ? 8443 : 8080;
21+
const useSSL = typeof argv.ssl === 'boolean' ? argv.ssl : false;
22+
const port = argv.port ? parseInt(argv.port as string) : useSSL ? 8443 : 8080;
2323

2424
console.log(`starting server for project ${config.projectShortname} with port ${port}`);
2525

packages/evolution-backend/src/apps/participant/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ import { createServer as httpCreateServer } from 'http';
1010
import { createServer as httpsCreateServer } from 'https';
1111
import fs from 'fs';
1212
import { join } from 'path';
13-
import yargs from 'yargs/yargs';
13+
import yargs from 'yargs';
1414
import { hideBin } from 'yargs/helpers';
1515
import { registerTranslationDir } from 'chaire-lib-backend/lib/config/i18next';
1616
import express from 'express';
1717
import { setupServerApp } from './serverApp';
1818

19-
const argv = yargs(hideBin(process.argv)).argv as { [key: string]: unknown; ssl?: boolean; port?: string };
19+
const argv = yargs(hideBin(process.argv)).parseSync();
2020

21-
const useSSL = argv.ssl;
22-
const port = argv.port ? parseInt(argv.port) : useSSL ? 8443 : 8080;
21+
const useSSL = typeof argv.ssl === 'boolean' ? argv.ssl : false;
22+
const port = argv.port ? parseInt(argv.port as string) : useSSL ? 8443 : 8080;
2323

2424
console.log(`starting server for project ${config.projectShortname} with port ${port}`);
2525

packages/evolution-common/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
"chaire-lib-common": "^0.2.2",
2828
"geojson-validation": "^1.0.2",
2929
"i18next": "^25.7.4",
30-
"lodash": "^4.17.21",
30+
"lodash": "^4.17.23",
3131
"moment": "^2.30.1",
3232
"uuid": "^11.1.0"
3333
},
3434
"devDependencies": {
3535
"@types/geojson": "^7946.0.16",
36-
"@types/lodash": "^4.17.21",
36+
"@types/lodash": "^4.17.23",
3737
"@types/node": "^24.10.4",
3838
"@typescript-eslint/eslint-plugin": "^8.50.0",
3939
"@typescript-eslint/parser": "^8.50.0",

packages/evolution-frontend/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"highcharts-react-official": "^3.2.1",
5353
"i18next": "^25.7.4",
5454
"i18next-browser-languagedetector": "^8.2.0",
55-
"lodash": "^4.17.21",
55+
"lodash": "^4.17.23",
5656
"maplibre-gl": "^5.7.1",
5757
"moment": "^2.30.1",
5858
"node-fetch": "^2.6.7",
@@ -82,7 +82,7 @@
8282
"@types/geojson": "^7946.0.16",
8383
"@types/jest": "^30.0.0",
8484
"@types/jest-axe": "^3.5.5",
85-
"@types/lodash": "^4.17.21",
85+
"@types/lodash": "^4.17.23",
8686
"@types/node": "^24.10.4",
8787
"@types/react-dom": "^19.2.3",
8888
"@typescript-eslint/eslint-plugin": "^8.50.0",

packages/evolution-interviewer/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"express": "^5.2.1",
3535
"i18next": "^25.7.4",
3636
"knex": "^3.1.0",
37-
"lodash": "^4.17.21",
37+
"lodash": "^4.17.23",
3838
"moment": "^2.30.1",
3939
"papaparse": "^5.5.3",
4040
"react": "^19.2.3",
@@ -44,7 +44,7 @@
4444
"devDependencies": {
4545
"@types/jest": "^30.0.0",
4646
"@types/jest-each": "^24.3.0",
47-
"@types/lodash": "^4.17.21",
47+
"@types/lodash": "^4.17.23",
4848
"@types/node": "^24.10.4",
4949
"@typescript-eslint/eslint-plugin": "^8.50.0",
5050
"@typescript-eslint/parser": "^8.50.0",

0 commit comments

Comments
 (0)