Skip to content

Commit ef17c70

Browse files
committed
thjs-124: * upgrade nodejs with 20 lts version with npm package updates
1 parent 1ea0300 commit ef17c70

File tree

10 files changed

+4737
-3585
lines changed

10 files changed

+4737
-3585
lines changed

apps/backend/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import tsconfigJson from './tsconfig.json' assert { type: 'json' };
77
const sourcePath = join(fileURLToPath(import.meta.url), '../');
88

99
const manageKey = key => {
10-
return key.includes('(.*)') ? key.slice(0, -1) + '\\.js$' : key;
10+
return key.includes('(.*)') ? key.slice(0, -1) + String.raw`\.js$` : key;
1111
};
1212

1313
const manageMapper = mapper => ({

apps/backend/package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "@thread-js/backend",
33
"private": true,
44
"engines": {
5-
"node": "18.18.x",
6-
"npm": "9.8.x"
5+
"node": "20.11.x",
6+
"npm": "10.2.x"
77
},
88
"type": "module",
99
"scripts": {
@@ -25,31 +25,31 @@
2525
"test:auth": "npm run test -- --verbose --rootDir=tests/modules/auth/"
2626
},
2727
"dependencies": {
28-
"@fastify/static": "6.12.0",
28+
"@fastify/static": "7.0.4",
2929
"@thread-js/shared": "*",
3030
"bcrypt": "5.1.1",
3131
"convict": "6.2.4",
32-
"dotenv": "16.3.1",
33-
"fastify": "4.25.1",
32+
"dotenv": "16.4.5",
33+
"fastify": "4.27.0",
3434
"knex": "3.1.0",
35-
"objection": "3.1.3",
36-
"pg": "8.7.3",
35+
"objection": "3.1.4",
36+
"pg": "8.12.0",
3737
"pino": "9.1.0",
38-
"qs": "6.11.2"
38+
"qs": "6.12.1"
3939
},
4040
"devDependencies": {
41-
"@faker-js/faker": "8.3.1",
41+
"@faker-js/faker": "8.4.1",
4242
"@jest/globals": "29.7.0",
4343
"@types/bcrypt": "5.0.2",
4444
"@types/convict": "6.1.6",
45-
"@types/jest": "29.5.11",
46-
"@types/pg": "8.10.9",
47-
"@types/qs": "6.9.10",
45+
"@types/jest": "29.5.12",
46+
"@types/pg": "8.11.6",
47+
"@types/qs": "6.9.15",
4848
"cross-env": "7.0.3",
4949
"jest": "29.7.0",
50-
"nodemon": "3.0.2",
51-
"pino-pretty": "10.3.0",
52-
"ts-jest": "29.1.1",
50+
"nodemon": "3.1.3",
51+
"pino-pretty": "11.2.0",
52+
"ts-jest": "29.1.4",
5353
"ts-node": "10.9.2",
5454
"ts-paths-esm-loader": "1.4.3"
5555
}

apps/backend/tests/libs/modules/app/libs/helpers/build-app/build-app.helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const buildApp: BuildApp = () => {
2525
database,
2626
logger,
2727
options: {
28-
logger: true
28+
logger: false
2929
}
3030
});
3131

apps/backend/tests/modules/auth/auth.api.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe(`${authApiPath} routes`, () => {
4747

4848
expect(response.statusCode).toBe(HTTPCode.UNPROCESSED_ENTITY);
4949
expect(response.json<Record<'message', string>>().message).toBe(
50-
`${UserValidationMessage.USERNAME_REQUIRE}. ${UserValidationMessage.EMAIL_REQUIRE}. ${UserValidationMessage.PASSWORD_REQUIRE}`
50+
`${UserValidationMessage.EMAIL_REQUIRE}. ${UserValidationMessage.PASSWORD_REQUIRE}. ${UserValidationMessage.USERNAME_REQUIRE}`
5151
);
5252
});
5353

apps/frontend/package.json

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "@thread-js/frontend",
33
"private": true,
44
"engines": {
5-
"node": "18.18.x",
6-
"npm": "9.8.x"
5+
"node": "20.11.x",
6+
"npm": "10.2.x"
77
},
88
"type": "module",
99
"scripts": {
@@ -17,14 +17,14 @@
1717
},
1818
"dependencies": {
1919
"@hookform/error-message": "2.0.1",
20-
"@hookform/resolvers": "3.3.2",
21-
"@reduxjs/toolkit": "2.0.1",
20+
"@hookform/resolvers": "3.6.0",
21+
"@reduxjs/toolkit": "2.2.5",
2222
"@thread-js/shared": "*",
23-
"clsx": "2.0.0",
24-
"query-string": "8.1.0",
25-
"react": "18.2.0",
26-
"react-dom": "18.2.0",
27-
"react-hook-form": "7.49.2",
23+
"clsx": "2.1.1",
24+
"query-string": "9.0.0",
25+
"react": "18.3.1",
26+
"react-dom": "18.3.1",
27+
"react-hook-form": "7.51.5",
2828
"react-redux": "9.1.2",
2929
"react-router-dom": "6.23.1"
3030
},
@@ -35,16 +35,15 @@
3535
"not op_mini all"
3636
],
3737
"devDependencies": {
38-
"@types/react": "18.2.45",
39-
"@types/react-dom": "18.2.18",
40-
"@vitejs/plugin-react": "4.2.1",
38+
"@types/react": "18.3.3",
39+
"@types/react-dom": "18.3.0",
40+
"@vitejs/plugin-react": "4.3.1",
4141
"eslint-plugin-jsx-a11y": "6.8.0",
42-
"eslint-plugin-react": "7.33.2",
42+
"eslint-plugin-react": "7.34.2",
4343
"eslint-plugin-react-hooks": "4.6.2",
44-
"sass": "1.69.5",
45-
"stylelint-config-standard-scss": "12.0.0",
46-
"stylelint-scss": "6.0.0",
47-
"vite": "5.0.10",
48-
"vite-tsconfig-paths": "4.2.2"
44+
"stylelint-config-standard-scss": "13.1.0",
45+
"stylelint-scss": "6.3.1",
46+
"vite": "5.2.13",
47+
"vite-tsconfig-paths": "4.3.2"
4948
}
5049
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
:root {
22
--blue: #2185d0;
33
--teal: #00b5ad;
4-
--white: #fff;
4+
--white: #ffffff;
55
--light-shadow: rgba(34 36 38 / 15%);
66
}

eslint.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ const unicornConfig = {
125125
},
126126
rules: {
127127
...unicorn.configs.recommended.rules,
128+
'unicorn/import-style': ['off'],
128129
'unicorn/no-null': ['off']
129130
}
130131
};
@@ -200,6 +201,11 @@ const typescriptConfig = {
200201
prev: '*'
201202
}
202203
],
204+
'@typescript-eslint/restrict-plus-operands': ['off'],
205+
'@typescript-eslint/restrict-template-expressions': [
206+
'error',
207+
{ allowNumber: true }
208+
],
203209
'@typescript-eslint/return-await': ['error', 'always']
204210
}
205211
};

0 commit comments

Comments
 (0)