From: Jérôme Benoit Date: Fri, 29 Sep 2023 18:26:40 +0000 (+0200) Subject: build(ci): run on node 20.x X-Git-Tag: v1.2.23~11 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=33885870790ee1dbe8926d6c7ddcc663bc4bca52;p=e-mobility-charging-stations-simulator.git build(ci): run on node 20.x Signed-off-by: Jérôme Benoit --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 71312ce5..be2b95f9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: strategy: matrix: os: [windows-latest, macos-latest, ubuntu-latest] - node: ['18.x', '20.x'] + node: ['20.x'] name: Build simulator with Node ${{ matrix.node }} on ${{ matrix.os }} runs-on: ${{ matrix.os }} steps: @@ -73,7 +73,7 @@ jobs: strategy: matrix: os: [windows-latest, macos-latest, ubuntu-latest] - node: ['16.x', '18.x', '20.x'] + node: ['18.x', '20.x'] name: Build dashboard with Node ${{ matrix.node }} on ${{ matrix.os }} runs-on: ${{ matrix.os }} defaults: diff --git a/package.json b/package.json index 965854ac..830eea9e 100644 --- a/package.json +++ b/package.json @@ -132,7 +132,7 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-terser": "^0.4.3", "@rollup/plugin-typescript": "^11.1.4", - "@types/node": "^20.7.1", + "@types/node": "^20.7.2", "@types/sinon": "^10.0.17", "@types/tar": "^6.1.6", "@types/ws": "^8.5.6", @@ -162,6 +162,7 @@ "rollup-plugin-delete": "^2.0.0", "semver": "^7.5.4", "sinon": "^16.0.0", + "ts-node": "^10.9.1", "tsx": "^3.13.0", "typescript": "~5.2.2" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d6b3fdb6..cd6c0afe 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -109,8 +109,8 @@ devDependencies: specifier: ^11.1.4 version: 11.1.4(rollup@3.29.4)(tslib@2.6.2)(typescript@5.2.2) '@types/node': - specifier: ^20.7.1 - version: 20.7.1 + specifier: ^20.7.2 + version: 20.7.2 '@types/sinon': specifier: ^10.0.17 version: 10.0.17 @@ -198,6 +198,9 @@ devDependencies: sinon: specifier: ^16.0.0 version: 16.0.0 + ts-node: + specifier: ^10.9.1 + version: 10.9.1(@types/node@20.7.2)(typescript@5.2.2) tsx: specifier: ^3.13.0 version: 3.13.0 @@ -517,7 +520,7 @@ packages: lodash.merge: 4.6.2 lodash.uniq: 4.5.0 resolve-from: 5.0.0 - ts-node: 10.9.1(@types/node@20.7.1)(typescript@5.2.2) + ts-node: 10.9.1(@types/node@20.5.1)(typescript@5.2.2) typescript: 5.2.2 transitivePeerDependencies: - '@swc/core' @@ -925,7 +928,7 @@ packages: '@jest/schemas': 29.6.3 '@types/istanbul-lib-coverage': 2.0.4 '@types/istanbul-reports': 3.0.2 - '@types/node': 20.7.1 + '@types/node': 20.7.2 '@types/yargs': 17.0.26 chalk: 4.1.2 dev: true @@ -1640,7 +1643,7 @@ packages: resolution: {integrity: sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==} dependencies: '@types/minimatch': 5.1.2 - '@types/node': 20.7.1 + '@types/node': 20.7.2 dev: true /@types/http-cache-semantics@4.0.2: @@ -1690,8 +1693,8 @@ packages: resolution: {integrity: sha512-4tT2UrL5LBqDwoed9wZ6N3umC4Yhz3W3FloMmiiG4JwmUJWpie0c7lcnUNd4gtMKuDEO4wRVS8B6Xa0uMRsMKg==} dev: true - /@types/node@20.7.1: - resolution: {integrity: sha512-LT+OIXpp2kj4E2S/p91BMe+VgGX2+lfO+XTpfXhh+bCk2LkQtHZSub8ewFBMGP5ClysPjTDFa4sMI8Q3n4T0wg==} + /@types/node@20.7.2: + resolution: {integrity: sha512-RcdC3hOBOauLP+r/kRt27NrByYtDjsXyAuSbR87O6xpsvi763WI+5fbSIvYJrXnt9w4RuxhV6eAXfIs7aaf/FQ==} /@types/normalize-package-data@2.4.2: resolution: {integrity: sha512-lqa4UEhhv/2sjjIQgjX8B+RBjj47eo0mzGasklVJ78UKGQY1r0VpB9XHDaZZO9qzEFDdy4MrXLuEaSmPrPSe/A==} @@ -1726,7 +1729,7 @@ packages: /@types/tar@6.1.6: resolution: {integrity: sha512-HQ06kiiDXz9uqtmE9ksQUn1ovcPr1gGV9EgaCWo6FGYKD0onNBCetBzL0kfcS8Kbj1EFxJWY9jL2W4ZvvtGI8Q==} dependencies: - '@types/node': 20.7.1 + '@types/node': 20.7.2 minipass: 4.2.8 dev: true @@ -1745,14 +1748,14 @@ packages: /@types/whatwg-url@8.2.2: resolution: {integrity: sha512-FtQu10RWgn3D9U4aazdwIE2yzphmTJREDqNdODHrbrZmmMqI0vMheC/6NE/J1Yveaj8H+ela+YwWTjq5PGmuhA==} dependencies: - '@types/node': 20.7.1 + '@types/node': 20.7.2 '@types/webidl-conversions': 7.0.1 dev: false /@types/ws@8.5.6: resolution: {integrity: sha512-8B5EO9jLVCy+B58PLHvLDuOD8DRVMgQzq8d55SjLCOn9kqGyqOvy27exVaTio1q1nX5zLu8/6N0n2ThSxOM6tg==} dependencies: - '@types/node': 20.7.1 + '@types/node': 20.7.2 dev: true /@types/yargs-parser@21.0.1: @@ -3232,7 +3235,7 @@ packages: dependencies: '@types/node': 20.5.1 cosmiconfig: 8.3.6(typescript@5.2.2) - ts-node: 10.9.1(@types/node@20.7.1)(typescript@5.2.2) + ts-node: 10.9.1(@types/node@20.5.1)(typescript@5.2.2) typescript: 5.2.2 dev: true @@ -5994,7 +5997,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.6.3 - '@types/node': 20.7.1 + '@types/node': 20.7.2 chalk: 4.1.2 ci-info: 3.8.0 graceful-fs: 4.2.11 @@ -9244,7 +9247,7 @@ packages: code-block-writer: 12.0.0 dev: false - /ts-node@10.9.1(@types/node@20.7.1)(typescript@5.2.2): + /ts-node@10.9.1(@types/node@20.5.1)(typescript@5.2.2): resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true peerDependencies: @@ -9263,7 +9266,38 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 20.7.1 + '@types/node': 20.5.1 + acorn: 8.10.0 + acorn-walk: 8.2.0 + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.2 + make-error: 1.3.6 + typescript: 5.2.2 + v8-compile-cache-lib: 3.0.1 + yn: 3.1.1 + dev: true + + /ts-node@10.9.1(@types/node@20.7.2)(typescript@5.2.2): + resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} + hasBin: true + peerDependencies: + '@swc/core': '>=1.2.50' + '@swc/wasm': '>=1.2.50' + '@types/node': '*' + typescript: '>=2.7' + peerDependenciesMeta: + '@swc/core': + optional: true + '@swc/wasm': + optional: true + dependencies: + '@cspotcode/source-map-support': 0.8.1 + '@tsconfig/node10': 1.0.9 + '@tsconfig/node12': 1.0.11 + '@tsconfig/node14': 1.0.3 + '@tsconfig/node16': 1.0.4 + '@types/node': 20.7.2 acorn: 8.10.0 acorn-walk: 8.2.0 arg: 4.1.3 diff --git a/ui/web/package.json b/ui/web/package.json index 79b99b1f..643f933f 100644 --- a/ui/web/package.json +++ b/ui/web/package.json @@ -39,7 +39,7 @@ "devDependencies": { "@tsconfig/node20": "^20.1.2", "@types/jsdom": "^21.1.3", - "@types/node": "^20.7.1", + "@types/node": "^20.7.2", "@typescript-eslint/eslint-plugin": "^6.7.3", "@typescript-eslint/parser": "^6.7.3", "@vitejs/plugin-vue": "^4.3.4", diff --git a/ui/web/pnpm-lock.yaml b/ui/web/pnpm-lock.yaml index 71140780..ab4cedb9 100644 --- a/ui/web/pnpm-lock.yaml +++ b/ui/web/pnpm-lock.yaml @@ -29,8 +29,8 @@ devDependencies: specifier: ^21.1.3 version: 21.1.3 '@types/node': - specifier: ^20.7.1 - version: 20.7.1 + specifier: ^20.7.2 + version: 20.7.2 '@typescript-eslint/eslint-plugin': specifier: ^6.7.3 version: 6.7.3(@typescript-eslint/parser@6.7.3)(eslint@8.50.0)(typescript@5.2.2) @@ -90,7 +90,7 @@ devDependencies: version: 5.2.2 vite: specifier: ^4.4.9 - version: 4.4.9(@types/node@20.7.1) + version: 4.4.9(@types/node@20.7.2) vitest: specifier: ^0.34.6 version: 0.34.6(jsdom@22.1.0) @@ -779,7 +779,7 @@ packages: /@types/jsdom@21.1.3: resolution: {integrity: sha512-1zzqSP+iHJYV4lB3lZhNBa012pubABkj9yG/GuXuf6LZH1cSPIJBqFDrm5JX65HHt6VOnNYdTui/0ySerRbMgA==} dependencies: - '@types/node': 20.7.1 + '@types/node': 20.7.2 '@types/tough-cookie': 4.0.3 parse5: 7.1.2 dev: true @@ -792,8 +792,8 @@ packages: resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==} dev: true - /@types/node@20.7.1: - resolution: {integrity: sha512-LT+OIXpp2kj4E2S/p91BMe+VgGX2+lfO+XTpfXhh+bCk2LkQtHZSub8ewFBMGP5ClysPjTDFa4sMI8Q3n4T0wg==} + /@types/node@20.7.2: + resolution: {integrity: sha512-RcdC3hOBOauLP+r/kRt27NrByYtDjsXyAuSbR87O6xpsvi763WI+5fbSIvYJrXnt9w4RuxhV6eAXfIs7aaf/FQ==} dev: true /@types/semver@7.5.3: @@ -945,7 +945,7 @@ packages: '@babel/core': 7.23.0 '@babel/plugin-transform-typescript': 7.22.15(@babel/core@7.23.0) '@vue/babel-plugin-jsx': 1.1.5(@babel/core@7.23.0) - vite: 4.4.9(@types/node@20.7.1) + vite: 4.4.9(@types/node@20.7.2) vue: 3.3.4 transitivePeerDependencies: - supports-color @@ -958,7 +958,7 @@ packages: vite: ^4.0.0 vue: ^3.2.25 dependencies: - vite: 4.4.9(@types/node@20.7.1) + vite: 4.4.9(@types/node@20.7.2) vue: 3.3.4 dev: true @@ -1383,7 +1383,7 @@ packages: hasBin: true dependencies: caniuse-lite: 1.0.30001541 - electron-to-chromium: 1.4.536 + electron-to-chromium: 1.4.537 node-releases: 2.0.13 update-browserslist-db: 1.0.13(browserslist@4.22.1) dev: true @@ -1708,8 +1708,8 @@ packages: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} dev: false - /electron-to-chromium@1.4.536: - resolution: {integrity: sha512-L4VgC/76m6y8WVCgnw5kJy/xs7hXrViCFdNKVG8Y7B2isfwrFryFyJzumh3ugxhd/oB1uEaEEvRdmeLrnd7OFA==} + /electron-to-chromium@1.4.537: + resolution: {integrity: sha512-W1+g9qs9hviII0HAwOdehGYkr+zt7KKdmCcJcjH0mYg6oL8+ioT3Skjmt7BLoAQqXhjf40AXd+HlR4oAWMlXjA==} dev: true /emoji-regex@8.0.0: @@ -3904,7 +3904,7 @@ packages: convert-source-map: 1.9.0 dev: true - /vite-node@0.34.6(@types/node@20.7.1): + /vite-node@0.34.6(@types/node@20.7.2): resolution: {integrity: sha512-nlBMJ9x6n7/Amaz6F3zJ97EBwR2FkzhBRxF5e+jE6LA3yi6Wtc2lyTij1OnDMIr34v5g/tVQtsVAzhT0jc5ygA==} engines: {node: '>=v14.18.0'} hasBin: true @@ -3914,7 +3914,7 @@ packages: mlly: 1.4.2 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.4.9(@types/node@20.7.1) + vite: 4.4.9(@types/node@20.7.2) transitivePeerDependencies: - '@types/node' - less @@ -3926,7 +3926,7 @@ packages: - terser dev: true - /vite@4.4.9(@types/node@20.7.1): + /vite@4.4.9(@types/node@20.7.2): resolution: {integrity: sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -3954,7 +3954,7 @@ packages: terser: optional: true dependencies: - '@types/node': 20.7.1 + '@types/node': 20.7.2 esbuild: 0.18.20 postcss: 8.4.31 rollup: 3.29.4 @@ -3995,7 +3995,7 @@ packages: dependencies: '@types/chai': 4.3.6 '@types/chai-subset': 1.3.3 - '@types/node': 20.7.1 + '@types/node': 20.7.2 '@vitest/expect': 0.34.6 '@vitest/runner': 0.34.6 '@vitest/snapshot': 0.34.6 @@ -4015,8 +4015,8 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.1 tinypool: 0.7.0 - vite: 4.4.9(@types/node@20.7.1) - vite-node: 0.34.6(@types/node@20.7.1) + vite: 4.4.9(@types/node@20.7.2) + vite-node: 0.34.6(@types/node@20.7.2) why-is-node-running: 2.2.2 transitivePeerDependencies: - less