From 1e0df8b81445d89b4a65bcab3a156b51ee1d1a38 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Fri, 9 Feb 2024 09:18:31 +0100 Subject: [PATCH 01/13] infra!: drop NodeJS v14 and v16 support (#2121) --- .github/workflows/ci.yml | 24 +- docs/guide/upgrading_v9/2121.md | 3 + package.json | 6 +- pnpm-lock.yaml | 393 ++++++++++++++++---------------- scripts/bundle.ts | 2 +- tsconfig.build.json | 2 +- vitest.config.ts | 21 -- 7 files changed, 212 insertions(+), 239 deletions(-) create mode 100644 docs/guide/upgrading_v9/2121.md diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02ea87d5248..f73cb442361 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,21 +14,8 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest] - node_version: [14, 16, 18, 20] - include: - - os: macos-latest - node_version: 16 - - os: macos-latest - node_version: 18 - - os: macos-latest - node_version: 20 - - os: windows-latest - node_version: 16 - - os: windows-latest - node_version: 18 - - os: windows-latest - node_version: 20 + os: [ubuntu-latest, macos-latest, windows-latest] + node_version: [18, 20] fail-fast: false timeout-minutes: 10 @@ -40,14 +27,7 @@ jobs: # Required for docs/versions tests fetch-depth: 0 - - name: Install pnpm (node 14, pnpm 7) - if: matrix.node_version == 14 - uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 - with: - version: 7 - - name: Install pnpm - if: matrix.node_version != 14 uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 - name: Set node version to ${{ matrix.node_version }} diff --git a/docs/guide/upgrading_v9/2121.md b/docs/guide/upgrading_v9/2121.md new file mode 100644 index 00000000000..c2a2e8e422f --- /dev/null +++ b/docs/guide/upgrading_v9/2121.md @@ -0,0 +1,3 @@ +### Node 14 and 16 No Longer Supported + +Support for Node.js versions 14 and 16 has been discontinued as these versions have reached their [end-of-life](https://github.com/nodejs/Release). Faker.js 9.0 requires a minimum of Node.js version 18. diff --git a/package.json b/package.json index e36068b61a2..f77c8832df6 100644 --- a/package.json +++ b/package.json @@ -133,9 +133,9 @@ "vitest": "~0.34.6", "vue": "~3.4.15" }, - "packageManager": "pnpm@8.5.1", + "packageManager": "pnpm@8.15.1", "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0", - "npm": ">=6.14.13" + "node": ">=18.0.0", + "npm": ">=9.0.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6fe93269958..986456b5dc4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,5 +1,9 @@ lockfileVersion: '6.0' +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + devDependencies: '@actions/github': specifier: ~6.0.0 @@ -27,7 +31,7 @@ devDependencies: version: 13.0.7 '@types/node': specifier: ~20.11.16 - version: 20.11.16 + version: 20.11.17 '@types/sanitize-html': specifier: ~2.11.0 version: 2.11.0 @@ -36,7 +40,7 @@ devDependencies: version: 7.5.6 '@types/validator': specifier: ~13.11.8 - version: 13.11.8 + version: 13.11.9 '@typescript-eslint/eslint-plugin': specifier: ~6.21.0 version: 6.21.0(@typescript-eslint/parser@6.21.0)(eslint@8.56.0)(typescript@4.9.5) @@ -51,7 +55,7 @@ devDependencies: version: 0.34.7(vitest@0.34.6) '@vueuse/core': specifier: ~10.7.2 - version: 10.7.2(vue@3.4.15) + version: 10.7.2(vue@3.4.18) conventional-changelog-cli: specifier: ~4.1.0 version: 4.1.0 @@ -78,7 +82,7 @@ devDependencies: version: 2.0.0(eslint@8.56.0)(typescript@4.9.5) eslint-plugin-jsdoc: specifier: ~48.0.5 - version: 48.0.5(eslint@8.56.0) + version: 48.0.6(eslint@8.56.0) eslint-plugin-prettier: specifier: ~5.1.3 version: 5.1.3(eslint-config-prettier@9.1.0)(eslint@8.56.0)(prettier@3.2.5) @@ -87,7 +91,7 @@ devDependencies: version: 50.0.1(eslint@8.56.0) eslint-plugin-vitest: specifier: ~0.3.21 - version: 0.3.21(@typescript-eslint/eslint-plugin@6.21.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6) + version: 0.3.22(@typescript-eslint/eslint-plugin@6.21.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6) glob: specifier: ~10.3.10 version: 10.3.10 @@ -126,16 +130,16 @@ devDependencies: version: 13.11.0 vite: specifier: ~4.5.2 - version: 4.5.2(@types/node@20.11.16) + version: 4.5.2(@types/node@20.11.17) vitepress: specifier: 1.0.0-rc.39 - version: 1.0.0-rc.39(@algolia/client-search@4.22.1)(@types/node@20.11.16)(search-insights@2.13.0)(typescript@4.9.5) + version: 1.0.0-rc.39(@algolia/client-search@4.22.1)(@types/node@20.11.17)(search-insights@2.13.0)(typescript@4.9.5) vitest: specifier: ~0.34.6 version: 0.34.6(@vitest/ui@0.34.7) vue: specifier: ~3.4.15 - version: 3.4.15(typescript@4.9.5) + version: 3.4.18(typescript@4.9.5) packages: @@ -398,7 +402,7 @@ packages: resolution: {integrity: sha512-p1YFTCDflk8ieHgFJYfmyHBki1D61+U9idwrLh+GQQMrBSP3DLGKpy0XUJtPjAOPltcVbqsTjiPFfH7JImjUNg==} dependencies: '@docsearch/react': 3.5.2(@algolia/client-search@4.22.1)(search-insights@2.13.0) - preact: 10.19.3 + preact: 10.19.4 transitivePeerDependencies: - '@algolia/client-search' - '@types/react' @@ -433,8 +437,8 @@ packages: - '@algolia/client-search' dev: true - /@es-joy/jsdoccomment@0.41.0: - resolution: {integrity: sha512-aKUhyn1QI5Ksbqcr3fFJj16p99QdjUxXAEuFst1Z47DRyoiMwivIH9MV/ARcJOCXVjPfjITciej8ZD2O/6qUmw==} + /@es-joy/jsdoccomment@0.42.0: + resolution: {integrity: sha512-R1w57YlVA6+YE01wch3GPYn6bCsrOV3YW/5oGGE2tmX6JcL9Nr+b5IikrjMPF+v9CV3ay+obImEdsDhovhJrzw==} engines: {node: '>=16'} dependencies: comment-parser: 1.4.1 @@ -1470,8 +1474,8 @@ packages: resolution: {integrity: sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==} dev: true - /@types/node@20.11.16: - resolution: {integrity: sha512-gKb0enTmRCzXSSUJDq6/sPcqrfCv2mkkG6Jt/clpn5eiCbKTY+SgZUxo+p8ZKMof5dCp9vHQUAB7wOUTod22wQ==} + /@types/node@20.11.17: + resolution: {integrity: sha512-QmgQZGWu1Yw9TDyAP9ZzpFJKynYNeOvwMJmaxABfieQoVoiVOS6MN1WSpqpRcbeA5+RW82kraAVxCCJg+780Qw==} dependencies: undici-types: 5.26.5 dev: true @@ -1498,8 +1502,8 @@ packages: resolution: {integrity: sha512-0vWLNK2D5MT9dg0iOo8GlKguPAU02QjmZitPEsXRuJXU/OGIOt9vT9Fc26wtYuavLxtO45v9PGleoL9Z0k1LHg==} dev: true - /@types/validator@13.11.8: - resolution: {integrity: sha512-c/hzNDBh7eRF+KbCf+OoZxKbnkpaK/cKp9iLQWqB7muXtM+MtL9SUUH8vCFcLn6dH1Qm05jiexK0ofWY7TfOhQ==} + /@types/validator@13.11.9: + resolution: {integrity: sha512-FCTsikRozryfayPuiI46QzH3fnrOoctTjvOYZkho9BTFLCOZ2rgZJHMOVgCOfttjPJcgOx52EpkY0CMfy87MIw==} dev: true /@types/web-bluetooth@0.0.20: @@ -1510,7 +1514,7 @@ packages: resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} requiresBuild: true dependencies: - '@types/node': 20.11.16 + '@types/node': 20.11.17 dev: true optional: true @@ -1537,7 +1541,7 @@ packages: ignore: 5.3.1 natural-compare: 1.4.0 semver: 7.6.0 - ts-api-utils: 1.2.0(typescript@4.9.5) + ts-api-utils: 1.2.1(typescript@4.9.5) typescript: 4.9.5 transitivePeerDependencies: - supports-color @@ -1586,7 +1590,7 @@ packages: '@typescript-eslint/utils': 6.21.0(eslint@8.56.0)(typescript@4.9.5) debug: 4.3.4(supports-color@8.1.1) eslint: 8.56.0 - ts-api-utils: 1.2.0(typescript@4.9.5) + ts-api-utils: 1.2.1(typescript@4.9.5) typescript: 4.9.5 transitivePeerDependencies: - supports-color @@ -1613,7 +1617,7 @@ packages: is-glob: 4.0.3 minimatch: 9.0.3 semver: 7.6.0 - ts-api-utils: 1.2.0(typescript@4.9.5) + ts-api-utils: 1.2.1(typescript@4.9.5) typescript: 4.9.5 transitivePeerDependencies: - supports-color @@ -1650,15 +1654,15 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - /@vitejs/plugin-vue@5.0.3(vite@5.0.12)(vue@3.4.15): + /@vitejs/plugin-vue@5.0.3(vite@5.1.0)(vue@3.4.18): resolution: {integrity: sha512-b8S5dVS40rgHdDrw+DQi/xOM9ed+kSRZzfm1T74bMmBDCd8XO87NKlFYInzCtwvtWwXZvo1QxE2OSspTATWrbA==} engines: {node: ^18.0.0 || >=20.0.0} peerDependencies: vite: ^5.0.0 vue: ^3.2.25 dependencies: - vite: 5.0.12(@types/node@20.11.16) - vue: 3.4.15(typescript@4.9.5) + vite: 5.1.0(@types/node@20.11.17) + vue: 3.4.18(typescript@4.9.5) dev: true /@vitest/coverage-v8@0.34.6(vitest@0.34.6): @@ -1709,7 +1713,7 @@ packages: /@vitest/spy@0.34.6: resolution: {integrity: sha512-xaCvneSaeBw/cz8ySmF7ZwGvL0lBjfvqc1LpQ/vcdHEvpLn3Ff1vAvjw+CoGn0802l++5L/pxb7whwcWAw+DUQ==} dependencies: - tinyspy: 2.2.0 + tinyspy: 2.2.1 dev: true /@vitest/ui@0.34.7(vitest@0.34.6): @@ -1719,7 +1723,7 @@ packages: dependencies: '@vitest/utils': 0.34.7 fast-glob: 3.3.2 - fflate: 0.8.1 + fflate: 0.8.2 flatted: 3.2.9 pathe: 1.1.2 picocolors: 1.0.0 @@ -1743,96 +1747,96 @@ packages: pretty-format: 29.7.0 dev: true - /@vue/compiler-core@3.4.15: - resolution: {integrity: sha512-XcJQVOaxTKCnth1vCxEChteGuwG6wqnUHxAm1DO3gCz0+uXKaJNx8/digSz4dLALCy8n2lKq24jSUs8segoqIw==} + /@vue/compiler-core@3.4.18: + resolution: {integrity: sha512-F7YK8lMK0iv6b9/Gdk15A67wM0KKZvxDxed0RR60C1z9tIJTKta+urs4j0RTN5XqHISzI3etN3mX0uHhjmoqjQ==} dependencies: '@babel/parser': 7.23.9 - '@vue/shared': 3.4.15 + '@vue/shared': 3.4.18 entities: 4.5.0 estree-walker: 2.0.2 source-map-js: 1.0.2 dev: true - /@vue/compiler-dom@3.4.15: - resolution: {integrity: sha512-wox0aasVV74zoXyblarOM3AZQz/Z+OunYcIHe1OsGclCHt8RsRm04DObjefaI82u6XDzv+qGWZ24tIsRAIi5MQ==} + /@vue/compiler-dom@3.4.18: + resolution: {integrity: sha512-24Eb8lcMfInefvQ6YlEVS18w5Q66f4+uXWVA+yb7praKbyjHRNuKVWGuinfSSjM0ZIiPi++QWukhkgznBaqpEA==} dependencies: - '@vue/compiler-core': 3.4.15 - '@vue/shared': 3.4.15 + '@vue/compiler-core': 3.4.18 + '@vue/shared': 3.4.18 dev: true - /@vue/compiler-sfc@3.4.15: - resolution: {integrity: sha512-LCn5M6QpkpFsh3GQvs2mJUOAlBQcCco8D60Bcqmf3O3w5a+KWS5GvYbrrJBkgvL1BDnTp+e8q0lXCLgHhKguBA==} + /@vue/compiler-sfc@3.4.18: + resolution: {integrity: sha512-rG5tqtnzwrVpMqAQ7FHtvHaV70G6LLfJIWLYZB/jZ9m/hrnZmIQh+H3ewnC5onwe/ibljm9+ZupxeElzqCkTAw==} dependencies: '@babel/parser': 7.23.9 - '@vue/compiler-core': 3.4.15 - '@vue/compiler-dom': 3.4.15 - '@vue/compiler-ssr': 3.4.15 - '@vue/shared': 3.4.15 + '@vue/compiler-core': 3.4.18 + '@vue/compiler-dom': 3.4.18 + '@vue/compiler-ssr': 3.4.18 + '@vue/shared': 3.4.18 estree-walker: 2.0.2 magic-string: 0.30.7 - postcss: 8.4.34 + postcss: 8.4.35 source-map-js: 1.0.2 dev: true - /@vue/compiler-ssr@3.4.15: - resolution: {integrity: sha512-1jdeQyiGznr8gjFDadVmOJqZiLNSsMa5ZgqavkPZ8O2wjHv0tVuAEsw5hTdUoUW4232vpBbL/wJhzVW/JwY1Uw==} + /@vue/compiler-ssr@3.4.18: + resolution: {integrity: sha512-hSlv20oUhPxo2UYUacHgGaxtqP0tvFo6ixxxD6JlXIkwzwoZ9eKK6PFQN4hNK/R13JlNyldwWt/fqGBKgWJ6nQ==} dependencies: - '@vue/compiler-dom': 3.4.15 - '@vue/shared': 3.4.15 + '@vue/compiler-dom': 3.4.18 + '@vue/shared': 3.4.18 dev: true /@vue/devtools-api@6.5.1: resolution: {integrity: sha512-+KpckaAQyfbvshdDW5xQylLni1asvNSGme1JFs8I1+/H5pHEhqUKMEQD/qn3Nx5+/nycBq11qAEi8lk+LXI2dA==} dev: true - /@vue/reactivity@3.4.15: - resolution: {integrity: sha512-55yJh2bsff20K5O84MxSvXKPHHt17I2EomHznvFiJCAZpJTNW8IuLj1xZWMLELRhBK3kkFV/1ErZGHJfah7i7w==} + /@vue/reactivity@3.4.18: + resolution: {integrity: sha512-7uda2/I0jpLiRygprDo5Jxs2HJkOVXcOMlyVlY54yRLxoycBpwGJRwJT9EdGB4adnoqJDXVT2BilUAYwI7qvmg==} dependencies: - '@vue/shared': 3.4.15 + '@vue/shared': 3.4.18 dev: true - /@vue/runtime-core@3.4.15: - resolution: {integrity: sha512-6E3by5m6v1AkW0McCeAyhHTw+3y17YCOKG0U0HDKDscV4Hs0kgNT5G+GCHak16jKgcCDHpI9xe5NKb8sdLCLdw==} + /@vue/runtime-core@3.4.18: + resolution: {integrity: sha512-7mU9diCa+4e+8/wZ7Udw5pwTH10A11sZ1nldmHOUKJnzCwvZxfJqAtw31mIf4T5H2FsLCSBQT3xgioA9vIjyDQ==} dependencies: - '@vue/reactivity': 3.4.15 - '@vue/shared': 3.4.15 + '@vue/reactivity': 3.4.18 + '@vue/shared': 3.4.18 dev: true - /@vue/runtime-dom@3.4.15: - resolution: {integrity: sha512-EVW8D6vfFVq3V/yDKNPBFkZKGMFSvZrUQmx196o/v2tHKdwWdiZjYUBS+0Ez3+ohRyF8Njwy/6FH5gYJ75liUw==} + /@vue/runtime-dom@3.4.18: + resolution: {integrity: sha512-2y1Mkzcw1niSfG7z3Qx+2ir9Gb4hdTkZe5p/I8x1aTIKQE0vY0tPAEUPhZm5tx6183gG3D/KwHG728UR0sIufA==} dependencies: - '@vue/runtime-core': 3.4.15 - '@vue/shared': 3.4.15 + '@vue/runtime-core': 3.4.18 + '@vue/shared': 3.4.18 csstype: 3.1.3 dev: true - /@vue/server-renderer@3.4.15(vue@3.4.15): - resolution: {integrity: sha512-3HYzaidu9cHjrT+qGUuDhFYvF/j643bHC6uUN9BgM11DVy+pM6ATsG6uPBLnkwOgs7BpJABReLmpL3ZPAsUaqw==} + /@vue/server-renderer@3.4.18(vue@3.4.18): + resolution: {integrity: sha512-YJd1wa7mzUN3NRqLEsrwEYWyO+PUBSROIGlCc3J/cvn7Zu6CxhNLgXa8Z4zZ5ja5/nviYO79J1InoPeXgwBTZA==} peerDependencies: - vue: 3.4.15 + vue: 3.4.18 dependencies: - '@vue/compiler-ssr': 3.4.15 - '@vue/shared': 3.4.15 - vue: 3.4.15(typescript@4.9.5) + '@vue/compiler-ssr': 3.4.18 + '@vue/shared': 3.4.18 + vue: 3.4.18(typescript@4.9.5) dev: true - /@vue/shared@3.4.15: - resolution: {integrity: sha512-KzfPTxVaWfB+eGcGdbSf4CWdaXcGDqckoeXUh7SB3fZdEtzPCK2Vq9B/lRRL3yutax/LWITz+SwvgyOxz5V75g==} + /@vue/shared@3.4.18: + resolution: {integrity: sha512-CxouGFxxaW5r1WbrSmWwck3No58rApXgRSBxrqgnY1K+jk20F6DrXJkHdH9n4HVT+/B6G2CAn213Uq3npWiy8Q==} dev: true - /@vueuse/core@10.7.2(vue@3.4.15): + /@vueuse/core@10.7.2(vue@3.4.18): resolution: {integrity: sha512-AOyAL2rK0By62Hm+iqQn6Rbu8bfmbgaIMXcE3TSr7BdQ42wnSFlwIdPjInO62onYsEMK/yDMU8C6oGfDAtZ2qQ==} dependencies: '@types/web-bluetooth': 0.0.20 '@vueuse/metadata': 10.7.2 - '@vueuse/shared': 10.7.2(vue@3.4.15) - vue-demi: 0.14.7(vue@3.4.15) + '@vueuse/shared': 10.7.2(vue@3.4.18) + vue-demi: 0.14.7(vue@3.4.18) transitivePeerDependencies: - '@vue/composition-api' - vue dev: true - /@vueuse/integrations@10.7.2(focus-trap@7.5.4)(vue@3.4.15): + /@vueuse/integrations@10.7.2(focus-trap@7.5.4)(vue@3.4.18): resolution: {integrity: sha512-+u3RLPFedjASs5EKPc69Ge49WNgqeMfSxFn+qrQTzblPXZg6+EFzhjarS5edj2qAf6xQ93f95TUxRwKStXj/sQ==} peerDependencies: async-validator: '*' @@ -1873,10 +1877,10 @@ packages: universal-cookie: optional: true dependencies: - '@vueuse/core': 10.7.2(vue@3.4.15) - '@vueuse/shared': 10.7.2(vue@3.4.15) + '@vueuse/core': 10.7.2(vue@3.4.18) + '@vueuse/shared': 10.7.2(vue@3.4.18) focus-trap: 7.5.4 - vue-demi: 0.14.7(vue@3.4.15) + vue-demi: 0.14.7(vue@3.4.18) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -1886,10 +1890,10 @@ packages: resolution: {integrity: sha512-kCWPb4J2KGrwLtn1eJwaJD742u1k5h6v/St5wFe8Quih90+k2a0JP8BS4Zp34XUuJqS2AxFYMb1wjUL8HfhWsQ==} dev: true - /@vueuse/shared@10.7.2(vue@3.4.15): + /@vueuse/shared@10.7.2(vue@3.4.18): resolution: {integrity: sha512-qFbXoxS44pi2FkgFjPvF4h7c9oMDutpyBdcJdMYIMg9XyXli2meFMuaKn+UMgsClo//Th6+beeCgqweT/79BVA==} dependencies: - vue-demi: 0.14.7(vue@3.4.15) + vue-demi: 0.14.7(vue@3.4.18) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -2029,7 +2033,7 @@ packages: resolution: {integrity: sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.5 + call-bind: 1.0.6 is-array-buffer: 3.0.4 dev: true @@ -2046,7 +2050,7 @@ packages: resolution: {integrity: sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.5 + call-bind: 1.0.6 define-properties: 1.2.1 es-abstract: 1.22.3 es-shim-unscopables: 1.0.2 @@ -2057,11 +2061,11 @@ packages: engines: {node: '>= 0.4'} dependencies: array-buffer-byte-length: 1.0.1 - call-bind: 1.0.5 + call-bind: 1.0.6 define-properties: 1.2.1 es-abstract: 1.22.3 es-errors: 1.3.0 - get-intrinsic: 1.2.3 + get-intrinsic: 1.2.4 is-array-buffer: 3.0.4 is-shared-array-buffer: 1.0.2 dev: true @@ -2168,8 +2172,8 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true dependencies: - caniuse-lite: 1.0.30001584 - electron-to-chromium: 1.4.657 + caniuse-lite: 1.0.30001585 + electron-to-chromium: 1.4.664 node-releases: 2.0.14 update-browserslist-db: 1.0.13(browserslist@4.22.3) dev: true @@ -2204,12 +2208,14 @@ packages: engines: {node: '>=6'} dev: true - /call-bind@1.0.5: - resolution: {integrity: sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==} + /call-bind@1.0.6: + resolution: {integrity: sha512-Mj50FLHtlsoVfRfnHaZvyrooHcrlceNZdL/QBvJJVd9Ta55qCQK0gs4ss2oZDeV9zFCs6ewzYgVE5yfVmfFpVg==} + engines: {node: '>= 0.4'} dependencies: + es-errors: 1.3.0 function-bind: 1.1.2 - get-intrinsic: 1.2.3 - set-function-length: 1.2.0 + get-intrinsic: 1.2.4 + set-function-length: 1.2.1 dev: true /callsites@3.1.0: @@ -2231,8 +2237,8 @@ packages: engines: {node: '>=6'} dev: true - /caniuse-lite@1.0.30001584: - resolution: {integrity: sha512-LOz7CCQ9M1G7OjJOF9/mzmqmj3jE/7VOmrfw6Mgs0E8cjOsbRXQJHsPBfmBOXDskXKrHLyyW3n7kpDW/4BsfpQ==} + /caniuse-lite@1.0.30001585: + resolution: {integrity: sha512-yr2BWR1yLXQ8fMpdS/4ZZXpseBgE7o4g41x3a6AJOqZuOi+iE/WdJYAuZ6Y95i4Ohd2Y+9MzIWRR+uGABH4s3Q==} dev: true /caseless@0.12.0: @@ -2856,11 +2862,12 @@ packages: engines: {node: '>=0.10.0'} dev: true - /define-data-property@1.1.1: - resolution: {integrity: sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==} + /define-data-property@1.1.2: + resolution: {integrity: sha512-SRtsSqsDbgpJBbW3pABMCOt6rQyeM8s8RiyeSN8jYG8sYmt/kGJejbydttUsnDs1tadr19tvhT4ShwMyoqAm4g==} engines: {node: '>= 0.4'} dependencies: - get-intrinsic: 1.2.3 + es-errors: 1.3.0 + get-intrinsic: 1.2.4 gopd: 1.0.1 has-property-descriptors: 1.0.1 dev: true @@ -2869,7 +2876,7 @@ packages: resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==} engines: {node: '>= 0.4'} dependencies: - define-data-property: 1.1.1 + define-data-property: 1.1.2 has-property-descriptors: 1.0.1 object-keys: 1.1.1 dev: true @@ -2965,8 +2972,8 @@ packages: safer-buffer: 2.1.2 dev: true - /electron-to-chromium@1.4.657: - resolution: {integrity: sha512-On2ymeleg6QbRuDk7wNgDdXtNqlJLM2w4Agx1D/RiTmItiL+a9oq5p7HUa2ZtkAtGBe/kil2dq/7rPfkbe0r5w==} + /electron-to-chromium@1.4.664: + resolution: {integrity: sha512-k9VKKSkOSNPvSckZgDDl/IQx45E1quMjX8QfLzUsAs/zve8AyFDK+ByRynSP/OfEfryiKHpQeMf00z0leLCc3A==} dev: true /emoji-regex@8.0.0: @@ -3009,19 +3016,19 @@ packages: array-buffer-byte-length: 1.0.1 arraybuffer.prototype.slice: 1.0.3 available-typed-arrays: 1.0.6 - call-bind: 1.0.5 + call-bind: 1.0.6 es-set-tostringtag: 2.0.2 es-to-primitive: 1.2.1 function.prototype.name: 1.1.6 - get-intrinsic: 1.2.3 - get-symbol-description: 1.0.0 + get-intrinsic: 1.2.4 + get-symbol-description: 1.0.2 globalthis: 1.0.3 gopd: 1.0.1 has-property-descriptors: 1.0.1 has-proto: 1.0.1 has-symbols: 1.0.3 hasown: 2.0.0 - internal-slot: 1.0.6 + internal-slot: 1.0.7 is-array-buffer: 3.0.4 is-callable: 1.2.7 is-negative-zero: 2.0.2 @@ -3035,11 +3042,11 @@ packages: object.assign: 4.1.5 regexp.prototype.flags: 1.5.1 safe-array-concat: 1.1.0 - safe-regex-test: 1.0.2 + safe-regex-test: 1.0.3 string.prototype.trim: 1.2.8 string.prototype.trimend: 1.0.7 string.prototype.trimstart: 1.0.7 - typed-array-buffer: 1.0.0 + typed-array-buffer: 1.0.1 typed-array-byte-length: 1.0.0 typed-array-byte-offset: 1.0.0 typed-array-length: 1.0.4 @@ -3056,7 +3063,7 @@ packages: resolution: {integrity: sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q==} engines: {node: '>= 0.4'} dependencies: - get-intrinsic: 1.2.3 + get-intrinsic: 1.2.4 has-tostringtag: 1.0.2 hasown: 2.0.0 dev: true @@ -3226,13 +3233,13 @@ packages: - supports-color dev: true - /eslint-plugin-jsdoc@48.0.5(eslint@8.56.0): - resolution: {integrity: sha512-9ZYb3W6r6nZ3jc9vmJ2pZoINLhk9iI6rEFTfU7sTRAzFUWh00SRI9SRZ+IgDoiIPTp2tOUXs0vDOApdIlTnFKA==} + /eslint-plugin-jsdoc@48.0.6(eslint@8.56.0): + resolution: {integrity: sha512-LgwXOX6TWxxFYcbdVe+BJ94Kl/pgjSPYHLzqEdAMXTA1BH9WDx7iJ+9/iDajPF64LtzWX8C1mCfpbMZjJGhAOw==} engines: {node: '>=18'} peerDependencies: eslint: ^7.0.0 || ^8.0.0 || ^9.0.0 dependencies: - '@es-joy/jsdoccomment': 0.41.0 + '@es-joy/jsdoccomment': 0.42.0 are-docs-informative: 0.0.2 comment-parser: 1.4.1 debug: 4.3.4(supports-color@8.1.1) @@ -3294,8 +3301,8 @@ packages: - supports-color dev: true - /eslint-plugin-vitest@0.3.21(@typescript-eslint/eslint-plugin@6.21.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6): - resolution: {integrity: sha512-oYwR1MrwaBw/OG6CKU+SJYleAc442w6CWL1RTQl5WLwy8X3sh0bgHIQk5iEtmTak3Q+XAvZglr0bIoDOjFdkcw==} + /eslint-plugin-vitest@0.3.22(@typescript-eslint/eslint-plugin@6.21.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6): + resolution: {integrity: sha512-atkFGQ7aVgcuSeSMDqnyevIyUpfBPMnosksgEPrKE7Y8xQlqG/5z2IQ6UDau05zXaaFv7Iz8uzqvIuKshjZ0Zw==} engines: {node: ^18.0.0 || >= 20.0.0} peerDependencies: '@typescript-eslint/eslint-plugin': '*' @@ -3501,8 +3508,8 @@ packages: pend: 1.2.0 dev: true - /fflate@0.8.1: - resolution: {integrity: sha512-/exOvEuc+/iaUm105QIiOt4LpBdMTWsXxqR0HDF35vx3fmaKzw7354gTilCh5rkzEt8WYyG//ku3h3nRmd7CHQ==} + /fflate@0.8.2: + resolution: {integrity: sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==} dev: true /figures@3.2.0: @@ -3640,7 +3647,7 @@ packages: resolution: {integrity: sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.5 + call-bind: 1.0.6 define-properties: 1.2.1 es-abstract: 1.22.3 functions-have-names: 1.2.3 @@ -3659,8 +3666,8 @@ packages: resolution: {integrity: sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==} dev: true - /get-intrinsic@1.2.3: - resolution: {integrity: sha512-JIcZczvcMVE7AUOP+X72bh8HqHBRxFdz5PDHYtNG/lE3yk9b3KZBJlwFcTyPYjg3L4RLLmZJzvjxhaZVapxFrQ==} + /get-intrinsic@1.2.4: + resolution: {integrity: sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==} engines: {node: '>= 0.4'} dependencies: es-errors: 1.3.0 @@ -3688,12 +3695,13 @@ packages: pump: 3.0.0 dev: true - /get-symbol-description@1.0.0: - resolution: {integrity: sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==} + /get-symbol-description@1.0.2: + resolution: {integrity: sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.5 - get-intrinsic: 1.2.3 + call-bind: 1.0.6 + es-errors: 1.3.0 + get-intrinsic: 1.2.4 dev: true /get-tsconfig@4.7.2: @@ -3841,7 +3849,7 @@ packages: /gopd@1.0.1: resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==} dependencies: - get-intrinsic: 1.2.3 + get-intrinsic: 1.2.4 dev: true /graceful-fs@4.2.11: @@ -3887,7 +3895,7 @@ packages: /has-property-descriptors@1.0.1: resolution: {integrity: sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==} dependencies: - get-intrinsic: 1.2.3 + get-intrinsic: 1.2.4 dev: true /has-proto@1.0.1: @@ -4006,21 +4014,21 @@ packages: engines: {node: '>=10'} dev: true - /internal-slot@1.0.6: - resolution: {integrity: sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg==} + /internal-slot@1.0.7: + resolution: {integrity: sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==} engines: {node: '>= 0.4'} dependencies: - get-intrinsic: 1.2.3 + es-errors: 1.3.0 hasown: 2.0.0 - side-channel: 1.0.4 + side-channel: 1.0.5 dev: true /is-array-buffer@3.0.4: resolution: {integrity: sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.5 - get-intrinsic: 1.2.3 + call-bind: 1.0.6 + get-intrinsic: 1.2.4 dev: true /is-arrayish@0.2.1: @@ -4037,7 +4045,7 @@ packages: resolution: {integrity: sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.5 + call-bind: 1.0.6 has-tostringtag: 1.0.2 dev: true @@ -4139,14 +4147,14 @@ packages: resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.5 + call-bind: 1.0.6 has-tostringtag: 1.0.2 dev: true /is-shared-array-buffer@1.0.2: resolution: {integrity: sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==} dependencies: - call-bind: 1.0.5 + call-bind: 1.0.6 dev: true /is-stream@2.0.1: @@ -4201,7 +4209,7 @@ packages: /is-weakref@1.0.2: resolution: {integrity: sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==} dependencies: - call-bind: 1.0.5 + call-bind: 1.0.6 dev: true /isarray@1.0.0: @@ -4655,7 +4663,7 @@ packages: acorn: 8.11.3 pathe: 1.1.2 pkg-types: 1.0.3 - ufo: 1.3.2 + ufo: 1.4.0 dev: true /modify-values@1.0.1: @@ -4762,7 +4770,7 @@ packages: resolution: {integrity: sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.5 + call-bind: 1.0.6 define-properties: 1.2.1 has-symbols: 1.0.3 object-keys: 1.1.1 @@ -5020,8 +5028,8 @@ packages: engines: {node: '>=4'} dev: true - /postcss@8.4.34: - resolution: {integrity: sha512-4eLTO36woPSocqZ1zIrFD2K1v6wH7pY1uBh0JIM2KKfrVtGvPFiAku6aNOP0W1Wr9qwnaCsF0Z+CrVnryB2A8Q==} + /postcss@8.4.35: + resolution: {integrity: sha512-u5U8qYpBCpN13BsiEB0CbR1Hhh4Gc0zLFuedrHJKMctHCHAGrMdG0PRM/KErzAL3CU6/eckEtmHNB3x6e3c0vA==} engines: {node: ^10 || ^12 || >=14} dependencies: nanoid: 3.3.7 @@ -5029,8 +5037,8 @@ packages: source-map-js: 1.0.2 dev: true - /preact@10.19.3: - resolution: {integrity: sha512-nHHTeFVBTHRGxJXKkKu5hT8C/YWBkPso4/Gad6xuj5dbptt9iF9NZr9pHbPhBrnT2klheu7mHTxTZ/LjwJiEiQ==} + /preact@10.19.4: + resolution: {integrity: sha512-dwaX5jAh0Ga8uENBX1hSOujmKWgx9RtL80KaKUFLc6jb4vCEAc3EeZ0rnQO/FO4VgjfPMfoLFWnNG8bHuZ9VLw==} dev: true /prelude-ls@1.2.1: @@ -5120,7 +5128,7 @@ packages: resolution: {integrity: sha512-OQiU+C+Ds5qiH91qh/mg0w+8nwQuLjM4F4M/PbmhDOoYehPh+Fb0bDjtR1sOvy7YKxvj28Y/M0PhP5uVX0kB+g==} engines: {node: '>=0.6'} dependencies: - side-channel: 1.0.4 + side-channel: 1.0.5 dev: true /querystringify@2.2.0: @@ -5241,7 +5249,7 @@ packages: resolution: {integrity: sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.5 + call-bind: 1.0.6 define-properties: 1.2.1 set-function-name: 2.0.1 dev: true @@ -5365,8 +5373,8 @@ packages: resolution: {integrity: sha512-ZdQ0Jeb9Ofti4hbt5lX3T2JcAamT9hfzYU1MNB+z/jaEbB6wfFfPIR/zEORmZqobkCCJhSjodobH6WHNmJ97dg==} engines: {node: '>=0.4'} dependencies: - call-bind: 1.0.5 - get-intrinsic: 1.2.3 + call-bind: 1.0.6 + get-intrinsic: 1.2.4 has-symbols: 1.0.3 isarray: 2.0.5 dev: true @@ -5379,12 +5387,12 @@ packages: resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} dev: true - /safe-regex-test@1.0.2: - resolution: {integrity: sha512-83S9w6eFq12BBIJYvjMux6/dkirb8+4zJRA9cxNBVb7Wq5fJBW+Xze48WqR8pxua7bDuAaaAxtVVd4Idjp1dBQ==} + /safe-regex-test@1.0.3: + resolution: {integrity: sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.5 - get-intrinsic: 1.2.3 + call-bind: 1.0.6 + es-errors: 1.3.0 is-regex: 1.1.4 dev: true @@ -5400,7 +5408,7 @@ packages: htmlparser2: 8.0.2 is-plain-object: 5.0.0 parse-srcset: 1.0.2 - postcss: 8.4.34 + postcss: 8.4.35 dev: true /search-insights@2.13.0: @@ -5425,13 +5433,14 @@ packages: lru-cache: 6.0.0 dev: true - /set-function-length@1.2.0: - resolution: {integrity: sha512-4DBHDoyHlM1IRPGYcoxexgh67y4ueR53FKV1yyxwFMY7aCqcN/38M1+SwZ/qJQ8iLv7+ck385ot4CcisOAPT9w==} + /set-function-length@1.2.1: + resolution: {integrity: sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g==} engines: {node: '>= 0.4'} dependencies: - define-data-property: 1.1.1 + define-data-property: 1.1.2 + es-errors: 1.3.0 function-bind: 1.1.2 - get-intrinsic: 1.2.3 + get-intrinsic: 1.2.4 gopd: 1.0.1 has-property-descriptors: 1.0.1 dev: true @@ -5440,7 +5449,7 @@ packages: resolution: {integrity: sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==} engines: {node: '>= 0.4'} dependencies: - define-data-property: 1.1.1 + define-data-property: 1.1.2 functions-have-names: 1.2.3 has-property-descriptors: 1.0.1 dev: true @@ -5486,11 +5495,13 @@ packages: shikiji-core: 0.9.19 dev: true - /side-channel@1.0.4: - resolution: {integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==} + /side-channel@1.0.5: + resolution: {integrity: sha512-QcgiIWV4WV7qWExbN5llt6frQB/lBven9pqliLXfGPB+K9ZYXxDozp0wLkHS24kWCm+6YXH/f0HhnObZnZOBnQ==} + engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.5 - get-intrinsic: 1.2.3 + call-bind: 1.0.6 + es-errors: 1.3.0 + get-intrinsic: 1.2.4 object-inspect: 1.13.1 dev: true @@ -5669,7 +5680,7 @@ packages: resolution: {integrity: sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.5 + call-bind: 1.0.6 define-properties: 1.2.1 es-abstract: 1.22.3 dev: true @@ -5677,7 +5688,7 @@ packages: /string.prototype.trimend@1.0.7: resolution: {integrity: sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==} dependencies: - call-bind: 1.0.5 + call-bind: 1.0.6 define-properties: 1.2.1 es-abstract: 1.22.3 dev: true @@ -5685,7 +5696,7 @@ packages: /string.prototype.trimstart@1.0.7: resolution: {integrity: sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==} dependencies: - call-bind: 1.0.5 + call-bind: 1.0.6 define-properties: 1.2.1 es-abstract: 1.22.3 dev: true @@ -5852,8 +5863,8 @@ packages: engines: {node: '>=14.0.0'} dev: true - /tinyspy@2.2.0: - resolution: {integrity: sha512-d2eda04AN/cPOR89F7Xv5bK/jrQEhmcLFe6HFldoeO9AJtps+fqEnh486vnT/8y4bw38pSyxDcTCAq+Ks2aJTg==} + /tinyspy@2.2.1: + resolution: {integrity: sha512-KYad6Vy5VDWV4GH3fjpseMQ/XU2BhIYP7Vzd0LG44qRWm/Yt2WCOTicFdvmgo6gWaqooMQCawTtILVQJupKu7A==} engines: {node: '>=14.0.0'} dev: true @@ -5896,9 +5907,9 @@ packages: engines: {node: '>=8'} dev: true - /ts-api-utils@1.2.0(typescript@4.9.5): - resolution: {integrity: sha512-d+3WxW4r8WQy2cZWpNRPPGExX8ffOLGcIhheUANKbL5Sqjbhkneki76fRAWeXkaslV2etTb4tSJBSxOsH5+CJw==} - engines: {node: '>=18'} + /ts-api-utils@1.2.1(typescript@4.9.5): + resolution: {integrity: sha512-RIYA36cJn2WiH9Hy77hdF9r7oEwxAtB/TS9/S4Qd90Ap4z5FSiin5zEiTL44OII1Y3IIlEvxwxFUVgrHSZ/UpA==} + engines: {node: '>=16'} peerDependencies: typescript: '>=4.2.0' dependencies: @@ -5996,12 +6007,12 @@ packages: engines: {node: '>=16'} dev: true - /typed-array-buffer@1.0.0: - resolution: {integrity: sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==} + /typed-array-buffer@1.0.1: + resolution: {integrity: sha512-RSqu1UEuSlrBhHTWC8O9FnPjOduNs4M7rJ4pRKoEjtx1zUNOPN2sSXHLDX+Y2WPbHIxbvg4JFo2DNAEfPIKWoQ==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.5 - get-intrinsic: 1.2.3 + call-bind: 1.0.6 + es-errors: 1.3.0 is-typed-array: 1.1.13 dev: true @@ -6009,7 +6020,7 @@ packages: resolution: {integrity: sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.5 + call-bind: 1.0.6 for-each: 0.3.3 has-proto: 1.0.1 is-typed-array: 1.1.13 @@ -6020,7 +6031,7 @@ packages: engines: {node: '>= 0.4'} dependencies: available-typed-arrays: 1.0.6 - call-bind: 1.0.5 + call-bind: 1.0.6 for-each: 0.3.3 has-proto: 1.0.1 is-typed-array: 1.1.13 @@ -6029,7 +6040,7 @@ packages: /typed-array-length@1.0.4: resolution: {integrity: sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==} dependencies: - call-bind: 1.0.5 + call-bind: 1.0.6 for-each: 0.3.3 is-typed-array: 1.1.13 dev: true @@ -6058,8 +6069,8 @@ packages: hasBin: true dev: true - /ufo@1.3.2: - resolution: {integrity: sha512-o+ORpgGwaYQXgqGDwd+hkS4PuZ3QnmqMMxRuajK/a38L6fTpcE5GPIfrf+L/KemFzfUpeUQc1rRS1iDBozvnFA==} + /ufo@1.4.0: + resolution: {integrity: sha512-Hhy+BhRBleFjpJ2vchUNN40qgkh0366FWJGqVLYBHev0vpHTrXSA0ryT+74UiW6KWsldNurQMKGqCm1M2zBciQ==} dev: true /uglify-js@3.17.4: @@ -6073,7 +6084,7 @@ packages: /unbox-primitive@1.0.2: resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==} dependencies: - call-bind: 1.0.5 + call-bind: 1.0.6 has-bigints: 1.0.2 has-symbols: 1.0.3 which-boxed-primitive: 1.0.2 @@ -6172,7 +6183,7 @@ packages: extsprintf: 1.3.0 dev: true - /vite-node@0.34.6(@types/node@20.11.16): + /vite-node@0.34.6(@types/node@20.11.17): resolution: {integrity: sha512-nlBMJ9x6n7/Amaz6F3zJ97EBwR2FkzhBRxF5e+jE6LA3yi6Wtc2lyTij1OnDMIr34v5g/tVQtsVAzhT0jc5ygA==} engines: {node: '>=v14.18.0'} hasBin: true @@ -6182,7 +6193,7 @@ packages: mlly: 1.5.0 pathe: 1.1.2 picocolors: 1.0.0 - vite: 4.5.2(@types/node@20.11.16) + vite: 4.5.2(@types/node@20.11.17) transitivePeerDependencies: - '@types/node' - less @@ -6194,7 +6205,7 @@ packages: - terser dev: true - /vite@4.5.2(@types/node@20.11.16): + /vite@4.5.2(@types/node@20.11.17): resolution: {integrity: sha512-tBCZBNSBbHQkaGyhGCDUGqeo2ph8Fstyp6FMSvTtsXeZSPpSMGlviAOav2hxVTqFcx8Hj/twtWKsMJXNY0xI8w==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -6222,16 +6233,16 @@ packages: terser: optional: true dependencies: - '@types/node': 20.11.16 + '@types/node': 20.11.17 esbuild: 0.18.20 - postcss: 8.4.34 + postcss: 8.4.35 rollup: 3.29.4 optionalDependencies: fsevents: 2.3.3 dev: true - /vite@5.0.12(@types/node@20.11.16): - resolution: {integrity: sha512-4hsnEkG3q0N4Tzf1+t6NdN9dg/L3BM+q8SWgbSPnJvrgH2kgdyzfVJwbR1ic69/4uMJJ/3dqDZZE5/WwqW8U1w==} + /vite@5.1.0(@types/node@20.11.17): + resolution: {integrity: sha512-STmSFzhY4ljuhz14bg9LkMTk3d98IO6DIArnTY6MeBwiD1Za2StcQtz7fzOUnRCqrHSD5+OS2reg4HOz1eoLnw==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: @@ -6258,15 +6269,15 @@ packages: terser: optional: true dependencies: - '@types/node': 20.11.16 + '@types/node': 20.11.17 esbuild: 0.19.12 - postcss: 8.4.34 + postcss: 8.4.35 rollup: 4.9.6 optionalDependencies: fsevents: 2.3.3 dev: true - /vitepress@1.0.0-rc.39(@algolia/client-search@4.22.1)(@types/node@20.11.16)(search-insights@2.13.0)(typescript@4.9.5): + /vitepress@1.0.0-rc.39(@algolia/client-search@4.22.1)(@types/node@20.11.17)(search-insights@2.13.0)(typescript@4.9.5): resolution: {integrity: sha512-EcgoRlAAp37WOxUOYv45oxyhLrcy3Upey+mKpqW3ldsg6Ol4trPndRBk2GO0QiSvEKlb9BMerk49D/bFICN6kg==} hasBin: true peerDependencies: @@ -6281,18 +6292,18 @@ packages: '@docsearch/css': 3.5.2 '@docsearch/js': 3.5.2(@algolia/client-search@4.22.1)(search-insights@2.13.0) '@types/markdown-it': 13.0.7 - '@vitejs/plugin-vue': 5.0.3(vite@5.0.12)(vue@3.4.15) + '@vitejs/plugin-vue': 5.0.3(vite@5.1.0)(vue@3.4.18) '@vue/devtools-api': 6.5.1 - '@vueuse/core': 10.7.2(vue@3.4.15) - '@vueuse/integrations': 10.7.2(focus-trap@7.5.4)(vue@3.4.15) + '@vueuse/core': 10.7.2(vue@3.4.18) + '@vueuse/integrations': 10.7.2(focus-trap@7.5.4)(vue@3.4.18) focus-trap: 7.5.4 mark.js: 8.11.1 minisearch: 6.3.0 shikiji: 0.9.19 shikiji-core: 0.9.19 shikiji-transformers: 0.9.19 - vite: 5.0.12(@types/node@20.11.16) - vue: 3.4.15(typescript@4.9.5) + vite: 5.1.0(@types/node@20.11.17) + vue: 3.4.18(typescript@4.9.5) transitivePeerDependencies: - '@algolia/client-search' - '@types/node' @@ -6354,7 +6365,7 @@ packages: dependencies: '@types/chai': 4.3.11 '@types/chai-subset': 1.3.5 - '@types/node': 20.11.16 + '@types/node': 20.11.17 '@vitest/expect': 0.34.6 '@vitest/runner': 0.34.6 '@vitest/snapshot': 0.34.6 @@ -6374,8 +6385,8 @@ packages: strip-literal: 1.3.0 tinybench: 2.6.0 tinypool: 0.7.0 - vite: 4.5.2(@types/node@20.11.16) - vite-node: 0.34.6(@types/node@20.11.16) + vite: 4.5.2(@types/node@20.11.17) + vite-node: 0.34.6(@types/node@20.11.17) why-is-node-running: 2.2.2 transitivePeerDependencies: - less @@ -6395,7 +6406,7 @@ packages: resolution: {integrity: sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==} dev: true - /vue-demi@0.14.7(vue@3.4.15): + /vue-demi@0.14.7(vue@3.4.18): resolution: {integrity: sha512-EOG8KXDQNwkJILkx/gPcoL/7vH+hORoBaKgGe+6W7VFMvCYJfmF2dGbvgDroVnI8LU7/kTu8mbjRZGBU1z9NTA==} engines: {node: '>=12'} hasBin: true @@ -6407,22 +6418,22 @@ packages: '@vue/composition-api': optional: true dependencies: - vue: 3.4.15(typescript@4.9.5) + vue: 3.4.18(typescript@4.9.5) dev: true - /vue@3.4.15(typescript@4.9.5): - resolution: {integrity: sha512-jC0GH4KkWLWJOEQjOpkqU1bQsBwf4R1rsFtw5GQJbjHVKWDzO6P0nWWBTmjp1xSemAioDFj1jdaK1qa3DnMQoQ==} + /vue@3.4.18(typescript@4.9.5): + resolution: {integrity: sha512-0zLRYamFRe0wF4q2L3O24KQzLyLpL64ye1RUToOgOxuWZsb/FhaNRdGmeozdtVYLz6tl94OXLaK7/WQIrVCw1A==} peerDependencies: typescript: '*' peerDependenciesMeta: typescript: optional: true dependencies: - '@vue/compiler-dom': 3.4.15 - '@vue/compiler-sfc': 3.4.15 - '@vue/runtime-dom': 3.4.15 - '@vue/server-renderer': 3.4.15(vue@3.4.15) - '@vue/shared': 3.4.15 + '@vue/compiler-dom': 3.4.18 + '@vue/compiler-sfc': 3.4.18 + '@vue/runtime-dom': 3.4.18 + '@vue/server-renderer': 3.4.18(vue@3.4.18) + '@vue/shared': 3.4.18 typescript: 4.9.5 dev: true @@ -6441,7 +6452,7 @@ packages: engines: {node: '>= 0.4'} dependencies: available-typed-arrays: 1.0.6 - call-bind: 1.0.5 + call-bind: 1.0.6 for-each: 0.3.3 gopd: 1.0.1 has-tostringtag: 1.0.2 diff --git a/scripts/bundle.ts b/scripts/bundle.ts index bf953d42c03..c5465315979 100644 --- a/scripts/bundle.ts +++ b/scripts/bundle.ts @@ -6,7 +6,7 @@ import { allLocales } from '../src'; console.log('Building dist for node (cjs)...'); -const target = ['ES2019', 'node14.17']; +const target = ['ES2022', 'node18']; buildSync({ entryPoints: globSync('./src/**/*.ts'), diff --git a/tsconfig.build.json b/tsconfig.build.json index ce2dcfba1a7..0d07a4fc569 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -1,7 +1,7 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "target": "ES2019", + "target": "ES2022", "noEmit": false, "emitDeclarationOnly": true, "rootDir": "src", diff --git a/vitest.config.ts b/vitest.config.ts index 16fa5aed9af..e903e970670 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -4,17 +4,6 @@ const VITEST_SEQUENCE_SEED = Date.now(); console.log('VITEST_SEQUENCE_SEED', VITEST_SEQUENCE_SEED); -// TODO @Shinigami92 2023-12-28: remove when we drop support for Node 14 -const [nodeVersionMajor] = process.versions.node.split('.').map(Number); -const excludedTests: string[] = []; -if (nodeVersionMajor < 16) { - excludedTests.push( - 'test/scripts/apidoc/module.spec.ts', - 'test/scripts/apidoc/signature.spec.ts', - 'test/scripts/apidoc/verify-jsdoc-tags.spec.ts' - ); -} - // https://vitejs.dev/config/ export default defineConfig({ test: { @@ -30,16 +19,6 @@ export default defineConfig({ seed: VITEST_SEQUENCE_SEED, shuffle: true, }, - // TODO @Shinigami92 2023-12-28: remove the whole `exclude` when we drop support for Node 14 - exclude: [ - // should be originally `...configDefaults.exclude` from `'vitest/config'`, but esm... - 'node_modules', - 'dist', - '.idea', - '.git', - '.cache', - ...excludedTests, - ], onConsoleLog(log, type) { if ( type === 'stderr' && From 5fe3979ef59b1e72873a72c637e6f96ea4fc4177 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 9 Feb 2024 12:40:53 +0100 Subject: [PATCH 02/13] chore(deps): update devdependencies (#2540) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 6 +- pnpm-lock.yaml | 307 +++---------------------------------------------- 2 files changed, 17 insertions(+), 296 deletions(-) diff --git a/package.json b/package.json index f77c8832df6..b9ff5dccaa4 100644 --- a/package.json +++ b/package.json @@ -114,7 +114,7 @@ "eslint-plugin-deprecation": "~2.0.0", "eslint-plugin-jsdoc": "~48.0.5", "eslint-plugin-prettier": "~5.1.3", - "eslint-plugin-unicorn": "~50.0.1", + "eslint-plugin-unicorn": "~51.0.1", "eslint-plugin-vitest": "~0.3.21", "glob": "~10.3.10", "npm-run-all2": "~6.1.2", @@ -124,11 +124,11 @@ "sanitize-html": "~2.11.0", "semver": "~7.6.0", "standard-version": "~9.5.0", - "tsx": "~3.13.0", + "tsx": "~4.7.0", "typedoc": "~0.25.7", "typescript": "~4.9.5", "validator": "~13.11.0", - "vite": "~4.5.2", + "vite": "~5.1.0", "vitepress": "1.0.0-rc.39", "vitest": "~0.34.6", "vue": "~3.4.15" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 986456b5dc4..235fe352ece 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -87,8 +87,8 @@ devDependencies: specifier: ~5.1.3 version: 5.1.3(eslint-config-prettier@9.1.0)(eslint@8.56.0)(prettier@3.2.5) eslint-plugin-unicorn: - specifier: ~50.0.1 - version: 50.0.1(eslint@8.56.0) + specifier: ~51.0.1 + version: 51.0.1(eslint@8.56.0) eslint-plugin-vitest: specifier: ~0.3.21 version: 0.3.22(@typescript-eslint/eslint-plugin@6.21.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6) @@ -117,8 +117,8 @@ devDependencies: specifier: ~9.5.0 version: 9.5.0 tsx: - specifier: ~3.13.0 - version: 3.13.0 + specifier: ~4.7.0 + version: 4.7.0 typedoc: specifier: ~0.25.7 version: 0.25.7(typescript@4.9.5) @@ -129,8 +129,8 @@ devDependencies: specifier: ~13.11.0 version: 13.11.0 vite: - specifier: ~4.5.2 - version: 4.5.2(@types/node@20.11.17) + specifier: ~5.1.0 + version: 5.1.0(@types/node@20.11.17) vitepress: specifier: 1.0.0-rc.39 version: 1.0.0-rc.39(@algolia/client-search@4.22.1)(@types/node@20.11.17)(search-insights@2.13.0)(typescript@4.9.5) @@ -464,15 +464,6 @@ packages: dev: true optional: true - /@esbuild/android-arm64@0.18.20: - resolution: {integrity: sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==} - engines: {node: '>=12'} - cpu: [arm64] - os: [android] - requiresBuild: true - dev: true - optional: true - /@esbuild/android-arm64@0.19.12: resolution: {integrity: sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA==} engines: {node: '>=12'} @@ -491,15 +482,6 @@ packages: dev: true optional: true - /@esbuild/android-arm@0.18.20: - resolution: {integrity: sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==} - engines: {node: '>=12'} - cpu: [arm] - os: [android] - requiresBuild: true - dev: true - optional: true - /@esbuild/android-arm@0.19.12: resolution: {integrity: sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w==} engines: {node: '>=12'} @@ -518,15 +500,6 @@ packages: dev: true optional: true - /@esbuild/android-x64@0.18.20: - resolution: {integrity: sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==} - engines: {node: '>=12'} - cpu: [x64] - os: [android] - requiresBuild: true - dev: true - optional: true - /@esbuild/android-x64@0.19.12: resolution: {integrity: sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew==} engines: {node: '>=12'} @@ -545,15 +518,6 @@ packages: dev: true optional: true - /@esbuild/darwin-arm64@0.18.20: - resolution: {integrity: sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==} - engines: {node: '>=12'} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - /@esbuild/darwin-arm64@0.19.12: resolution: {integrity: sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g==} engines: {node: '>=12'} @@ -572,15 +536,6 @@ packages: dev: true optional: true - /@esbuild/darwin-x64@0.18.20: - resolution: {integrity: sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - /@esbuild/darwin-x64@0.19.12: resolution: {integrity: sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A==} engines: {node: '>=12'} @@ -599,15 +554,6 @@ packages: dev: true optional: true - /@esbuild/freebsd-arm64@0.18.20: - resolution: {integrity: sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==} - engines: {node: '>=12'} - cpu: [arm64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - /@esbuild/freebsd-arm64@0.19.12: resolution: {integrity: sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA==} engines: {node: '>=12'} @@ -626,15 +572,6 @@ packages: dev: true optional: true - /@esbuild/freebsd-x64@0.18.20: - resolution: {integrity: sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - /@esbuild/freebsd-x64@0.19.12: resolution: {integrity: sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg==} engines: {node: '>=12'} @@ -653,15 +590,6 @@ packages: dev: true optional: true - /@esbuild/linux-arm64@0.18.20: - resolution: {integrity: sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==} - engines: {node: '>=12'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@esbuild/linux-arm64@0.19.12: resolution: {integrity: sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA==} engines: {node: '>=12'} @@ -680,15 +608,6 @@ packages: dev: true optional: true - /@esbuild/linux-arm@0.18.20: - resolution: {integrity: sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==} - engines: {node: '>=12'} - cpu: [arm] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@esbuild/linux-arm@0.19.12: resolution: {integrity: sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w==} engines: {node: '>=12'} @@ -707,15 +626,6 @@ packages: dev: true optional: true - /@esbuild/linux-ia32@0.18.20: - resolution: {integrity: sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==} - engines: {node: '>=12'} - cpu: [ia32] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@esbuild/linux-ia32@0.19.12: resolution: {integrity: sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA==} engines: {node: '>=12'} @@ -734,15 +644,6 @@ packages: dev: true optional: true - /@esbuild/linux-loong64@0.18.20: - resolution: {integrity: sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==} - engines: {node: '>=12'} - cpu: [loong64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@esbuild/linux-loong64@0.19.12: resolution: {integrity: sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA==} engines: {node: '>=12'} @@ -761,15 +662,6 @@ packages: dev: true optional: true - /@esbuild/linux-mips64el@0.18.20: - resolution: {integrity: sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==} - engines: {node: '>=12'} - cpu: [mips64el] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@esbuild/linux-mips64el@0.19.12: resolution: {integrity: sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w==} engines: {node: '>=12'} @@ -788,15 +680,6 @@ packages: dev: true optional: true - /@esbuild/linux-ppc64@0.18.20: - resolution: {integrity: sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@esbuild/linux-ppc64@0.19.12: resolution: {integrity: sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg==} engines: {node: '>=12'} @@ -815,15 +698,6 @@ packages: dev: true optional: true - /@esbuild/linux-riscv64@0.18.20: - resolution: {integrity: sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==} - engines: {node: '>=12'} - cpu: [riscv64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@esbuild/linux-riscv64@0.19.12: resolution: {integrity: sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg==} engines: {node: '>=12'} @@ -842,15 +716,6 @@ packages: dev: true optional: true - /@esbuild/linux-s390x@0.18.20: - resolution: {integrity: sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==} - engines: {node: '>=12'} - cpu: [s390x] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@esbuild/linux-s390x@0.19.12: resolution: {integrity: sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg==} engines: {node: '>=12'} @@ -869,15 +734,6 @@ packages: dev: true optional: true - /@esbuild/linux-x64@0.18.20: - resolution: {integrity: sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==} - engines: {node: '>=12'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@esbuild/linux-x64@0.19.12: resolution: {integrity: sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg==} engines: {node: '>=12'} @@ -896,15 +752,6 @@ packages: dev: true optional: true - /@esbuild/netbsd-x64@0.18.20: - resolution: {integrity: sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==} - engines: {node: '>=12'} - cpu: [x64] - os: [netbsd] - requiresBuild: true - dev: true - optional: true - /@esbuild/netbsd-x64@0.19.12: resolution: {integrity: sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA==} engines: {node: '>=12'} @@ -923,15 +770,6 @@ packages: dev: true optional: true - /@esbuild/openbsd-x64@0.18.20: - resolution: {integrity: sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==} - engines: {node: '>=12'} - cpu: [x64] - os: [openbsd] - requiresBuild: true - dev: true - optional: true - /@esbuild/openbsd-x64@0.19.12: resolution: {integrity: sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw==} engines: {node: '>=12'} @@ -950,15 +788,6 @@ packages: dev: true optional: true - /@esbuild/sunos-x64@0.18.20: - resolution: {integrity: sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [sunos] - requiresBuild: true - dev: true - optional: true - /@esbuild/sunos-x64@0.19.12: resolution: {integrity: sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA==} engines: {node: '>=12'} @@ -977,15 +806,6 @@ packages: dev: true optional: true - /@esbuild/win32-arm64@0.18.20: - resolution: {integrity: sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==} - engines: {node: '>=12'} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: true - optional: true - /@esbuild/win32-arm64@0.19.12: resolution: {integrity: sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A==} engines: {node: '>=12'} @@ -1004,15 +824,6 @@ packages: dev: true optional: true - /@esbuild/win32-ia32@0.18.20: - resolution: {integrity: sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==} - engines: {node: '>=12'} - cpu: [ia32] - os: [win32] - requiresBuild: true - dev: true - optional: true - /@esbuild/win32-ia32@0.19.12: resolution: {integrity: sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ==} engines: {node: '>=12'} @@ -1031,15 +842,6 @@ packages: dev: true optional: true - /@esbuild/win32-x64@0.18.20: - resolution: {integrity: sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: true - optional: true - /@esbuild/win32-x64@0.19.12: resolution: {integrity: sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA==} engines: {node: '>=12'} @@ -3083,36 +2885,6 @@ packages: is-symbol: 1.0.4 dev: true - /esbuild@0.18.20: - resolution: {integrity: sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==} - engines: {node: '>=12'} - hasBin: true - requiresBuild: true - optionalDependencies: - '@esbuild/android-arm': 0.18.20 - '@esbuild/android-arm64': 0.18.20 - '@esbuild/android-x64': 0.18.20 - '@esbuild/darwin-arm64': 0.18.20 - '@esbuild/darwin-x64': 0.18.20 - '@esbuild/freebsd-arm64': 0.18.20 - '@esbuild/freebsd-x64': 0.18.20 - '@esbuild/linux-arm': 0.18.20 - '@esbuild/linux-arm64': 0.18.20 - '@esbuild/linux-ia32': 0.18.20 - '@esbuild/linux-loong64': 0.18.20 - '@esbuild/linux-mips64el': 0.18.20 - '@esbuild/linux-ppc64': 0.18.20 - '@esbuild/linux-riscv64': 0.18.20 - '@esbuild/linux-s390x': 0.18.20 - '@esbuild/linux-x64': 0.18.20 - '@esbuild/netbsd-x64': 0.18.20 - '@esbuild/openbsd-x64': 0.18.20 - '@esbuild/sunos-x64': 0.18.20 - '@esbuild/win32-arm64': 0.18.20 - '@esbuild/win32-ia32': 0.18.20 - '@esbuild/win32-x64': 0.18.20 - dev: true - /esbuild@0.19.12: resolution: {integrity: sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==} engines: {node: '>=12'} @@ -3274,8 +3046,8 @@ packages: synckit: 0.8.8 dev: true - /eslint-plugin-unicorn@50.0.1(eslint@8.56.0): - resolution: {integrity: sha512-KxenCZxqSYW0GWHH18okDlOQcpezcitm5aOSz6EnobyJ6BIByiPDviQRjJIUAjG/tMN11958MxaQ+qCoU6lfDA==} + /eslint-plugin-unicorn@51.0.1(eslint@8.56.0): + resolution: {integrity: sha512-MuR/+9VuB0fydoI0nIn2RDA5WISRn4AsJyNSaNKLVwie9/ONvQhxOBbkfSICBPnzKrB77Fh6CZZXjgTt/4Latw==} engines: {node: '>=16'} peerDependencies: eslint: '>=8.56.0' @@ -5326,14 +5098,6 @@ packages: glob: 10.3.10 dev: true - /rollup@3.29.4: - resolution: {integrity: sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw==} - engines: {node: '>=14.18.0', npm: '>=8.0.0'} - hasBin: true - optionalDependencies: - fsevents: 2.3.3 - dev: true - /rollup@4.9.6: resolution: {integrity: sha512-05lzkCS2uASX0CiLFybYfVkwNbKZG5NFQ6Go0VWyogFTXXbR039UVsegViTntkk4OglHBdF54ccApXRRuXRbsg==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} @@ -5555,13 +5319,6 @@ packages: engines: {node: '>=0.10.0'} dev: true - /source-map-support@0.5.21: - resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} - dependencies: - buffer-from: 1.1.2 - source-map: 0.6.1 - dev: true - /source-map@0.6.1: resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} engines: {node: '>=0.10.0'} @@ -5934,13 +5691,13 @@ packages: typescript: 4.9.5 dev: true - /tsx@3.13.0: - resolution: {integrity: sha512-rjmRpTu3as/5fjNq/kOkOtihgLxuIz6pbKdj9xwP4J5jOLkBxw/rjN5ANw+KyrrOXV5uB7HC8+SrrSJxT65y+A==} + /tsx@4.7.0: + resolution: {integrity: sha512-I+t79RYPlEYlHn9a+KzwrvEwhJg35h/1zHsLC2JXvhC2mdynMv6Zxzvhv5EMV6VF5qJlLlkSnMVvdZV3PSIGcg==} + engines: {node: '>=18.0.0'} hasBin: true dependencies: - esbuild: 0.18.20 + esbuild: 0.19.12 get-tsconfig: 4.7.2 - source-map-support: 0.5.21 optionalDependencies: fsevents: 2.3.3 dev: true @@ -6193,7 +5950,7 @@ packages: mlly: 1.5.0 pathe: 1.1.2 picocolors: 1.0.0 - vite: 4.5.2(@types/node@20.11.17) + vite: 5.1.0(@types/node@20.11.17) transitivePeerDependencies: - '@types/node' - less @@ -6205,42 +5962,6 @@ packages: - terser dev: true - /vite@4.5.2(@types/node@20.11.17): - resolution: {integrity: sha512-tBCZBNSBbHQkaGyhGCDUGqeo2ph8Fstyp6FMSvTtsXeZSPpSMGlviAOav2hxVTqFcx8Hj/twtWKsMJXNY0xI8w==} - engines: {node: ^14.18.0 || >=16.0.0} - hasBin: true - peerDependencies: - '@types/node': '>= 14' - less: '*' - lightningcss: ^1.21.0 - sass: '*' - stylus: '*' - sugarss: '*' - terser: ^5.4.0 - peerDependenciesMeta: - '@types/node': - optional: true - less: - optional: true - lightningcss: - optional: true - sass: - optional: true - stylus: - optional: true - sugarss: - optional: true - terser: - optional: true - dependencies: - '@types/node': 20.11.17 - esbuild: 0.18.20 - postcss: 8.4.35 - rollup: 3.29.4 - optionalDependencies: - fsevents: 2.3.3 - dev: true - /vite@5.1.0(@types/node@20.11.17): resolution: {integrity: sha512-STmSFzhY4ljuhz14bg9LkMTk3d98IO6DIArnTY6MeBwiD1Za2StcQtz7fzOUnRCqrHSD5+OS2reg4HOz1eoLnw==} engines: {node: ^18.0.0 || >=20.0.0} @@ -6385,7 +6106,7 @@ packages: strip-literal: 1.3.0 tinybench: 2.6.0 tinypool: 0.7.0 - vite: 4.5.2(@types/node@20.11.17) + vite: 5.1.0(@types/node@20.11.17) vite-node: 0.34.6(@types/node@20.11.17) why-is-node-running: 2.2.2 transitivePeerDependencies: From f3980fd220393ef88bffe8200ed6dc6d448e0f2d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 9 Feb 2024 15:20:42 +0100 Subject: [PATCH 03/13] chore(deps): update vitest to v1 (major) (#2573) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ST-DDT --- package.json | 6 +- pnpm-lock.yaml | 227 +++++++++++------- .../__snapshots__/datatype.spec.ts.snap | 28 +-- .../__snapshots__/helpers.spec.ts.snap | 18 +- .../modules/__snapshots__/string.spec.ts.snap | 28 +-- .../apidoc/__snapshots__/module.spec.ts.snap | 2 +- .../__snapshots__/signature.spec.ts.snap | 92 +++---- 7 files changed, 230 insertions(+), 171 deletions(-) diff --git a/package.json b/package.json index b9ff5dccaa4..0e848c3280f 100644 --- a/package.json +++ b/package.json @@ -101,8 +101,8 @@ "@types/validator": "~13.11.8", "@typescript-eslint/eslint-plugin": "~6.21.0", "@typescript-eslint/parser": "~6.21.0", - "@vitest/coverage-v8": "~0.34.6", - "@vitest/ui": "~0.34.7", + "@vitest/coverage-v8": "~1.2.2", + "@vitest/ui": "~1.2.2", "@vueuse/core": "~10.7.2", "conventional-changelog-cli": "~4.1.0", "cypress": "~13.6.4", @@ -130,7 +130,7 @@ "validator": "~13.11.0", "vite": "~5.1.0", "vitepress": "1.0.0-rc.39", - "vitest": "~0.34.6", + "vitest": "~1.2.2", "vue": "~3.4.15" }, "packageManager": "pnpm@8.15.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 235fe352ece..cb64f4a82a3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -48,11 +48,11 @@ devDependencies: specifier: ~6.21.0 version: 6.21.0(eslint@8.56.0)(typescript@4.9.5) '@vitest/coverage-v8': - specifier: ~0.34.6 - version: 0.34.6(vitest@0.34.6) + specifier: ~1.2.2 + version: 1.2.2(vitest@1.2.2) '@vitest/ui': - specifier: ~0.34.7 - version: 0.34.7(vitest@0.34.6) + specifier: ~1.2.2 + version: 1.2.2(vitest@1.2.2) '@vueuse/core': specifier: ~10.7.2 version: 10.7.2(vue@3.4.18) @@ -91,7 +91,7 @@ devDependencies: version: 51.0.1(eslint@8.56.0) eslint-plugin-vitest: specifier: ~0.3.21 - version: 0.3.22(@typescript-eslint/eslint-plugin@6.21.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6) + version: 0.3.22(@typescript-eslint/eslint-plugin@6.21.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@1.2.2) glob: specifier: ~10.3.10 version: 10.3.10 @@ -135,8 +135,8 @@ devDependencies: specifier: 1.0.0-rc.39 version: 1.0.0-rc.39(@algolia/client-search@4.22.1)(@types/node@20.11.17)(search-insights@2.13.0)(typescript@4.9.5) vitest: - specifier: ~0.34.6 - version: 0.34.6(@vitest/ui@0.34.7) + specifier: ~1.2.2 + version: 1.2.2(@types/node@20.11.17)(@vitest/ui@1.2.2) vue: specifier: ~3.4.15 version: 3.4.18(typescript@4.9.5) @@ -1235,16 +1235,6 @@ packages: resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} dev: true - /@types/chai-subset@1.3.5: - resolution: {integrity: sha512-c2mPnw+xHtXDoHmdtcCXGwyLMiauiAyxWMzhGpqHC4nqI/Y5G2XhTampslK2rb59kpcuHon03UH8W6iYUzw88A==} - dependencies: - '@types/chai': 4.3.11 - dev: true - - /@types/chai@4.3.11: - resolution: {integrity: sha512-qQR1dr2rGIHYlJulmr8Ioq3De0Le9E4MJ5AiaeAETJJpndT1uUNHsGFK3L/UIu+rbkQSdj8J/w2bCsBZc/Y5fQ==} - dev: true - /@types/estree@1.0.5: resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} dev: true @@ -1467,84 +1457,79 @@ packages: vue: 3.4.18(typescript@4.9.5) dev: true - /@vitest/coverage-v8@0.34.6(vitest@0.34.6): - resolution: {integrity: sha512-fivy/OK2d/EsJFoEoxHFEnNGTg+MmdZBAVK9Ka4qhXR2K3J0DS08vcGVwzDtXSuUMabLv4KtPcpSKkcMXFDViw==} + /@vitest/coverage-v8@1.2.2(vitest@1.2.2): + resolution: {integrity: sha512-IHyKnDz18SFclIEEAHb9Y4Uxx0sPKC2VO1kdDCs1BF6Ip4S8rQprs971zIsooLUn7Afs71GRxWMWpkCGZpRMhw==} peerDependencies: - vitest: '>=0.32.0 <1' + vitest: ^1.0.0 dependencies: '@ampproject/remapping': 2.2.1 '@bcoe/v8-coverage': 0.2.3 + debug: 4.3.4(supports-color@8.1.1) istanbul-lib-coverage: 3.2.2 istanbul-lib-report: 3.0.1 istanbul-lib-source-maps: 4.0.1 istanbul-reports: 3.1.6 magic-string: 0.30.7 + magicast: 0.3.3 picocolors: 1.0.0 std-env: 3.7.0 test-exclude: 6.0.0 v8-to-istanbul: 9.2.0 - vitest: 0.34.6(@vitest/ui@0.34.7) + vitest: 1.2.2(@types/node@20.11.17)(@vitest/ui@1.2.2) transitivePeerDependencies: - supports-color dev: true - /@vitest/expect@0.34.6: - resolution: {integrity: sha512-QUzKpUQRc1qC7qdGo7rMK3AkETI7w18gTCUrsNnyjjJKYiuUB9+TQK3QnR1unhCnWRC0AbKv2omLGQDF/mIjOw==} + /@vitest/expect@1.2.2: + resolution: {integrity: sha512-3jpcdPAD7LwHUUiT2pZTj2U82I2Tcgg2oVPvKxhn6mDI2On6tfvPQTjAI4628GUGDZrCm4Zna9iQHm5cEexOAg==} dependencies: - '@vitest/spy': 0.34.6 - '@vitest/utils': 0.34.6 + '@vitest/spy': 1.2.2 + '@vitest/utils': 1.2.2 chai: 4.4.1 dev: true - /@vitest/runner@0.34.6: - resolution: {integrity: sha512-1CUQgtJSLF47NnhN+F9X2ycxUP0kLHQ/JWvNHbeBfwW8CzEGgeskzNnHDyv1ieKTltuR6sdIHV+nmR6kPxQqzQ==} + /@vitest/runner@1.2.2: + resolution: {integrity: sha512-JctG7QZ4LSDXr5CsUweFgcpEvrcxOV1Gft7uHrvkQ+fsAVylmWQvnaAr/HDp3LAH1fztGMQZugIheTWjaGzYIg==} dependencies: - '@vitest/utils': 0.34.6 - p-limit: 4.0.0 + '@vitest/utils': 1.2.2 + p-limit: 5.0.0 pathe: 1.1.2 dev: true - /@vitest/snapshot@0.34.6: - resolution: {integrity: sha512-B3OZqYn6k4VaN011D+ve+AA4whM4QkcwcrwaKwAbyyvS/NB1hCWjFIBQxAQQSQir9/RtyAAGuq+4RJmbn2dH4w==} + /@vitest/snapshot@1.2.2: + resolution: {integrity: sha512-SmGY4saEw1+bwE1th6S/cZmPxz/Q4JWsl7LvbQIky2tKE35US4gd0Mjzqfr84/4OD0tikGWaWdMja/nWL5NIPA==} dependencies: magic-string: 0.30.7 pathe: 1.1.2 pretty-format: 29.7.0 dev: true - /@vitest/spy@0.34.6: - resolution: {integrity: sha512-xaCvneSaeBw/cz8ySmF7ZwGvL0lBjfvqc1LpQ/vcdHEvpLn3Ff1vAvjw+CoGn0802l++5L/pxb7whwcWAw+DUQ==} + /@vitest/spy@1.2.2: + resolution: {integrity: sha512-k9Gcahssw8d7X3pSLq3e3XEu/0L78mUkCjivUqCQeXJm9clfXR/Td8+AP+VC1O6fKPIDLcHDTAmBOINVuv6+7g==} dependencies: tinyspy: 2.2.1 dev: true - /@vitest/ui@0.34.7(vitest@0.34.6): - resolution: {integrity: sha512-iizUu9R5Rsvsq8FtdJ0suMqEfIsIIzziqnasMHe4VH8vG+FnZSA3UAtCHx6rLeRupIFVAVg7bptMmuvMcsn8WQ==} + /@vitest/ui@1.2.2(vitest@1.2.2): + resolution: {integrity: sha512-CG+5fa8lyoBr+9i+UZGS31Qw81v33QlD10uecHxN2CLJVN+jLnqx4pGzGvFFeJ7jSnUCT0AlbmVWY6fU6NJZmw==} peerDependencies: - vitest: '>=0.30.1 <1' + vitest: ^1.0.0 dependencies: - '@vitest/utils': 0.34.7 + '@vitest/utils': 1.2.2 fast-glob: 3.3.2 fflate: 0.8.2 flatted: 3.2.9 pathe: 1.1.2 picocolors: 1.0.0 sirv: 2.0.4 - vitest: 0.34.6(@vitest/ui@0.34.7) - dev: true - - /@vitest/utils@0.34.6: - resolution: {integrity: sha512-IG5aDD8S6zlvloDsnzHw0Ut5xczlF+kv2BOTo+iXfPr54Yhi5qbVOgGB1hZaVq4iJ4C/MZ2J0y15IlsV/ZcI0A==} - dependencies: - diff-sequences: 29.6.3 - loupe: 2.3.7 - pretty-format: 29.7.0 + vitest: 1.2.2(@types/node@20.11.17)(@vitest/ui@1.2.2) dev: true - /@vitest/utils@0.34.7: - resolution: {integrity: sha512-ziAavQLpCYS9sLOorGrFFKmy2gnfiNU0ZJ15TsMz/K92NAPS/rp9K4z6AJQQk5Y8adCy4Iwpxy7pQumQ/psnRg==} + /@vitest/utils@1.2.2: + resolution: {integrity: sha512-WKITBHLsBHlpjnDQahr+XK6RE7MiAsgrIkr0pGhQ9ygoxBfUeG0lUG5iLlzqjmKSlBv3+j5EGsriBzh+C3Tq9g==} dependencies: diff-sequences: 29.6.3 + estree-walker: 3.0.3 loupe: 2.3.7 pretty-format: 29.7.0 dev: true @@ -3073,7 +3058,7 @@ packages: - supports-color dev: true - /eslint-plugin-vitest@0.3.22(@typescript-eslint/eslint-plugin@6.21.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6): + /eslint-plugin-vitest@0.3.22(@typescript-eslint/eslint-plugin@6.21.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@1.2.2): resolution: {integrity: sha512-atkFGQ7aVgcuSeSMDqnyevIyUpfBPMnosksgEPrKE7Y8xQlqG/5z2IQ6UDau05zXaaFv7Iz8uzqvIuKshjZ0Zw==} engines: {node: ^18.0.0 || >= 20.0.0} peerDependencies: @@ -3089,7 +3074,7 @@ packages: '@typescript-eslint/eslint-plugin': 6.21.0(@typescript-eslint/parser@6.21.0)(eslint@8.56.0)(typescript@4.9.5) '@typescript-eslint/utils': 6.21.0(eslint@8.56.0)(typescript@4.9.5) eslint: 8.56.0 - vitest: 0.34.6(@vitest/ui@0.34.7) + vitest: 1.2.2(@types/node@20.11.17)(@vitest/ui@1.2.2) transitivePeerDependencies: - supports-color - typescript @@ -3187,6 +3172,12 @@ packages: resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} dev: true + /estree-walker@3.0.3: + resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} + dependencies: + '@types/estree': 1.0.5 + dev: true + /esutils@2.0.3: resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} engines: {node: '>=0.10.0'} @@ -3211,6 +3202,21 @@ packages: strip-final-newline: 2.0.0 dev: true + /execa@8.0.1: + resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==} + engines: {node: '>=16.17'} + dependencies: + cross-spawn: 7.0.3 + get-stream: 8.0.1 + human-signals: 5.0.0 + is-stream: 3.0.0 + merge-stream: 2.0.0 + npm-run-path: 5.2.0 + onetime: 6.0.0 + signal-exit: 4.1.0 + strip-final-newline: 3.0.0 + dev: true + /executable@4.1.1: resolution: {integrity: sha512-8iA79xD3uAch729dUG8xaaBBFGaEa0wdD2VkYLFHwlqosEj/jT66AzcreRDSgV7ehnNLBW2WR5jIXwGKjVdTLg==} engines: {node: '>=4'} @@ -3467,6 +3473,11 @@ packages: pump: 3.0.0 dev: true + /get-stream@8.0.1: + resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==} + engines: {node: '>=16'} + dev: true + /get-symbol-description@1.0.2: resolution: {integrity: sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==} engines: {node: '>= 0.4'} @@ -3739,6 +3750,11 @@ packages: engines: {node: '>=8.12.0'} dev: true + /human-signals@5.0.0: + resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==} + engines: {node: '>=16.17.0'} + dev: true + /ieee754@1.2.1: resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} dev: true @@ -3934,6 +3950,11 @@ packages: engines: {node: '>=8'} dev: true + /is-stream@3.0.0: + resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dev: true + /is-string@1.0.7: resolution: {integrity: sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==} engines: {node: '>= 0.4'} @@ -4196,9 +4217,12 @@ packages: strip-bom: 3.0.0 dev: true - /local-pkg@0.4.3: - resolution: {integrity: sha512-SFppqq5p42fe2qcZQqqEOiVRXl+WCP1MdT6k7BDEW1j++sp5fIY+/fdRQitvKgB5BrBcmrs5m/L0v2FrU5MY1g==} + /local-pkg@0.5.0: + resolution: {integrity: sha512-ok6z3qlYyCDS4ZEU27HaU6x/xZa9Whf8jD4ptH5UZTQYZVYeb9bnZ3ojVhiJNLiXK1Hfc0GNbLXcmZ5plLDDBg==} engines: {node: '>=14'} + dependencies: + mlly: 1.5.0 + pkg-types: 1.0.3 dev: true /locate-path@2.0.0: @@ -4301,6 +4325,14 @@ packages: '@jridgewell/sourcemap-codec': 1.4.15 dev: true + /magicast@0.3.3: + resolution: {integrity: sha512-ZbrP1Qxnpoes8sz47AM0z08U+jW6TyRgZzcWy3Ma3vDhJttwMwAFDMMQFobwdBxByBD46JYmxRzeF7w2+wJEuw==} + dependencies: + '@babel/parser': 7.23.9 + '@babel/types': 7.23.9 + source-map-js: 1.0.2 + dev: true + /make-dir@4.0.0: resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==} engines: {node: '>=10'} @@ -4389,6 +4421,11 @@ packages: engines: {node: '>=6'} dev: true + /mimic-fn@4.0.0: + resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==} + engines: {node: '>=12'} + dev: true + /min-indent@1.0.1: resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} engines: {node: '>=4'} @@ -4529,6 +4566,13 @@ packages: path-key: 3.1.1 dev: true + /npm-run-path@5.2.0: + resolution: {integrity: sha512-W4/tgAXFqFA0iL7fk0+uQ3g7wkL8xJmx3XdK0VGb4cHW//eZTtKGvFBBoRKVTpY7n6ze4NL9ly7rgXcHufqXKg==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + path-key: 4.0.0 + dev: true + /object-inspect@1.13.1: resolution: {integrity: sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==} dev: true @@ -4561,6 +4605,13 @@ packages: mimic-fn: 2.1.0 dev: true + /onetime@6.0.0: + resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==} + engines: {node: '>=12'} + dependencies: + mimic-fn: 4.0.0 + dev: true + /optionator@0.9.3: resolution: {integrity: sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==} engines: {node: '>= 0.8.0'} @@ -4605,6 +4656,13 @@ packages: yocto-queue: 1.0.0 dev: true + /p-limit@5.0.0: + resolution: {integrity: sha512-/Eaoq+QyLSiXQ4lyYV23f14mZRQcXnxfHrN0vCai+ak9G0pp9iEQukIIZq5NccEvwRB8PUnZT0KsOoDCINS1qQ==} + engines: {node: '>=18'} + dependencies: + yocto-queue: 1.0.0 + dev: true + /p-locate@2.0.0: resolution: {integrity: sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==} engines: {node: '>=4'} @@ -4722,6 +4780,11 @@ packages: engines: {node: '>=8'} dev: true + /path-key@4.0.0: + resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==} + engines: {node: '>=12'} + dev: true + /path-parse@1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} dev: true @@ -5499,6 +5562,11 @@ packages: engines: {node: '>=6'} dev: true + /strip-final-newline@3.0.0: + resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==} + engines: {node: '>=12'} + dev: true + /strip-indent@3.0.0: resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==} engines: {node: '>=8'} @@ -5615,8 +5683,8 @@ packages: resolution: {integrity: sha512-N8hW3PG/3aOoZAN5V/NSAEDz0ZixDSSt5b/a05iqtpgfLWMSVuCo7w0k2vVvEjdrIoeGqZzweX2WlyioNIHchA==} dev: true - /tinypool@0.7.0: - resolution: {integrity: sha512-zSYNUlYSMhJ6Zdou4cJwo/p7w5nmAH17GRfU/ui3ctvjXFErXXkruT4MWW6poDeXgCaIBlGLrfU6TbTXxyGMww==} + /tinypool@0.8.2: + resolution: {integrity: sha512-SUszKYe5wgsxnNOVlBYO6IC+8VGWdVGZWAqUxp3UErNBtptZvWbwyUOyzNL59zigz2rCA92QiL3wvG+JDSdJdQ==} engines: {node: '>=14.0.0'} dev: true @@ -5940,14 +6008,13 @@ packages: extsprintf: 1.3.0 dev: true - /vite-node@0.34.6(@types/node@20.11.17): - resolution: {integrity: sha512-nlBMJ9x6n7/Amaz6F3zJ97EBwR2FkzhBRxF5e+jE6LA3yi6Wtc2lyTij1OnDMIr34v5g/tVQtsVAzhT0jc5ygA==} - engines: {node: '>=v14.18.0'} + /vite-node@1.2.2(@types/node@20.11.17): + resolution: {integrity: sha512-1as4rDTgVWJO3n1uHmUYqq7nsFgINQ9u+mRcXpjeOMJUmviqNKjcZB7UfRZrlM7MjYXMKpuWp5oGkjaFLnjawg==} + engines: {node: ^18.0.0 || >=20.0.0} hasBin: true dependencies: cac: 6.7.14 debug: 4.3.4(supports-color@8.1.1) - mlly: 1.5.0 pathe: 1.1.2 picocolors: 1.0.0 vite: 5.1.0(@types/node@20.11.17) @@ -6053,22 +6120,22 @@ packages: - universal-cookie dev: true - /vitest@0.34.6(@vitest/ui@0.34.7): - resolution: {integrity: sha512-+5CALsOvbNKnS+ZHMXtuUC7nL8/7F1F2DnHGjSsszX8zCjWSSviphCb/NuS9Nzf4Q03KyyDRBAXhF/8lffME4Q==} - engines: {node: '>=v14.18.0'} + /vitest@1.2.2(@types/node@20.11.17)(@vitest/ui@1.2.2): + resolution: {integrity: sha512-d5Ouvrnms3GD9USIK36KG8OZ5bEvKEkITFtnGv56HFaSlbItJuYr7hv2Lkn903+AvRAgSixiamozUVfORUekjw==} + engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: '@edge-runtime/vm': '*' - '@vitest/browser': '*' - '@vitest/ui': '*' + '@types/node': ^18.0.0 || >=20.0.0 + '@vitest/browser': ^1.0.0 + '@vitest/ui': ^1.0.0 happy-dom: '*' jsdom: '*' - playwright: '*' - safaridriver: '*' - webdriverio: '*' peerDependenciesMeta: '@edge-runtime/vm': optional: true + '@types/node': + optional: true '@vitest/browser': optional: true '@vitest/ui': @@ -6077,37 +6144,29 @@ packages: optional: true jsdom: optional: true - playwright: - optional: true - safaridriver: - optional: true - webdriverio: - optional: true dependencies: - '@types/chai': 4.3.11 - '@types/chai-subset': 1.3.5 '@types/node': 20.11.17 - '@vitest/expect': 0.34.6 - '@vitest/runner': 0.34.6 - '@vitest/snapshot': 0.34.6 - '@vitest/spy': 0.34.6 - '@vitest/ui': 0.34.7(vitest@0.34.6) - '@vitest/utils': 0.34.6 - acorn: 8.11.3 + '@vitest/expect': 1.2.2 + '@vitest/runner': 1.2.2 + '@vitest/snapshot': 1.2.2 + '@vitest/spy': 1.2.2 + '@vitest/ui': 1.2.2(vitest@1.2.2) + '@vitest/utils': 1.2.2 acorn-walk: 8.3.2 cac: 6.7.14 chai: 4.4.1 debug: 4.3.4(supports-color@8.1.1) - local-pkg: 0.4.3 + execa: 8.0.1 + local-pkg: 0.5.0 magic-string: 0.30.7 pathe: 1.1.2 picocolors: 1.0.0 std-env: 3.7.0 strip-literal: 1.3.0 tinybench: 2.6.0 - tinypool: 0.7.0 + tinypool: 0.8.2 vite: 5.1.0(@types/node@20.11.17) - vite-node: 0.34.6(@types/node@20.11.17) + vite-node: 1.2.2(@types/node@20.11.17) why-is-node-running: 2.2.2 transitivePeerDependencies: - less diff --git a/test/modules/__snapshots__/datatype.spec.ts.snap b/test/modules/__snapshots__/datatype.spec.ts.snap index 41c14158415..ba5c2ad1bda 100644 --- a/test/modules/__snapshots__/datatype.spec.ts.snap +++ b/test/modules/__snapshots__/datatype.spec.ts.snap @@ -3,7 +3,7 @@ exports[`datatype > 42 > array > noArgs 1`] = ` [ "ky2eiXX/J/", - "&Kq@X.b]\\"&", + "&Kq@X.b]"&", 6503186795855872, 8453731307749376, "!1}2Z=YQ!I", @@ -11,14 +11,14 @@ exports[`datatype > 42 > array > noArgs 1`] = ` ")jZ3DP|XL%", 5472277529362432, 1535944771502080, - "'\\"yxzUlD=\\"", + "'"yxzUlD="", ] `; exports[`datatype > 42 > array > with length 1`] = ` [ "ky2eiXX/J/", - "&Kq@X.b]\\"&", + "&Kq@X.b]"&", 6503186795855872, 8453731307749376, ] @@ -93,7 +93,7 @@ exports[`datatype > 42 > hexadecimal > with length, prefix, and casing 1`] = `"0 exports[`datatype > 42 > hexadecimal > with prefix 1`] = `"0x8"`; -exports[`datatype > 42 > json 1`] = `"{\\"foo\\":\\"ky2eiXX/J/\\",\\"bar\\":\\"&Kq@X.b]\\\\\\"&\\",\\"bike\\":6503186795855872,\\"a\\":8453731307749376,\\"b\\":\\"!1}2Z=YQ!I\\",\\"name\\":\\" 42 > json 1`] = `"{"foo":"ky2eiXX/J/","bar":"&Kq@X.b]\\"&","bike":6503186795855872,"a":8453731307749376,"b":"!1}2Z=YQ!I","name":" 42 > number > noArgs 1`] = `37454`; @@ -117,9 +117,9 @@ exports[`datatype > 42 > number > with min, max and precision 1`] = `-0.43`; exports[`datatype > 42 > string > noArgs 1`] = `"Cky2eiXX/J"`; -exports[`datatype > 42 > string > with length option 1`] = `"Cky2eiXX/J/*&Kq@X.b]\\"&"`; +exports[`datatype > 42 > string > with length option 1`] = `"Cky2eiXX/J/*&Kq@X.b]"&"`; -exports[`datatype > 42 > string > with number 1`] = `"Cky2eiXX/J/*&Kq@X.b]\\"&{dnx4!1}2Z=YQ!I# 42 > string > with number 1`] = `"Cky2eiXX/J/*&Kq@X.b]"&{dnx4!1}2Z=YQ!I# 42 > uuid 1`] = `"5cf2bc99-2721-407d-8592-ba00fbdf302f"`; @@ -136,9 +136,9 @@ exports[`datatype > 1211 > array > noArgs 1`] = ` 4134441414819840, 7010029022478336, "-}$_/\`4hHA", - "afl\\"h^]dnw", + "afl"h^]dnw", " 1211 > array > with length 1`] = ` 4134441414819840, 7010029022478336, "-}$_/\`4hHA", - "afl\\"h^]dnw", + "afl"h^]dnw", ] `; @@ -159,7 +159,7 @@ exports[`datatype > 1211 > array > with length range 1`] = ` [ "ti5-}$_/\`4", 3789861976801280, - "0afl\\"h^]dn", + "0afl"h^]dn", 3918465303838720, "q|p|5KWu3/", ] @@ -225,7 +225,7 @@ exports[`datatype > 1211 > hexadecimal > with length, prefix, and casing 1`] = ` exports[`datatype > 1211 > hexadecimal > with prefix 1`] = `"0xE"`; -exports[`datatype > 1211 > json 1`] = `"{\\"foo\\":4134441414819840,\\"bar\\":7010029022478336,\\"bike\\":\\"-}$_/\`4hHA\\",\\"a\\":\\"afl\\\\\\"h^]dnw\\",\\"b\\":\\" 1211 > json 1`] = `"{"foo":4134441414819840,"bar":7010029022478336,"bike":"-}$_/\`4hHA","a":"afl\\"h^]dnw","b":" 1211 > number > noArgs 1`] = `92852`; @@ -249,9 +249,9 @@ exports[`datatype > 1211 > number > with min, max and precision 1`] = `61.07`; exports[`datatype > 1211 > string > noArgs 1`] = `"wKti5-}$_/"`; -exports[`datatype > 1211 > string > with length option 1`] = `"wKti5-}$_/\`4hHA0afl\\"h^"`; +exports[`datatype > 1211 > string > with length option 1`] = `"wKti5-}$_/\`4hHA0afl"h^"`; -exports[`datatype > 1211 > string > with number 1`] = `"wKti5-}$_/\`4hHA0afl\\"h^]dnwI 1211 > string > with number 1`] = `"wKti5-}$_/\`4hHA0afl"h^]dnwI 1211 > uuid 1`] = `"e7ec32f0-a2a3-4c65-b2bb-d0caabde64df"`; @@ -355,7 +355,7 @@ exports[`datatype > 1337 > hexadecimal > with length, prefix, and casing 1`] = ` exports[`datatype > 1337 > hexadecimal > with prefix 1`] = `"0x5"`; -exports[`datatype > 1337 > json 1`] = `"{\\"foo\\":\\"U/4:SK$>6Q\\",\\"bar\\":2359372120326144,\\"bike\\":\\"{:e=+kD)[B\\",\\"a\\":\\"e|/Jqjjj!B\\",\\"b\\":\\"GDWQgC2M;q\\",\\"name\\":3648103756333056,\\"prop\\":\\"I1.Gm3tRwn\\"}"`; +exports[`datatype > 1337 > json 1`] = `"{"foo":"U/4:SK$>6Q","bar":2359372120326144,"bike":"{:e=+kD)[B","a":"e|/Jqjjj!B","b":"GDWQgC2M;q","name":3648103756333056,"prop":"I1.Gm3tRwn"}"`; exports[`datatype > 1337 > number > noArgs 1`] = `26202`; diff --git a/test/modules/__snapshots__/helpers.spec.ts.snap b/test/modules/__snapshots__/helpers.spec.ts.snap index 04af3ac0362..81f554399d5 100644 --- a/test/modules/__snapshots__/helpers.spec.ts.snap +++ b/test/modules/__snapshots__/helpers.spec.ts.snap @@ -135,19 +135,19 @@ exports[`helpers > 42 > replaceCreditCardSymbols > noArgs 1`] = `"6453-3791-7755 exports[`helpers > 42 > replaceCreditCardSymbols > only symbols 1`] = `"7917-6-7563-4"`; -exports[`helpers > 42 > replaceCreditCardSymbols > some string 1`] = `"^1234567890ß´°4\\"§$%&/()=?\`+7*,..-;:_NaN"`; +exports[`helpers > 42 > replaceCreditCardSymbols > some string 1`] = `"^1234567890ß´°4"§$%&/()=?\`+7*,..-;:_NaN"`; exports[`helpers > 42 > replaceSymbolWithNumber > noArgs 1`] = `""`; exports[`helpers > 42 > replaceSymbolWithNumber > only symbols 1`] = `"47917"`; -exports[`helpers > 42 > replaceSymbolWithNumber > some string 1`] = `"^1234567890ß´°4\\"§$%&/()=?\`+7*,..-;:_"`; +exports[`helpers > 42 > replaceSymbolWithNumber > some string 1`] = `"^1234567890ß´°4"§$%&/()=?\`+7*,..-;:_"`; exports[`helpers > 42 > replaceSymbols > noArgs 1`] = `""`; exports[`helpers > 42 > replaceSymbols > only symbols 1`] = `"3U17U5"`; -exports[`helpers > 42 > replaceSymbols > some string 1`] = `"^1234567890ß´°!\\"§$%&/()=J\`+71,..-;:_"`; +exports[`helpers > 42 > replaceSymbols > some string 1`] = `"^1234567890ß´°!"§$%&/()=J\`+71,..-;:_"`; exports[`helpers > 42 > shuffle > with array 1`] = ` [ @@ -375,19 +375,19 @@ exports[`helpers > 1211 > replaceCreditCardSymbols > noArgs 1`] = `"6453-9487-21 exports[`helpers > 1211 > replaceCreditCardSymbols > only symbols 1`] = `"4872-9-1927-1"`; -exports[`helpers > 1211 > replaceCreditCardSymbols > some string 1`] = `"^1234567890ß´°9\\"§$%&/()=?\`+4*,..-;:_NaN"`; +exports[`helpers > 1211 > replaceCreditCardSymbols > some string 1`] = `"^1234567890ß´°9"§$%&/()=?\`+4*,..-;:_NaN"`; exports[`helpers > 1211 > replaceSymbolWithNumber > noArgs 1`] = `""`; exports[`helpers > 1211 > replaceSymbolWithNumber > only symbols 1`] = `"94872"`; -exports[`helpers > 1211 > replaceSymbolWithNumber > some string 1`] = `"^1234567890ß´°9\\"§$%&/()=?\`+4*,..-;:_"`; +exports[`helpers > 1211 > replaceSymbolWithNumber > some string 1`] = `"^1234567890ß´°9"§$%&/()=?\`+4*,..-;:_"`; exports[`helpers > 1211 > replaceSymbols > noArgs 1`] = `""`; exports[`helpers > 1211 > replaceSymbols > only symbols 1`] = `"9L72D0"`; -exports[`helpers > 1211 > replaceSymbols > some string 1`] = `"^1234567890ß´°!\\"§$%&/()=Y\`+47,..-;:_"`; +exports[`helpers > 1211 > replaceSymbols > some string 1`] = `"^1234567890ß´°!"§$%&/()=Y\`+47,..-;:_"`; exports[`helpers > 1211 > shuffle > with array 1`] = ` [ @@ -597,19 +597,19 @@ exports[`helpers > 1337 > replaceCreditCardSymbols > noArgs 1`] = `"6453-2512-25 exports[`helpers > 1337 > replaceCreditCardSymbols > only symbols 1`] = `"5122-5-5424-8"`; -exports[`helpers > 1337 > replaceCreditCardSymbols > some string 1`] = `"^1234567890ß´°4\\"§$%&/()=?\`+5*,..-;:_NaN"`; +exports[`helpers > 1337 > replaceCreditCardSymbols > some string 1`] = `"^1234567890ß´°4"§$%&/()=?\`+5*,..-;:_NaN"`; exports[`helpers > 1337 > replaceSymbolWithNumber > noArgs 1`] = `""`; exports[`helpers > 1337 > replaceSymbolWithNumber > only symbols 1`] = `"45122"`; -exports[`helpers > 1337 > replaceSymbolWithNumber > some string 1`] = `"^1234567890ß´°4\\"§$%&/()=?\`+5*,..-;:_"`; +exports[`helpers > 1337 > replaceSymbolWithNumber > some string 1`] = `"^1234567890ß´°4"§$%&/()=?\`+5*,..-;:_"`; exports[`helpers > 1337 > replaceSymbols > noArgs 1`] = `""`; exports[`helpers > 1337 > replaceSymbols > only symbols 1`] = `"2OF2OA"`; -exports[`helpers > 1337 > replaceSymbols > some string 1`] = `"^1234567890ß´°!\\"§$%&/()=G\`+5F,..-;:_"`; +exports[`helpers > 1337 > replaceSymbols > some string 1`] = `"^1234567890ß´°!"§$%&/()=G\`+5F,..-;:_"`; exports[`helpers > 1337 > shuffle > with array 1`] = ` [ diff --git a/test/modules/__snapshots__/string.spec.ts.snap b/test/modules/__snapshots__/string.spec.ts.snap index cb8487dae59..afe54fc8b85 100644 --- a/test/modules/__snapshots__/string.spec.ts.snap +++ b/test/modules/__snapshots__/string.spec.ts.snap @@ -146,23 +146,23 @@ exports[`string > 42 > sample > with length parameter 3`] = `"/*&Kq"`; exports[`string > 42 > sample > with length parameter 4`] = `"@X.b]"`; -exports[`string > 42 > sample > with length parameter 5`] = `"\\"&{dn"`; +exports[`string > 42 > sample > with length parameter 5`] = `""&{dn"`; exports[`string > 42 > sample > with length range 1`] = `"ky2eiXX/J/*&Kq"`; exports[`string > 42 > symbol > noArgs 1`] = `","`; -exports[`string > 42 > symbol > with length parameter 1`] = `",^}&\\\\"`; +exports[`string > 42 > symbol > with length parameter 1`] = `",^}&\\"`; exports[`string > 42 > symbol > with length parameter 2`] = `"]>>%/"`; -exports[`string > 42 > symbol > with length parameter 3`] = `"%$\\"/\`"`; +exports[`string > 42 > symbol > with length parameter 3`] = `"%$"/\`"`; exports[`string > 42 > symbol > with length parameter 4`] = `"+>%[?"`; -exports[`string > 42 > symbol > with length parameter 5`] = `"!\\"~\\\\_"`; +exports[`string > 42 > symbol > with length parameter 5`] = `"!"~\\_"`; -exports[`string > 42 > symbol > with length range 1`] = `"^}&\\\\]>>%/%$\\"/\`"`; +exports[`string > 42 > symbol > with length range 1`] = `"^}&\\]>>%/%$"/\`"`; exports[`string > 42 > uuid 1`] = `"5cf2bc99-2721-407d-8592-ba00fbdf302f"`; @@ -318,25 +318,25 @@ exports[`string > 1211 > sample > with length parameter 2`] = `"-}$_/"`; exports[`string > 1211 > sample > with length parameter 3`] = `"\`4hHA"`; -exports[`string > 1211 > sample > with length parameter 4`] = `"0afl\\""`; +exports[`string > 1211 > sample > with length parameter 4`] = `"0afl""`; exports[`string > 1211 > sample > with length parameter 5`] = `"h^]dn"`; -exports[`string > 1211 > sample > with length range 1`] = `"Kti5-}$_/\`4hHA0afl\\"h"`; +exports[`string > 1211 > sample > with length range 1`] = `"Kti5-}$_/\`4hHA0afl"h"`; exports[`string > 1211 > symbol > noArgs 1`] = `"|"`; exports[`string > 1211 > symbol > with length parameter 1`] = `"|/{]("`; -exports[`string > 1211 > symbol > with length parameter 2`] = `"%~\\"@&"`; +exports[`string > 1211 > symbol > with length parameter 2`] = `"%~"@&"`; exports[`string > 1211 > symbol > with length parameter 3`] = `"@'].,"`; -exports[`string > 1211 > symbol > with length parameter 4`] = `"&[\\\\_!"`; +exports[`string > 1211 > symbol > with length parameter 4`] = `"&[\\_!"`; -exports[`string > 1211 > symbol > with length parameter 5`] = `"]@?\\\\_"`; +exports[`string > 1211 > symbol > with length parameter 5`] = `"]@?\\_"`; -exports[`string > 1211 > symbol > with length range 1`] = `"/{](%~\\"@&@'].,&[\\\\_!]"`; +exports[`string > 1211 > symbol > with length range 1`] = `"/{](%~"@&@'].,&[\\_!]"`; exports[`string > 1211 > uuid 1`] = `"e7ec32f0-a2a3-4c65-b2bb-d0caabde64df"`; @@ -502,15 +502,15 @@ exports[`string > 1337 > symbol > noArgs 1`] = `")"`; exports[`string > 1337 > symbol > with length parameter 1`] = `")<&')"`; -exports[`string > 1337 > symbol > with length parameter 2`] = `" 1337 > symbol > with length parameter 2`] = `" 1337 > symbol > with length parameter 3`] = `";=)+~"`; -exports[`string > 1337 > symbol > with length parameter 4`] = `")\\\\*$^"`; +exports[`string > 1337 > symbol > with length parameter 4`] = `")\\*$^"`; exports[`string > 1337 > symbol > with length parameter 5`] = `"-$?,%"`; -exports[`string > 1337 > symbol > with length range 1`] = `"<&') 1337 > symbol > with length range 1`] = `"<&') 1337 > uuid 1`] = `"48234870-5389-445f-b4b4-1c61a52bf27d"`; diff --git a/test/scripts/apidoc/__snapshots__/module.spec.ts.snap b/test/scripts/apidoc/__snapshots__/module.spec.ts.snap index 2f2d15ddbee..d42758603eb 100644 --- a/test/scripts/apidoc/__snapshots__/module.spec.ts.snap +++ b/test/scripts/apidoc/__snapshots__/module.spec.ts.snap @@ -12,7 +12,7 @@ exports[`module > analyzeModule() > ModuleExampleTest 1`] = ` { "comment": "This is a description for a module with a code example.", "deprecated": undefined, - "examples": "
ts
new ModuleExampleTest()
+ "examples": "
ts
new ModuleExampleTest()
", } `; diff --git a/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap b/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap index 9848720c9f6..d62c6c4c80b 100644 --- a/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap +++ b/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap @@ -5,10 +5,10 @@ exports[`signature > analyzeSignature() > complexArrayParameter 1`] = ` "deprecated": undefined, "description": "

Complex array parameter.

", - "examples": "
ts
complexArrayParameter<T>(array: readonly Array<{
-  value: T,
-  weight: number
-}>): T
+ "examples": "
ts
complexArrayParameter<T>(array: readonly Array<{
+  value: T,
+  weight: number
+}>): T
", "name": "complexArrayParameter", "parameters": [ @@ -53,7 +53,7 @@ exports[`signature > analyzeSignature() > defaultBooleanParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with a default parameter.

", - "examples": "
ts
defaultBooleanParamMethod(c: boolean = true): number
+ "examples": "
ts
defaultBooleanParamMethod(c: boolean = true): number
", "name": "defaultBooleanParamMethod", "parameters": [ @@ -105,7 +105,7 @@ exports[`signature > analyzeSignature() > functionParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with a function parameters.

", - "examples": "
ts
functionParamMethod(fn: (a: string) => number): number
+ "examples": "
ts
functionParamMethod(fn: (a: string) => number): number
", "name": "functionParamMethod", "parameters": [ @@ -130,7 +130,7 @@ exports[`signature > analyzeSignature() > literalUnionParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with LiteralUnion.

", - "examples": "
ts
literalUnionParamMethod(value: 'a' | 'b' | string, namedValue: 'a' | 'b' | string, array: readonly Array<'a' | 'b' | string>, namedArray: readonly Array<'a' | 'b' | string>, mixed: 'a' | 'b' | string | readonly Array<'a' | 'b' | string>, namedMixed: 'a' | 'b' | string | readonly Array<'a' | 'b' | string>): string
+ "examples": "
ts
literalUnionParamMethod(value: 'a' | 'b' | string, namedValue: 'a' | 'b' | string, array: readonly Array<'a' | 'b' | string>, namedArray: readonly Array<'a' | 'b' | string>, mixed: 'a' | 'b' | string | readonly Array<'a' | 'b' | string>, namedMixed: 'a' | 'b' | string | readonly Array<'a' | 'b' | string>): string
", "name": "literalUnionParamMethod", "parameters": [ @@ -191,7 +191,7 @@ exports[`signature > analyzeSignature() > methodWithDeprecated 1`] = ` ", "description": "

Test with deprecated and see marker.

", - "examples": "
ts
methodWithDeprecated(): number
+ "examples": "
ts
methodWithDeprecated(): number
", "name": "methodWithDeprecated", "parameters": [], @@ -210,11 +210,11 @@ exports[`signature > analyzeSignature() > methodWithDeprecatedOption 1`] = ` "deprecated": undefined, "description": "

Test with deprecated option.

", - "examples": "
ts
methodWithDeprecatedOption(option: {
-  a: string,
-  b: () => number,
-  c: number
-}): number
+ "examples": "
ts
methodWithDeprecatedOption(option: {
+  a: string,
+  b: () => number,
+  c: number
+}): number
", "name": "methodWithDeprecatedOption", "parameters": [ @@ -262,8 +262,8 @@ exports[`signature > analyzeSignature() > methodWithExample 1`] = ` "deprecated": undefined, "description": "

Test with example marker.

", - "examples": "
ts
methodWithExample(): number
-test.apidoc.methodWithExample() // 0
+ "examples": "
ts
methodWithExample(): number
+test.apidoc.methodWithExample() // 0
", "name": "methodWithExample", "parameters": [], @@ -280,7 +280,7 @@ exports[`signature > analyzeSignature() > methodWithMultipleSeeMarkers 1`] = ` "deprecated": undefined, "description": "

Test with multiple see markers.

", - "examples": "
ts
methodWithMultipleSeeMarkers(): number
+ "examples": "
ts
methodWithMultipleSeeMarkers(): number
", "name": "methodWithMultipleSeeMarkers", "parameters": [], @@ -300,7 +300,7 @@ exports[`signature > analyzeSignature() > methodWithMultipleSeeMarkersAndBacktic "deprecated": undefined, "description": "

Test with multiple see markers and backticks.

", - "examples": "
ts
methodWithMultipleSeeMarkersAndBackticks(): number
+ "examples": "
ts
methodWithMultipleSeeMarkersAndBackticks(): number
", "name": "methodWithMultipleSeeMarkersAndBackticks", "parameters": [], @@ -320,7 +320,7 @@ exports[`signature > analyzeSignature() > methodWithMultipleThrows 1`] = ` "deprecated": undefined, "description": "

Test with multiple throws.

", - "examples": "
ts
methodWithMultipleThrows(): number
+ "examples": "
ts
methodWithMultipleThrows(): number
", "name": "methodWithMultipleThrows", "parameters": [], @@ -338,7 +338,7 @@ exports[`signature > analyzeSignature() > methodWithSinceMarker 1`] = ` "deprecated": undefined, "description": "

Test with since marker.

", - "examples": "
ts
methodWithSinceMarker(): number
+ "examples": "
ts
methodWithSinceMarker(): number
", "name": "methodWithSinceMarker", "parameters": [], @@ -355,7 +355,7 @@ exports[`signature > analyzeSignature() > methodWithThrows 1`] = ` "deprecated": undefined, "description": "

Test with throws.

", - "examples": "
ts
methodWithThrows(): number
+ "examples": "
ts
methodWithThrows(): number
", "name": "methodWithThrows", "parameters": [], @@ -372,7 +372,7 @@ exports[`signature > analyzeSignature() > multiParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with multiple parameters.

", - "examples": "
ts
multiParamMethod(a: number, b?: string, c: boolean = true): number
+ "examples": "
ts
multiParamMethod(a: number, b?: string, c: boolean = true): number
", "name": "multiParamMethod", "parameters": [ @@ -411,7 +411,7 @@ exports[`signature > analyzeSignature() > noParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with no parameters.

", - "examples": "
ts
noParamMethod(): number
+ "examples": "
ts
noParamMethod(): number
", "name": "noParamMethod", "parameters": [], @@ -428,7 +428,7 @@ exports[`signature > analyzeSignature() > optionalStringParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with an optional parameter.

", - "examples": "
ts
optionalStringParamMethod(b?: string): number
+ "examples": "
ts
optionalStringParamMethod(b?: string): number
", "name": "optionalStringParamMethod", "parameters": [ @@ -453,13 +453,13 @@ exports[`signature > analyzeSignature() > optionsInlineParamMethodWithDefaults 1 "deprecated": undefined, "description": "

Test with a function parameters (inline types) with defaults.

", - "examples": "
ts
optionsInlineParamMethodWithDefaults(a: {
-  value: number
-} = { value: 1 }, b: {
-  value: number
-} = { value: 1 }, c: {
-  value: number
-}): number
+ "examples": "
ts
optionsInlineParamMethodWithDefaults(a: {
+  value: number
+} = { value: 1 }, b: {
+  value: number
+} = { value: 1 }, c: {
+  value: number
+}): number
", "name": "optionsInlineParamMethodWithDefaults", "parameters": [ @@ -521,7 +521,7 @@ exports[`signature > analyzeSignature() > optionsInterfaceParamMethodWithDefault "deprecated": undefined, "description": "

Test with a function parameters with defaults.

", - "examples": "
ts
optionsInterfaceParamMethodWithDefaults(a: ParameterOptionsInterfaceA = { value: 1 }, b: ParameterOptionsInterfaceB = { value: 1 }, c: ParameterOptionsInterfaceC): number
+ "examples": "
ts
optionsInterfaceParamMethodWithDefaults(a: ParameterOptionsInterfaceA = { value: 1 }, b: ParameterOptionsInterfaceB = { value: 1 }, c: ParameterOptionsInterfaceC): number
", "name": "optionsInterfaceParamMethodWithDefaults", "parameters": [ @@ -560,13 +560,13 @@ exports[`signature > analyzeSignature() > optionsParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with an options parameter.

", - "examples": "
ts
optionsParamMethod(options: {
-  a: number,
-  b: string,
-  c: boolean,
-  d: () => string,
-  e: 'a' | 'b' | string
-}): number
+ "examples": "
ts
optionsParamMethod(options: {
+  a: number,
+  b: string,
+  c: boolean,
+  d: () => string,
+  e: 'a' | 'b' | string
+}): number
", "name": "optionsParamMethod", "parameters": [ @@ -626,7 +626,7 @@ exports[`signature > analyzeSignature() > optionsTypeParamMethodWithDefaults 1`] "deprecated": undefined, "description": "

Test with a function parameters with defaults.

", - "examples": "
ts
optionsTypeParamMethodWithDefaults(a: ParameterOptionsTypeA = { value: 1 }, b: ParameterOptionsTypeB = { value: 1 }, c: ParameterOptionsTypeC): number
+ "examples": "
ts
optionsTypeParamMethodWithDefaults(a: ParameterOptionsTypeA = { value: 1 }, b: ParameterOptionsTypeB = { value: 1 }, c: ParameterOptionsTypeC): number
", "name": "optionsTypeParamMethodWithDefaults", "parameters": [ @@ -665,7 +665,7 @@ exports[`signature > analyzeSignature() > recordParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with a Record parameter.

", - "examples": "
ts
recordParamMethod(object: Record<string, number>): number
+ "examples": "
ts
recordParamMethod(object: Record<string, number>): number
", "name": "recordParamMethod", "parameters": [ @@ -690,7 +690,7 @@ exports[`signature > analyzeSignature() > requiredNumberParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with a required parameter.

", - "examples": "
ts
requiredNumberParamMethod(a: number): number
+ "examples": "
ts
requiredNumberParamMethod(a: number): number
", "name": "requiredNumberParamMethod", "parameters": [ @@ -715,11 +715,11 @@ exports[`signature > analyzeSignature() > stringUnionParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with string union.

", - "examples": "
ts
stringUnionParamMethod(value: 'a' | 'b', options?: {
-  casing: 'lower' | 'mixed' | 'upper',
-  excludes: readonly AlphaNumericChar[],
-  format: 'binary' | 'css' | 'decimal' | 'hex'
-}): string
+ "examples": "
ts
stringUnionParamMethod(value: 'a' | 'b', options?: {
+  casing: 'lower' | 'mixed' | 'upper',
+  excludes: readonly AlphaNumericChar[],
+  format: 'binary' | 'css' | 'decimal' | 'hex'
+}): string
", "name": "stringUnionParamMethod", "parameters": [ From 32633e2d8aca405bbc490b14eae57d9d9254406d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 9 Feb 2024 17:19:01 +0100 Subject: [PATCH 04/13] chore(deps): update devdependencies (#2650) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 12 ++++++------ pnpm-lock.yaml | 30 +++++++++++++++--------------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index 0e848c3280f..8e6ce8c5bd8 100644 --- a/package.json +++ b/package.json @@ -95,10 +95,10 @@ "@eslint-types/typescript-eslint": "~6.19.1", "@eslint-types/unicorn": "~50.0.1", "@types/markdown-it": "~13.0.7", - "@types/node": "~20.11.16", + "@types/node": "~20.11.17", "@types/sanitize-html": "~2.11.0", "@types/semver": "~7.5.6", - "@types/validator": "~13.11.8", + "@types/validator": "~13.11.9", "@typescript-eslint/eslint-plugin": "~6.21.0", "@typescript-eslint/parser": "~6.21.0", "@vitest/coverage-v8": "~1.2.2", @@ -112,10 +112,10 @@ "eslint-define-config": "~2.1.0", "eslint-gitignore": "~0.1.0", "eslint-plugin-deprecation": "~2.0.0", - "eslint-plugin-jsdoc": "~48.0.5", + "eslint-plugin-jsdoc": "~48.0.6", "eslint-plugin-prettier": "~5.1.3", "eslint-plugin-unicorn": "~51.0.1", - "eslint-plugin-vitest": "~0.3.21", + "eslint-plugin-vitest": "~0.3.22", "glob": "~10.3.10", "npm-run-all2": "~6.1.2", "prettier": "3.2.5", @@ -128,10 +128,10 @@ "typedoc": "~0.25.7", "typescript": "~4.9.5", "validator": "~13.11.0", - "vite": "~5.1.0", + "vite": "~5.1.1", "vitepress": "1.0.0-rc.39", "vitest": "~1.2.2", - "vue": "~3.4.15" + "vue": "~3.4.18" }, "packageManager": "pnpm@8.15.1", "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cb64f4a82a3..d079b3b476f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -30,7 +30,7 @@ devDependencies: specifier: ~13.0.7 version: 13.0.7 '@types/node': - specifier: ~20.11.16 + specifier: ~20.11.17 version: 20.11.17 '@types/sanitize-html': specifier: ~2.11.0 @@ -39,7 +39,7 @@ devDependencies: specifier: ~7.5.6 version: 7.5.6 '@types/validator': - specifier: ~13.11.8 + specifier: ~13.11.9 version: 13.11.9 '@typescript-eslint/eslint-plugin': specifier: ~6.21.0 @@ -81,7 +81,7 @@ devDependencies: specifier: ~2.0.0 version: 2.0.0(eslint@8.56.0)(typescript@4.9.5) eslint-plugin-jsdoc: - specifier: ~48.0.5 + specifier: ~48.0.6 version: 48.0.6(eslint@8.56.0) eslint-plugin-prettier: specifier: ~5.1.3 @@ -90,7 +90,7 @@ devDependencies: specifier: ~51.0.1 version: 51.0.1(eslint@8.56.0) eslint-plugin-vitest: - specifier: ~0.3.21 + specifier: ~0.3.22 version: 0.3.22(@typescript-eslint/eslint-plugin@6.21.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@1.2.2) glob: specifier: ~10.3.10 @@ -129,8 +129,8 @@ devDependencies: specifier: ~13.11.0 version: 13.11.0 vite: - specifier: ~5.1.0 - version: 5.1.0(@types/node@20.11.17) + specifier: ~5.1.1 + version: 5.1.1(@types/node@20.11.17) vitepress: specifier: 1.0.0-rc.39 version: 1.0.0-rc.39(@algolia/client-search@4.22.1)(@types/node@20.11.17)(search-insights@2.13.0)(typescript@4.9.5) @@ -138,7 +138,7 @@ devDependencies: specifier: ~1.2.2 version: 1.2.2(@types/node@20.11.17)(@vitest/ui@1.2.2) vue: - specifier: ~3.4.15 + specifier: ~3.4.18 version: 3.4.18(typescript@4.9.5) packages: @@ -1446,14 +1446,14 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - /@vitejs/plugin-vue@5.0.3(vite@5.1.0)(vue@3.4.18): + /@vitejs/plugin-vue@5.0.3(vite@5.1.1)(vue@3.4.18): resolution: {integrity: sha512-b8S5dVS40rgHdDrw+DQi/xOM9ed+kSRZzfm1T74bMmBDCd8XO87NKlFYInzCtwvtWwXZvo1QxE2OSspTATWrbA==} engines: {node: ^18.0.0 || >=20.0.0} peerDependencies: vite: ^5.0.0 vue: ^3.2.25 dependencies: - vite: 5.1.0(@types/node@20.11.17) + vite: 5.1.1(@types/node@20.11.17) vue: 3.4.18(typescript@4.9.5) dev: true @@ -6017,7 +6017,7 @@ packages: debug: 4.3.4(supports-color@8.1.1) pathe: 1.1.2 picocolors: 1.0.0 - vite: 5.1.0(@types/node@20.11.17) + vite: 5.1.1(@types/node@20.11.17) transitivePeerDependencies: - '@types/node' - less @@ -6029,8 +6029,8 @@ packages: - terser dev: true - /vite@5.1.0(@types/node@20.11.17): - resolution: {integrity: sha512-STmSFzhY4ljuhz14bg9LkMTk3d98IO6DIArnTY6MeBwiD1Za2StcQtz7fzOUnRCqrHSD5+OS2reg4HOz1eoLnw==} + /vite@5.1.1(@types/node@20.11.17): + resolution: {integrity: sha512-wclpAgY3F1tR7t9LL5CcHC41YPkQIpKUGeIuT8MdNwNZr6OqOTLs7JX5vIHAtzqLWXts0T+GDrh9pN2arneKqg==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: @@ -6080,7 +6080,7 @@ packages: '@docsearch/css': 3.5.2 '@docsearch/js': 3.5.2(@algolia/client-search@4.22.1)(search-insights@2.13.0) '@types/markdown-it': 13.0.7 - '@vitejs/plugin-vue': 5.0.3(vite@5.1.0)(vue@3.4.18) + '@vitejs/plugin-vue': 5.0.3(vite@5.1.1)(vue@3.4.18) '@vue/devtools-api': 6.5.1 '@vueuse/core': 10.7.2(vue@3.4.18) '@vueuse/integrations': 10.7.2(focus-trap@7.5.4)(vue@3.4.18) @@ -6090,7 +6090,7 @@ packages: shikiji: 0.9.19 shikiji-core: 0.9.19 shikiji-transformers: 0.9.19 - vite: 5.1.0(@types/node@20.11.17) + vite: 5.1.1(@types/node@20.11.17) vue: 3.4.18(typescript@4.9.5) transitivePeerDependencies: - '@algolia/client-search' @@ -6165,7 +6165,7 @@ packages: strip-literal: 1.3.0 tinybench: 2.6.0 tinypool: 0.8.2 - vite: 5.1.0(@types/node@20.11.17) + vite: 5.1.1(@types/node@20.11.17) vite-node: 1.2.2(@types/node@20.11.17) why-is-node-running: 2.2.2 transitivePeerDependencies: From 10eee4264911e228590461759cbe750b9566270e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 9 Feb 2024 17:26:16 +0100 Subject: [PATCH 05/13] chore(deps): update all non-major dependencies (#2651) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 22 ++++++++++----------- .github/workflows/pr.yml | 4 ++-- .github/workflows/semantic-pull-request.yml | 2 +- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f73cb442361..fb3473729bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: name: 'Build & Unit Test: node-${{ matrix.node_version }}, ${{ matrix.os }}' steps: - name: Checkout - uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4.0.0 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: # Required for docs/versions tests fetch-depth: 0 @@ -31,7 +31,7 @@ jobs: uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 - name: Set node version to ${{ matrix.node_version }} - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 + uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 with: node-version: ${{ matrix.node_version }} cache: 'pnpm' @@ -70,7 +70,7 @@ jobs: run: date - name: Checkout - uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4.0.0 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: # Required for docs/versions tests fetch-depth: 0 @@ -79,7 +79,7 @@ jobs: uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 - name: Set node version to ${{ matrix.node_version }} - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 + uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 with: node-version: ${{ matrix.node_version }} cache: 'pnpm' @@ -104,7 +104,7 @@ jobs: name: 'E2E Doc Test: node-20, ubuntu-latest' steps: - name: Checkout - uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4.0.0 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Install pnpm uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 @@ -125,7 +125,7 @@ jobs: name: 'Lint: node-20, ubuntu-latest' steps: - name: Checkout - uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4.0.0 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: fetch-depth: 0 @@ -133,7 +133,7 @@ jobs: uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 - name: Set node version to 20 - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 + uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 with: node-version: 20 cache: 'pnpm' @@ -155,7 +155,7 @@ jobs: name: 'TS-Check: node-20, ubuntu-latest' steps: - name: Checkout - uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4.0.0 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: fetch-depth: 0 @@ -163,7 +163,7 @@ jobs: uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 - name: Set node version to 20 - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 + uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 with: node-version: 20 cache: 'pnpm' @@ -182,7 +182,7 @@ jobs: name: 'Codecov: node-20, ubuntu-latest' steps: - name: Checkout - uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4.0.0 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: fetch-depth: 0 @@ -190,7 +190,7 @@ jobs: uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 - name: Set node version to 20 - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 + uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 with: node-version: 20 cache: 'pnpm' diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 816f4a0c337..98afc24d66c 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -15,7 +15,7 @@ jobs: pull-requests: write steps: - name: Checkout - uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4.0.0 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: fetch-depth: 0 @@ -23,7 +23,7 @@ jobs: uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 - name: Set node version to 20 - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 + uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 with: node-version: 20 cache: 'pnpm' diff --git a/.github/workflows/semantic-pull-request.yml b/.github/workflows/semantic-pull-request.yml index bf8f8158962..da58a945f85 100644 --- a/.github/workflows/semantic-pull-request.yml +++ b/.github/workflows/semantic-pull-request.yml @@ -20,7 +20,7 @@ jobs: name: Semantic Pull Request steps: - name: Validate PR title - uses: amannn/action-semantic-pull-request@c3cd5d1ea3580753008872425915e343e351ab54 # v5.2.0 + uses: amannn/action-semantic-pull-request@e9fabac35e210fea40ca5b14c0da95a099eff26f # v5.4.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: From 9257f5866c21cb86f94ab576e74bd149910e68aa Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 9 Feb 2024 17:32:06 +0100 Subject: [PATCH 06/13] chore(deps): update pnpm/action-setup action to v3 (#2652) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 12 ++++++------ .github/workflows/pr.yml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb3473729bf..6524af1402f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: fetch-depth: 0 - name: Install pnpm - uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 + uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0 - name: Set node version to ${{ matrix.node_version }} uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 @@ -76,7 +76,7 @@ jobs: fetch-depth: 0 - name: Install pnpm - uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 + uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0 - name: Set node version to ${{ matrix.node_version }} uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 @@ -107,7 +107,7 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Install pnpm - uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 + uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0 - name: Install deps run: pnpm install @@ -130,7 +130,7 @@ jobs: fetch-depth: 0 - name: Install pnpm - uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 + uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0 - name: Set node version to 20 uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 @@ -160,7 +160,7 @@ jobs: fetch-depth: 0 - name: Install pnpm - uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 + uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0 - name: Set node version to 20 uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 @@ -187,7 +187,7 @@ jobs: fetch-depth: 0 - name: Install pnpm - uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 + uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0 - name: Set node version to 20 uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 98afc24d66c..e250f9e425a 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -20,7 +20,7 @@ jobs: fetch-depth: 0 - name: Install pnpm - uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 + uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0 - name: Set node version to 20 uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 From aa183ad7cfe6346248801c280d89f9fad7c3cfee Mon Sep 17 00:00:00 2001 From: Shinigami Date: Fri, 9 Feb 2024 17:36:49 +0100 Subject: [PATCH 07/13] chore(deps): replace vitest v1 deprecations (#2590) --- test/faker.spec.ts | 4 ++-- test/simple-faker.spec.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/faker.spec.ts b/test/faker.spec.ts index bf1bfafc4dc..06d192c102e 100644 --- a/test/faker.spec.ts +++ b/test/faker.spec.ts @@ -1,4 +1,4 @@ -import type { SpyInstance } from 'vitest'; +import type { MockInstance } from 'vitest'; import { describe, expect, it, vi } from 'vitest'; import { faker, Faker } from '../src'; import { FakerError } from '../src/errors/faker-error'; @@ -14,7 +14,7 @@ describe('faker', () => { }); it('should not log anything on startup', () => { - const spies: SpyInstance[] = keys(console) + const spies: MockInstance[] = keys(console) .filter((key) => typeof console[key] === 'function') .map((methodName) => vi.spyOn(console, methodName as keyof typeof console) diff --git a/test/simple-faker.spec.ts b/test/simple-faker.spec.ts index ec1247cf474..36536b212b0 100644 --- a/test/simple-faker.spec.ts +++ b/test/simple-faker.spec.ts @@ -1,11 +1,11 @@ -import type { SpyInstance } from 'vitest'; +import type { MockInstance } from 'vitest'; import { describe, expect, it, vi } from 'vitest'; import { SimpleFaker, simpleFaker } from '../src'; import { keys } from '../src/internal/keys'; describe('simpleFaker', () => { it('should not log anything on startup', () => { - const spies: SpyInstance[] = keys(console) + const spies: MockInstance[] = keys(console) .filter((key) => typeof console[key] === 'function') .map((methodName) => vi.spyOn(console, methodName)); From bc3ebb793666c0d7e58cf428ba12465a7b290cbe Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 9 Feb 2024 17:55:17 +0100 Subject: [PATCH 08/13] chore(deps)!: update dependency typescript to v5 (#1953) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ST-DDT --- docs/guide/upgrading_v9/1953.md | 4 + package.json | 2 +- pnpm-lock.yaml | 108 +++++++++--------- src/index.ts | 15 +-- test/all-functional.spec.ts | 2 +- test/faker.spec.ts | 2 +- test/internal/mersenne.spec.ts | 2 +- test/locale-proxy.spec.ts | 2 +- test/modules/datatype.spec.ts | 2 +- test/modules/date.spec.ts | 2 +- test/modules/helpers-eval.spec.ts | 2 +- test/modules/helpers.spec.ts | 2 +- test/modules/location.spec.ts | 2 +- test/modules/number.spec.ts | 2 +- test/modules/person.spec.ts | 2 +- test/modules/random.spec.ts | 2 +- test/modules/string.spec.ts | 2 +- .../__snapshots__/signature.spec.ts.snap | 20 ++-- test/scripts/apidoc/signature.example.ts | 2 +- test/scripts/apidoc/verify-jsdoc-tags.spec.ts | 2 +- test/support/seeded-runs.ts | 2 +- 21 files changed, 93 insertions(+), 88 deletions(-) create mode 100644 docs/guide/upgrading_v9/1953.md diff --git a/docs/guide/upgrading_v9/1953.md b/docs/guide/upgrading_v9/1953.md new file mode 100644 index 00000000000..65a36772086 --- /dev/null +++ b/docs/guide/upgrading_v9/1953.md @@ -0,0 +1,4 @@ +### Upgrade to TypeScript v5 + +We now use TypeScript v5 for our project (previously v4). +While generally not breaking for users, this might have small side effects on our types. diff --git a/package.json b/package.json index 8e6ce8c5bd8..958c05f5f09 100644 --- a/package.json +++ b/package.json @@ -126,7 +126,7 @@ "standard-version": "~9.5.0", "tsx": "~4.7.0", "typedoc": "~0.25.7", - "typescript": "~4.9.5", + "typescript": "~5.3.3", "validator": "~13.11.0", "vite": "~5.1.1", "vitepress": "1.0.0-rc.39", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d079b3b476f..c8862355be8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -43,10 +43,10 @@ devDependencies: version: 13.11.9 '@typescript-eslint/eslint-plugin': specifier: ~6.21.0 - version: 6.21.0(@typescript-eslint/parser@6.21.0)(eslint@8.56.0)(typescript@4.9.5) + version: 6.21.0(@typescript-eslint/parser@6.21.0)(eslint@8.56.0)(typescript@5.3.3) '@typescript-eslint/parser': specifier: ~6.21.0 - version: 6.21.0(eslint@8.56.0)(typescript@4.9.5) + version: 6.21.0(eslint@8.56.0)(typescript@5.3.3) '@vitest/coverage-v8': specifier: ~1.2.2 version: 1.2.2(vitest@1.2.2) @@ -79,7 +79,7 @@ devDependencies: version: 0.1.0(eslint@8.56.0) eslint-plugin-deprecation: specifier: ~2.0.0 - version: 2.0.0(eslint@8.56.0)(typescript@4.9.5) + version: 2.0.0(eslint@8.56.0)(typescript@5.3.3) eslint-plugin-jsdoc: specifier: ~48.0.6 version: 48.0.6(eslint@8.56.0) @@ -91,7 +91,7 @@ devDependencies: version: 51.0.1(eslint@8.56.0) eslint-plugin-vitest: specifier: ~0.3.22 - version: 0.3.22(@typescript-eslint/eslint-plugin@6.21.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@1.2.2) + version: 0.3.22(@typescript-eslint/eslint-plugin@6.21.0)(eslint@8.56.0)(typescript@5.3.3)(vitest@1.2.2) glob: specifier: ~10.3.10 version: 10.3.10 @@ -103,7 +103,7 @@ devDependencies: version: 3.2.5 prettier-plugin-organize-imports: specifier: ~3.2.4 - version: 3.2.4(prettier@3.2.5)(typescript@4.9.5) + version: 3.2.4(prettier@3.2.5)(typescript@5.3.3) rimraf: specifier: ~5.0.5 version: 5.0.5 @@ -121,10 +121,10 @@ devDependencies: version: 4.7.0 typedoc: specifier: ~0.25.7 - version: 0.25.7(typescript@4.9.5) + version: 0.25.7(typescript@5.3.3) typescript: - specifier: ~4.9.5 - version: 4.9.5 + specifier: ~5.3.3 + version: 5.3.3 validator: specifier: ~13.11.0 version: 13.11.0 @@ -133,13 +133,13 @@ devDependencies: version: 5.1.1(@types/node@20.11.17) vitepress: specifier: 1.0.0-rc.39 - version: 1.0.0-rc.39(@algolia/client-search@4.22.1)(@types/node@20.11.17)(search-insights@2.13.0)(typescript@4.9.5) + version: 1.0.0-rc.39(@algolia/client-search@4.22.1)(@types/node@20.11.17)(search-insights@2.13.0)(typescript@5.3.3) vitest: specifier: ~1.2.2 version: 1.2.2(@types/node@20.11.17)(@vitest/ui@1.2.2) vue: specifier: ~3.4.18 - version: 3.4.18(typescript@4.9.5) + version: 3.4.18(typescript@5.3.3) packages: @@ -1310,7 +1310,7 @@ packages: dev: true optional: true - /@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0)(eslint@8.56.0)(typescript@4.9.5): + /@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0)(eslint@8.56.0)(typescript@5.3.3): resolution: {integrity: sha512-oy9+hTPCUFpngkEZUSzbf9MxI65wbKFoQYsgPdILTfbUldp5ovUuphZVe4i30emU9M/kP+T64Di0mxl7dSw3MA==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -1322,10 +1322,10 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.10.0 - '@typescript-eslint/parser': 6.21.0(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/parser': 6.21.0(eslint@8.56.0)(typescript@5.3.3) '@typescript-eslint/scope-manager': 6.21.0 - '@typescript-eslint/type-utils': 6.21.0(eslint@8.56.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.21.0(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/type-utils': 6.21.0(eslint@8.56.0)(typescript@5.3.3) + '@typescript-eslint/utils': 6.21.0(eslint@8.56.0)(typescript@5.3.3) '@typescript-eslint/visitor-keys': 6.21.0 debug: 4.3.4(supports-color@8.1.1) eslint: 8.56.0 @@ -1333,13 +1333,13 @@ packages: ignore: 5.3.1 natural-compare: 1.4.0 semver: 7.6.0 - ts-api-utils: 1.2.1(typescript@4.9.5) - typescript: 4.9.5 + ts-api-utils: 1.2.1(typescript@5.3.3) + typescript: 5.3.3 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/parser@6.21.0(eslint@8.56.0)(typescript@4.9.5): + /@typescript-eslint/parser@6.21.0(eslint@8.56.0)(typescript@5.3.3): resolution: {integrity: sha512-tbsV1jPne5CkFQCgPBcDOt30ItF7aJoZL997JSF7MhGQqOeT3svWRYxiqlfA5RUdlHN6Fi+EI9bxqbdyAUZjYQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -1351,11 +1351,11 @@ packages: dependencies: '@typescript-eslint/scope-manager': 6.21.0 '@typescript-eslint/types': 6.21.0 - '@typescript-eslint/typescript-estree': 6.21.0(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.3.3) '@typescript-eslint/visitor-keys': 6.21.0 debug: 4.3.4(supports-color@8.1.1) eslint: 8.56.0 - typescript: 4.9.5 + typescript: 5.3.3 transitivePeerDependencies: - supports-color dev: true @@ -1368,7 +1368,7 @@ packages: '@typescript-eslint/visitor-keys': 6.21.0 dev: true - /@typescript-eslint/type-utils@6.21.0(eslint@8.56.0)(typescript@4.9.5): + /@typescript-eslint/type-utils@6.21.0(eslint@8.56.0)(typescript@5.3.3): resolution: {integrity: sha512-rZQI7wHfao8qMX3Rd3xqeYSMCL3SoiSQLBATSiVKARdFGCYSRvmViieZjqc58jKgs8Y8i9YvVVhRbHSTA4VBag==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -1378,12 +1378,12 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 6.21.0(typescript@4.9.5) - '@typescript-eslint/utils': 6.21.0(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.3.3) + '@typescript-eslint/utils': 6.21.0(eslint@8.56.0)(typescript@5.3.3) debug: 4.3.4(supports-color@8.1.1) eslint: 8.56.0 - ts-api-utils: 1.2.1(typescript@4.9.5) - typescript: 4.9.5 + ts-api-utils: 1.2.1(typescript@5.3.3) + typescript: 5.3.3 transitivePeerDependencies: - supports-color dev: true @@ -1393,7 +1393,7 @@ packages: engines: {node: ^16.0.0 || >=18.0.0} dev: true - /@typescript-eslint/typescript-estree@6.21.0(typescript@4.9.5): + /@typescript-eslint/typescript-estree@6.21.0(typescript@5.3.3): resolution: {integrity: sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -1409,13 +1409,13 @@ packages: is-glob: 4.0.3 minimatch: 9.0.3 semver: 7.6.0 - ts-api-utils: 1.2.1(typescript@4.9.5) - typescript: 4.9.5 + ts-api-utils: 1.2.1(typescript@5.3.3) + typescript: 5.3.3 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/utils@6.21.0(eslint@8.56.0)(typescript@4.9.5): + /@typescript-eslint/utils@6.21.0(eslint@8.56.0)(typescript@5.3.3): resolution: {integrity: sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -1426,7 +1426,7 @@ packages: '@types/semver': 7.5.6 '@typescript-eslint/scope-manager': 6.21.0 '@typescript-eslint/types': 6.21.0 - '@typescript-eslint/typescript-estree': 6.21.0(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.3.3) eslint: 8.56.0 semver: 7.6.0 transitivePeerDependencies: @@ -1454,7 +1454,7 @@ packages: vue: ^3.2.25 dependencies: vite: 5.1.1(@types/node@20.11.17) - vue: 3.4.18(typescript@4.9.5) + vue: 3.4.18(typescript@5.3.3) dev: true /@vitest/coverage-v8@1.2.2(vitest@1.2.2): @@ -1604,7 +1604,7 @@ packages: dependencies: '@vue/compiler-ssr': 3.4.18 '@vue/shared': 3.4.18 - vue: 3.4.18(typescript@4.9.5) + vue: 3.4.18(typescript@5.3.3) dev: true /@vue/shared@3.4.18: @@ -2975,17 +2975,17 @@ packages: - supports-color dev: true - /eslint-plugin-deprecation@2.0.0(eslint@8.56.0)(typescript@4.9.5): + /eslint-plugin-deprecation@2.0.0(eslint@8.56.0)(typescript@5.3.3): resolution: {integrity: sha512-OAm9Ohzbj11/ZFyICyR5N6LbOIvQMp7ZU2zI7Ej0jIc8kiGUERXPNMfw2QqqHD1ZHtjMub3yPZILovYEYucgoQ==} peerDependencies: eslint: ^7.0.0 || ^8.0.0 typescript: ^4.2.4 || ^5.0.0 dependencies: - '@typescript-eslint/utils': 6.21.0(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.21.0(eslint@8.56.0)(typescript@5.3.3) eslint: 8.56.0 tslib: 2.6.2 - tsutils: 3.21.0(typescript@4.9.5) - typescript: 4.9.5 + tsutils: 3.21.0(typescript@5.3.3) + typescript: 5.3.3 transitivePeerDependencies: - supports-color dev: true @@ -3058,7 +3058,7 @@ packages: - supports-color dev: true - /eslint-plugin-vitest@0.3.22(@typescript-eslint/eslint-plugin@6.21.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@1.2.2): + /eslint-plugin-vitest@0.3.22(@typescript-eslint/eslint-plugin@6.21.0)(eslint@8.56.0)(typescript@5.3.3)(vitest@1.2.2): resolution: {integrity: sha512-atkFGQ7aVgcuSeSMDqnyevIyUpfBPMnosksgEPrKE7Y8xQlqG/5z2IQ6UDau05zXaaFv7Iz8uzqvIuKshjZ0Zw==} engines: {node: ^18.0.0 || >= 20.0.0} peerDependencies: @@ -3071,8 +3071,8 @@ packages: vitest: optional: true dependencies: - '@typescript-eslint/eslint-plugin': 6.21.0(@typescript-eslint/parser@6.21.0)(eslint@8.56.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.21.0(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/eslint-plugin': 6.21.0(@typescript-eslint/parser@6.21.0)(eslint@8.56.0)(typescript@5.3.3) + '@typescript-eslint/utils': 6.21.0(eslint@8.56.0)(typescript@5.3.3) eslint: 8.56.0 vitest: 1.2.2(@types/node@20.11.17)(@vitest/ui@1.2.2) transitivePeerDependencies: @@ -4888,7 +4888,7 @@ packages: fast-diff: 1.3.0 dev: true - /prettier-plugin-organize-imports@3.2.4(prettier@3.2.5)(typescript@4.9.5): + /prettier-plugin-organize-imports@3.2.4(prettier@3.2.5)(typescript@5.3.3): resolution: {integrity: sha512-6m8WBhIp0dfwu0SkgfOxJqh+HpdyfqSSLfKKRZSFbDuEQXDDndb8fTpRWkUrX/uBenkex3MgnVk0J3b3Y5byog==} peerDependencies: '@volar/vue-language-plugin-pug': ^1.0.4 @@ -4902,7 +4902,7 @@ packages: optional: true dependencies: prettier: 3.2.5 - typescript: 4.9.5 + typescript: 5.3.3 dev: true /prettier@3.2.5: @@ -5732,13 +5732,13 @@ packages: engines: {node: '>=8'} dev: true - /ts-api-utils@1.2.1(typescript@4.9.5): + /ts-api-utils@1.2.1(typescript@5.3.3): resolution: {integrity: sha512-RIYA36cJn2WiH9Hy77hdF9r7oEwxAtB/TS9/S4Qd90Ap4z5FSiin5zEiTL44OII1Y3IIlEvxwxFUVgrHSZ/UpA==} engines: {node: '>=16'} peerDependencies: typescript: '>=4.2.0' dependencies: - typescript: 4.9.5 + typescript: 5.3.3 dev: true /tslib@1.14.1: @@ -5749,14 +5749,14 @@ packages: resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} dev: true - /tsutils@3.21.0(typescript@4.9.5): + /tsutils@3.21.0(typescript@5.3.3): resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} engines: {node: '>= 6'} peerDependencies: typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta' dependencies: tslib: 1.14.1 - typescript: 4.9.5 + typescript: 5.3.3 dev: true /tsx@4.7.0: @@ -5874,7 +5874,7 @@ packages: resolution: {integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==} dev: true - /typedoc@0.25.7(typescript@4.9.5): + /typedoc@0.25.7(typescript@5.3.3): resolution: {integrity: sha512-m6A6JjQRg39p2ZVRIN3NKXgrN8vzlHhOS+r9ymUYtcUP/TIQPvWSq7YgE5ZjASfv5Vd5BW5xrir6Gm2XNNcOow==} engines: {node: '>= 16'} hasBin: true @@ -5885,12 +5885,12 @@ packages: marked: 4.3.0 minimatch: 9.0.3 shiki: 0.14.7 - typescript: 4.9.5 + typescript: 5.3.3 dev: true - /typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + /typescript@5.3.3: + resolution: {integrity: sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==} + engines: {node: '>=14.17'} hasBin: true dev: true @@ -6065,7 +6065,7 @@ packages: fsevents: 2.3.3 dev: true - /vitepress@1.0.0-rc.39(@algolia/client-search@4.22.1)(@types/node@20.11.17)(search-insights@2.13.0)(typescript@4.9.5): + /vitepress@1.0.0-rc.39(@algolia/client-search@4.22.1)(@types/node@20.11.17)(search-insights@2.13.0)(typescript@5.3.3): resolution: {integrity: sha512-EcgoRlAAp37WOxUOYv45oxyhLrcy3Upey+mKpqW3ldsg6Ol4trPndRBk2GO0QiSvEKlb9BMerk49D/bFICN6kg==} hasBin: true peerDependencies: @@ -6091,7 +6091,7 @@ packages: shikiji-core: 0.9.19 shikiji-transformers: 0.9.19 vite: 5.1.1(@types/node@20.11.17) - vue: 3.4.18(typescript@4.9.5) + vue: 3.4.18(typescript@5.3.3) transitivePeerDependencies: - '@algolia/client-search' - '@types/node' @@ -6198,10 +6198,10 @@ packages: '@vue/composition-api': optional: true dependencies: - vue: 3.4.18(typescript@4.9.5) + vue: 3.4.18(typescript@5.3.3) dev: true - /vue@3.4.18(typescript@4.9.5): + /vue@3.4.18(typescript@5.3.3): resolution: {integrity: sha512-0zLRYamFRe0wF4q2L3O24KQzLyLpL64ye1RUToOgOxuWZsb/FhaNRdGmeozdtVYLz6tl94OXLaK7/WQIrVCw1A==} peerDependencies: typescript: '*' @@ -6214,7 +6214,7 @@ packages: '@vue/runtime-dom': 3.4.18 '@vue/server-renderer': 3.4.18(vue@3.4.18) '@vue/shared': 3.4.18 - typescript: 4.9.5 + typescript: 5.3.3 dev: true /which-boxed-primitive@1.0.2: diff --git a/src/index.ts b/src/index.ts index 8adcd3843c7..8a8ffdb7e8e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,7 @@ +// organize-imports-ignore export type { + /** @deprecated Use LocationDefinitions instead */ + LocationDefinition as AddressDefinitions, AirlineDefinition, /** @deprecated Use AirlineDefinition instead */ AirlineDefinition as AirlineDefinitions, @@ -35,8 +38,6 @@ export type { InternetDefinition as InternetDefinitions, LocaleDefinition, LocaleEntry, - /** @deprecated Use LocationDefinitions instead */ - LocationDefinition as AddressDefinitions, LocationDefinition, LoremDefinition, /** @deprecated Use LoremDefinition instead */ @@ -47,9 +48,9 @@ export type { MusicDefinition as MusicDefinitions, /** @deprecated Use PersonDefinitions instead */ PersonDefinition as NameDefinitions, - PersonDefinition, /** @deprecated Use PersonTitleDefinitions instead */ PersonTitleDefinition as NameTitleDefinitions, + PersonDefinition, PersonTitleDefinition, PhoneNumberDefinition, /** @deprecated Use PhoneNumberDefinition instead */ @@ -82,14 +83,14 @@ export type { AircraftType, AirlineModule } from './modules/airline'; export type { AnimalModule } from './modules/animal'; export { CssFunction, CssSpace } from './modules/color'; export type { - Casing, - ColorFormat, - ColorModule, /** @deprecated Use CssFunctionType instead */ CssFunctionType as CSSFunction, - CssFunctionType, /** @deprecated Use CssSpaceType instead */ CssSpaceType as CSSSpace, + Casing, + ColorFormat, + ColorModule, + CssFunctionType, CssSpaceType, NumberColorFormat, StringColorFormat, diff --git a/test/all-functional.spec.ts b/test/all-functional.spec.ts index a883da7d2a4..80b1fecef59 100644 --- a/test/all-functional.spec.ts +++ b/test/all-functional.spec.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from 'vitest'; -import type { allLocales, Faker, RandomModule } from '../src'; +import type { Faker, RandomModule, allLocales } from '../src'; import { allFakers, fakerEN } from '../src'; import { keys } from '../src/internal/keys'; diff --git a/test/faker.spec.ts b/test/faker.spec.ts index 06d192c102e..a026577bdf7 100644 --- a/test/faker.spec.ts +++ b/test/faker.spec.ts @@ -1,6 +1,6 @@ import type { MockInstance } from 'vitest'; import { describe, expect, it, vi } from 'vitest'; -import { faker, Faker } from '../src'; +import { Faker, faker } from '../src'; import { FakerError } from '../src/errors/faker-error'; import { keys } from '../src/internal/keys'; diff --git a/test/internal/mersenne.spec.ts b/test/internal/mersenne.spec.ts index bbee050258f..d72a9c3f9b6 100644 --- a/test/internal/mersenne.spec.ts +++ b/test/internal/mersenne.spec.ts @@ -1,7 +1,7 @@ import { beforeAll, beforeEach, describe, expect, it } from 'vitest'; import { - generateMersenne32Randomizer, MersenneTwister19937, + generateMersenne32Randomizer, } from '../../src/internal/mersenne'; import type { Randomizer } from '../../src/randomizer'; import { seededRuns } from '../support/seeded-runs'; diff --git a/test/locale-proxy.spec.ts b/test/locale-proxy.spec.ts index d16714853c2..c9c8928c76c 100644 --- a/test/locale-proxy.spec.ts +++ b/test/locale-proxy.spec.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from 'vitest'; -import { en, FakerError } from '../src'; +import { FakerError, en } from '../src'; import { createLocaleProxy } from '../src/locale-proxy'; describe('LocaleProxy', () => { diff --git a/test/modules/datatype.spec.ts b/test/modules/datatype.spec.ts index 7a75ce58066..ca6c3328f59 100644 --- a/test/modules/datatype.spec.ts +++ b/test/modules/datatype.spec.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from 'vitest'; -import { faker, FakerError } from '../../src'; +import { FakerError, faker } from '../../src'; import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; diff --git a/test/modules/date.spec.ts b/test/modules/date.spec.ts index bbd8020d2f0..7cff8d33842 100644 --- a/test/modules/date.spec.ts +++ b/test/modules/date.spec.ts @@ -1,5 +1,5 @@ import { afterEach, describe, expect, it } from 'vitest'; -import { faker, fakerAZ, FakerError } from '../../src'; +import { FakerError, faker, fakerAZ } from '../../src'; import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; diff --git a/test/modules/helpers-eval.spec.ts b/test/modules/helpers-eval.spec.ts index 40612c37312..e6995464eef 100644 --- a/test/modules/helpers-eval.spec.ts +++ b/test/modules/helpers-eval.spec.ts @@ -1,5 +1,5 @@ import { describe, expect, it, vi } from 'vitest'; -import { faker, FakerError } from '../../src'; +import { FakerError, faker } from '../../src'; import { fakeEval } from '../../src/modules/helpers/eval'; describe('fakeEval()', () => { diff --git a/test/modules/helpers.spec.ts b/test/modules/helpers.spec.ts index 1b9ba3aeff5..50bacda336f 100644 --- a/test/modules/helpers.spec.ts +++ b/test/modules/helpers.spec.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from 'vitest'; -import { faker, FakerError } from '../../src'; +import { FakerError, faker } from '../../src'; import { luhnCheck } from '../../src/modules/helpers/luhn-check'; import type { RecordKey } from '../../src/modules/helpers/unique'; import { seededTests } from '../support/seeded-runs'; diff --git a/test/modules/location.spec.ts b/test/modules/location.spec.ts index cb020418292..682e3441dc6 100644 --- a/test/modules/location.spec.ts +++ b/test/modules/location.spec.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from 'vitest'; -import { faker, fakerEN_CA, fakerEN_US, FakerError } from '../../src'; +import { FakerError, faker, fakerEN_CA, fakerEN_US } from '../../src'; import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; diff --git a/test/modules/number.spec.ts b/test/modules/number.spec.ts index 922819c094a..43d0bc99dec 100644 --- a/test/modules/number.spec.ts +++ b/test/modules/number.spec.ts @@ -1,6 +1,6 @@ import validator from 'validator'; import { describe, expect, it } from 'vitest'; -import { faker, FakerError, SimpleFaker } from '../../src'; +import { FakerError, SimpleFaker, faker } from '../../src'; import { MERSENNE_MAX_VALUE } from '../internal/mersenne-test-utils'; import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; diff --git a/test/modules/person.spec.ts b/test/modules/person.spec.ts index 14bedf1d690..1af3dfb88b2 100644 --- a/test/modules/person.spec.ts +++ b/test/modules/person.spec.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from 'vitest'; -import { faker, fakerAZ, fakerMK, fakerUK, Sex } from '../../src'; +import { Sex, faker, fakerAZ, fakerMK, fakerUK } from '../../src'; import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; diff --git a/test/modules/random.spec.ts b/test/modules/random.spec.ts index f6fe2234bfb..94de137ead3 100644 --- a/test/modules/random.spec.ts +++ b/test/modules/random.spec.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from 'vitest'; -import { Faker, faker, FakerError, fakerZH_CN } from '../../src'; +import { Faker, FakerError, faker, fakerZH_CN } from '../../src'; import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; diff --git a/test/modules/string.spec.ts b/test/modules/string.spec.ts index e82fa93f653..22fa8aeba88 100644 --- a/test/modules/string.spec.ts +++ b/test/modules/string.spec.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from 'vitest'; -import { faker, FakerError } from '../../src'; +import { FakerError, faker } from '../../src'; import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; diff --git a/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap b/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap index d62c6c4c80b..37a9f754a78 100644 --- a/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap +++ b/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap @@ -130,7 +130,7 @@ exports[`signature > analyzeSignature() > literalUnionParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with LiteralUnion.

", - "examples": "
ts
literalUnionParamMethod(value: 'a' | 'b' | string, namedValue: 'a' | 'b' | string, array: readonly Array<'a' | 'b' | string>, namedArray: readonly Array<'a' | 'b' | string>, mixed: 'a' | 'b' | string | readonly Array<'a' | 'b' | string>, namedMixed: 'a' | 'b' | string | readonly Array<'a' | 'b' | string>): string
+ "examples": "
ts
literalUnionParamMethod(value: 'a' | 'b' | ?, namedValue: 'a' | 'b' | ?, array: readonly Array<'a' | 'b' | ?>, namedArray: readonly Array<'a' | 'b' | ?>, mixed: 'a' | 'b' | ? | readonly Array<'a' | 'b' | ?>, namedMixed: 'a' | 'b' | ? | readonly Array<'a' | 'b' | ?>): string
", "name": "literalUnionParamMethod", "parameters": [ @@ -139,42 +139,42 @@ exports[`signature > analyzeSignature() > literalUnionParamMethod 1`] = ` "description": "

'a' or 'b'.

", "name": "value", - "type": "'a' | 'b' | string", + "type": "'a' | 'b' | ?", }, { "default": undefined, "description": "

'a' or 'b'.

", "name": "namedValue", - "type": "'a' | 'b' | string", + "type": "'a' | 'b' | ?", }, { "default": undefined, "description": "

Array of 'a' or 'b'.

", "name": "array", - "type": "Array<'a' | 'b' | string>", + "type": "Array<'a' | 'b' | ?>", }, { "default": undefined, "description": "

Array of 'a' or 'b'.

", "name": "namedArray", - "type": "Array<'a' | 'b' | string>", + "type": "Array<'a' | 'b' | ?>", }, { "default": undefined, "description": "

Value 'a' or 'b' or an array thereof.

", "name": "mixed", - "type": "'a' | 'b' | string | Array<'a' | 'b' | string>", + "type": "'a' | 'b' | ? | Array<'a' | 'b' | ?>", }, { "default": undefined, "description": "

Value 'a' or 'b' or an array thereof.

", "name": "namedMixed", - "type": "'a' | 'b' | string | Array<'a' | 'b' | string>", + "type": "'a' | 'b' | ? | Array<'a' | 'b' | ?>", }, ], "returns": "string", @@ -565,8 +565,8 @@ exports[`signature > analyzeSignature() > optionsParamMethod 1`] = ` b: string, c: boolean, d: () => string, - e: 'a' | 'b' | string -}): number + e: 'a' | 'b' | ? +}): number
", "name": "optionsParamMethod", "parameters": [ @@ -610,7 +610,7 @@ exports[`signature > analyzeSignature() > optionsParamMethod 1`] = ` "description": "

A parameter with inline documentation.

", "name": "options.e", - "type": "'a' | 'b' | string", + "type": "'a' | 'b' | ?", }, ], "returns": "number", diff --git a/test/scripts/apidoc/signature.example.ts b/test/scripts/apidoc/signature.example.ts index 2f62057bc01..af04ee90f2f 100644 --- a/test/scripts/apidoc/signature.example.ts +++ b/test/scripts/apidoc/signature.example.ts @@ -4,7 +4,7 @@ import type { AlphaNumericChar } from '../../../src/modules/string'; import type { LiteralUnion } from '../../../src/utils/types'; // explicitly export types so they show up in the docs as decomposed types export type { NumberColorFormat, StringColorFormat } from '../../../src'; -export { Casing, ColorFormat, AlphaNumericChar, LiteralUnion }; +export { AlphaNumericChar, Casing, ColorFormat, LiteralUnion }; /** * Parameter options type with default from signature. diff --git a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts index b14523e1653..7d6d8554a72 100644 --- a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts +++ b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts @@ -7,6 +7,7 @@ import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest'; import { initMarkdownRenderer } from '../../../scripts/apidoc/markdown'; import { analyzeSignature } from '../../../scripts/apidoc/signature'; import { + MISSING_DESCRIPTION, extractDeprecated, extractDescription, extractJoinedRawExamples, @@ -16,7 +17,6 @@ import { extractSince, extractSummaryDefault, extractTagContent, - MISSING_DESCRIPTION, } from '../../../scripts/apidoc/typedoc'; import { loadProjectModules } from './utils'; diff --git a/test/support/seeded-runs.ts b/test/support/seeded-runs.ts index e95a522f9f3..750197996cb 100644 --- a/test/support/seeded-runs.ts +++ b/test/support/seeded-runs.ts @@ -1,4 +1,4 @@ -import { describe, describe as vi_describe, expect, it as vi_it } from 'vitest'; +import { describe, expect, describe as vi_describe, it as vi_it } from 'vitest'; import type { Faker } from '../../src/faker'; import type { Callable, MethodOf } from '../../src/utils/types'; From cdf0bb6c5d0dbca9fcfdacad6910992fb6b172bf Mon Sep 17 00:00:00 2001 From: Matt Mayer <152770+matthewmayer@users.noreply.github.com> Date: Sun, 11 Feb 2024 00:46:29 +0700 Subject: [PATCH 09/13] docs: update README to indicate next.fakerjs.dev will be v9 (#2657) --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0ef995a3a76..597436ddf18 100644 --- a/README.md +++ b/README.md @@ -24,11 +24,11 @@ Please proceed to the [Getting Started Guide](https://fakerjs.dev/guide/) for th For detailed API documentation, please select the version of the documentation you are looking for. -| Version | Website | -| :----------: | :------------------------ | -| v8.\* (next) | https://next.fakerjs.dev/ | -| v8 (stable) | https://fakerjs.dev/ | -| v7 (old) | https://v7.fakerjs.dev/ | +| Version | Website | +| :---------: | :------------------------ | +| v9 (next) | https://next.fakerjs.dev/ | +| v8 (stable) | https://fakerjs.dev/ | +| v7 (old) | https://v7.fakerjs.dev/ | --- From 0e4b93fe42ed6c63970c629e9b5e3ff415e5711c Mon Sep 17 00:00:00 2001 From: Shinigami Date: Sun, 11 Feb 2024 01:57:01 +0100 Subject: [PATCH 10/13] infra: use text eol=lf (#2658) --- .gitattributes | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index d7c444cb121..d0c0c4c1dc2 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,2 @@ -* -crlf \ No newline at end of file +* text eol=lf +*.png binary From 9aab7c2429b50c0f6e8bd1908344f9ff92912f5d Mon Sep 17 00:00:00 2001 From: DivisionByZero Date: Sun, 11 Feb 2024 11:29:51 +0100 Subject: [PATCH 11/13] feat(food): new module (#2484) Co-authored-by: Matt Mayer Co-authored-by: Matt Mayer <152770+matthewmayer@users.noreply.github.com> --- docs/.vitepress/api-pages.ts | 1 + scripts/generate-locales.ts | 1 + src/definitions/definitions.ts | 2 + src/definitions/food.ts | 53 ++ src/definitions/index.ts | 1 + src/faker.ts | 2 + src/index.ts | 2 + src/locales/en/food/adjective.ts | 22 + src/locales/en/food/description_pattern.ts | 23 + src/locales/en/food/dish.ts | 56 +++ src/locales/en/food/dish_pattern.ts | 17 + src/locales/en/food/ethnic_category.ts | 120 +++++ src/locales/en/food/fruit.ts | 71 +++ src/locales/en/food/index.ts | 30 ++ src/locales/en/food/ingredient.ts | 487 +++++++++++++++++++ src/locales/en/food/meat.ts | 18 + src/locales/en/food/spice.ts | 100 ++++ src/locales/en/food/vegetable.ts | 66 +++ src/locales/en/index.ts | 2 + src/modules/food/index.ts | 141 ++++++ test/modules/__snapshots__/food.spec.ts.snap | 55 +++ test/modules/food.spec.ts | 89 ++++ 22 files changed, 1359 insertions(+) create mode 100644 src/definitions/food.ts create mode 100644 src/locales/en/food/adjective.ts create mode 100644 src/locales/en/food/description_pattern.ts create mode 100644 src/locales/en/food/dish.ts create mode 100644 src/locales/en/food/dish_pattern.ts create mode 100644 src/locales/en/food/ethnic_category.ts create mode 100644 src/locales/en/food/fruit.ts create mode 100644 src/locales/en/food/index.ts create mode 100644 src/locales/en/food/ingredient.ts create mode 100644 src/locales/en/food/meat.ts create mode 100644 src/locales/en/food/spice.ts create mode 100644 src/locales/en/food/vegetable.ts create mode 100644 src/modules/food/index.ts create mode 100644 test/modules/__snapshots__/food.spec.ts.snap create mode 100644 test/modules/food.spec.ts diff --git a/docs/.vitepress/api-pages.ts b/docs/.vitepress/api-pages.ts index c23e6cfc466..60cd553d98b 100644 --- a/docs/.vitepress/api-pages.ts +++ b/docs/.vitepress/api-pages.ts @@ -18,6 +18,7 @@ export const apiPages = [ { text: 'Datatype', link: '/api/datatype.html' }, { text: 'Date', link: '/api/date.html' }, { text: 'Finance', link: '/api/finance.html' }, + { text: 'Food', link: '/api/food.html' }, { text: 'Git', link: '/api/git.html' }, { text: 'Hacker', link: '/api/hacker.html' }, { text: 'Helpers', link: '/api/helpers.html' }, diff --git a/scripts/generate-locales.ts b/scripts/generate-locales.ts index 4228cc91b3b..c1aea203123 100644 --- a/scripts/generate-locales.ts +++ b/scripts/generate-locales.ts @@ -63,6 +63,7 @@ const definitionsTypes: DefinitionType = { database: 'DatabaseDefinition', date: 'DateDefinition', finance: 'FinanceDefinition', + food: 'FoodDefinition', hacker: 'HackerDefinition', internet: 'InternetDefinition', location: 'LocationDefinition', diff --git a/src/definitions/definitions.ts b/src/definitions/definitions.ts index c2a3b560099..cf760f0bcf0 100644 --- a/src/definitions/definitions.ts +++ b/src/definitions/definitions.ts @@ -6,6 +6,7 @@ import type { CompanyDefinition } from './company'; import type { DatabaseDefinition } from './database'; import type { DateDefinition } from './date'; import type { FinanceDefinition } from './finance'; +import type { FoodDefinition } from './food'; import type { HackerDefinition } from './hacker'; import type { InternetDefinition } from './internet'; import type { LocationDefinition } from './location'; @@ -39,6 +40,7 @@ export type LocaleDefinition = { database?: DatabaseDefinition; date?: DateDefinition; finance?: FinanceDefinition; + food?: FoodDefinition; hacker?: HackerDefinition; internet?: InternetDefinition; location?: LocationDefinition; diff --git a/src/definitions/food.ts b/src/definitions/food.ts new file mode 100644 index 00000000000..99cee8e349c --- /dev/null +++ b/src/definitions/food.ts @@ -0,0 +1,53 @@ +import type { LocaleEntry } from './definitions'; + +export type FoodDefinition = LocaleEntry<{ + /** + * Common food adjectives. + */ + adjective: string[]; + + /** + * List of description patterns. + */ + description_pattern: string[]; + + /** + * Common dish names. + */ + dish: string[]; + + /** + * List of dish patterns. + */ + dish_pattern: string[]; + + /** + * A list of cooking styles that are commonly associated with a particular food item or recipe. + */ + ethnic_category: string[]; + + /** + * A list of common fruit names. + */ + fruit: string[]; + + /** + * Common ingredient names. + */ + ingredient: string[]; + + /** + * Common meat names. + */ + meat: string[]; + + /** + * A list of common spice names. + */ + spice: string[]; + + /** + * A list of common vegetable names. + */ + vegetable: string[]; +}>; diff --git a/src/definitions/index.ts b/src/definitions/index.ts index f101f4ff8bb..cb2401156ac 100644 --- a/src/definitions/index.ts +++ b/src/definitions/index.ts @@ -10,6 +10,7 @@ export type { DatabaseDefinition } from './database'; export type { DateDefinition, DateEntryDefinition } from './date'; export type { LocaleDefinition, LocaleEntry } from './definitions'; export type { FinanceDefinition } from './finance'; +export type { FoodDefinition } from './food'; export type { HackerDefinition } from './hacker'; export type { InternetDefinition } from './internet'; export type { LocationDefinition } from './location'; diff --git a/src/faker.ts b/src/faker.ts index e63b89b3e59..d48350671a8 100644 --- a/src/faker.ts +++ b/src/faker.ts @@ -11,6 +11,7 @@ import { CompanyModule } from './modules/company'; import { DatabaseModule } from './modules/database'; import { DateModule } from './modules/date'; import { FinanceModule } from './modules/finance'; +import { FoodModule } from './modules/food'; import { GitModule } from './modules/git'; import { HackerModule } from './modules/hacker'; import { HelpersModule } from './modules/helpers'; @@ -75,6 +76,7 @@ export class Faker extends SimpleFaker { readonly database: DatabaseModule = new DatabaseModule(this); readonly date: DateModule = new DateModule(this); readonly finance = new FinanceModule(this); + readonly food = new FoodModule(this); readonly git: GitModule = new GitModule(this); readonly hacker: HackerModule = new HackerModule(this); readonly helpers: HelpersModule = new HelpersModule(this); diff --git a/src/index.ts b/src/index.ts index 8a8ffdb7e8e..8dd2982bbb2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -30,6 +30,7 @@ export type { FinanceDefinition, /** @deprecated Use FinanceDefinition instead */ FinanceDefinition as FinanceDefinitions, + FoodDefinition, HackerDefinition, /** @deprecated Use HackerDefinition instead */ HackerDefinition as HackerDefinitions, @@ -101,6 +102,7 @@ export type { DatabaseModule } from './modules/database'; export type { DatatypeModule } from './modules/datatype'; export type { DateModule, SimpleDateModule } from './modules/date'; export type { Currency, FinanceModule } from './modules/finance'; +export type { FoodModule } from './modules/food'; export type { GitModule } from './modules/git'; export type { HackerModule } from './modules/hacker'; export type { HelpersModule, SimpleHelpersModule } from './modules/helpers'; diff --git a/src/locales/en/food/adjective.ts b/src/locales/en/food/adjective.ts new file mode 100644 index 00000000000..e50a9fbdd79 --- /dev/null +++ b/src/locales/en/food/adjective.ts @@ -0,0 +1,22 @@ +export default [ + 'bitter', + 'creamy', + 'crispy', + 'crunchy', + 'delicious', + 'fluffy', + 'fresh', + 'golden', + 'juicy', + 'moist', + 'rich', + 'salty', + 'savory', + 'smoky', + 'sour', + 'spicy', + 'sweet', + 'tangy', + 'tender', + 'zesty', +]; diff --git a/src/locales/en/food/description_pattern.ts b/src/locales/en/food/description_pattern.ts new file mode 100644 index 00000000000..21909d0b4ac --- /dev/null +++ b/src/locales/en/food/description_pattern.ts @@ -0,0 +1,23 @@ +export default [ + 'A classic pie filled with delicious {{food.meat}} and {{food.adjective}} {{food.ingredient}}, baked in a {{food.adjective}} pastry crust and topped with a golden-brown lattice.', + 'A delightful tart combining {{food.adjective}} {{food.vegetable}} and sweet {{food.fruit}}, set in a buttery pastry shell and finished with a hint of {{food.spice}}.', + 'A heartwarming {{food.ethnic_category}} soup, featuring fresh {{food.ingredient}} and an aromatic blend of traditional spices.', + 'A robust {{food.adjective}} stew featuring {{food.ethnic_category}} flavors, loaded with {{food.adjective}} meat, {{food.adjective}} vegetables, and a {{food.adjective}}, {{food.adjective}} broth.', + 'A simple {{food.fruit}} pie. No fancy stuff. Just pie.', + 'A slow-roasted {{animal.bird}} with a {{food.adjective}}, {{food.adjective}} exterior. Stuffed with {{food.fruit}} and covered in {{food.fruit}} sauce. Sides with {{food.vegetable}} puree and wild {{food.vegetable}}.', + 'A special {{color.human}} {{food.ingredient}} from {{location.country}}. To support the strong flavor it is sided with a tablespoon of {{food.spice}}.', + 'A succulent {{food.meat}} steak, encased in a {{food.adjective}} {{food.spice}} crust, served with a side of {{food.spice}} mashed {{food.vegetable}}.', + 'An exquisite {{food.meat}} roast, infused with the essence of {{food.fruit}}, slow-roasted to bring out its natural flavors and served with a side of creamy {{food.vegetable}}', + 'Baked {{food.ingredient}}-stuffed {{food.meat}}, seasoned with {{food.spice}} and {{food.adjective}} herbs, accompanied by roasted {{food.vegetable}} medley.', + 'Crispy fried {{food.meat}} bites, seasoned with {{food.spice}} and served with a tangy {{food.fruit}} dipping sauce.', + 'Fresh mixed greens tossed with {{food.spice}}-rubbed {{food.meat}}, {{food.vegetable}}, and a light dressing.', + 'Fresh {{food.ingredient}} with a pinch of {{food.spice}}, topped by a caramelized {{food.fruit}} with whipped cream', + 'Grilled {{food.meat}} kebabs, marinated in {{food.ethnic_category}} spices and served with a fresh {{food.vegetable}} and {{food.fruit}} salad.', + 'Hearty {{food.ingredient}} and {{food.meat}} stew, slow-cooked with {{food.spice}} and {{food.vegetable}} for a comforting, flavorful meal.', + 'Juicy {{food.meat}}, grilled to your liking and drizzled with a bold {{food.spice}} sauce, served alongside roasted {{food.vegetable}}.', + 'Our {{food.adjective}} {{food.meat}}, slow-cooked to perfection, accompanied by steamed {{food.vegetable}} and a rich, savory gravy.', + 'Tender {{food.meat}} skewers, glazed with a sweet and tangy {{food.fruit}} sauce, served over a bed of fragrant jasmine rice.', + 'Tenderly braised {{food.meat}} in a rich {{food.spice}} and {{food.vegetable}} sauce, served with a side of creamy {{food.vegetable}}.', + 'Three {{food.ingredient}} with {{food.vegetable}}, {{food.vegetable}}, {{food.vegetable}}, {{food.vegetable}} and {{food.ingredient}}. With a side of baked {{food.fruit}}, and your choice of {{food.ingredient}} or {{food.ingredient}}.', + '{{number.int({"min":1, "max":99})}}-day aged {{food.meat}} steak, with choice of {{number.int({"min":2, "max":4})}} sides.', +]; diff --git a/src/locales/en/food/dish.ts b/src/locales/en/food/dish.ts new file mode 100644 index 00000000000..ef544310585 --- /dev/null +++ b/src/locales/en/food/dish.ts @@ -0,0 +1,56 @@ +export default [ + 'California maki', + 'Peking duck', + 'Philadelphia maki', + 'arepas', + 'barbecue ribs', + 'bruschette with tomato', + 'bunny chow', + 'caesar salad', + 'caprese salad', + 'cauliflower penne', + 'cheeseburger', + 'chicken fajitas', + 'chicken milanese', + 'chicken parm', + 'chicken wings', + 'chilli con carne', + 'ebiten maki', + 'fettuccine alfredo', + 'fish and chips', + 'french fries with sausages', + 'french toast', + 'hummus', + 'katsu curry', + 'kebab', + 'lasagne', + 'linguine with clams', + 'massaman curry', + 'meatballs with sauce', + 'mushroom risotto', + 'pappardelle alla bolognese', + 'pasta and beans', + 'pasta carbonara', + 'pasta with tomato and basil', + 'pho', + 'pierogi', + 'pizza', + 'poke', + 'pork belly buns', + 'pork sausage roll', + 'poutine', + 'ricotta stuffed ravioli', + 'risotto with seafood', + 'salmon nigiri', + 'scotch eggs', + 'seafood paella', + 'som tam', + 'souvlaki', + 'stinky tofu', + 'sushi', + 'tacos', + 'teriyaki chicken donburi', + 'tiramisù', + 'tuna sashimi', + 'vegetable soup', +]; diff --git a/src/locales/en/food/dish_pattern.ts b/src/locales/en/food/dish_pattern.ts new file mode 100644 index 00000000000..8bb76038c27 --- /dev/null +++ b/src/locales/en/food/dish_pattern.ts @@ -0,0 +1,17 @@ +export default [ + '{{food.adjective}} {{food.ethnic_category}} stew', + '{{food.adjective}} {{food.meat}} with {{food.vegetable}}', + '{{food.ethnic_category}} {{food.ingredient}} soup', + '{{food.fruit}} and {{food.fruit}} tart', + '{{food.fruit}} pie', + '{{food.fruit}}-glazed {{food.meat}} skewers', + '{{food.fruit}}-infused {{food.meat}} roast', + '{{food.ingredient}} and {{food.meat}} pie', + '{{food.ingredient}}-infused {{food.meat}}', + '{{food.meat}} steak', + '{{food.meat}} with {{food.fruit}} sauce', + '{{food.spice}}-crusted {{food.meat}}', + '{{food.spice}}-rubbed {{food.meat}} salad', + '{{food.vegetable}} salad', + "{{person.first_name}}'s special {{food.ingredient}}", +]; diff --git a/src/locales/en/food/ethnic_category.ts b/src/locales/en/food/ethnic_category.ts new file mode 100644 index 00000000000..50611834808 --- /dev/null +++ b/src/locales/en/food/ethnic_category.ts @@ -0,0 +1,120 @@ +export default [ + 'Ainu', + 'Albanian', + 'American', + 'Andhra', + 'Anglo-Indian', + 'Arab', + 'Argentine', + 'Armenian', + 'Assyrian', + 'Awadhi', + 'Azerbaijani', + 'Balochi', + 'Bangladeshi', + 'Bashkir', + 'Belarusian', + 'Bengali', + 'Berber', + 'Brazilian', + 'British', + 'Buddhist', + 'Bulgarian', + 'Cajun', + 'Cantonese', + 'Caribbean', + 'Chechen', + 'Chinese', + 'Chinese Islamic', + 'Circassian', + 'Crimean Tatar', + 'Cypriot', + 'Czech', + 'Danish', + 'Egyptian', + 'English', + 'Eritrean', + 'Estonian', + 'Ethiopian', + 'Filipino', + 'French', + 'Georgian', + 'German', + 'Goan', + 'Goan Catholic', + 'Greek', + 'Gujarati', + 'Hyderabad', + 'Indian', + 'Indian Chinese', + 'Indian Singaporean', + 'Indonesian', + 'Inuit', + 'Irish', + 'Italian', + 'Italian-American', + 'Jamaican', + 'Japanese', + 'Jewish - Israeli', + 'Karnataka', + 'Kazakh', + 'Keralite', + 'Korean', + 'Kurdish', + 'Laotian', + 'Latvian', + 'Lebanese', + 'Lithuanian', + 'Louisiana Creole', + 'Maharashtrian', + 'Malay', + 'Malaysian Chinese', + 'Malaysian Indian', + 'Mangalorean', + 'Mediterranean', + 'Mennonite', + 'Mexican', + 'Mordovian', + 'Mughal', + 'Native American', + 'Nepalese', + 'New Mexican', + 'Odia', + 'Pakistani', + 'Parsi', + 'Pashtun', + 'Pennsylvania Dutch', + 'Peranakan', + 'Persian', + 'Peruvian', + 'Polish', + 'Portuguese', + 'Punjabi', + 'Québécois', + 'Rajasthani', + 'Romani', + 'Romanian', + 'Russian', + 'Sami', + 'Serbian', + 'Sindhi', + 'Slovak', + 'Slovenian', + 'Somali', + 'South Indian', + 'Soviet', + 'Spanish', + 'Sri Lankan', + 'Taiwanese', + 'Tamil', + 'Tatar', + 'Texan', + 'Thai', + 'Turkish', + 'Udupi', + 'Ukrainian', + 'Vietnamese', + 'Yamal', + 'Zambian', + 'Zanzibari', +]; diff --git a/src/locales/en/food/fruit.ts b/src/locales/en/food/fruit.ts new file mode 100644 index 00000000000..e593a09ff65 --- /dev/null +++ b/src/locales/en/food/fruit.ts @@ -0,0 +1,71 @@ +export default [ + 'apple', + 'apricot', + 'aubergine', + 'avocado', + 'banana', + 'berry', + 'blackberry', + 'blood orange', + 'blueberry', + 'bush tomato', + 'butternut pumpkin', + 'cantaloupe', + 'cavalo', + 'cherry', + 'corella pear', + 'cranberry', + 'cumquat', + 'currant', + 'custard apple', + 'custard apples daikon', + 'date', + 'dragonfruit', + 'dried apricot', + 'elderberry', + 'feijoa', + 'fig', + 'fingerlime', + 'goji berry', + 'grape', + 'grapefruit', + 'guava', + 'honeydew melon', + 'incaberry', + 'jarrahdale pumpkin', + 'juniper berry', + 'kiwi fruit', + 'kiwiberry', + 'lemon', + 'lime', + 'longan', + 'loquat', + 'lychee', + 'mandarin', + 'mango', + 'mangosteen', + 'melon', + 'mulberry', + 'nashi pear', + 'nectarine', + 'olive', + 'orange', + 'papaw', + 'papaya', + 'passionfruit', + 'peache', + 'pear', + 'pineapple', + 'plum', + 'pomegranate', + 'prune', + 'rockmelon', + 'snowpea', + 'sprout', + 'starfruit', + 'strawberry', + 'sultana', + 'tangelo', + 'tomato', + 'watermelon', +]; diff --git a/src/locales/en/food/index.ts b/src/locales/en/food/index.ts new file mode 100644 index 00000000000..65e4b8a870c --- /dev/null +++ b/src/locales/en/food/index.ts @@ -0,0 +1,30 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { FoodDefinition } from '../../..'; +import adjective from './adjective'; +import description_pattern from './description_pattern'; +import dish from './dish'; +import dish_pattern from './dish_pattern'; +import ethnic_category from './ethnic_category'; +import fruit from './fruit'; +import ingredient from './ingredient'; +import meat from './meat'; +import spice from './spice'; +import vegetable from './vegetable'; + +const food: FoodDefinition = { + adjective, + description_pattern, + dish, + dish_pattern, + ethnic_category, + fruit, + ingredient, + meat, + spice, + vegetable, +}; + +export default food; diff --git a/src/locales/en/food/ingredient.ts b/src/locales/en/food/ingredient.ts new file mode 100644 index 00000000000..ba061184475 --- /dev/null +++ b/src/locales/en/food/ingredient.ts @@ -0,0 +1,487 @@ +export default [ + 'achacha', + 'adzuki beans', + 'agar', + 'agave syrup', + 'ajowan seed', + 'albacore tuna', + 'alfalfa', + 'allspice', + 'almond oil', + 'almonds', + 'amaranth', + 'amchur', + 'anchovies', + 'aniseed', + 'annatto seed', + 'apple cider vinegar', + 'apple juice', + 'apple juice concentrate', + 'apples', + 'apricots', + 'arborio rice', + 'arrowroot', + 'artichoke', + 'arugula', + 'asafoetida', + 'asian greens', + 'asian noodles', + 'asparagus', + 'aubergine', + 'avocado', + 'avocado oil', + 'avocado spread', + 'bacon', + 'baking powder', + 'baking soda', + 'balsamic vinegar', + 'bamboo shoots', + 'banana', + 'barberry', + 'barley', + 'barramundi', + 'basil basmati rice', + 'bay leaves', + 'bean shoots', + 'bean sprouts', + 'beans', + 'beef', + 'beef stock', + 'beetroot', + 'berries', + 'besan', + 'black eyed beans', + 'blackberries', + 'blood oranges', + 'blue cheese', + 'blue eye trevalla', + 'blue swimmer crab', + 'blueberries', + 'bocconcini', + 'bok choy', + 'bonito flakes', + 'bonza', + 'borlotti beans', + 'bran', + 'brazil nut', + 'bread', + 'brie', + 'broccoli', + 'broccolini', + 'brown flour', + 'brown mushrooms', + 'brown rice', + 'brown rice vinegar', + 'brussels sprouts', + 'buckwheat', + 'buckwheat flour', + 'buckwheat noodles', + 'bulghur', + 'bush tomato', + 'butter', + 'butter beans', + 'buttermilk', + 'butternut lettuce', + 'butternut pumpkin', + 'cabbage', + 'cacao', + 'cake', + 'calamari', + 'camellia tea oil', + 'camembert', + 'camomile', + 'candle nut', + 'cannellini beans', + 'canola oil', + 'cantaloupe', + 'capers', + 'capsicum', + 'caraway seed', + 'cardamom', + 'carob carrot', + 'carrot', + 'cashews', + 'cassia bark', + 'cauliflower', + 'cavalo', + 'cayenne', + 'celery', + 'celery seed', + 'cheddar', + 'cherries', + 'chestnut', + 'chia seeds', + 'chicken', + 'chicken stock', + 'chickory', + 'chickpea', + 'chilli pepper', + 'chinese cabbage', + 'chinese five spice', + 'chives', + 'choy sum', + 'cinnamon', + 'clams', + 'cloves', + 'cocoa powder', + 'coconut', + 'coconut oil', + 'coconut water', + 'coffee', + 'common cultivated mushrooms', + 'corella pear', + 'coriander leaves', + 'coriander seed', + 'corn oil', + 'corn syrup', + 'corn tortilla', + 'cornichons', + 'cornmeal', + 'cos lettuce', + 'cottage cheese', + 'cous cous', + 'crabs', + 'cranberry', + 'cream', + 'cream cheese', + 'cucumber', + 'cumin', + 'cumquat', + 'currants', + 'curry leaves', + 'curry powder', + 'custard apples', + 'dandelion', + 'dark chocolate', + 'dashi', + 'dates', + 'dill', + 'dragonfruit', + 'dried apricots', + 'dried chinese broccoli', + 'duck', + 'edam', + 'edamame', + 'eggplant', + 'eggs', + 'elderberry', + 'endive', + 'english spinach', + 'enoki mushrooms', + 'extra virgin olive oil', + 'farmed prawns', + 'feijoa', + 'fennel', + 'fennel seeds', + 'fenugreek', + 'feta', + 'figs', + 'file powder', + 'fingerlime', + 'fish sauce', + 'fish stock', + 'flat mushrooms', + 'flathead', + 'flaxseed', + 'flaxseed oil', + 'flounder', + 'flour', + 'freekeh', + 'french eschallots', + 'fresh chillies', + 'fromage blanc', + 'fruit', + 'galangal', + 'garam masala', + 'garlic', + 'goat cheese', + 'goat milk', + 'goji berry', + 'grape seed oil', + 'grapefruit', + 'grapes', + 'green beans', + 'green pepper', + 'green tea', + 'green tea noodles', + 'greenwheat freekeh', + 'gruyere', + 'guava', + 'gula melaka', + 'haloumi', + 'ham', + 'haricot beans', + 'harissa', + 'hazelnut', + 'hijiki', + 'hiramasa kingfish', + 'hokkien noodles', + 'honey', + 'honeydew melon', + 'horseradish', + 'hot smoked salmon', + 'hummus', + 'iceberg lettuce', + 'incaberries', + 'jarrahdale pumpkin', + 'jasmine rice', + 'jelly', + 'jerusalem artichoke', + 'jewfish', + 'jicama', + 'juniper berries', + 'kale', + 'kangaroo', + 'kecap manis', + 'kenchur', + 'kidney beans', + 'kidneys', + 'kiwi berries', + 'kiwi fruit', + 'kohlrabi', + 'kokam', + 'kombu', + 'koshihikari rice', + 'kudzu', + 'kumera', + 'lamb', + 'lavender flowers', + 'leeks', + 'lemon', + 'lemongrass', + 'lentils', + 'lettuce', + 'licorice', + 'lime leaves', + 'limes', + 'liver', + 'lobster', + 'longan', + 'loquats', + 'lotus root', + 'lychees', + 'macadamia nut', + 'macadamia oil', + 'mace', + 'mackerel', + 'mahi mahi', + 'mahlab', + 'malt vinegar', + 'mandarins', + 'mango', + 'mangosteens', + 'maple syrup', + 'margarine', + 'marigold', + 'marjoram', + 'mastic', + 'melon', + 'milk', + 'milk chocolate', + 'mint', + 'miso', + 'molasses', + 'monkfish', + 'morwong', + 'mountain bread', + 'mozzarella', + 'muesli', + 'mulberries', + 'mullet', + 'mung beans', + 'mussels', + 'mustard', + 'mustard seed', + 'nashi pear', + 'nasturtium', + 'nectarines', + 'nori', + 'nutmeg', + 'nutritional yeast', + 'nuts', + 'oat flour', + 'oatmeal', + 'oats', + 'octopus', + 'okra', + 'olive oil', + 'olives', + 'omega spread', + 'onion', + 'oranges', + 'oregano', + 'oyster mushrooms', + 'oyster sauce', + 'oysters', + 'pandanus leaves', + 'papaw', + 'papaya', + 'paprik', + 'parmesan cheese', + 'parrotfish', + 'parsley', + 'parsnip', + 'passionfruit', + 'pasta', + 'peaches', + 'peanuts', + 'pear', + 'pear juice', + 'pears', + 'peas', + 'pecan nut', + 'pecorino', + 'pepitas', + 'peppercorns', + 'peppermint', + 'peppers', + 'persimmon', + 'pine nut', + 'pineapple', + 'pinto beans', + 'pistachio nut', + 'plums', + 'polenta', + 'pomegranate', + 'poppy seed', + 'porcini mushrooms', + 'pork', + 'potato flour', + 'potatoes', + 'provolone', + 'prunes', + 'pumpkin', + 'pumpkin seed', + 'purple carrot', + 'purple rice', + 'quark quinc', + 'quinoa', + 'radicchio', + 'radish', + 'raisin', + 'raspberry', + 'red cabbage', + 'red lentils', + 'red pepper', + 'red wine', + 'red wine vinegar', + 'redfish', + 'rhubarb', + 'rice flour', + 'rice noodles', + 'rice paper', + 'rice syrup', + 'ricemilk', + 'ricotta', + 'rockmelon', + 'rose water', + 'rosemary', + 'rye', + 'rye bread', + 'safflower oil', + 'saffron', + 'sage', + 'sake', + 'salmon', + 'sardines', + 'sausages', + 'scallops', + 'sea salt', + 'semolina', + 'sesame oil', + 'sesame seeds', + 'shark', + 'shiitake mushrooms', + 'silverbeet', + 'slivered almonds', + 'smoked trout', + 'snapper', + 'snowpea sprouts', + 'snowpeas', + 'soba', + 'sour dough bread', + 'soy', + 'soy beans', + 'soy flour', + 'soy milk', + 'soy sauce', + 'soymilk', + 'spearmint', + 'spelt', + 'spelt bread', + 'spinach', + 'spring onions', + 'sprouts', + 'squash', + 'squid', + 'star anise', + 'star fruit', + 'starfruit', + 'stevia', + 'strawberries', + 'sugar', + 'sultanas', + 'sun-dried tomatoes', + 'sunflower oil', + 'sunflower seeds', + 'sweet chilli sauce', + 'sweet potato', + 'swiss chard', + 'swordfish', + 'szechuan pepperberry', + 'tabasco', + 'tahini', + 'taleggio cheese', + 'tamari', + 'tamarillo', + 'tangelo', + 'tapioca', + 'tapioca flour', + 'tarragon', + 'tea', + 'tea oil', + 'tempeh', + 'thyme', + 'tinned', + 'tofu', + 'tom yum', + 'tomatoes', + 'trout', + 'tuna', + 'turkey', + 'turmeric', + 'turnips', + 'unbleached flour', + 'vanilla beans', + 'vegetable oil', + 'vegetable spaghetti', + 'vegetable stock', + 'vermicelli noodles', + 'vinegar', + 'wakame', + 'walnut', + 'warehou', + 'wasabi', + 'water', + 'watercress', + 'watermelon', + 'wattleseed', + 'wheat', + 'wheatgrass juice', + 'white bread', + 'white flour', + 'white rice', + 'white wine', + 'white wine vinegar', + 'whiting wild rice', + 'wholegrain bread', + 'wholemeal', + 'wholewheat flour', + 'william pear', + 'yeast', + 'yellow papaw', + 'yellowtail kingfish', + 'yoghurt', + 'yogurt', + 'zucchini', +]; diff --git a/src/locales/en/food/meat.ts b/src/locales/en/food/meat.ts new file mode 100644 index 00000000000..3645d1d9017 --- /dev/null +++ b/src/locales/en/food/meat.ts @@ -0,0 +1,18 @@ +export default [ + 'beef', + 'chicken', + 'crocodile', + 'duck', + 'emu', + 'goose', + 'kangaroo', + 'lamb', + 'ostrich', + 'pigeon', + 'pork', + 'quail', + 'rabbit', + 'salmon', + 'turkey', + 'venison', +]; diff --git a/src/locales/en/food/spice.ts b/src/locales/en/food/spice.ts new file mode 100644 index 00000000000..f76d8e969f2 --- /dev/null +++ b/src/locales/en/food/spice.ts @@ -0,0 +1,100 @@ +export default [ + 'achiote seed', + 'ajwain seed', + 'ajwan seed', + 'allspice', + 'amchoor', + 'anise', + 'anise star', + 'aniseed', + 'annatto seed', + 'arrowroot', + 'asafoetida', + 'baharat', + 'balti masala', + 'balti stir fry mix', + 'basil', + 'bay leaves', + 'bbq', + 'caraway seed', + 'cardamom', + 'cassia', + 'cayenne pepper', + 'celery', + 'chamomile', + 'chervil', + 'chilli', + 'chilli pepper', + 'chillies', + 'china star', + 'chives', + 'cinnamon', + 'cloves', + 'colombo', + 'coriander', + 'cumin', + 'curly leaf parsley', + 'curry', + 'dhansak', + 'dill', + 'fennel seed', + 'fenugreek', + 'fines herbes', + 'five spice', + 'french lavender', + 'galangal', + 'garam masala', + 'garlic', + 'german chamomile', + 'ginger', + 'green cardamom', + 'herbes de provence', + 'jalfrezi', + 'jerk', + 'kaffir leaves', + 'korma', + 'lavender', + 'lemon grass', + 'lemon pepper', + 'lime leaves', + 'liquorice root', + 'mace', + 'mango', + 'marjoram', + 'methi', + 'mint', + 'mustard', + 'nutmeg', + 'onion seed', + 'orange zest', + 'oregano', + 'paprika', + 'parsley', + 'pepper', + 'peppercorns', + 'pimento', + 'piri piri', + 'poppy seed', + 'pot marjoram', + 'poudre de colombo', + 'ras-el-hanout', + 'rice paper', + 'rogan josh', + 'rose baie', + 'rosemary', + 'saffron', + 'sage', + 'sesame seed', + 'spearmint', + 'sumac', + 'sweet basil', + 'sweet laurel', + 'tagine', + 'tandoori masala', + 'tarragon', + 'thyme', + 'tikka masala', + 'turmeric', + 'vanilla', + 'zahtar', +]; diff --git a/src/locales/en/food/vegetable.ts b/src/locales/en/food/vegetable.ts new file mode 100644 index 00000000000..7e1019cf526 --- /dev/null +++ b/src/locales/en/food/vegetable.ts @@ -0,0 +1,66 @@ +export default [ + 'artichoke', + 'arugula', + 'asian greens', + 'asparagus', + 'bean shoots', + 'bean sprouts', + 'beans', + 'beetroot', + 'bok choy', + 'broccoli', + 'broccolini', + 'brussels sprouts', + 'butternut lettuce', + 'cabbage', + 'capers', + 'carob carrot', + 'carrot', + 'cauliflower', + 'celery', + 'chilli pepper', + 'chinese cabbage', + 'chives', + 'cornichons', + 'cos lettuce', + 'cucumber', + 'dried chinese broccoli', + 'eggplant', + 'endive', + 'english spinach', + 'french eschallots', + 'fresh chillies', + 'garlic', + 'green beans', + 'green pepper', + 'hijiki', + 'iceberg lettuce', + 'jerusalem artichoke', + 'jicama', + 'kale', + 'kohlrabi', + 'leeks', + 'lettuce', + 'okra', + 'onion', + 'parsnip', + 'peas', + 'peppers', + 'potatoes', + 'pumpkin', + 'purple carrot', + 'radicchio', + 'radish', + 'raspberry', + 'red cabbage', + 'red pepper', + 'rhubarb', + 'snowpea sprouts', + 'spinach', + 'squash', + 'sun dried tomatoes', + 'sweet potato', + 'swiss chard', + 'turnips', + 'zucchini', +]; diff --git a/src/locales/en/index.ts b/src/locales/en/index.ts index fc45da1fc4e..e325d91a6d9 100644 --- a/src/locales/en/index.ts +++ b/src/locales/en/index.ts @@ -13,6 +13,7 @@ import company from './company'; import database from './database'; import date from './date'; import finance from './finance'; +import food from './food'; import hacker from './hacker'; import internet from './internet'; import location from './location'; @@ -37,6 +38,7 @@ const en: LocaleDefinition = { database, date, finance, + food, hacker, internet, location, diff --git a/src/modules/food/index.ts b/src/modules/food/index.ts new file mode 100644 index 00000000000..0effaae6bcb --- /dev/null +++ b/src/modules/food/index.ts @@ -0,0 +1,141 @@ +import { ModuleBase } from '../../internal/module-base'; +/** + * Module for generating food-related data. + * + * ### Overview + * + * This module provides methods to generate various food-related information, such as items on a menu. + * To generate the name of a dish, use [`dish()`](https://fakerjs.dev/api/food.html#dish) and to generate a long description for a dish use [`description()`](https://fakerjs.dev/api/food.html#description). Note that these will not correspond with each other. + * You can also generate individual components of a dish such as [spices](https://fakerjs.dev/api/food.html#spice), [vegetables](https://fakerjs.dev/api/food.html#vegetable), [meats](https://fakerjs.dev/api/food.html#meat), [fruits](https://fakerjs.dev/api/food.html#fruit), or generic [ingredients](https://fakerjs.dev/api/food.html#ingredient). + */ +export class FoodModule extends ModuleBase { + /** + * Generates a random dish adjective. + * + * @example + * faker.food.adjective() // 'crispy' + * + * @since 9.0.0 + */ + adjective(): string { + return this.faker.helpers.fake(this.faker.definitions.food.adjective); + } + + /** + * Generates a random dish description. + * + * @example + * faker.food.description() // 'An exquisite ostrich roast, infused with the essence of longan, slow-roasted to bring out its natural flavors and served with a side of creamy red cabbage' + * + * @since 9.0.0 + */ + description(): string { + return this.faker.helpers.fake( + this.faker.definitions.food.description_pattern + ); + } + + /** + * Generates a random dish name. + * + * @example + * faker.food.dish() // 'Tagine-Rubbed Venison Salad' + * + * @since 9.0.0 + */ + dish(): string { + // A 50/50 mix of specific dishes and dish_patterns + const toTitleCase = (s: string) => + s + .split(' ') + .map((w) => w.charAt(0).toUpperCase() + w.slice(1)) + .join(' '); + if (this.faker.datatype.boolean()) { + return toTitleCase( + this.faker.helpers.fake(this.faker.definitions.food.dish_pattern) + ); + } + + return toTitleCase( + this.faker.helpers.arrayElement(this.faker.definitions.food.dish) + ); + } + + /** + * Generates a random food's ethnic category. + * + * @example + * faker.food.ethnicCategory() // 'Italian' + * + * @since 9.0.0 + */ + ethnicCategory(): string { + return this.faker.helpers.arrayElement( + this.faker.definitions.food.ethnic_category + ); + } + + /** + * Generates a random fruit name. + * + * @example + * faker.food.fruit() // 'lemon' + * + * @since 9.0.0 + */ + fruit(): string { + return this.faker.helpers.arrayElement(this.faker.definitions.food.fruit); + } + + /** + * Generates a random ingredient name. + * + * @example + * faker.food.ingredient() // 'butter' + * + * @since 9.0.0 + */ + ingredient(): string { + return this.faker.helpers.arrayElement( + this.faker.definitions.food.ingredient + ); + } + + /** + * Generates a random meat + * + * @example + * faker.food.meat() // 'venison' + * + * @since 9.0.0 + */ + meat(): string { + return this.faker.helpers.arrayElement(this.faker.definitions.food.meat); + } + + /** + * Generates a random spice name. + * + * @example + * faker.food.spice() // 'chilli' + * + * @since 9.0.0 + */ + spice(): string { + return this.faker.helpers.arrayElement(this.faker.definitions.food.spice); + } + + /** + * Generates a random vegetable name. + * + * @example + * faker.food.vegetable() // 'broccoli' + * + * @since 9.0.0 + */ + vegetable(): string { + return this.faker.helpers.arrayElement( + this.faker.definitions.food.vegetable + ); + } +} diff --git a/test/modules/__snapshots__/food.spec.ts.snap b/test/modules/__snapshots__/food.spec.ts.snap new file mode 100644 index 00000000000..5c3b894e44a --- /dev/null +++ b/test/modules/__snapshots__/food.spec.ts.snap @@ -0,0 +1,55 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`food > 42 > adjective 1`] = `"golden"`; + +exports[`food > 42 > description 1`] = `"A succulent venison steak, encased in a sour liquorice root crust, served with a side of bay leaves mashed broccoli."`; + +exports[`food > 42 > dish 1`] = `"Caraway Seed-crusted Rabbit"`; + +exports[`food > 42 > ethnicCategory 1`] = `"Gujarati"`; + +exports[`food > 42 > fruit 1`] = `"fig"`; + +exports[`food > 42 > ingredient 1`] = `"flat mushrooms"`; + +exports[`food > 42 > meat 1`] = `"goose"`; + +exports[`food > 42 > spice 1`] = `"dhansak"`; + +exports[`food > 42 > vegetable 1`] = `"cos lettuce"`; + +exports[`food > 1211 > adjective 1`] = `"tender"`; + +exports[`food > 1211 > description 1`] = `"Three tamari with capers, zucchini, onion, onion and rice paper. With a side of baked feijoa, and your choice of persimmon or slivered almonds."`; + +exports[`food > 1211 > dish 1`] = `"Lasagne"`; + +exports[`food > 1211 > ethnicCategory 1`] = `"Texan"`; + +exports[`food > 1211 > fruit 1`] = `"strawberry"`; + +exports[`food > 1211 > ingredient 1`] = `"turmeric"`; + +exports[`food > 1211 > meat 1`] = `"turkey"`; + +exports[`food > 1211 > spice 1`] = `"tagine"`; + +exports[`food > 1211 > vegetable 1`] = `"sun dried tomatoes"`; + +exports[`food > 1337 > adjective 1`] = `"fluffy"`; + +exports[`food > 1337 > description 1`] = `"A slow-roasted White-winged Scoter with a fluffy, moist exterior. Stuffed with dried apricot and covered in kiwi fruit sauce. Sides with carrot puree and wild turnips."`; + +exports[`food > 1337 > dish 1`] = `"Cauliflower-infused Ostrich"`; + +exports[`food > 1337 > ethnicCategory 1`] = `"Czech"`; + +exports[`food > 1337 > fruit 1`] = `"custard apple"`; + +exports[`food > 1337 > ingredient 1`] = `"coconut water"`; + +exports[`food > 1337 > meat 1`] = `"emu"`; + +exports[`food > 1337 > spice 1`] = `"chilli pepper"`; + +exports[`food > 1337 > vegetable 1`] = `"carrot"`; diff --git a/test/modules/food.spec.ts b/test/modules/food.spec.ts new file mode 100644 index 00000000000..473a191b1c5 --- /dev/null +++ b/test/modules/food.spec.ts @@ -0,0 +1,89 @@ +import { describe, expect, it } from 'vitest'; +import { faker } from '../../src'; +import { seededTests } from '../support/seeded-runs'; +import { times } from './../support/times'; + +const NON_SEEDED_BASED_RUN = 5; + +describe('food', () => { + seededTests(faker, 'food', (t) => { + t.it('adjective'); + + t.it('description'); + + t.it('dish'); + + t.it('ethnicCategory'); + + t.it('fruit'); + + t.it('ingredient'); + + t.it('meat'); + + t.it('spice'); + + t.it('vegetable'); + }); + + describe.each(times(NON_SEEDED_BASED_RUN).map(() => faker.seed()))( + 'random seeded tests for seed %i', + () => { + describe('adjective', () => { + it(`should return random value from adjective array`, () => { + const actual = faker.food.adjective(); + expect(faker.definitions.food.adjective).toContain(actual); + }); + }); + + describe('dish', () => { + it(`should be a capitalized string`, () => { + const actual = faker.food.dish(); + expect(actual[0]).toBe(actual[0].toUpperCase()); + }); + }); + + describe('ethnicCategory', () => { + it(`should return random value from ethnic_category array`, () => { + const actual = faker.food.ethnicCategory(); + expect(faker.definitions.food.ethnic_category).toContain(actual); + }); + }); + + describe('fruit', () => { + it(`should return random value from fruit array`, () => { + const actual = faker.food.fruit(); + expect(faker.definitions.food.fruit).toContain(actual); + }); + }); + + describe('ingredient', () => { + it(`should return random value from ingredient array`, () => { + const actual = faker.food.ingredient(); + expect(faker.definitions.food.ingredient).toContain(actual); + }); + }); + + describe('meat', () => { + it(`should return random value from meat array`, () => { + const actual = faker.food.meat(); + expect(faker.definitions.food.meat).toContain(actual); + }); + }); + + describe('spice', () => { + it(`should return random value from spice array`, () => { + const actual = faker.food.spice(); + expect(faker.definitions.food.spice).toContain(actual); + }); + }); + + describe('vegetable', () => { + it(`should return random value from vegetable array`, () => { + const actual = faker.food.vegetable(); + expect(faker.definitions.food.vegetable).toContain(actual); + }); + }); + } + ); +}); From f6271dc866bca90151fa8a332e6e263c60f968de Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Sun, 11 Feb 2024 16:55:45 +0100 Subject: [PATCH 12/13] docs(finance): fix bad see tags (#2660) --- src/modules/finance/index.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/modules/finance/index.ts b/src/modules/finance/index.ts index f7a84f7403e..a19595d333e 100644 --- a/src/modules/finance/index.ts +++ b/src/modules/finance/index.ts @@ -643,10 +643,9 @@ export class FinanceModule extends ModuleBase { /** * Returns a random currency object, containing `code`, `name `and `symbol` properties. * - * @see - * faker.finance.currencyCode(): For generating specifically the currency code. - * faker.finance.currencyName(): For generating specifically the currency name. - * faker.finance.currencySymbol(): For generating specifically the currency symbol. + * @see faker.finance.currencyCode(): For generating specifically the currency code. + * @see faker.finance.currencyName(): For generating specifically the currency name. + * @see faker.finance.currencySymbol(): For generating specifically the currency symbol. * * @example * faker.finance.currency() // { code: 'USD', name: 'US Dollar', symbol: '$' } From 50897d927464e3ad2c54ae54b57f7d068e3a76a5 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Sun, 11 Feb 2024 17:02:30 +0100 Subject: [PATCH 13/13] docs(system): fix bad description (#2659) --- src/modules/system/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/system/index.ts b/src/modules/system/index.ts index 4c6e010ffca..52fc14f5bca 100644 --- a/src/modules/system/index.ts +++ b/src/modules/system/index.ts @@ -290,7 +290,7 @@ export class SystemModule extends ModuleBase { * * @param options The optional options to use. * @param options.includeYear Whether to include a year in the generated expression. Defaults to `false`. - * @param options.includeNonStandard Whether to include a @yearly, @monthly, @daily, etc text labels in the generated expression. Defaults to `false`. + * @param options.includeNonStandard Whether to include a `@yearly`, `@monthly`, `@daily`, etc text labels in the generated expression. Defaults to `false`. * * @example * faker.system.cron() // '45 23 * * 6' @@ -310,7 +310,7 @@ export class SystemModule extends ModuleBase { */ includeYear?: boolean; /** - * Whether to include a @yearly, @monthly, @daily, etc text labels in the generated expression. + * Whether to include a `@yearly`, `@monthly`, `@daily`, etc text labels in the generated expression. * * @default false */