diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 085e5e237bc..96a5a8579ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,12 +12,16 @@ jobs: strategy: matrix: os: [ubuntu-latest] - node_version: [14, 16, 17] + node_version: [14, 16, 18] include: - os: macos-latest node_version: 16 + - os: macos-latest + node_version: 18 - os: windows-latest node_version: 16 + - os: windows-latest + node_version: 18 fail-fast: false name: 'Build & Unit Test: node-${{ matrix.node_version }}, ${{ matrix.os }}' @@ -49,7 +53,7 @@ jobs: e2e-test: runs-on: ubuntu-latest - name: 'E2E Doc Test: node-16, ubuntu-latest' + name: 'E2E Doc Test: node-18, ubuntu-latest' steps: - name: Checkout uses: actions/checkout@v3 @@ -59,6 +63,12 @@ jobs: with: version: 6 + - name: Set node version to 18 + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'pnpm' + - name: Install deps run: pnpm install @@ -67,7 +77,7 @@ jobs: lint: runs-on: ubuntu-latest - name: 'Lint: node-16, ubuntu-latest' + name: 'Lint: node-18, ubuntu-latest' steps: - name: Checkout uses: actions/checkout@v3 @@ -79,10 +89,10 @@ jobs: with: version: 6 - - name: Set node version to 16 + - name: Set node version to 18 uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 cache: 'pnpm' - name: Install deps @@ -98,7 +108,7 @@ jobs: codecov: runs-on: ubuntu-latest - name: 'Codecov: node-16, ubuntu-latest' + name: 'Codecov: node-18, ubuntu-latest' steps: - name: Checkout uses: actions/checkout@v3 @@ -110,10 +120,10 @@ jobs: with: version: 6 - - name: Set node version to 16 + - name: Set node version to 18 uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 cache: 'pnpm' - name: Install deps diff --git a/netlify.toml b/netlify.toml index 1095db518c2..3f482d7b600 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,5 +1,5 @@ [build.environment] - NODE_VERSION = "16" + NODE_VERSION = "18" NPM_FLAGS = "--version" # prevent Netlify npm install # Documentation diff --git a/package.json b/package.json index 38e5bec5de8..9e060addb94 100644 --- a/package.json +++ b/package.json @@ -90,7 +90,7 @@ }, "devDependencies": { "@types/markdown-it": "~12.2.3", - "@types/node": "~16.11.33", + "@types/node": "~17.0.31", "@types/prettier": "~2.6.0", "@types/sanitize-html": "~2.6.2", "@types/validator": "~13.7.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b171c9b50dd..aaad32213a7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,8 +1,8 @@ -lockfileVersion: 5.3 +lockfileVersion: 5.4 specifiers: '@types/markdown-it': ~12.2.3 - '@types/node': ~16.11.33 + '@types/node': ~17.0.31 '@types/prettier': ~2.6.0 '@types/sanitize-html': ~2.6.2 '@types/validator': ~13.7.2 @@ -40,13 +40,13 @@ specifiers: devDependencies: '@types/markdown-it': 12.2.3 - '@types/node': 16.11.33 + '@types/node': 17.0.31 '@types/prettier': 2.6.0 '@types/sanitize-html': 2.6.2 '@types/validator': 13.7.2 - '@typescript-eslint/eslint-plugin': 5.22.0_5b52bb1e77494a9627aef8db6adb10bc - '@typescript-eslint/parser': 5.22.0_eslint@8.14.0+typescript@4.6.4 - '@vitest/ui': 0.10.1 + '@typescript-eslint/eslint-plugin': 5.22.0_lnjlwhtxjffjmj5o7dnwvwyqxq + '@typescript-eslint/parser': 5.22.0_t725usgvqspm5woeqpaxbfp2qu + '@vitest/ui': 0.10.2 c8: 7.11.2 conventional-changelog-cli: 2.2.2 cypress: 9.6.0 @@ -56,14 +56,14 @@ devDependencies: eslint-define-config: 1.4.0 eslint-gitignore: 0.1.0_eslint@8.14.0 eslint-plugin-jsdoc: 39.2.9_eslint@8.14.0 - eslint-plugin-prettier: 4.0.0_665eb419c9d7860ca0c224f7f6dcdace + eslint-plugin-prettier: 4.0.0_mzpligoj26dazigcet37nxg2zy esno: 0.14.1 lint-staged: 12.4.1 mime-db: 1.52.0 npm-run-all: 4.1.5 picocolors: 1.0.0 prettier: 2.6.2 - prettier-plugin-organize-imports: 2.3.4_prettier@2.6.2+typescript@4.6.4 + prettier-plugin-organize-imports: 2.3.4_igyi7w6qm73tfaya7seiivlrqu rimraf: 3.0.2 sanitize-html: 2.7.0 simple-git-hooks: 2.7.0 @@ -74,7 +74,7 @@ devDependencies: validator: 13.7.0 vite: 2.9.7 vitepress: 0.22.3 - vitest: 0.10.1_@vitest+ui@0.10.1+c8@7.11.2 + vitest: 0.10.2_psihcmhmrlrkhevakbcy5k6nlu packages: @@ -344,15 +344,15 @@ packages: engines: {node: '>=6.0.0'} dev: true - /@jridgewell/sourcemap-codec/1.4.11: - resolution: {integrity: sha512-Fg32GrJo61m+VqYSdRSjRXMjQ06j8YIYfcTqndLYVAaHmroZHLJZCydsWBOTDqXS2v+mjxohBWEMfg97GXmYQg==} + /@jridgewell/sourcemap-codec/1.4.12: + resolution: {integrity: sha512-az/NhpIwP3K33ILr0T2bso+k2E/SLf8Yidd8mHl0n6sCQ4YdyC8qDhZA6kOPDNDBA56ZnIjngVl0U3jREA0BUA==} dev: true /@jridgewell/trace-mapping/0.3.9: resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} dependencies: '@jridgewell/resolve-uri': 3.0.6 - '@jridgewell/sourcemap-codec': 1.4.11 + '@jridgewell/sourcemap-codec': 1.4.12 dev: true /@nodelib/fs.scandir/2.1.5: @@ -421,8 +421,8 @@ packages: resolution: {integrity: sha512-X3bUMdK/VmvrWdoTkz+VCn6nwKwrKCFTHtqwBIaQJNx4RUIBBUFXM00bqPz/DsDd+Icjmzm6/tyYZzeGVqb6/Q==} dev: true - /@types/node/16.11.33: - resolution: {integrity: sha512-0PJ0vg+JyU0MIan58IOIFRtSvsb7Ri+7Wltx2qAg94eMOrpg4+uuP3aUHCpxXc1i0jCXiC+zIamSZh3l9AbcQA==} + /@types/node/17.0.31: + resolution: {integrity: sha512-AR0x5HbXGqkEx9CadRH3EBYx/VkiUgZIhP4wvPn/+5KIsgpNoyFaRlVe0Zlx9gRtg8fA06a9tskE2MSN7TcG4Q==} dev: true /@types/normalize-package-data/2.4.1: @@ -455,11 +455,11 @@ packages: resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==} requiresBuild: true dependencies: - '@types/node': 16.11.33 + '@types/node': 17.0.31 dev: true optional: true - /@typescript-eslint/eslint-plugin/5.22.0_5b52bb1e77494a9627aef8db6adb10bc: + /@typescript-eslint/eslint-plugin/5.22.0_lnjlwhtxjffjmj5o7dnwvwyqxq: resolution: {integrity: sha512-YCiy5PUzpAeOPGQ7VSGDEY2NeYUV1B0swde2e0HzokRsHBYjSdF6DZ51OuRZxVPHx0032lXGLvOMls91D8FXlg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -470,10 +470,10 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/parser': 5.22.0_eslint@8.14.0+typescript@4.6.4 + '@typescript-eslint/parser': 5.22.0_t725usgvqspm5woeqpaxbfp2qu '@typescript-eslint/scope-manager': 5.22.0 - '@typescript-eslint/type-utils': 5.22.0_eslint@8.14.0+typescript@4.6.4 - '@typescript-eslint/utils': 5.22.0_eslint@8.14.0+typescript@4.6.4 + '@typescript-eslint/type-utils': 5.22.0_t725usgvqspm5woeqpaxbfp2qu + '@typescript-eslint/utils': 5.22.0_t725usgvqspm5woeqpaxbfp2qu debug: 4.3.4 eslint: 8.14.0 functional-red-black-tree: 1.0.1 @@ -486,7 +486,7 @@ packages: - supports-color dev: true - /@typescript-eslint/parser/5.22.0_eslint@8.14.0+typescript@4.6.4: + /@typescript-eslint/parser/5.22.0_t725usgvqspm5woeqpaxbfp2qu: resolution: {integrity: sha512-piwC4krUpRDqPaPbFaycN70KCP87+PC5WZmrWs+DlVOxxmF+zI6b6hETv7Quy4s9wbkV16ikMeZgXsvzwI3icQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -514,7 +514,7 @@ packages: '@typescript-eslint/visitor-keys': 5.22.0 dev: true - /@typescript-eslint/type-utils/5.22.0_eslint@8.14.0+typescript@4.6.4: + /@typescript-eslint/type-utils/5.22.0_t725usgvqspm5woeqpaxbfp2qu: resolution: {integrity: sha512-iqfLZIsZhK2OEJ4cQ01xOq3NaCuG5FQRKyHicA3xhZxMgaxQazLUHbH/B2k9y5i7l3+o+B5ND9Mf1AWETeMISA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -524,7 +524,7 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/utils': 5.22.0_eslint@8.14.0+typescript@4.6.4 + '@typescript-eslint/utils': 5.22.0_t725usgvqspm5woeqpaxbfp2qu debug: 4.3.4 eslint: 8.14.0 tsutils: 3.21.0_typescript@4.6.4 @@ -559,7 +559,7 @@ packages: - supports-color dev: true - /@typescript-eslint/utils/5.22.0_eslint@8.14.0+typescript@4.6.4: + /@typescript-eslint/utils/5.22.0_t725usgvqspm5woeqpaxbfp2qu: resolution: {integrity: sha512-HodsGb037iobrWSUMS7QH6Hl1kppikjA1ELiJlNSTYf/UdMEwzgj0WIp+lBNb6WZ3zTwb0tEz51j0Wee3iJ3wQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -596,8 +596,8 @@ packages: vue: 3.2.33 dev: true - /@vitest/ui/0.10.1: - resolution: {integrity: sha512-TCcAhzWOlr4CzTttYyaPh8d4C+iGkrv89drCQh/0cXAGpESKz1G33Mh3nmq93dXTI2jcK9X2urH1O9K9h33cRA==} + /@vitest/ui/0.10.2: + resolution: {integrity: sha512-sFaTxareiJwBJNNyw+fHLbsvpFSYI/6qipazjA5mdVkzEGVYUzOgOTVFluu9GPJmwrdGhnumeJEB/+VUOE1Shw==} dependencies: sirv: 2.0.2 dev: true @@ -1665,8 +1665,8 @@ packages: object-inspect: 1.12.0 object-keys: 1.1.1 object.assign: 4.1.2 - string.prototype.trimend: 1.0.4 - string.prototype.trimstart: 1.0.4 + string.prototype.trimend: 1.0.5 + string.prototype.trimstart: 1.0.5 unbox-primitive: 1.0.2 dev: true @@ -1968,7 +1968,7 @@ packages: - supports-color dev: true - /eslint-plugin-prettier/4.0.0_665eb419c9d7860ca0c224f7f6dcdace: + /eslint-plugin-prettier/4.0.0_mzpligoj26dazigcet37nxg2zy: resolution: {integrity: sha512-98MqmCJ7vJodoQK359bqQWaxOE0CS8paAz/GgjaZLyex4TTk3g9HugoO89EqWCrFiOqn9EVvcoo7gZzONCWVwQ==} engines: {node: '>=6.0.0'} peerDependencies: @@ -3243,8 +3243,8 @@ packages: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} dev: true - /nanoid/3.3.3: - resolution: {integrity: sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==} + /nanoid/3.3.4: + resolution: {integrity: sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true dev: true @@ -3544,7 +3544,7 @@ packages: resolution: {integrity: sha512-jtL6eTBrza5MPzy8oJLFuUscHDXTV5KcLlqAWHl5q5WYRfnNRGSmOZmOZ1T6Gy7A99mOZfqungmZMpMmCVJ8ZA==} engines: {node: ^10 || ^12 || >=14} dependencies: - nanoid: 3.3.3 + nanoid: 3.3.4 picocolors: 1.0.0 source-map-js: 1.0.2 dev: true @@ -3565,7 +3565,7 @@ packages: fast-diff: 1.2.0 dev: true - /prettier-plugin-organize-imports/2.3.4_prettier@2.6.2+typescript@4.6.4: + /prettier-plugin-organize-imports/2.3.4_igyi7w6qm73tfaya7seiivlrqu: resolution: {integrity: sha512-R8o23sf5iVL/U71h9SFUdhdOEPsi3nm42FD/oDYIZ2PQa4TNWWuWecxln6jlIQzpZTDMUeO1NicJP6lLn2TtRw==} peerDependencies: prettier: '>=2.0' @@ -4026,18 +4026,20 @@ packages: es-abstract: 1.19.5 dev: true - /string.prototype.trimend/1.0.4: - resolution: {integrity: sha512-y9xCjw1P23Awk8EvTpcyL2NIr1j7wJ39f+k6lvRnSMz+mz9CGz9NYPelDk42kOz6+ql8xjfK8oYzy3jAP5QU5A==} + /string.prototype.trimend/1.0.5: + resolution: {integrity: sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog==} dependencies: call-bind: 1.0.2 define-properties: 1.1.4 + es-abstract: 1.19.5 dev: true - /string.prototype.trimstart/1.0.4: - resolution: {integrity: sha512-jh6e984OBfvxS50tdY2nRZnoC5/mLFKOREQfw8t5yytkoUsJRNxvI/E39qu1sD0OtWI3OC0XgKSmcWwziwYuZw==} + /string.prototype.trimstart/1.0.5: + resolution: {integrity: sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg==} dependencies: call-bind: 1.0.2 define-properties: 1.1.4 + es-abstract: 1.19.5 dev: true /string_decoder/1.1.1: @@ -4442,8 +4444,8 @@ packages: - stylus dev: true - /vitest/0.10.1_@vitest+ui@0.10.1+c8@7.11.2: - resolution: {integrity: sha512-jFNObjJ48WnfJzxpopJOrd7ZnRCE3OGgE2KSQ1AGmKxNPTgadMCLx81GBrIcxIjuz2E/8qmGBPtC5VH01ihl7A==} + /vitest/0.10.2_psihcmhmrlrkhevakbcy5k6nlu: + resolution: {integrity: sha512-41D+nhswCco5vy1NXmpAjZX11Aj+HMnyhjWQD12piwHibf4bvdTGtni56UcFWcvONVoIForgDuLrKSohHJjwQA==} engines: {node: '>=v14.16.0'} hasBin: true peerDependencies: @@ -4463,7 +4465,7 @@ packages: dependencies: '@types/chai': 4.3.1 '@types/chai-subset': 1.3.3 - '@vitest/ui': 0.10.1 + '@vitest/ui': 0.10.2 c8: 7.11.2 chai: 4.3.6 local-pkg: 0.4.1