From c466981e09282da526445f1a3e6b26919fea9202 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Mon, 2 Nov 2026 15:54:12 -0800 Subject: [PATCH 01/10] es bundle, pnpm Co-Authored-By: Claude Opus 5.5 --- .github/eslint.json | 18 - .github/workflows/node.js.yml | 30 - .github/workflows/publish.yml | 26 + .github/workflows/test.yml | 22 + LICENSE | 2 +- README.md | 2 +- package.json | 22 +- pnpm-lock.yaml | 1640 +++++++++++++++++++++++++++++++++ rollup.config.js | 88 +- yarn.lock | 1177 ----------------------- 10 files changed, 1759 insertions(+), 1268 deletions(-) delete mode 100644 .github/eslint.json delete mode 100644 .github/workflows/node.js.yml create mode 100644 .github/workflows/publish.yml create mode 100644 .github/workflows/test.yml create mode 100644 pnpm-lock.yaml delete mode 100644 yarn.lock diff --git a/.github/eslint.json b/.github/eslint.json deleted file mode 100644 index c280fdbd..00000000 --- a/.github/eslint.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "problemMatcher": [ - { - "owner": "eslint-compact", - "pattern": [ - { - "regexp": "^(.+):\\sline\\s(\\d+),\\scol\\s(\\d+),\\s(Error|Warning|Info)\\s-\\s(.+)\\s\\((.+)\\)$", - "file": 1, - "line": 2, - "column": 3, - "severity": 4, - "message": 5, - "code": 6 - } - ] - } - ] -} diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml deleted file mode 100644 index 7e5ee593..00000000 --- a/.github/workflows/node.js.yml +++ /dev/null @@ -1,30 +0,0 @@ -# https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: Node.js CI - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [14.x] - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: yarn --frozen-lockfile - - run: | - echo ::add-matcher::.github/eslint.json - yarn run eslint src test --format=compact - - run: yarn test diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..839d5c5e --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,26 @@ +name: Publish + +on: + workflow_dispatch: {} + release: + types: [published] + +permissions: + id-token: write + contents: read + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: pnpm/action-setup@v6 + with: + version: 10 + - uses: actions/setup-node@v7 + with: + node-version: 24 + cache: pnpm + - run: pnpm install + - run: pnpm run test + - run: npm publish diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..00a5a946 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,22 @@ +name: Test + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: pnpm/action-setup@v6 + with: + version: 10 + - uses: actions/setup-node@v7 + with: + node-version: 24 + cache: pnpm + - run: pnpm install + - run: pnpm run test diff --git a/LICENSE b/LICENSE index fbe44bdc..a8918c41 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright 2010-2022 Mike Bostock +Copyright 2010-2026 Mike Bostock Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice diff --git a/README.md b/README.md index c82ae985..00f489a4 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,6 @@ This module provides a variety of shape generators for your convenience. As with ## Resources - [Documentation](https://d3js.org/d3-shape) -- [Examples](https://observablehq.com/collection/@d3/d3-shape) +- [Examples](https://observablehq.com/@d3/-/collection/d3-shape) - [Releases](https://github.com/d3/d3-shape/releases) - [Getting help](https://d3js.org/community) diff --git a/package.json b/package.json index 9310dc9c..e4ff3465 100644 --- a/package.json +++ b/package.json @@ -23,31 +23,31 @@ "type": "module", "files": [ "dist/**/*.js", - "src/**/*.js" + "dist/**/*.mjs" ], - "module": "src/index.js", - "main": "src/index.js", + "module": "dist/d3-shape.mjs", + "main": "dist/d3-shape.mjs", "jsdelivr": "dist/d3-shape.min.js", "unpkg": "dist/d3-shape.min.js", "exports": { "umd": "./dist/d3-shape.min.js", - "default": "./src/index.js" + "default": "./dist/d3-shape.mjs" }, "sideEffects": false, "dependencies": { "d3-path": "^3.1.0" }, "devDependencies": { - "d3-polygon": "1 - 3", - "eslint": "8", - "mocha": "10", - "rollup": "3", - "rollup-plugin-terser": "7" + "@rollup/plugin-node-resolve": "^16.0.3", + "@rollup/plugin-terser": "^1.0.2", + "d3-polygon": "^3.0.1", + "eslint": "^8.57.1", + "mocha": "^10.8.2", + "rollup": "^4.67.4" }, "scripts": { "test": "mocha 'test/**/*-test.js' && eslint src test", - "prepublishOnly": "rm -rf dist && rollup -c", - "postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../${npm_package_name}/dist/${npm_package_name}.js ${npm_package_name}.v${npm_package_version%%.*}.js && cp ../${npm_package_name}/dist/${npm_package_name}.min.js ${npm_package_name}.v${npm_package_version%%.*}.min.js && git add ${npm_package_name}.v${npm_package_version%%.*}.js ${npm_package_name}.v${npm_package_version%%.*}.min.js && git commit -m \"${npm_package_name} ${npm_package_version}\" && git push && cd -" + "prepublishOnly": "rm -rf dist && rollup -c" }, "engines": { "node": ">=12" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 00000000..539dd048 --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,1640 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + d3-path: + specifier: ^3.1.0 + version: 3.1.0 + devDependencies: + '@rollup/plugin-node-resolve': + specifier: ^16.0.3 + version: 16.0.3(rollup@4.67.4) + '@rollup/plugin-terser': + specifier: ^1.0.2 + version: 1.0.2(rollup@4.67.4) + d3-polygon: + specifier: ^3.0.1 + version: 3.0.1 + eslint: + specifier: ^8.57.1 + version: 8.57.1 + mocha: + specifier: ^10.8.2 + version: 10.8.2 + rollup: + specifier: ^4.67.4 + version: 4.67.4 + +packages: + + '@eslint-community/eslint-utils@4.10.1': + resolution: {integrity: sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 + + '@eslint-community/regexpp@4.12.2': + resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + + '@eslint/eslintrc@2.1.4': + resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + '@eslint/js@8.57.1': + resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + '@humanwhocodes/config-array@0.13.0': + resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==} + engines: {node: '>=10.10.0'} + deprecated: Use @eslint/config-array instead + + '@humanwhocodes/module-importer@1.0.1': + resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} + engines: {node: '>=12.22'} + + '@humanwhocodes/object-schema@2.0.3': + resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==} + deprecated: Use @eslint/object-schema instead + + '@jridgewell/gen-mapping@0.3.13': + resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} + + '@jridgewell/resolve-uri@3.1.2': + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} + engines: {node: '>=6.0.0'} + + '@jridgewell/source-map@0.3.11': + resolution: {integrity: sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA==} + + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} + + '@jridgewell/trace-mapping@0.3.31': + resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} + + '@napi-rs/lzma-linux-x64-gnu@1.5.1': + resolution: {integrity: sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==} + engines: {node: ^22.20 || ^24.12 || >=25} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@nodelib/fs.scandir@2.1.5': + resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} + engines: {node: '>= 8'} + + '@nodelib/fs.stat@2.0.5': + resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} + engines: {node: '>= 8'} + + '@nodelib/fs.walk@1.2.8': + resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} + engines: {node: '>= 8'} + + '@rollup/plugin-node-resolve@16.0.3': + resolution: {integrity: sha512-lUYM3UBGuM93CnMPG1YocWu7X802BrNF3jW2zny5gQyLQgRFJhV1Sq0Zi74+dh/6NBx1DxFC4b4GXg9wUCG5Qg==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^2.78.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + + '@rollup/plugin-terser@1.0.2': + resolution: {integrity: sha512-+UihHnuLnQDQ/9wog7ym+7oawCXkjTIo0WwkK7s//0mkktTN0VhYk6fGVxH+NtGzW064w5RCGgreMDxRVhHCzw==} + engines: {node: '>=20.0.0'} + peerDependencies: + rollup: ^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + + '@rollup/pluginutils@5.5.1': + resolution: {integrity: sha512-P9ZvnfouRu4MSC+ilERaw6FmZs8zqKhpHxEs4aGDGWQAMzQGXnhvCSvoNwokfNvdt7t3Y5Y4p6gStQgezeIqug==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + + '@rollup/rollup-android-arm-eabi@4.67.4': + resolution: {integrity: sha512-/v/pUAPOcwp+r1Hjjdg0cBV1TE89CzGKrKh2FgkIQw2QBcIMmVPOCSfuOZStCn4Xh/98HXfo/ht6ztcssctPNg==} + cpu: [arm] + os: [android] + + '@rollup/rollup-android-arm64@4.67.4': + resolution: {integrity: sha512-6tmmB/P52Vt167FXXEw5auiEUgTtZz7aqUgWHqYXToIUE0HFDY6fTdAyeekjjsNk6O/8dtpSKtClxSj1mMneKQ==} + cpu: [arm64] + os: [android] + + '@rollup/rollup-android-x64@4.67.4': + resolution: {integrity: sha512-8Z9Q4RmotVmuL4llOvqX814JNiOK1oqoBv+glG5KbpRfUiypqzz2/fxIzK4Pq129l4dT5a8Gszmpc0/XPYoFuQ==} + cpu: [x64] + os: [android] + + '@rollup/rollup-darwin-arm64@4.67.4': + resolution: {integrity: sha512-pnq6hssxTtwuRAl6Kdi/+IDY+b1IhkUetjhUkdLAAJCssjfqtL2Oqy/FXJVJFtAWOu1oRlArIvf0Yk1O92x2HQ==} + cpu: [arm64] + os: [darwin] + + '@rollup/rollup-darwin-x64@4.67.4': + resolution: {integrity: sha512-BeIrGZvHMVdJg/N+ohZfFywG/gF41684YhDj2wBvouj7m9ziP1tZDUNwzXRiDY+3WIKngaC4hiUBqVtBPGP5og==} + cpu: [x64] + os: [darwin] + + '@rollup/rollup-freebsd-arm64@4.67.4': + resolution: {integrity: sha512-fRFX/oqNg/g780DKoS8RIfYcZD59Ru5O/bSeK1N7gQljBFrTxJY/q5EX4eMs5SrJf32VgVBVVYCdfPpzAwPPnQ==} + cpu: [arm64] + os: [freebsd] + + '@rollup/rollup-freebsd-x64@4.67.4': + resolution: {integrity: sha512-bSrBRopG1q+0RuOsW0NtYTtIODlvNA3T3ebx5WnQVdSxWIoXFmj+rZdHUHdSLgFdZ5M6VGmekYE7r4RMGQXjfg==} + cpu: [x64] + os: [freebsd] + + '@rollup/rollup-linux-arm-gnueabihf@4.67.4': + resolution: {integrity: sha512-L8IvdrJVtl65g1ozwDSyjGPG+FmibhCdFUwmqTItJLw0S3+Oj4QzFs7rfgTUiK7rsPjkCLdG1/GApFxoynXFJQ==} + cpu: [arm] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-arm-musleabihf@4.67.4': + resolution: {integrity: sha512-h7PcoQOzC31jshNpQ48J0akB9tsghjkSjSl5AZ6XsVGTxVsln7t7C4SQyw62tNVSaz2SeHgk4VT2ELbL17BSHQ==} + cpu: [arm] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-arm64-gnu@4.67.4': + resolution: {integrity: sha512-KSPuOBNHoOl7AsVjeY1KZci8+0up0U4TFAHU5IzBYN8P+Z6cB9DZq28+JQycZW7f6WLLa/tSzhV7Rdy95bVi+g==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-arm64-musl@4.67.4': + resolution: {integrity: sha512-0E/mKmVk1PlQeQYygIwQm0jlwjANTzGSiNBMPrFx+rdFGFj/2Axh4p6XwcrystQIqXZVudTaGsdbDpzYgJ4wSA==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-loong64-gnu@4.67.4': + resolution: {integrity: sha512-Fvw7dOSc2Sa9UOipRZVI0zOgdLCzsjVyD/6JuHXzUHTXFu7mMgmeX/0/bCVBIut1dz+nWz3pV4WpS/Qg0XVnxw==} + cpu: [loong64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-loong64-musl@4.67.4': + resolution: {integrity: sha512-jzxbVHaE7V3F+P0wEK7UydQtvv7Twfdtx58jI5/3VRx1jJxyrn+qFwfXmqjVFxPhBl+zjaRs+ZJMFJw7vdHaQA==} + cpu: [loong64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-ppc64-gnu@4.67.4': + resolution: {integrity: sha512-fhtrzp9p4GjEJVaigaap9g6X9nP6xgJtKiLLXSDgpE18HXufA5aqfltGn+KAqMtVZReJZfOrXm//y5YSA9BWbA==} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-ppc64-musl@4.67.4': + resolution: {integrity: sha512-uynaF7IUHwAckV0S+yC1f5esy9gB+aqCBsPH5BOck32TYdCuAn2lVG5tvUcFnEsrviGEmRZxE1NHSOieUPYJEg==} + cpu: [ppc64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-riscv64-gnu@4.67.4': + resolution: {integrity: sha512-uaqRFdfb8eIa2bVHN/FE3ndCvR0zV2xv0AwjCfxrqSu6l6fp/54VhjfhslKlf2RIik9L1jwlt4E56PeVX6tQtQ==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-riscv64-musl@4.67.4': + resolution: {integrity: sha512-JZRow7kmxUDEASnxHuVG5itTm+nTXi9BQUABcVUnUEngC+OPwMrpx1uJ9hIA/v+IcAEBL52ktCSPXk5OJn9Jqg==} + cpu: [riscv64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-s390x-gnu@4.67.4': + resolution: {integrity: sha512-rdrh4e+Lq9fCNKoDPaCqeHXbQCe7yl77Ukl45tlSClwYdZ1gpFGZz1XLJdYtY++FRlfL5aHvb6/0n3GDW/Nxsw==} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-x64-gnu@4.67.4': + resolution: {integrity: sha512-wL7MS4r0fYcxluF3ne2plofHZiB/LsqNCnyaUlyiKpAJLb6agPSFz7DEFCfkonWAZXMrLwCmC08b2ZEnEdJkog==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-x64-musl@4.67.4': + resolution: {integrity: sha512-4H0XHfd2VufGjX7NjUyeue78sD0bRIoKSGjGqO+F5nSvL6jN48NAU7esdmtFEYxZXwObLtt3MJ/kHS0jASMW3g==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rollup/rollup-openbsd-x64@4.67.4': + resolution: {integrity: sha512-osRHQbE55pZpCLetpMsFmhkapyZnAUH73qRKMh+npi3boUom6u6hdaTTPSxlInXxwJHsn9r2uDhdz0V7Yoxx2A==} + cpu: [x64] + os: [openbsd] + + '@rollup/rollup-openharmony-arm64@4.67.4': + resolution: {integrity: sha512-95+exYEyOwrZePsE0czi4q7X5lxKPa21+lmyAZlwbYENITQ0Unk4HAQAFp/p+KhXBHBx9mUABXRYjOC5A1wY3Q==} + cpu: [arm64] + os: [openharmony] + + '@rollup/rollup-win32-arm64-msvc@4.67.4': + resolution: {integrity: sha512-FOXOcKhNQpO4Po+Ynan6IbtM67SrXZbgpRJWVYwz53CT5veI7sVzDwVBmWS65N5Imv+wK3SVhIPAl+C5DXXNCg==} + cpu: [arm64] + os: [win32] + + '@rollup/rollup-win32-ia32-msvc@4.67.4': + resolution: {integrity: sha512-cklKh0gJOkAZQcWziQa3hrjxZKN+PCHZ7SPTyGJDAiBVr05ZXlEjGFCG7zFJMaVibxsmzAe1FimN4u/HBns9+Q==} + cpu: [ia32] + os: [win32] + + '@rollup/rollup-win32-x64-gnu@4.67.4': + resolution: {integrity: sha512-AegwxJPc9bvUp8fQtlsUHkFMOMkGylWU7glyL+YD4vwG+QaYoGXYLSsQoeTD7kvoLZrVlMWNVhTg1dedY5C1VQ==} + cpu: [x64] + os: [win32] + + '@rollup/rollup-win32-x64-msvc@4.67.4': + resolution: {integrity: sha512-RJZnrwTWj7Iq2ooBwoGbDdC65tDwYawneGcAfFMJqVUrRZMcskka6nTkBpXR/47G7kzn3EW2qupExnaBy11vwg==} + cpu: [x64] + os: [win32] + + '@types/estree@1.0.10': + resolution: {integrity: sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==} + + '@types/resolve@1.20.2': + resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} + + '@ungap/structured-clone@1.4.0': + resolution: {integrity: sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==} + + acorn-jsx@5.3.2: + resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} + peerDependencies: + acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 + + acorn@8.19.0: + resolution: {integrity: sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==} + engines: {node: '>=0.4.0'} + hasBin: true + + ajv@6.15.0: + resolution: {integrity: sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==} + + ansi-colors@4.1.3: + resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==} + engines: {node: '>=6'} + + ansi-regex@5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} + + ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + + anymatch@3.1.3: + resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} + engines: {node: '>= 8'} + + argparse@2.0.1: + resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + + balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + + binary-extensions@2.3.0: + resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} + engines: {node: '>=8'} + + brace-expansion@1.1.21: + resolution: {integrity: sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==} + + brace-expansion@2.1.7: + resolution: {integrity: sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==} + + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + + browser-stdout@1.3.1: + resolution: {integrity: sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==} + + buffer-from@1.1.2: + resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} + + callsites@3.1.0: + resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} + engines: {node: '>=6'} + + camelcase@6.3.0: + resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==} + engines: {node: '>=10'} + + chalk@4.1.2: + resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} + engines: {node: '>=10'} + + chokidar@3.6.0: + resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} + engines: {node: '>= 8.10.0'} + + cliui@7.0.4: + resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==} + + color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + + color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + + commander@2.20.3: + resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} + + concat-map@0.0.1: + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} + + cross-spawn@7.0.6: + resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} + engines: {node: '>= 8'} + + d3-path@3.1.0: + resolution: {integrity: sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==} + engines: {node: '>=12'} + + d3-polygon@3.0.1: + resolution: {integrity: sha512-3vbA7vXYwfe1SYhED++fPUQlWSYTTGmFmQiany/gdbiWgU/iEyQzyymwL9SkJjFFuCS4902BSzewVGsHHmHtXg==} + engines: {node: '>=12'} + + debug@4.4.3: + resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + decamelize@4.0.0: + resolution: {integrity: sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==} + engines: {node: '>=10'} + + deep-is@0.1.4: + resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} + + deepmerge@4.3.1: + resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} + engines: {node: '>=0.10.0'} + + diff@5.2.2: + resolution: {integrity: sha512-vtcDfH3TOjP8UekytvnHH1o1P4FcUdt4eQ1Y+Abap1tk/OB2MWQvcwS2ClCd1zuIhc3JKOx6p3kod8Vfys3E+A==} + engines: {node: '>=0.3.1'} + + doctrine@3.0.0: + resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} + engines: {node: '>=6.0.0'} + + emoji-regex@8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + + es-errors@1.3.0: + resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} + engines: {node: '>= 0.4'} + + escalade@3.2.0: + resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} + engines: {node: '>=6'} + + escape-string-regexp@4.0.0: + resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} + engines: {node: '>=10'} + + eslint-scope@7.2.2: + resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + eslint-visitor-keys@3.4.3: + resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + eslint@8.57.1: + resolution: {integrity: sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. + hasBin: true + + espree@9.6.1: + resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + esquery@1.7.0: + resolution: {integrity: sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==} + engines: {node: '>=0.10'} + + esrecurse@4.3.0: + resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} + engines: {node: '>=4.0'} + + estraverse@5.3.0: + resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} + engines: {node: '>=4.0'} + + estree-walker@2.0.2: + resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} + + esutils@2.0.3: + resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} + engines: {node: '>=0.10.0'} + + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-json-stable-stringify@2.1.0: + resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} + + fast-levenshtein@2.0.6: + resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} + + fastq@1.20.3: + resolution: {integrity: sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==} + + file-entry-cache@6.0.1: + resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} + engines: {node: ^10.12.0 || >=12.0.0} + + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + + find-up@5.0.0: + resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} + engines: {node: '>=10'} + + flat-cache@3.2.0: + resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==} + engines: {node: ^10.12.0 || >=12.0.0} + + flat@5.0.2: + resolution: {integrity: sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==} + hasBin: true + + flatted@3.4.4: + resolution: {integrity: sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==} + + fs.realpath@1.0.0: + resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} + + get-caller-file@2.0.5: + resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} + engines: {node: 6.* || 8.* || >= 10.*} + + glob-parent@5.1.2: + resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} + engines: {node: '>= 6'} + + glob-parent@6.0.2: + resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} + engines: {node: '>=10.13.0'} + + glob@7.2.3: + resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me + + glob@8.1.0: + resolution: {integrity: sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==} + engines: {node: '>=12'} + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me + + globals@13.24.0: + resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==} + engines: {node: '>=8'} + + graphemer@1.4.0: + resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} + + has-flag@4.0.0: + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} + engines: {node: '>=8'} + + hasown@2.0.4: + resolution: {integrity: sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==} + engines: {node: '>= 0.4'} + + he@1.2.0: + resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==} + hasBin: true + + ignore@5.3.2: + resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} + engines: {node: '>= 4'} + + import-fresh@3.3.1: + resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==} + engines: {node: '>=6'} + + imurmurhash@0.1.4: + resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} + engines: {node: '>=0.8.19'} + + inflight@1.0.6: + resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} + deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. + + inherits@2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + + is-binary-path@2.1.0: + resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} + engines: {node: '>=8'} + + is-core-module@2.17.0: + resolution: {integrity: sha512-J/vG0zBCbIKOQFfufSwyXdMrsohyJIUNkrnmo6WZGzoM7tr/lsbfW5b2BvisL6zsyMzK9UxV9L6c7AoFbyXHOA==} + engines: {node: '>= 0.4'} + + is-extglob@2.1.1: + resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} + engines: {node: '>=0.10.0'} + + is-fullwidth-code-point@3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} + + is-glob@4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} + engines: {node: '>=0.10.0'} + + is-module@1.0.0: + resolution: {integrity: sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==} + + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + is-path-inside@3.0.3: + resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==} + engines: {node: '>=8'} + + is-plain-obj@2.1.0: + resolution: {integrity: sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==} + engines: {node: '>=8'} + + is-unicode-supported@0.1.0: + resolution: {integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==} + engines: {node: '>=10'} + + isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + + js-yaml@4.3.2: + resolution: {integrity: sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==} + hasBin: true + + json-buffer@3.0.1: + resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} + + json-schema-traverse@0.4.1: + resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} + + json-stable-stringify-without-jsonify@1.0.1: + resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} + + keyv@4.5.4: + resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} + + levn@0.4.1: + resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} + engines: {node: '>= 0.8.0'} + + locate-path@6.0.0: + resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} + engines: {node: '>=10'} + + lodash.merge@4.6.2: + resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} + + log-symbols@4.1.0: + resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==} + engines: {node: '>=10'} + + minimatch@3.1.5: + resolution: {integrity: sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==} + + minimatch@5.1.9: + resolution: {integrity: sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==} + engines: {node: '>=10'} + + mocha@10.8.2: + resolution: {integrity: sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg==} + engines: {node: '>= 14.0.0'} + hasBin: true + + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + + natural-compare@1.4.0: + resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} + + normalize-path@3.0.0: + resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} + engines: {node: '>=0.10.0'} + + once@1.4.0: + resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} + + optionator@0.9.4: + resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} + engines: {node: '>= 0.8.0'} + + p-limit@3.1.0: + resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} + engines: {node: '>=10'} + + p-locate@5.0.0: + resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} + engines: {node: '>=10'} + + parent-module@1.0.1: + resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} + engines: {node: '>=6'} + + path-exists@4.0.0: + resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} + engines: {node: '>=8'} + + path-is-absolute@1.0.1: + resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} + engines: {node: '>=0.10.0'} + + path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + + path-parse@1.0.7: + resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} + + picomatch@2.3.2: + resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==} + engines: {node: '>=8.6'} + + picomatch@4.0.7: + resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} + engines: {node: '>=12'} + + prelude-ls@1.2.1: + resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} + engines: {node: '>= 0.8.0'} + + punycode@2.3.1: + resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} + engines: {node: '>=6'} + + queue-microtask@1.2.3: + resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + + randombytes@2.1.0: + resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==} + + readdirp@3.6.0: + resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} + engines: {node: '>=8.10.0'} + + require-directory@2.1.1: + resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} + engines: {node: '>=0.10.0'} + + resolve-from@4.0.0: + resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} + engines: {node: '>=4'} + + resolve@1.22.13: + resolution: {integrity: sha512-Dj/cW9zBV2aRj6XzCxuGIs3ESZKv02jixne3q6jFZYZ3/Tg09gHHviSMDL4kObh9pqSahdRHEnDoaP2gn8YLhA==} + engines: {node: '>= 0.4'} + hasBin: true + + reusify@1.1.0: + resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==} + engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + + rimraf@3.0.2: + resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} + deprecated: Rimraf versions prior to v4 are no longer supported + hasBin: true + + rollup@4.67.4: + resolution: {integrity: sha512-Lsv3oKcz5jgOQJej/p7nfwbVEdAbDT+z6OPf/SCdI+nF+q2ENp0pTKT35ZwXAmH8g45mfrIiJeEyAqKYSYoL9Q==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + + run-parallel@1.2.0: + resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + + safe-buffer@5.2.1: + resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} + + serialize-javascript@6.0.2: + resolution: {integrity: sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==} + + serialize-javascript@7.1.4: + resolution: {integrity: sha512-FqlEuoTq/zRmA4Lg6aOqyH3lCHbUtCB0bmHCeFniX2GBdDqMJM3FwdvEhlE5Pim1dlt2FfBdVPmUNNiGhhKqpw==} + engines: {node: '>=20.0.0'} + + shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + + shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + + smob@1.6.2: + resolution: {integrity: sha512-RQsvleCbF8cVHEv+xuDGaA4pOizFqJ0GgjtMSRo6oP8pnN7WsigHgVGey6aILRBKv4W2YOMHLqbKdnB6hpB9fw==} + engines: {node: '>=20.0.0'} + + source-map-support@0.5.21: + resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} + + source-map@0.6.1: + resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} + engines: {node: '>=0.10.0'} + + string-width@4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} + + strip-ansi@6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + + strip-json-comments@3.1.1: + resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} + engines: {node: '>=8'} + + supports-color@7.2.0: + resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} + engines: {node: '>=8'} + + supports-color@8.1.1: + resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==} + engines: {node: '>=10'} + + supports-preserve-symlinks-flag@1.0.0: + resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} + engines: {node: '>= 0.4'} + + terser@5.51.2: + resolution: {integrity: sha512-bWnjSNscmuI+GJze6ZupnHP8G/cTcsJF+bXCeQknk2SHQsgbNJnLrqiH9jZ2W4STPVXH2mDKKRX3iwPhc9Cn/Q==} + engines: {node: '>=10'} + hasBin: true + + text-table@0.2.0: + resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + + type-check@0.4.0: + resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} + engines: {node: '>= 0.8.0'} + + type-fest@0.20.2: + resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==} + engines: {node: '>=10'} + + uri-js@4.4.1: + resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} + + which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + + word-wrap@1.2.5: + resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} + engines: {node: '>=0.10.0'} + + workerpool@6.5.1: + resolution: {integrity: sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==} + + wrap-ansi@7.0.0: + resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} + engines: {node: '>=10'} + + wrappy@1.0.2: + resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} + + y18n@5.0.8: + resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} + engines: {node: '>=10'} + + yargs-parser@20.2.9: + resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==} + engines: {node: '>=10'} + + yargs-unparser@2.0.0: + resolution: {integrity: sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==} + engines: {node: '>=10'} + + yargs@16.2.2: + resolution: {integrity: sha512-Nt9ZJjXTv5R8MHbqby/wXQ6Gi0Bb3TcYZkR1bzuL4yB2OxWPkXknz513gEF0GoA6tn00UpbPvERW8rzCuWCA6w==} + engines: {node: '>=10'} + + yocto-queue@0.1.0: + resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} + engines: {node: '>=10'} + +snapshots: + + '@eslint-community/eslint-utils@4.10.1(eslint@8.57.1)': + dependencies: + eslint: 8.57.1 + eslint-visitor-keys: 3.4.3 + + '@eslint-community/regexpp@4.12.2': {} + + '@eslint/eslintrc@2.1.4': + dependencies: + ajv: 6.15.0 + debug: 4.4.3(supports-color@8.1.1) + espree: 9.6.1 + globals: 13.24.0 + ignore: 5.3.2 + import-fresh: 3.3.1 + js-yaml: 4.3.2 + minimatch: 3.1.5 + strip-json-comments: 3.1.1 + transitivePeerDependencies: + - supports-color + + '@eslint/js@8.57.1': {} + + '@humanwhocodes/config-array@0.13.0': + dependencies: + '@humanwhocodes/object-schema': 2.0.3 + debug: 4.4.3(supports-color@8.1.1) + minimatch: 3.1.5 + transitivePeerDependencies: + - supports-color + + '@humanwhocodes/module-importer@1.0.1': {} + + '@humanwhocodes/object-schema@2.0.3': {} + + '@jridgewell/gen-mapping@0.3.13': + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/resolve-uri@3.1.2': {} + + '@jridgewell/source-map@0.3.11': + dependencies: + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/sourcemap-codec@1.6.0': {} + + '@jridgewell/trace-mapping@0.3.31': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.6.0 + + '@napi-rs/lzma-linux-x64-gnu@1.5.1': + optional: true + + '@nodelib/fs.scandir@2.1.5': + dependencies: + '@nodelib/fs.stat': 2.0.5 + run-parallel: 1.2.0 + + '@nodelib/fs.stat@2.0.5': {} + + '@nodelib/fs.walk@1.2.8': + dependencies: + '@nodelib/fs.scandir': 2.1.5 + fastq: 1.20.3 + + '@rollup/plugin-node-resolve@16.0.3(rollup@4.67.4)': + dependencies: + '@rollup/pluginutils': 5.5.1(rollup@4.67.4) + '@types/resolve': 1.20.2 + deepmerge: 4.3.1 + is-module: 1.0.0 + resolve: 1.22.13 + optionalDependencies: + rollup: 4.67.4 + + '@rollup/plugin-terser@1.0.2(rollup@4.67.4)': + dependencies: + serialize-javascript: 7.1.4 + smob: 1.6.2 + terser: 5.51.2 + optionalDependencies: + rollup: 4.67.4 + + '@rollup/pluginutils@5.5.1(rollup@4.67.4)': + dependencies: + '@types/estree': 1.0.10 + estree-walker: 2.0.2 + picomatch: 4.0.7 + optionalDependencies: + rollup: 4.67.4 + + '@rollup/rollup-android-arm-eabi@4.67.4': + optional: true + + '@rollup/rollup-android-arm64@4.67.4': + optional: true + + '@rollup/rollup-android-x64@4.67.4': + optional: true + + '@rollup/rollup-darwin-arm64@4.67.4': + optional: true + + '@rollup/rollup-darwin-x64@4.67.4': + optional: true + + '@rollup/rollup-freebsd-arm64@4.67.4': + optional: true + + '@rollup/rollup-freebsd-x64@4.67.4': + optional: true + + '@rollup/rollup-linux-arm-gnueabihf@4.67.4': + optional: true + + '@rollup/rollup-linux-arm-musleabihf@4.67.4': + optional: true + + '@rollup/rollup-linux-arm64-gnu@4.67.4': + optional: true + + '@rollup/rollup-linux-arm64-musl@4.67.4': + optional: true + + '@rollup/rollup-linux-loong64-gnu@4.67.4': + optional: true + + '@rollup/rollup-linux-loong64-musl@4.67.4': + optional: true + + '@rollup/rollup-linux-ppc64-gnu@4.67.4': + optional: true + + '@rollup/rollup-linux-ppc64-musl@4.67.4': + optional: true + + '@rollup/rollup-linux-riscv64-gnu@4.67.4': + optional: true + + '@rollup/rollup-linux-riscv64-musl@4.67.4': + optional: true + + '@rollup/rollup-linux-s390x-gnu@4.67.4': + optional: true + + '@rollup/rollup-linux-x64-gnu@4.67.4': + optional: true + + '@rollup/rollup-linux-x64-musl@4.67.4': + optional: true + + '@rollup/rollup-openbsd-x64@4.67.4': + optional: true + + '@rollup/rollup-openharmony-arm64@4.67.4': + optional: true + + '@rollup/rollup-win32-arm64-msvc@4.67.4': + optional: true + + '@rollup/rollup-win32-ia32-msvc@4.67.4': + optional: true + + '@rollup/rollup-win32-x64-gnu@4.67.4': + optional: true + + '@rollup/rollup-win32-x64-msvc@4.67.4': + optional: true + + '@types/estree@1.0.10': {} + + '@types/resolve@1.20.2': {} + + '@ungap/structured-clone@1.4.0': {} + + acorn-jsx@5.3.2(acorn@8.19.0): + dependencies: + acorn: 8.19.0 + + acorn@8.19.0: {} + + ajv@6.15.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-json-stable-stringify: 2.1.0 + json-schema-traverse: 0.4.1 + uri-js: 4.4.1 + + ansi-colors@4.1.3: {} + + ansi-regex@5.0.1: {} + + ansi-styles@4.3.0: + dependencies: + color-convert: 2.0.1 + + anymatch@3.1.3: + dependencies: + normalize-path: 3.0.0 + picomatch: 2.3.2 + + argparse@2.0.1: {} + + balanced-match@1.0.2: {} + + binary-extensions@2.3.0: {} + + brace-expansion@1.1.21: + dependencies: + balanced-match: 1.0.2 + concat-map: 0.0.1 + + brace-expansion@2.1.7: + dependencies: + balanced-match: 1.0.2 + + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + + browser-stdout@1.3.1: {} + + buffer-from@1.1.2: {} + + callsites@3.1.0: {} + + camelcase@6.3.0: {} + + chalk@4.1.2: + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + + chokidar@3.6.0: + dependencies: + anymatch: 3.1.3 + braces: 3.0.3 + glob-parent: 5.1.2 + is-binary-path: 2.1.0 + is-glob: 4.0.3 + normalize-path: 3.0.0 + readdirp: 3.6.0 + optionalDependencies: + fsevents: 2.3.3 + + cliui@7.0.4: + dependencies: + string-width: 4.2.3 + strip-ansi: 6.0.1 + wrap-ansi: 7.0.0 + + color-convert@2.0.1: + dependencies: + color-name: 1.1.4 + + color-name@1.1.4: {} + + commander@2.20.3: {} + + concat-map@0.0.1: {} + + cross-spawn@7.0.6: + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + + d3-path@3.1.0: {} + + d3-polygon@3.0.1: {} + + debug@4.4.3(supports-color@8.1.1): + dependencies: + ms: 2.1.3 + optionalDependencies: + supports-color: 8.1.1 + + decamelize@4.0.0: {} + + deep-is@0.1.4: {} + + deepmerge@4.3.1: {} + + diff@5.2.2: {} + + doctrine@3.0.0: + dependencies: + esutils: 2.0.3 + + emoji-regex@8.0.0: {} + + es-errors@1.3.0: {} + + escalade@3.2.0: {} + + escape-string-regexp@4.0.0: {} + + eslint-scope@7.2.2: + dependencies: + esrecurse: 4.3.0 + estraverse: 5.3.0 + + eslint-visitor-keys@3.4.3: {} + + eslint@8.57.1: + dependencies: + '@eslint-community/eslint-utils': 4.10.1(eslint@8.57.1) + '@eslint-community/regexpp': 4.12.2 + '@eslint/eslintrc': 2.1.4 + '@eslint/js': 8.57.1 + '@humanwhocodes/config-array': 0.13.0 + '@humanwhocodes/module-importer': 1.0.1 + '@nodelib/fs.walk': 1.2.8 + '@ungap/structured-clone': 1.4.0 + ajv: 6.15.0 + chalk: 4.1.2 + cross-spawn: 7.0.6 + debug: 4.4.3(supports-color@8.1.1) + doctrine: 3.0.0 + escape-string-regexp: 4.0.0 + eslint-scope: 7.2.2 + eslint-visitor-keys: 3.4.3 + espree: 9.6.1 + esquery: 1.7.0 + esutils: 2.0.3 + fast-deep-equal: 3.1.3 + file-entry-cache: 6.0.1 + find-up: 5.0.0 + glob-parent: 6.0.2 + globals: 13.24.0 + graphemer: 1.4.0 + ignore: 5.3.2 + imurmurhash: 0.1.4 + is-glob: 4.0.3 + is-path-inside: 3.0.3 + js-yaml: 4.3.2 + json-stable-stringify-without-jsonify: 1.0.1 + levn: 0.4.1 + lodash.merge: 4.6.2 + minimatch: 3.1.5 + natural-compare: 1.4.0 + optionator: 0.9.4 + strip-ansi: 6.0.1 + text-table: 0.2.0 + transitivePeerDependencies: + - supports-color + + espree@9.6.1: + dependencies: + acorn: 8.19.0 + acorn-jsx: 5.3.2(acorn@8.19.0) + eslint-visitor-keys: 3.4.3 + + esquery@1.7.0: + dependencies: + estraverse: 5.3.0 + + esrecurse@4.3.0: + dependencies: + estraverse: 5.3.0 + + estraverse@5.3.0: {} + + estree-walker@2.0.2: {} + + esutils@2.0.3: {} + + fast-deep-equal@3.1.3: {} + + fast-json-stable-stringify@2.1.0: {} + + fast-levenshtein@2.0.6: {} + + fastq@1.20.3: + dependencies: + reusify: 1.1.0 + + file-entry-cache@6.0.1: + dependencies: + flat-cache: 3.2.0 + + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + + find-up@5.0.0: + dependencies: + locate-path: 6.0.0 + path-exists: 4.0.0 + + flat-cache@3.2.0: + dependencies: + flatted: 3.4.4 + keyv: 4.5.4 + rimraf: 3.0.2 + + flat@5.0.2: {} + + flatted@3.4.4: {} + + fs.realpath@1.0.0: {} + + fsevents@2.3.3: + optional: true + + function-bind@1.1.2: {} + + get-caller-file@2.0.5: {} + + glob-parent@5.1.2: + dependencies: + is-glob: 4.0.3 + + glob-parent@6.0.2: + dependencies: + is-glob: 4.0.3 + + glob@7.2.3: + dependencies: + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 3.1.5 + once: 1.4.0 + path-is-absolute: 1.0.1 + + glob@8.1.0: + dependencies: + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 5.1.9 + once: 1.4.0 + + globals@13.24.0: + dependencies: + type-fest: 0.20.2 + + graphemer@1.4.0: {} + + has-flag@4.0.0: {} + + hasown@2.0.4: + dependencies: + function-bind: 1.1.2 + + he@1.2.0: {} + + ignore@5.3.2: {} + + import-fresh@3.3.1: + dependencies: + parent-module: 1.0.1 + resolve-from: 4.0.0 + + imurmurhash@0.1.4: {} + + inflight@1.0.6: + dependencies: + once: 1.4.0 + wrappy: 1.0.2 + + inherits@2.0.4: {} + + is-binary-path@2.1.0: + dependencies: + binary-extensions: 2.3.0 + + is-core-module@2.17.0: + dependencies: + hasown: 2.0.4 + + is-extglob@2.1.1: {} + + is-fullwidth-code-point@3.0.0: {} + + is-glob@4.0.3: + dependencies: + is-extglob: 2.1.1 + + is-module@1.0.0: {} + + is-number@7.0.0: {} + + is-path-inside@3.0.3: {} + + is-plain-obj@2.1.0: {} + + is-unicode-supported@0.1.0: {} + + isexe@2.0.0: {} + + js-yaml@4.3.2: + dependencies: + argparse: 2.0.1 + + json-buffer@3.0.1: {} + + json-schema-traverse@0.4.1: {} + + json-stable-stringify-without-jsonify@1.0.1: {} + + keyv@4.5.4: + dependencies: + json-buffer: 3.0.1 + + levn@0.4.1: + dependencies: + prelude-ls: 1.2.1 + type-check: 0.4.0 + + locate-path@6.0.0: + dependencies: + p-locate: 5.0.0 + + lodash.merge@4.6.2: {} + + log-symbols@4.1.0: + dependencies: + chalk: 4.1.2 + is-unicode-supported: 0.1.0 + + minimatch@3.1.5: + dependencies: + brace-expansion: 1.1.21 + + minimatch@5.1.9: + dependencies: + brace-expansion: 2.1.7 + + mocha@10.8.2: + dependencies: + ansi-colors: 4.1.3 + browser-stdout: 1.3.1 + chokidar: 3.6.0 + debug: 4.4.3(supports-color@8.1.1) + diff: 5.2.2 + escape-string-regexp: 4.0.0 + find-up: 5.0.0 + glob: 8.1.0 + he: 1.2.0 + js-yaml: 4.3.2 + log-symbols: 4.1.0 + minimatch: 5.1.9 + ms: 2.1.3 + serialize-javascript: 6.0.2 + strip-json-comments: 3.1.1 + supports-color: 8.1.1 + workerpool: 6.5.1 + yargs: 16.2.2 + yargs-parser: 20.2.9 + yargs-unparser: 2.0.0 + + ms@2.1.3: {} + + natural-compare@1.4.0: {} + + normalize-path@3.0.0: {} + + once@1.4.0: + dependencies: + wrappy: 1.0.2 + + optionator@0.9.4: + dependencies: + deep-is: 0.1.4 + fast-levenshtein: 2.0.6 + levn: 0.4.1 + prelude-ls: 1.2.1 + type-check: 0.4.0 + word-wrap: 1.2.5 + + p-limit@3.1.0: + dependencies: + yocto-queue: 0.1.0 + + p-locate@5.0.0: + dependencies: + p-limit: 3.1.0 + + parent-module@1.0.1: + dependencies: + callsites: 3.1.0 + + path-exists@4.0.0: {} + + path-is-absolute@1.0.1: {} + + path-key@3.1.1: {} + + path-parse@1.0.7: {} + + picomatch@2.3.2: {} + + picomatch@4.0.7: {} + + prelude-ls@1.2.1: {} + + punycode@2.3.1: {} + + queue-microtask@1.2.3: {} + + randombytes@2.1.0: + dependencies: + safe-buffer: 5.2.1 + + readdirp@3.6.0: + dependencies: + picomatch: 2.3.2 + + require-directory@2.1.1: {} + + resolve-from@4.0.0: {} + + resolve@1.22.13: + dependencies: + es-errors: 1.3.0 + is-core-module: 2.17.0 + path-parse: 1.0.7 + supports-preserve-symlinks-flag: 1.0.0 + + reusify@1.1.0: {} + + rimraf@3.0.2: + dependencies: + glob: 7.2.3 + + rollup@4.67.4: + dependencies: + '@types/estree': 1.0.10 + optionalDependencies: + '@napi-rs/lzma-linux-x64-gnu': 1.5.1 + '@rollup/rollup-android-arm-eabi': 4.67.4 + '@rollup/rollup-android-arm64': 4.67.4 + '@rollup/rollup-android-x64': 4.67.4 + '@rollup/rollup-darwin-arm64': 4.67.4 + '@rollup/rollup-darwin-x64': 4.67.4 + '@rollup/rollup-freebsd-arm64': 4.67.4 + '@rollup/rollup-freebsd-x64': 4.67.4 + '@rollup/rollup-linux-arm-gnueabihf': 4.67.4 + '@rollup/rollup-linux-arm-musleabihf': 4.67.4 + '@rollup/rollup-linux-arm64-gnu': 4.67.4 + '@rollup/rollup-linux-arm64-musl': 4.67.4 + '@rollup/rollup-linux-loong64-gnu': 4.67.4 + '@rollup/rollup-linux-loong64-musl': 4.67.4 + '@rollup/rollup-linux-ppc64-gnu': 4.67.4 + '@rollup/rollup-linux-ppc64-musl': 4.67.4 + '@rollup/rollup-linux-riscv64-gnu': 4.67.4 + '@rollup/rollup-linux-riscv64-musl': 4.67.4 + '@rollup/rollup-linux-s390x-gnu': 4.67.4 + '@rollup/rollup-linux-x64-gnu': 4.67.4 + '@rollup/rollup-linux-x64-musl': 4.67.4 + '@rollup/rollup-openbsd-x64': 4.67.4 + '@rollup/rollup-openharmony-arm64': 4.67.4 + '@rollup/rollup-win32-arm64-msvc': 4.67.4 + '@rollup/rollup-win32-ia32-msvc': 4.67.4 + '@rollup/rollup-win32-x64-gnu': 4.67.4 + '@rollup/rollup-win32-x64-msvc': 4.67.4 + fsevents: 2.3.3 + + run-parallel@1.2.0: + dependencies: + queue-microtask: 1.2.3 + + safe-buffer@5.2.1: {} + + serialize-javascript@6.0.2: + dependencies: + randombytes: 2.1.0 + + serialize-javascript@7.1.4: {} + + shebang-command@2.0.0: + dependencies: + shebang-regex: 3.0.0 + + shebang-regex@3.0.0: {} + + smob@1.6.2: {} + + source-map-support@0.5.21: + dependencies: + buffer-from: 1.1.2 + source-map: 0.6.1 + + source-map@0.6.1: {} + + string-width@4.2.3: + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + + strip-ansi@6.0.1: + dependencies: + ansi-regex: 5.0.1 + + strip-json-comments@3.1.1: {} + + supports-color@7.2.0: + dependencies: + has-flag: 4.0.0 + + supports-color@8.1.1: + dependencies: + has-flag: 4.0.0 + + supports-preserve-symlinks-flag@1.0.0: {} + + terser@5.51.2: + dependencies: + '@jridgewell/source-map': 0.3.11 + acorn: 8.19.0 + commander: 2.20.3 + source-map-support: 0.5.21 + + text-table@0.2.0: {} + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + + type-check@0.4.0: + dependencies: + prelude-ls: 1.2.1 + + type-fest@0.20.2: {} + + uri-js@4.4.1: + dependencies: + punycode: 2.3.1 + + which@2.0.2: + dependencies: + isexe: 2.0.0 + + word-wrap@1.2.5: {} + + workerpool@6.5.1: {} + + wrap-ansi@7.0.0: + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + + wrappy@1.0.2: {} + + y18n@5.0.8: {} + + yargs-parser@20.2.9: {} + + yargs-unparser@2.0.0: + dependencies: + camelcase: 6.3.0 + decamelize: 4.0.0 + flat: 5.0.2 + is-plain-obj: 2.1.0 + + yargs@16.2.2: + dependencies: + cliui: 7.0.4 + escalade: 3.2.0 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + string-width: 4.2.3 + y18n: 5.0.8 + yargs-parser: 20.2.9 + + yocto-queue@0.1.0: {} diff --git a/rollup.config.js b/rollup.config.js index 2d3664e6..a13a979b 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,44 +1,72 @@ -import {readFileSync} from "fs"; -import {terser} from "rollup-plugin-terser"; -import meta from "./package.json" assert {type: "json"}; +import {readFileSync} from "node:fs"; +import RollupNode from "@rollup/plugin-node-resolve"; +import RollupTerser from "@rollup/plugin-terser"; +import meta from "./package.json" with {type: "json"}; // Extract copyrights from the LICENSE. const copyright = readFileSync("./LICENSE", "utf-8") .split(/\n/g) - .filter(line => /^Copyright\s+/.test(line)) - .map(line => line.replace(/^Copyright\s+/, "")) + .filter(line => /^copyright\s+/i.test(line)) + .map(line => line.replace(/^copyright\s+/i, "")) .join(", "); -const config = { - input: "src/index.js", - external: Object.keys(meta.dependencies || {}).filter(key => /^d3-/.test(key)), +const banner = `// ${meta.homepage} v${meta.version} Copyright ${copyright}`; + +const terser = RollupTerser({ output: { - file: `dist/${meta.name}.js`, - name: "d3", - format: "umd", - indent: false, - extend: true, - banner: `// ${meta.homepage} v${meta.version} Copyright ${copyright}`, - globals: Object.assign({}, ...Object.keys(meta.dependencies || {}).filter(key => /^d3-/.test(key)).map(key => ({[key]: "d3"}))) - }, - plugins: [] -}; + preamble: banner + } +}); + +function config(options) { + return { + ...options, + input: "src/index.js", + external: Object.keys(meta.dependencies || {}).filter(key => /^d3-/.test(key)), + output: { + ...options.output, + name: "d3", + indent: false, + extend: true, + banner, + globals: Object.assign({}, ...Object.keys(meta.dependencies || {}).filter(key => /^d3-/.test(key)).map(key => ({[key]: "d3"}))) + }, + plugins: [ + RollupNode(), + ...(options.plugins ?? []) + ] + }; +} export default [ - config, - { - ...config, + config({ output: { - ...config.output, - file: `dist/${meta.name}.min.js` + file: `dist/${meta.name}.mjs`, + format: "es" + } + }), + config({ + output: { + file: `dist/${meta.name}.min.mjs`, + format: "es" }, plugins: [ - ...config.plugins, - terser({ - output: { - preamble: config.output.banner - } - }) + terser ] - } + }), + config({ + output: { + file: `dist/${meta.name}.js`, + format: "umd", + } + }), + config({ + output: { + file: `dist/${meta.name}.min.js`, + format: "umd" + }, + plugins: [ + terser + ] + }) ]; diff --git a/yarn.lock b/yarn.lock deleted file mode 100644 index f9b9fb4e..00000000 --- a/yarn.lock +++ /dev/null @@ -1,1177 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@babel/code-frame@^7.10.4": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.18.6.tgz#3b25d38c89600baa2dcc219edfa88a74eb2c427a" - integrity sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q== - dependencies: - "@babel/highlight" "^7.18.6" - -"@babel/helper-validator-identifier@^7.18.6": - version "7.19.1" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz#7eea834cf32901ffdc1a7ee555e2f9c27e249ca2" - integrity sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w== - -"@babel/highlight@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.18.6.tgz#81158601e93e2563795adcbfbdf5d64be3f2ecdf" - integrity sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g== - dependencies: - "@babel/helper-validator-identifier" "^7.18.6" - chalk "^2.0.0" - js-tokens "^4.0.0" - -"@eslint/eslintrc@^1.4.0": - version "1.4.0" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.4.0.tgz#8ec64e0df3e7a1971ee1ff5158da87389f167a63" - integrity sha512-7yfvXy6MWLgWSFsLhz5yH3iQ52St8cdUY6FoGieKkRDVxuxmrNuUetIuu6cmjNWwniUHiWXjxCr5tTXDrbYS5A== - dependencies: - ajv "^6.12.4" - debug "^4.3.2" - espree "^9.4.0" - globals "^13.19.0" - ignore "^5.2.0" - import-fresh "^3.2.1" - js-yaml "^4.1.0" - minimatch "^3.1.2" - strip-json-comments "^3.1.1" - -"@humanwhocodes/config-array@^0.11.8": - version "0.11.8" - resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.8.tgz#03595ac2075a4dc0f191cc2131de14fbd7d410b9" - integrity sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g== - dependencies: - "@humanwhocodes/object-schema" "^1.2.1" - debug "^4.1.1" - minimatch "^3.0.5" - -"@humanwhocodes/module-importer@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz#af5b2691a22b44be847b0ca81641c5fb6ad0172c" - integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== - -"@humanwhocodes/object-schema@^1.2.1": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" - integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== - -"@jridgewell/gen-mapping@^0.3.0": - version "0.3.2" - resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz#c1aedc61e853f2bb9f5dfe6d4442d3b565b253b9" - integrity sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A== - dependencies: - "@jridgewell/set-array" "^1.0.1" - "@jridgewell/sourcemap-codec" "^1.4.10" - "@jridgewell/trace-mapping" "^0.3.9" - -"@jridgewell/resolve-uri@3.1.0": - version "3.1.0" - resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78" - integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w== - -"@jridgewell/set-array@^1.0.1": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72" - integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== - -"@jridgewell/source-map@^0.3.2": - version "0.3.2" - resolved "https://registry.yarnpkg.com/@jridgewell/source-map/-/source-map-0.3.2.tgz#f45351aaed4527a298512ec72f81040c998580fb" - integrity sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw== - dependencies: - "@jridgewell/gen-mapping" "^0.3.0" - "@jridgewell/trace-mapping" "^0.3.9" - -"@jridgewell/sourcemap-codec@1.4.14", "@jridgewell/sourcemap-codec@^1.4.10": - version "1.4.14" - resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24" - integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw== - -"@jridgewell/trace-mapping@^0.3.9": - version "0.3.17" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz#793041277af9073b0951a7fe0f0d8c4c98c36985" - integrity sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g== - dependencies: - "@jridgewell/resolve-uri" "3.1.0" - "@jridgewell/sourcemap-codec" "1.4.14" - -"@nodelib/fs.scandir@2.1.5": - version "2.1.5" - resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" - integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== - dependencies: - "@nodelib/fs.stat" "2.0.5" - run-parallel "^1.1.9" - -"@nodelib/fs.stat@2.0.5": - version "2.0.5" - resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" - integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== - -"@nodelib/fs.walk@^1.2.8": - version "1.2.8" - resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" - integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== - dependencies: - "@nodelib/fs.scandir" "2.1.5" - fastq "^1.6.0" - -"@types/node@*": - version "18.11.17" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.17.tgz#5c009e1d9c38f4a2a9d45c0b0c493fe6cdb4bcb5" - integrity sha512-HJSUJmni4BeDHhfzn6nF0sVmd1SMezP7/4F0Lq+aXzmp2xm9O7WXrUtHW/CHlYVtZUbByEvWidHqRtcJXGF2Ng== - -acorn-jsx@^5.3.2: - version "5.3.2" - resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" - integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== - -acorn@^8.5.0, acorn@^8.8.0: - version "8.8.1" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.1.tgz#0a3f9cbecc4ec3bea6f0a80b66ae8dd2da250b73" - integrity sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA== - -ajv@^6.10.0, ajv@^6.12.4: - version "6.12.6" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" - integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== - dependencies: - fast-deep-equal "^3.1.1" - fast-json-stable-stringify "^2.0.0" - json-schema-traverse "^0.4.1" - uri-js "^4.2.2" - -ansi-colors@4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.1.tgz#cbb9ae256bf750af1eab344f229aa27fe94ba348" - integrity sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA== - -ansi-regex@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" - integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== - -ansi-styles@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" - integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== - dependencies: - color-convert "^1.9.0" - -ansi-styles@^4.0.0, ansi-styles@^4.1.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" - integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== - dependencies: - color-convert "^2.0.1" - -anymatch@~3.1.2: - version "3.1.3" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e" - integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== - dependencies: - normalize-path "^3.0.0" - picomatch "^2.0.4" - -argparse@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" - integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== - -balanced-match@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" - integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== - -binary-extensions@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d" - integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA== - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -brace-expansion@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae" - integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== - dependencies: - balanced-match "^1.0.0" - -braces@~3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" - integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== - dependencies: - fill-range "^7.0.1" - -browser-stdout@1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.1.tgz#baa559ee14ced73452229bad7326467c61fabd60" - integrity sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw== - -buffer-from@^1.0.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" - integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== - -callsites@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" - integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== - -camelcase@^6.0.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" - integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== - -chalk@^2.0.0: - version "2.4.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" - integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== - dependencies: - ansi-styles "^3.2.1" - escape-string-regexp "^1.0.5" - supports-color "^5.3.0" - -chalk@^4.0.0, chalk@^4.1.0: - version "4.1.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - -chokidar@3.5.3: - version "3.5.3" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd" - integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== - dependencies: - anymatch "~3.1.2" - braces "~3.0.2" - glob-parent "~5.1.2" - is-binary-path "~2.1.0" - is-glob "~4.0.1" - normalize-path "~3.0.0" - readdirp "~3.6.0" - optionalDependencies: - fsevents "~2.3.2" - -cliui@^7.0.2: - version "7.0.4" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" - integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^7.0.0" - -color-convert@^1.9.0: - version "1.9.3" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" - integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== - dependencies: - color-name "1.1.3" - -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - -color-name@1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - -commander@^2.20.0: - version "2.20.3" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" - integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== - -cross-spawn@^7.0.2: - version "7.0.3" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" - integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== - dependencies: - path-key "^3.1.0" - shebang-command "^2.0.0" - which "^2.0.1" - -d3-path@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/d3-path/-/d3-path-3.1.0.tgz#22df939032fb5a71ae8b1800d61ddb7851c42526" - integrity sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ== - -"d3-polygon@1 - 3": - version "3.0.1" - resolved "https://registry.yarnpkg.com/d3-polygon/-/d3-polygon-3.0.1.tgz#0b45d3dd1c48a29c8e057e6135693ec80bf16398" - integrity sha512-3vbA7vXYwfe1SYhED++fPUQlWSYTTGmFmQiany/gdbiWgU/iEyQzyymwL9SkJjFFuCS4902BSzewVGsHHmHtXg== - -debug@4.3.4, debug@^4.1.1, debug@^4.3.2: - version "4.3.4" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" - integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== - dependencies: - ms "2.1.2" - -decamelize@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-4.0.0.tgz#aa472d7bf660eb15f3494efd531cab7f2a709837" - integrity sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ== - -deep-is@^0.1.3: - version "0.1.4" - resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" - integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== - -diff@5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/diff/-/diff-5.0.0.tgz#7ed6ad76d859d030787ec35855f5b1daf31d852b" - integrity sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w== - -doctrine@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" - integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== - dependencies: - esutils "^2.0.2" - -emoji-regex@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" - integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== - -escalade@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" - integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== - -escape-string-regexp@4.0.0, escape-string-regexp@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" - integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== - -escape-string-regexp@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== - -eslint-scope@^7.1.1: - version "7.1.1" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.1.1.tgz#fff34894c2f65e5226d3041ac480b4513a163642" - integrity sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw== - dependencies: - esrecurse "^4.3.0" - estraverse "^5.2.0" - -eslint-utils@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-3.0.0.tgz#8aebaface7345bb33559db0a1f13a1d2d48c3672" - integrity sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA== - dependencies: - eslint-visitor-keys "^2.0.0" - -eslint-visitor-keys@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" - integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== - -eslint-visitor-keys@^3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826" - integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA== - -eslint@8: - version "8.30.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.30.0.tgz#83a506125d089eef7c5b5910eeea824273a33f50" - integrity sha512-MGADB39QqYuzEGov+F/qb18r4i7DohCDOfatHaxI2iGlPuC65bwG2gxgO+7DkyL38dRFaRH7RaRAgU6JKL9rMQ== - dependencies: - "@eslint/eslintrc" "^1.4.0" - "@humanwhocodes/config-array" "^0.11.8" - "@humanwhocodes/module-importer" "^1.0.1" - "@nodelib/fs.walk" "^1.2.8" - ajv "^6.10.0" - chalk "^4.0.0" - cross-spawn "^7.0.2" - debug "^4.3.2" - doctrine "^3.0.0" - escape-string-regexp "^4.0.0" - eslint-scope "^7.1.1" - eslint-utils "^3.0.0" - eslint-visitor-keys "^3.3.0" - espree "^9.4.0" - esquery "^1.4.0" - esutils "^2.0.2" - fast-deep-equal "^3.1.3" - file-entry-cache "^6.0.1" - find-up "^5.0.0" - glob-parent "^6.0.2" - globals "^13.19.0" - grapheme-splitter "^1.0.4" - ignore "^5.2.0" - import-fresh "^3.0.0" - imurmurhash "^0.1.4" - is-glob "^4.0.0" - is-path-inside "^3.0.3" - js-sdsl "^4.1.4" - js-yaml "^4.1.0" - json-stable-stringify-without-jsonify "^1.0.1" - levn "^0.4.1" - lodash.merge "^4.6.2" - minimatch "^3.1.2" - natural-compare "^1.4.0" - optionator "^0.9.1" - regexpp "^3.2.0" - strip-ansi "^6.0.1" - strip-json-comments "^3.1.0" - text-table "^0.2.0" - -espree@^9.4.0: - version "9.4.1" - resolved "https://registry.yarnpkg.com/espree/-/espree-9.4.1.tgz#51d6092615567a2c2cff7833445e37c28c0065bd" - integrity sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg== - dependencies: - acorn "^8.8.0" - acorn-jsx "^5.3.2" - eslint-visitor-keys "^3.3.0" - -esquery@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.4.0.tgz#2148ffc38b82e8c7057dfed48425b3e61f0f24a5" - integrity sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w== - dependencies: - estraverse "^5.1.0" - -esrecurse@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921" - integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== - dependencies: - estraverse "^5.2.0" - -estraverse@^5.1.0, estraverse@^5.2.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" - integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== - -esutils@^2.0.2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" - integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== - -fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" - integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== - -fast-json-stable-stringify@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" - integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== - -fast-levenshtein@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" - integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== - -fastq@^1.6.0: - version "1.14.0" - resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.14.0.tgz#107f69d7295b11e0fccc264e1fc6389f623731ce" - integrity sha512-eR2D+V9/ExcbF9ls441yIuN6TI2ED1Y2ZcA5BmMtJsOkWOFRJQ0Jt0g1UwqXJJVAb+V+umH5Dfr8oh4EVP7VVg== - dependencies: - reusify "^1.0.4" - -file-entry-cache@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" - integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== - dependencies: - flat-cache "^3.0.4" - -fill-range@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" - integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== - dependencies: - to-regex-range "^5.0.1" - -find-up@5.0.0, find-up@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" - integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== - dependencies: - locate-path "^6.0.0" - path-exists "^4.0.0" - -flat-cache@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11" - integrity sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg== - dependencies: - flatted "^3.1.0" - rimraf "^3.0.2" - -flat@^5.0.2: - version "5.0.2" - resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" - integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ== - -flatted@^3.1.0: - version "3.2.7" - resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.7.tgz#609f39207cb614b89d0765b477cb2d437fbf9787" - integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ== - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== - -fsevents@~2.3.2: - version "2.3.2" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" - integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== - -get-caller-file@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" - integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== - -glob-parent@^6.0.2: - version "6.0.2" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" - integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== - dependencies: - is-glob "^4.0.3" - -glob-parent@~5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" - integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== - dependencies: - is-glob "^4.0.1" - -glob@7.2.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023" - integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -glob@^7.1.3: - version "7.2.3" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" - integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.1.1" - once "^1.3.0" - path-is-absolute "^1.0.0" - -globals@^13.19.0: - version "13.19.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-13.19.0.tgz#7a42de8e6ad4f7242fbcca27ea5b23aca367b5c8" - integrity sha512-dkQ957uSRWHw7CFXLUtUHQI3g3aWApYhfNR2O6jn/907riyTYKVBmxYVROkBcY614FSSeSJh7Xm7SrUWCxvJMQ== - dependencies: - type-fest "^0.20.2" - -grapheme-splitter@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz#9cf3a665c6247479896834af35cf1dbb4400767e" - integrity sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ== - -has-flag@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" - integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== - -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - -he@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" - integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== - -ignore@^5.2.0: - version "5.2.4" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.4.tgz#a291c0c6178ff1b960befe47fcdec301674a6324" - integrity sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ== - -import-fresh@^3.0.0, import-fresh@^3.2.1: - version "3.3.0" - resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" - integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== - dependencies: - parent-module "^1.0.0" - resolve-from "^4.0.0" - -imurmurhash@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" - integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2: - version "2.0.4" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - -is-binary-path@~2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" - integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== - dependencies: - binary-extensions "^2.0.0" - -is-extglob@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" - integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== - -is-fullwidth-code-point@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" - integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== - -is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: - version "4.0.3" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" - integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== - dependencies: - is-extglob "^2.1.1" - -is-number@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" - integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== - -is-path-inside@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" - integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== - -is-plain-obj@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287" - integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA== - -is-unicode-supported@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" - integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== - -jest-worker@^26.2.1: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.6.2.tgz#7f72cbc4d643c365e27b9fd775f9d0eaa9c7a8ed" - integrity sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ== - dependencies: - "@types/node" "*" - merge-stream "^2.0.0" - supports-color "^7.0.0" - -js-sdsl@^4.1.4: - version "4.2.0" - resolved "https://registry.yarnpkg.com/js-sdsl/-/js-sdsl-4.2.0.tgz#278e98b7bea589b8baaf048c20aeb19eb7ad09d0" - integrity sha512-dyBIzQBDkCqCu+0upx25Y2jGdbTGxE9fshMsCdK0ViOongpV+n5tXRcZY9v7CaVQ79AGS9KA1KHtojxiM7aXSQ== - -js-tokens@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" - integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== - -js-yaml@4.1.0, js-yaml@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" - integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== - dependencies: - argparse "^2.0.1" - -json-schema-traverse@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" - integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== - -json-stable-stringify-without-jsonify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" - integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== - -levn@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" - integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== - dependencies: - prelude-ls "^1.2.1" - type-check "~0.4.0" - -locate-path@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" - integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== - dependencies: - p-locate "^5.0.0" - -lodash.merge@^4.6.2: - version "4.6.2" - resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" - integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== - -log-symbols@4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" - integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== - dependencies: - chalk "^4.1.0" - is-unicode-supported "^0.1.0" - -merge-stream@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" - integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== - -minimatch@5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.0.1.tgz#fb9022f7528125187c92bd9e9b6366be1cf3415b" - integrity sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g== - dependencies: - brace-expansion "^2.0.1" - -minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" - integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== - dependencies: - brace-expansion "^1.1.7" - -mocha@10: - version "10.2.0" - resolved "https://registry.yarnpkg.com/mocha/-/mocha-10.2.0.tgz#1fd4a7c32ba5ac372e03a17eef435bd00e5c68b8" - integrity sha512-IDY7fl/BecMwFHzoqF2sg/SHHANeBoMMXFlS9r0OXKDssYE1M5O43wUY/9BVPeIvfH2zmEbBfseqN9gBQZzXkg== - dependencies: - ansi-colors "4.1.1" - browser-stdout "1.3.1" - chokidar "3.5.3" - debug "4.3.4" - diff "5.0.0" - escape-string-regexp "4.0.0" - find-up "5.0.0" - glob "7.2.0" - he "1.2.0" - js-yaml "4.1.0" - log-symbols "4.1.0" - minimatch "5.0.1" - ms "2.1.3" - nanoid "3.3.3" - serialize-javascript "6.0.0" - strip-json-comments "3.1.1" - supports-color "8.1.1" - workerpool "6.2.1" - yargs "16.2.0" - yargs-parser "20.2.4" - yargs-unparser "2.0.0" - -ms@2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" - integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== - -ms@2.1.3: - version "2.1.3" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" - integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== - -nanoid@3.3.3: - version "3.3.3" - resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.3.tgz#fd8e8b7aa761fe807dba2d1b98fb7241bb724a25" - integrity sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w== - -natural-compare@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" - integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== - -normalize-path@^3.0.0, normalize-path@~3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" - integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== - -once@^1.3.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== - dependencies: - wrappy "1" - -optionator@^0.9.1: - version "0.9.1" - resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.1.tgz#4f236a6373dae0566a6d43e1326674f50c291499" - integrity sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw== - dependencies: - deep-is "^0.1.3" - fast-levenshtein "^2.0.6" - levn "^0.4.1" - prelude-ls "^1.2.1" - type-check "^0.4.0" - word-wrap "^1.2.3" - -p-limit@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" - integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== - dependencies: - yocto-queue "^0.1.0" - -p-locate@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" - integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== - dependencies: - p-limit "^3.0.2" - -parent-module@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" - integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== - dependencies: - callsites "^3.0.0" - -path-exists@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" - integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== - -path-is-absolute@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== - -path-key@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" - integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== - -picomatch@^2.0.4, picomatch@^2.2.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" - integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== - -prelude-ls@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" - integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== - -punycode@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" - integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== - -queue-microtask@^1.2.2: - version "1.2.3" - resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" - integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== - -randombytes@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" - integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== - dependencies: - safe-buffer "^5.1.0" - -readdirp@~3.6.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7" - integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA== - dependencies: - picomatch "^2.2.1" - -regexpp@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2" - integrity sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg== - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== - -resolve-from@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" - integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== - -reusify@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" - integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== - -rimraf@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" - integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== - dependencies: - glob "^7.1.3" - -rollup-plugin-terser@7: - version "7.0.2" - resolved "https://registry.yarnpkg.com/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz#e8fbba4869981b2dc35ae7e8a502d5c6c04d324d" - integrity sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ== - dependencies: - "@babel/code-frame" "^7.10.4" - jest-worker "^26.2.1" - serialize-javascript "^4.0.0" - terser "^5.0.0" - -rollup@3: - version "3.7.5" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.7.5.tgz#db580f8eda50237b0721ddea301fb981cd992933" - integrity sha512-z0ZbqHBtS/et2EEUKMrAl2CoSdwN7ZPzL17UMiKN9RjjqHShTlv7F9J6ZJZJNREYjBh3TvBrdfjkFDIXFNeuiQ== - optionalDependencies: - fsevents "~2.3.2" - -run-parallel@^1.1.9: - version "1.2.0" - resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" - integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== - dependencies: - queue-microtask "^1.2.2" - -safe-buffer@^5.1.0: - version "5.2.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" - integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== - -serialize-javascript@6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.0.tgz#efae5d88f45d7924141da8b5c3a7a7e663fefeb8" - integrity sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag== - dependencies: - randombytes "^2.1.0" - -serialize-javascript@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-4.0.0.tgz#b525e1238489a5ecfc42afacc3fe99e666f4b1aa" - integrity sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw== - dependencies: - randombytes "^2.1.0" - -shebang-command@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" - integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== - dependencies: - shebang-regex "^3.0.0" - -shebang-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" - integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== - -source-map-support@~0.5.20: - version "0.5.21" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" - integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== - dependencies: - buffer-from "^1.0.0" - source-map "^0.6.0" - -source-map@^0.6.0: - version "0.6.1" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" - integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== - -string-width@^4.1.0, string-width@^4.2.0: - version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - -strip-ansi@^6.0.0, strip-ansi@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - -strip-json-comments@3.1.1, strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" - integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== - -supports-color@8.1.1: - version "8.1.1" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" - integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== - dependencies: - has-flag "^4.0.0" - -supports-color@^5.3.0: - version "5.5.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" - integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== - dependencies: - has-flag "^3.0.0" - -supports-color@^7.0.0, supports-color@^7.1.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" - integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== - dependencies: - has-flag "^4.0.0" - -terser@^5.0.0: - version "5.16.1" - resolved "https://registry.yarnpkg.com/terser/-/terser-5.16.1.tgz#5af3bc3d0f24241c7fb2024199d5c461a1075880" - integrity sha512-xvQfyfA1ayT0qdK47zskQgRZeWLoOQ8JQ6mIgRGVNwZKdQMU+5FkCBjmv4QjcrTzyZquRw2FVtlJSRUmMKQslw== - dependencies: - "@jridgewell/source-map" "^0.3.2" - acorn "^8.5.0" - commander "^2.20.0" - source-map-support "~0.5.20" - -text-table@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" - integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== - -to-regex-range@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" - integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== - dependencies: - is-number "^7.0.0" - -type-check@^0.4.0, type-check@~0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" - integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== - dependencies: - prelude-ls "^1.2.1" - -type-fest@^0.20.2: - version "0.20.2" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" - integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== - -uri-js@^4.2.2: - version "4.4.1" - resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" - integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== - dependencies: - punycode "^2.1.0" - -which@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" - integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== - dependencies: - isexe "^2.0.0" - -word-wrap@^1.2.3: - version "1.2.3" - resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" - integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== - -workerpool@6.2.1: - version "6.2.1" - resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.2.1.tgz#46fc150c17d826b86a008e5a4508656777e9c343" - integrity sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw== - -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== - -y18n@^5.0.5: - version "5.0.8" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" - integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== - -yargs-parser@20.2.4: - version "20.2.4" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54" - integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA== - -yargs-parser@^20.2.2: - version "20.2.9" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee" - integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== - -yargs-unparser@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/yargs-unparser/-/yargs-unparser-2.0.0.tgz#f131f9226911ae5d9ad38c432fe809366c2325eb" - integrity sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA== - dependencies: - camelcase "^6.0.0" - decamelize "^4.0.0" - flat "^5.0.2" - is-plain-obj "^2.1.0" - -yargs@16.2.0: - version "16.2.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" - integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== - dependencies: - cliui "^7.0.2" - escalade "^3.1.1" - get-caller-file "^2.0.5" - require-directory "^2.1.1" - string-width "^4.2.0" - y18n "^5.0.5" - yargs-parser "^20.2.2" - -yocto-queue@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" - integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== From 8cdb74d95bd70936ec5972409098c86d8968b154 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Mon, 2 Nov 2026 17:43:06 -0800 Subject: [PATCH 02/10] vitest, eslint 9 Co-Authored-By: Claude Opus 5.5 --- .eslintrc.json | 13 - .github/workflows/publish.yml | 1 + .github/workflows/test.yml | 1 + eslint.config.js | 10 + package.json | 11 +- pnpm-lock.yaml | 1317 ++++++++++++++++----------- test/.eslintrc.json | 11 - test/arc-test.js | 103 +-- test/area-test.js | 41 +- test/areaRadial-test.js | 11 +- test/curve/basis-test.js | 5 +- test/curve/basisClosed-test.js | 3 +- test/curve/basisOpen-test.js | 5 +- test/curve/bumpX-test.js | 5 +- test/curve/bumpY-test.js | 5 +- test/curve/bundle-test.js | 7 +- test/curve/cardinal-test.js | 17 +- test/curve/cardinalClosed-test.js | 17 +- test/curve/cardinalOpen-test.js | 17 +- test/curve/catmullRom-test.js | 15 +- test/curve/catmullRomClosed-test.js | 13 +- test/curve/catmullRomOpen-test.js | 15 +- test/curve/linear-test.js | 5 +- test/curve/linearClosed-test.js | 3 +- test/curve/monotoneX-test.js | 13 +- test/curve/monotoneY-test.js | 13 +- test/curve/natural-test.js | 5 +- test/curve/step-test.js | 5 +- test/curve/stepAfter-test.js | 5 +- test/curve/stepBefore-test.js | 5 +- test/line-test.js | 23 +- test/lineRadial-test.js | 3 +- test/link-test.js | 27 +- test/offset/diverging-test.js | 13 +- test/offset/expand-test.js | 7 +- test/offset/none-test.js | 7 +- test/offset/silhouette-test.js | 7 +- test/offset/wiggle-test.js | 7 +- test/order/appearance-test.js | 5 +- test/order/ascending-test.js | 5 +- test/order/descending-test.js | 5 +- test/order/insideOut-test.js | 5 +- test/order/none-test.js | 3 +- test/order/reverse-test.js | 3 +- test/pie-test.js | 39 +- test/stack-test.js | 27 +- test/symbol-test.js | 51 +- test/symbols-test.js | 7 +- vitest.config.js | 3 + 49 files changed, 1106 insertions(+), 838 deletions(-) delete mode 100644 .eslintrc.json create mode 100644 eslint.config.js delete mode 100644 test/.eslintrc.json create mode 100644 vitest.config.js diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 7e80b001..00000000 --- a/.eslintrc.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "eslint:recommended", - "parserOptions": { - "sourceType": "module", - "ecmaVersion": 8 - }, - "env": { - "es6": true - }, - "rules": { - "no-cond-assign": 0 - } -} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 839d5c5e..623fc14f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,4 +23,5 @@ jobs: cache: pnpm - run: pnpm install - run: pnpm run test + - run: pnpm run lint - run: npm publish diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 00a5a946..63d0c516 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,3 +20,4 @@ jobs: cache: pnpm - run: pnpm install - run: pnpm run test + - run: pnpm run lint diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 00000000..d1afaa59 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,10 @@ +import js from "@eslint/js"; +import globals from "globals"; +import {defineConfig} from "eslint/config"; + +export default defineConfig([ + {files: ["**/*.{js,ts,jsx,tsx}"], plugins: {js}, extends: ["js/recommended"]}, + {files: ["**/*.{js,ts,jsx,tsx}"], languageOptions: {globals: globals.browser}}, + {languageOptions: {ecmaVersion: 2019, sourceType: "module"}}, + {rules: {"no-cond-assign": 0}} +]); diff --git a/package.json b/package.json index e4ff3465..784e6c78 100644 --- a/package.json +++ b/package.json @@ -38,15 +38,18 @@ "d3-path": "^3.1.0" }, "devDependencies": { + "@eslint/js": "^9.39.5", "@rollup/plugin-node-resolve": "^16.0.3", "@rollup/plugin-terser": "^1.0.2", "d3-polygon": "^3.0.1", - "eslint": "^8.57.1", - "mocha": "^10.8.2", - "rollup": "^4.67.4" + "eslint": "^9.39.5", + "globals": "^17.14.0", + "rollup": "^4.67.4", + "vitest": "^4.1.12" }, "scripts": { - "test": "mocha 'test/**/*-test.js' && eslint src test", + "test": "vitest", + "lint": "eslint src test", "prepublishOnly": "rm -rf dist && rollup -c" }, "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 539dd048..f9a6f6c0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,6 +12,9 @@ importers: specifier: ^3.1.0 version: 3.1.0 devDependencies: + '@eslint/js': + specifier: ^9.39.5 + version: 9.39.5 '@rollup/plugin-node-resolve': specifier: ^16.0.3 version: 16.0.3(rollup@4.67.4) @@ -22,14 +25,17 @@ importers: specifier: ^3.0.1 version: 3.0.1 eslint: - specifier: ^8.57.1 - version: 8.57.1 - mocha: - specifier: ^10.8.2 - version: 10.8.2 + specifier: ^9.39.5 + version: 9.39.5 + globals: + specifier: ^17.14.0 + version: 17.14.0 rollup: specifier: ^4.67.4 version: 4.67.4 + vitest: + specifier: ^4.1.12 + version: 4.1.12(vite@8.3.5(terser@5.51.2)) packages: @@ -43,26 +49,53 @@ packages: resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} - '@eslint/eslintrc@2.1.4': - resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + '@eslint/config-array@0.21.2': + resolution: {integrity: sha512-nJl2KGTlrf9GjLimgIru+V/mzgSK0ABCDQRvxw5BjURL7WfH5uoWmizbH7QB6MmnMBd8cIC9uceWnezL1VZWWw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/js@8.57.1': - resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + '@eslint/config-helpers@0.4.2': + resolution: {integrity: sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/core@0.17.0': + resolution: {integrity: sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/eslintrc@3.3.7': + resolution: {integrity: sha512-F42g89Qd5oAWtp0k0nnSrjziAKza7w8SVT4mStc18LZMaRb4J1HQAHLCalEtDCxrTuksx7NU9qsmeLwpOfPqWw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/js@9.39.5': + resolution: {integrity: sha512-QywQuszQh77pIXCsq998c8hbhSTI/azTty1Z6N53dmAudKHhy573j3yvRLsX2BSp8YpLtoCEG8E9DJe+8zUh4A==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/object-schema@2.1.7': + resolution: {integrity: sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/plugin-kit@0.4.1': + resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@humanfs/core@0.19.2': + resolution: {integrity: sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==} + engines: {node: '>=18.18.0'} - '@humanwhocodes/config-array@0.13.0': - resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==} - engines: {node: '>=10.10.0'} - deprecated: Use @eslint/config-array instead + '@humanfs/node@0.16.8': + resolution: {integrity: sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==} + engines: {node: '>=18.18.0'} + + '@humanfs/types@0.15.0': + resolution: {integrity: sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==} + engines: {node: '>=18.18.0'} '@humanwhocodes/module-importer@1.0.1': resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} engines: {node: '>=12.22'} - '@humanwhocodes/object-schema@2.0.3': - resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==} - deprecated: Use @eslint/object-schema instead + '@humanwhocodes/retry@0.4.3': + resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==} + engines: {node: '>=18.18'} '@jridgewell/gen-mapping@0.3.13': resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} @@ -87,17 +120,107 @@ packages: os: [linux] libc: [glibc] - '@nodelib/fs.scandir@2.1.5': - resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} - engines: {node: '>= 8'} + '@oxc-project/types@0.156.0': + resolution: {integrity: sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw==} - '@nodelib/fs.stat@2.0.5': - resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} - engines: {node: '>= 8'} + '@rolldown/binding-android-arm-eabi@1.2.16': + resolution: {integrity: sha512-ia3DwAs0OsMGS7+IConptSiyk9pEXkOx/AbJ2n/lAGxH3QkWQus1t8d7gnAT38FCU2sQu8lUbeR6AiZFv4JxaA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] - '@nodelib/fs.walk@1.2.8': - resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} - engines: {node: '>= 8'} + '@rolldown/binding-android-arm64@1.2.16': + resolution: {integrity: sha512-kx5wBiMB6E7TEvpl2B9gjLU004BkvEm2Dr941BFjx/SontPwSzNuQUIoVKxHHoSjpFIfHMmcguyLOtyn0hObRg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@rolldown/binding-darwin-arm64@1.2.16': + resolution: {integrity: sha512-qslZrXnKJU4cUpjoAmtAo/KQM9e2IRMlmpig6Zpwj+8KWxW8v+nkAf9216Bsek9lOC1jvg2yCjygCFo2f83msQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@rolldown/binding-darwin-x64@1.2.16': + resolution: {integrity: sha512-FdF+y48ND13eAyM2mQn+85kvAqNlvRWROy2rhgA463X/0Gv4vGtazZtfaF1mRBLscYvtOlh4QnLjOWiFzX69OQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@rolldown/binding-freebsd-x64@1.2.16': + resolution: {integrity: sha512-ddjqFM5e95AgLbUPtKIS7V1KTVlA0RUgCVr5mn+/IEhsdy3pr+Vuj/HZ7nlMN2FyxIwUktOH1LEPIQXO1v9y1Q==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@rolldown/binding-linux-arm-gnueabihf@1.2.16': + resolution: {integrity: sha512-tHdKWbFkFBI687iim3LIyIvyL7j66VvQYkDPss5Stn/qyE2tWkR1YD0dXmXPFKKqT/o5ZEJVsaRsWS2meQwGOA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@rolldown/binding-linux-arm64-gnu@1.2.16': + resolution: {integrity: sha512-FJiLGAblPBMlBEdbOqw6kW6QcXDWAf/oJu7gYs9ZJZwmg+K+/zjFLxPTIY9izJUzxzc24FHvmseyA0IvJSl17w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-arm64-musl@1.2.16': + resolution: {integrity: sha512-hrJpblMsrQ58U9veWpbXzkhV5zStunds6HWLprqq1qauvgBr1E6P+24kLj6lSLI9vjRn/RYpjprhkHQPKGWpNg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rolldown/binding-linux-ppc64-gnu@1.2.16': + resolution: {integrity: sha512-qJd/dC6j6CwLG9/s/RP2nb1RZ0GIgj7Ioj7x/SYa3RzjVrlzrmH0fhIOpfvqQDeIsdP0loi+kHaMhJzY1PBIaA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-s390x-gnu@1.2.16': + resolution: {integrity: sha512-Vx7Xg5uUJuNcujJjI70OICaH0EYj80BtOLZTSN7uOYg8QOLlyKnaG0IW7Fn/J0IpJsaKzmDKMhOQv1JBM9m9vg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-gnu@1.2.16': + resolution: {integrity: sha512-TNKhgE3uJTsTzatUSSYt0Kgo+Oa2uSlSjz4r1aEIea7HX6ULBym4fAlYUhG1i6pjNf2njfCUAfKwr6C3E9Xg1w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-musl@1.2.16': + resolution: {integrity: sha512-7chXdpjXZ8qG0+mIxECN3cT9kvhZ3/oZhMX6Pp876P7CDrIy8nJswva6Mq357JR7eYXfuskwZxMeV1SzoZdHrA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rolldown/binding-openharmony-arm64@1.2.16': + resolution: {integrity: sha512-Kwjt+7uNTJK5/MDkGWGVO2KQPnj8yAV75dMpfwyHZrJSXWHrniOB0aUEWlVYf3H1hOqFLIStLdM5QXq6bnKmOQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@rolldown/binding-win32-arm64-msvc@1.2.16': + resolution: {integrity: sha512-/LH6WfjDRXXJz/p5xl4TmU+jpcnwcxbKEQBW/GZE0JHfN0lGIyTtsUEGaQ/q/GikkGJ2yLKe6pwm7AnEWO8pdw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@rolldown/binding-win32-x64-msvc@1.2.16': + resolution: {integrity: sha512-1lv1KvX0Z871zfk7vw+dnXMMnHNyDwMzWG8Kv3HxDXMOhzCX4SHc7HK319fInP0i+0p9D8brkfzL7pJOaGl+tw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@rolldown/pluginutils@1.0.1': + resolution: {integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==} '@rollup/plugin-node-resolve@16.0.3': resolution: {integrity: sha512-lUYM3UBGuM93CnMPG1YocWu7X802BrNF3jW2zny5gQyLQgRFJhV1Sq0Zi74+dh/6NBx1DxFC4b4GXg9wUCG5Qg==} @@ -269,14 +392,52 @@ packages: cpu: [x64] os: [win32] + '@standard-schema/spec@1.1.0': + resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} + + '@types/chai@5.2.3': + resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} + + '@types/deep-eql@4.0.2': + resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==} + '@types/estree@1.0.10': resolution: {integrity: sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==} + '@types/json-schema@7.0.15': + resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} + '@types/resolve@1.20.2': resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} - '@ungap/structured-clone@1.4.0': - resolution: {integrity: sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==} + '@vitest/expect@4.1.12': + resolution: {integrity: sha512-vFlTt+YEu9WBpNjdGayNmlMVzrWPi1+sv853/7t2FU7hpO5gAFBKHzQmkCq5Xjpr+evegF2994LQT3hF3mRlqQ==} + + '@vitest/mocker@4.1.12': + resolution: {integrity: sha512-fKShNpKZzupWZuY0z7egydvL0sqW4INEZBEExMBMAa6izlENEVHwoXgdaTCaBZ5fwlr4xf2o1wXC83n9RpO+NA==} + peerDependencies: + msw: ^2.4.9 + vite: ^6.0.0 || ^7.0.0 || ^8.0.0 + peerDependenciesMeta: + msw: + optional: true + vite: + optional: true + + '@vitest/pretty-format@4.1.12': + resolution: {integrity: sha512-XW9O8+Mxx4VpCtkYdMJLZQQwsVryP9wk7cPKDxtXFfwSak6yRh5+2fep/Y0XF/ElBvJHq8bcYdi6aeuai0opZA==} + + '@vitest/runner@4.1.12': + resolution: {integrity: sha512-NKlVKCr5QnCe8jijdMnmkpHHU+WTqiLFR6G0pHji9uRjXK9xJl1k1nTw6F3pOOj2PDcsDt2GKQMI7wIsaT491w==} + + '@vitest/snapshot@4.1.12': + resolution: {integrity: sha512-ko1y1Qgb/slzQ9mr+b89Cuqud8WG1TKtsPD8r7ZUBdvVOGt85Af2HwCqHujrhwJq95hs/9RM7fcAPg57o1vlzw==} + + '@vitest/spy@4.1.12': + resolution: {integrity: sha512-RGq9x4JNGNTZHEJxvN0oSiJjeSCExm0n2gZKKJZHY9cX5AVA6M7VJILBT3ZJ/tJ/0J9uWT7fETV9/btoi//vSg==} + + '@vitest/utils@4.1.12': + resolution: {integrity: sha512-Q3awXrwOfEV+qc3WmO5ONyE0yO7Q1gQ9/oyHxGLZ/pl7N3NO/ZztqQwKLuwMkV+CA1JYSIeO3gkHnRDIo4AVaA==} acorn-jsx@5.3.2: resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} @@ -291,45 +452,23 @@ packages: ajv@6.15.0: resolution: {integrity: sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==} - ansi-colors@4.1.3: - resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==} - engines: {node: '>=6'} - - ansi-regex@5.0.1: - resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} - engines: {node: '>=8'} - ansi-styles@4.3.0: resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} engines: {node: '>=8'} - anymatch@3.1.3: - resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} - engines: {node: '>= 8'} - argparse@2.0.1: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + assertion-error@2.0.1: + resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} + engines: {node: '>=12'} + balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} - binary-extensions@2.3.0: - resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} - engines: {node: '>=8'} - brace-expansion@1.1.21: resolution: {integrity: sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==} - brace-expansion@2.1.7: - resolution: {integrity: sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==} - - braces@3.0.3: - resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} - engines: {node: '>=8'} - - browser-stdout@1.3.1: - resolution: {integrity: sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==} - buffer-from@1.1.2: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} @@ -337,21 +476,14 @@ packages: resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} engines: {node: '>=6'} - camelcase@6.3.0: - resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==} - engines: {node: '>=10'} + chai@6.3.0: + resolution: {integrity: sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==} + engines: {node: '>=18'} chalk@4.1.2: resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} engines: {node: '>=10'} - chokidar@3.6.0: - resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} - engines: {node: '>= 8.10.0'} - - cliui@7.0.4: - resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==} - color-convert@2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} engines: {node: '>=7.0.0'} @@ -365,6 +497,9 @@ packages: concat-map@0.0.1: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} + convert-source-map@2.0.0: + resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + cross-spawn@7.0.6: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} @@ -386,10 +521,6 @@ packages: supports-color: optional: true - decamelize@4.0.0: - resolution: {integrity: sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==} - engines: {node: '>=10'} - deep-is@0.1.4: resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} @@ -397,46 +528,47 @@ packages: resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} engines: {node: '>=0.10.0'} - diff@5.2.2: - resolution: {integrity: sha512-vtcDfH3TOjP8UekytvnHH1o1P4FcUdt4eQ1Y+Abap1tk/OB2MWQvcwS2ClCd1zuIhc3JKOx6p3kod8Vfys3E+A==} - engines: {node: '>=0.3.1'} - - doctrine@3.0.0: - resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} - engines: {node: '>=6.0.0'} - - emoji-regex@8.0.0: - resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + detect-libc@2.1.2: + resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} + engines: {node: '>=8'} es-errors@1.3.0: resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} engines: {node: '>= 0.4'} - escalade@3.2.0: - resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} - engines: {node: '>=6'} + es-module-lexer@2.3.2: + resolution: {integrity: sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==} escape-string-regexp@4.0.0: resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} engines: {node: '>=10'} - eslint-scope@7.2.2: - resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + eslint-scope@8.4.0: + resolution: {integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} eslint-visitor-keys@3.4.3: resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - eslint@8.57.1: - resolution: {integrity: sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + eslint-visitor-keys@4.2.1: + resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + eslint@9.39.5: + resolution: {integrity: sha512-DgZS62aPLXKlnxILS/AYCoRvHaZeXceIzlXPkkGGzJWSow1aEk0lbTlxUSlyjC8jcaKxAdOnTDz+o1JFSBsyjw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true + peerDependencies: + jiti: '*' + peerDependenciesMeta: + jiti: + optional: true - espree@9.6.1: - resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + espree@10.4.0: + resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} esquery@1.7.0: resolution: {integrity: sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==} @@ -453,10 +585,17 @@ packages: estree-walker@2.0.2: resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} + estree-walker@3.0.3: + resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} + esutils@2.0.3: resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} engines: {node: '>=0.10.0'} + expect-type@1.4.0: + resolution: {integrity: sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==} + engines: {node: '>=12.0.0'} + fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} @@ -466,35 +605,30 @@ packages: fast-levenshtein@2.0.6: resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} - fastq@1.20.3: - resolution: {integrity: sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==} - - file-entry-cache@6.0.1: - resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} - engines: {node: ^10.12.0 || >=12.0.0} + fdir@6.5.0: + resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} + engines: {node: '>=12.0.0'} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true - fill-range@7.1.1: - resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} - engines: {node: '>=8'} + file-entry-cache@8.0.0: + resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==} + engines: {node: '>=16.0.0'} find-up@5.0.0: resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} engines: {node: '>=10'} - flat-cache@3.2.0: - resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==} - engines: {node: ^10.12.0 || >=12.0.0} - - flat@5.0.2: - resolution: {integrity: sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==} - hasBin: true + flat-cache@4.0.1: + resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==} + engines: {node: '>=16'} flatted@3.4.4: resolution: {integrity: sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==} - fs.realpath@1.0.0: - resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} - fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} @@ -503,33 +637,17 @@ packages: function-bind@1.1.2: resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} - get-caller-file@2.0.5: - resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} - engines: {node: 6.* || 8.* || >= 10.*} - - glob-parent@5.1.2: - resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} - engines: {node: '>= 6'} - glob-parent@6.0.2: resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} engines: {node: '>=10.13.0'} - glob@7.2.3: - resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} - deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me - - glob@8.1.0: - resolution: {integrity: sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==} - engines: {node: '>=12'} - deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me - - globals@13.24.0: - resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==} - engines: {node: '>=8'} + globals@14.0.0: + resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} + engines: {node: '>=18'} - graphemer@1.4.0: - resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} + globals@17.14.0: + resolution: {integrity: sha512-UtdkTVyAJePQv0J2M9Xe4L0ruNSDV314XiIJsADI2Zf40bcdAonE/D/OhAU8AT99oij9mhLByb+NvA3QWZYgCg==} + engines: {node: '>=18'} has-flag@4.0.0: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} @@ -539,10 +657,6 @@ packages: resolution: {integrity: sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==} engines: {node: '>= 0.4'} - he@1.2.0: - resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==} - hasBin: true - ignore@5.3.2: resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} engines: {node: '>= 4'} @@ -555,17 +669,6 @@ packages: resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} engines: {node: '>=0.8.19'} - inflight@1.0.6: - resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} - deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. - - inherits@2.0.4: - resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} - - is-binary-path@2.1.0: - resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} - engines: {node: '>=8'} - is-core-module@2.17.0: resolution: {integrity: sha512-J/vG0zBCbIKOQFfufSwyXdMrsohyJIUNkrnmo6WZGzoM7tr/lsbfW5b2BvisL6zsyMzK9UxV9L6c7AoFbyXHOA==} engines: {node: '>= 0.4'} @@ -574,10 +677,6 @@ packages: resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} engines: {node: '>=0.10.0'} - is-fullwidth-code-point@3.0.0: - resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} - engines: {node: '>=8'} - is-glob@4.0.3: resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} engines: {node: '>=0.10.0'} @@ -585,22 +684,6 @@ packages: is-module@1.0.0: resolution: {integrity: sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==} - is-number@7.0.0: - resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} - engines: {node: '>=0.12.0'} - - is-path-inside@3.0.3: - resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==} - engines: {node: '>=8'} - - is-plain-obj@2.1.0: - resolution: {integrity: sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==} - engines: {node: '>=8'} - - is-unicode-supported@0.1.0: - resolution: {integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==} - engines: {node: '>=10'} - isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} @@ -624,6 +707,80 @@ packages: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} engines: {node: '>= 0.8.0'} + lightningcss-android-arm64@1.33.0: + resolution: {integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [android] + + lightningcss-darwin-arm64@1.33.0: + resolution: {integrity: sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [darwin] + + lightningcss-darwin-x64@1.33.0: + resolution: {integrity: sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [darwin] + + lightningcss-freebsd-x64@1.33.0: + resolution: {integrity: sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [freebsd] + + lightningcss-linux-arm-gnueabihf@1.33.0: + resolution: {integrity: sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm] + os: [linux] + + lightningcss-linux-arm64-gnu@1.33.0: + resolution: {integrity: sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + lightningcss-linux-arm64-musl@1.33.0: + resolution: {integrity: sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + libc: [musl] + + lightningcss-linux-x64-gnu@1.33.0: + resolution: {integrity: sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + libc: [glibc] + + lightningcss-linux-x64-musl@1.33.0: + resolution: {integrity: sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + libc: [musl] + + lightningcss-win32-arm64-msvc@1.33.0: + resolution: {integrity: sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [win32] + + lightningcss-win32-x64-msvc@1.33.0: + resolution: {integrity: sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [win32] + + lightningcss@1.33.0: + resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==} + engines: {node: '>= 12.0.0'} + locate-path@6.0.0: resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} engines: {node: '>=10'} @@ -631,34 +788,26 @@ packages: lodash.merge@4.6.2: resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} - log-symbols@4.1.0: - resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==} - engines: {node: '>=10'} + magic-string@0.30.21: + resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} minimatch@3.1.5: resolution: {integrity: sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==} - minimatch@5.1.9: - resolution: {integrity: sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==} - engines: {node: '>=10'} - - mocha@10.8.2: - resolution: {integrity: sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg==} - engines: {node: '>= 14.0.0'} - hasBin: true - ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + nanoid@3.3.20: + resolution: {integrity: sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} - normalize-path@3.0.0: - resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} - engines: {node: '>=0.10.0'} - - once@1.4.0: - resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} + obug@2.2.1: + resolution: {integrity: sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q==} + engines: {node: '>=12.20.0'} optionator@0.9.4: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} @@ -680,10 +829,6 @@ packages: resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} engines: {node: '>=8'} - path-is-absolute@1.0.1: - resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} - engines: {node: '>=0.10.0'} - path-key@3.1.1: resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} engines: {node: '>=8'} @@ -691,14 +836,20 @@ packages: path-parse@1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} - picomatch@2.3.2: - resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==} - engines: {node: '>=8.6'} + pathe@2.0.3: + resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} picomatch@4.0.7: resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} engines: {node: '>=12'} + postcss@8.5.32: + resolution: {integrity: sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==} + engines: {node: ^10 || ^12 || >=14} + prelude-ls@1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} @@ -707,20 +858,6 @@ packages: resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} - queue-microtask@1.2.3: - resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} - - randombytes@2.1.0: - resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==} - - readdirp@3.6.0: - resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} - engines: {node: '>=8.10.0'} - - require-directory@2.1.1: - resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} - engines: {node: '>=0.10.0'} - resolve-from@4.0.0: resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} engines: {node: '>=4'} @@ -730,13 +867,9 @@ packages: engines: {node: '>= 0.4'} hasBin: true - reusify@1.1.0: - resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==} - engines: {iojs: '>=1.0.0', node: '>=0.10.0'} - - rimraf@3.0.2: - resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} - deprecated: Rimraf versions prior to v4 are no longer supported + rolldown@1.2.16: + resolution: {integrity: sha512-bWvlMpFKiTfDKfnK7FC2MPgPeWCf/Kpwsq49ApdW+FQaBZb6O6dZ4MAPbPUjp7hYQrw/RobqCzn64BRrQecGHw==} + engines: {node: ^20.19.0 || >=22.12.0} hasBin: true rollup@4.67.4: @@ -744,15 +877,6 @@ packages: engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true - run-parallel@1.2.0: - resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} - - safe-buffer@5.2.1: - resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} - - serialize-javascript@6.0.2: - resolution: {integrity: sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==} - serialize-javascript@7.1.4: resolution: {integrity: sha512-FqlEuoTq/zRmA4Lg6aOqyH3lCHbUtCB0bmHCeFniX2GBdDqMJM3FwdvEhlE5Pim1dlt2FfBdVPmUNNiGhhKqpw==} engines: {node: '>=20.0.0'} @@ -765,10 +889,17 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} + siginfo@2.0.0: + resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} + smob@1.6.2: resolution: {integrity: sha512-RQsvleCbF8cVHEv+xuDGaA4pOizFqJ0GgjtMSRo6oP8pnN7WsigHgVGey6aILRBKv4W2YOMHLqbKdnB6hpB9fw==} engines: {node: '>=20.0.0'} + source-map-js@1.2.2: + resolution: {integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==} + engines: {node: '>=0.10.0'} + source-map-support@0.5.21: resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} @@ -776,13 +907,11 @@ packages: resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} engines: {node: '>=0.10.0'} - string-width@4.2.3: - resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} - engines: {node: '>=8'} + stackback@0.0.2: + resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} - strip-ansi@6.0.1: - resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} - engines: {node: '>=8'} + std-env@4.3.0: + resolution: {integrity: sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==} strip-json-comments@3.1.1: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} @@ -792,10 +921,6 @@ packages: resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} engines: {node: '>=8'} - supports-color@8.1.1: - resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==} - engines: {node: '>=10'} - supports-preserve-symlinks-flag@1.0.0: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} @@ -805,78 +930,161 @@ packages: engines: {node: '>=10'} hasBin: true - text-table@0.2.0: - resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} + tinybench@2.9.0: + resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} - to-regex-range@5.0.1: - resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} - engines: {node: '>=8.0'} + tinyexec@1.3.1: + resolution: {integrity: sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==} + engines: {node: '>=18'} + + tinyglobby@0.2.17: + resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} + engines: {node: '>=12.0.0'} + + tinyrainbow@3.2.0: + resolution: {integrity: sha512-LgO3D9yZJjApUiuUfl9iFAwrtaX4+lok3wJIqttGoKCHlWUqHqbQpnxCf82L8FjgKsh4iGo78hqJwgL8F6To2A==} + engines: {node: '>=14.0.0'} type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} - type-fest@0.20.2: - resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==} - engines: {node: '>=10'} - uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} + vite@8.3.5: + resolution: {integrity: sha512-z1YpjieJ9g0ebTmQpLBv/oq9E3F9EIlOe+7LahW8SrE3LTiG3udBRUXQOlYXP9b+IC2q2phHeVxj9xGlw34OEQ==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + '@types/node': ^20.19.0 || >=22.12.0 + '@vitejs/devtools': ^0.7.1 || ^0.8.0 + esbuild: ^0.27.0 || ^0.28.0 + jiti: '>=1.21.0' + less: ^4.0.0 + sass: ^1.70.0 + sass-embedded: ^1.70.0 + stylus: '>=0.54.8' + sugarss: ^5.0.0 + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + '@vitejs/devtools': + optional: true + esbuild: + optional: true + jiti: + optional: true + less: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + + vitest@4.1.12: + resolution: {integrity: sha512-5eWdz2yb3ajxWF3C8C4TjkXl7FGm3n2E/VlazALrQHzK7nYMSGFnCZto0bbPNl77AwkOZVLk0YnBAejUu0NiWA==} + engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0} + hasBin: true + peerDependencies: + '@edge-runtime/vm': '*' + '@opentelemetry/api': ^1.9.0 + '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0 + '@vitest/browser-playwright': 4.1.12 + '@vitest/browser-preview': 4.1.12 + '@vitest/browser-webdriverio': ^4.1.11 + '@vitest/coverage-istanbul': 4.1.12 + '@vitest/coverage-v8': 4.1.12 + '@vitest/ui': 4.1.12 + happy-dom: '*' + jsdom: '*' + vite: ^6.0.0 || ^7.0.0 || ^8.0.0 + peerDependenciesMeta: + '@edge-runtime/vm': + optional: true + '@opentelemetry/api': + optional: true + '@types/node': + optional: true + '@vitest/browser-playwright': + optional: true + '@vitest/browser-preview': + optional: true + '@vitest/browser-webdriverio': + optional: true + '@vitest/coverage-istanbul': + optional: true + '@vitest/coverage-v8': + optional: true + '@vitest/ui': + optional: true + happy-dom: + optional: true + jsdom: + optional: true + which@2.0.2: resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} engines: {node: '>= 8'} hasBin: true + why-is-node-running@2.3.0: + resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} + engines: {node: '>=8'} + hasBin: true + word-wrap@1.2.5: resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} engines: {node: '>=0.10.0'} - workerpool@6.5.1: - resolution: {integrity: sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==} - - wrap-ansi@7.0.0: - resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} - engines: {node: '>=10'} - - wrappy@1.0.2: - resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} - - y18n@5.0.8: - resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} - engines: {node: '>=10'} - - yargs-parser@20.2.9: - resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==} - engines: {node: '>=10'} - - yargs-unparser@2.0.0: - resolution: {integrity: sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==} - engines: {node: '>=10'} - - yargs@16.2.2: - resolution: {integrity: sha512-Nt9ZJjXTv5R8MHbqby/wXQ6Gi0Bb3TcYZkR1bzuL4yB2OxWPkXknz513gEF0GoA6tn00UpbPvERW8rzCuWCA6w==} - engines: {node: '>=10'} - yocto-queue@0.1.0: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} snapshots: - '@eslint-community/eslint-utils@4.10.1(eslint@8.57.1)': + '@eslint-community/eslint-utils@4.10.1(eslint@9.39.5)': dependencies: - eslint: 8.57.1 + eslint: 9.39.5 eslint-visitor-keys: 3.4.3 '@eslint-community/regexpp@4.12.2': {} - '@eslint/eslintrc@2.1.4': + '@eslint/config-array@0.21.2': + dependencies: + '@eslint/object-schema': 2.1.7 + debug: 4.4.3 + minimatch: 3.1.5 + transitivePeerDependencies: + - supports-color + + '@eslint/config-helpers@0.4.2': + dependencies: + '@eslint/core': 0.17.0 + + '@eslint/core@0.17.0': + dependencies: + '@types/json-schema': 7.0.15 + + '@eslint/eslintrc@3.3.7': dependencies: ajv: 6.15.0 - debug: 4.4.3(supports-color@8.1.1) - espree: 9.6.1 - globals: 13.24.0 + debug: 4.4.3 + espree: 10.4.0 + globals: 14.0.0 ignore: 5.3.2 import-fresh: 3.3.1 js-yaml: 4.3.2 @@ -885,19 +1093,30 @@ snapshots: transitivePeerDependencies: - supports-color - '@eslint/js@8.57.1': {} + '@eslint/js@9.39.5': {} + + '@eslint/object-schema@2.1.7': {} - '@humanwhocodes/config-array@0.13.0': + '@eslint/plugin-kit@0.4.1': dependencies: - '@humanwhocodes/object-schema': 2.0.3 - debug: 4.4.3(supports-color@8.1.1) - minimatch: 3.1.5 - transitivePeerDependencies: - - supports-color + '@eslint/core': 0.17.0 + levn: 0.4.1 + + '@humanfs/core@0.19.2': + dependencies: + '@humanfs/types': 0.15.0 + + '@humanfs/node@0.16.8': + dependencies: + '@humanfs/core': 0.19.2 + '@humanfs/types': 0.15.0 + '@humanwhocodes/retry': 0.4.3 + + '@humanfs/types@0.15.0': {} '@humanwhocodes/module-importer@1.0.1': {} - '@humanwhocodes/object-schema@2.0.3': {} + '@humanwhocodes/retry@0.4.3': {} '@jridgewell/gen-mapping@0.3.13': dependencies: @@ -921,17 +1140,54 @@ snapshots: '@napi-rs/lzma-linux-x64-gnu@1.5.1': optional: true - '@nodelib/fs.scandir@2.1.5': - dependencies: - '@nodelib/fs.stat': 2.0.5 - run-parallel: 1.2.0 + '@oxc-project/types@0.156.0': {} - '@nodelib/fs.stat@2.0.5': {} + '@rolldown/binding-android-arm-eabi@1.2.16': + optional: true - '@nodelib/fs.walk@1.2.8': - dependencies: - '@nodelib/fs.scandir': 2.1.5 - fastq: 1.20.3 + '@rolldown/binding-android-arm64@1.2.16': + optional: true + + '@rolldown/binding-darwin-arm64@1.2.16': + optional: true + + '@rolldown/binding-darwin-x64@1.2.16': + optional: true + + '@rolldown/binding-freebsd-x64@1.2.16': + optional: true + + '@rolldown/binding-linux-arm-gnueabihf@1.2.16': + optional: true + + '@rolldown/binding-linux-arm64-gnu@1.2.16': + optional: true + + '@rolldown/binding-linux-arm64-musl@1.2.16': + optional: true + + '@rolldown/binding-linux-ppc64-gnu@1.2.16': + optional: true + + '@rolldown/binding-linux-s390x-gnu@1.2.16': + optional: true + + '@rolldown/binding-linux-x64-gnu@1.2.16': + optional: true + + '@rolldown/binding-linux-x64-musl@1.2.16': + optional: true + + '@rolldown/binding-openharmony-arm64@1.2.16': + optional: true + + '@rolldown/binding-win32-arm64-msvc@1.2.16': + optional: true + + '@rolldown/binding-win32-x64-msvc@1.2.16': + optional: true + + '@rolldown/pluginutils@1.0.1': {} '@rollup/plugin-node-resolve@16.0.3(rollup@4.67.4)': dependencies: @@ -1037,11 +1293,61 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.67.4': optional: true + '@standard-schema/spec@1.1.0': {} + + '@types/chai@5.2.3': + dependencies: + '@types/deep-eql': 4.0.2 + assertion-error: 2.0.1 + + '@types/deep-eql@4.0.2': {} + '@types/estree@1.0.10': {} + '@types/json-schema@7.0.15': {} + '@types/resolve@1.20.2': {} - '@ungap/structured-clone@1.4.0': {} + '@vitest/expect@4.1.12': + dependencies: + '@standard-schema/spec': 1.1.0 + '@types/chai': 5.2.3 + '@vitest/spy': 4.1.12 + '@vitest/utils': 4.1.12 + chai: 6.3.0 + tinyrainbow: 3.2.0 + + '@vitest/mocker@4.1.12(vite@8.3.5(terser@5.51.2))': + dependencies: + '@vitest/spy': 4.1.12 + estree-walker: 3.0.3 + magic-string: 0.30.21 + optionalDependencies: + vite: 8.3.5(terser@5.51.2) + + '@vitest/pretty-format@4.1.12': + dependencies: + tinyrainbow: 3.2.0 + + '@vitest/runner@4.1.12': + dependencies: + '@vitest/utils': 4.1.12 + pathe: 2.0.3 + + '@vitest/snapshot@4.1.12': + dependencies: + '@vitest/pretty-format': 4.1.12 + '@vitest/utils': 4.1.12 + magic-string: 0.30.21 + pathe: 2.0.3 + + '@vitest/spy@4.1.12': {} + + '@vitest/utils@4.1.12': + dependencies: + '@vitest/pretty-format': 4.1.12 + convert-source-map: 2.0.0 + tinyrainbow: 3.2.0 acorn-jsx@5.3.2(acorn@8.19.0): dependencies: @@ -1056,69 +1362,32 @@ snapshots: json-schema-traverse: 0.4.1 uri-js: 4.4.1 - ansi-colors@4.1.3: {} - - ansi-regex@5.0.1: {} - ansi-styles@4.3.0: dependencies: color-convert: 2.0.1 - anymatch@3.1.3: - dependencies: - normalize-path: 3.0.0 - picomatch: 2.3.2 - argparse@2.0.1: {} - balanced-match@1.0.2: {} + assertion-error@2.0.1: {} - binary-extensions@2.3.0: {} + balanced-match@1.0.2: {} brace-expansion@1.1.21: dependencies: balanced-match: 1.0.2 concat-map: 0.0.1 - brace-expansion@2.1.7: - dependencies: - balanced-match: 1.0.2 - - braces@3.0.3: - dependencies: - fill-range: 7.1.1 - - browser-stdout@1.3.1: {} - buffer-from@1.1.2: {} callsites@3.1.0: {} - camelcase@6.3.0: {} + chai@6.3.0: {} chalk@4.1.2: dependencies: ansi-styles: 4.3.0 supports-color: 7.2.0 - chokidar@3.6.0: - dependencies: - anymatch: 3.1.3 - braces: 3.0.3 - glob-parent: 5.1.2 - is-binary-path: 2.1.0 - is-glob: 4.0.3 - normalize-path: 3.0.0 - readdirp: 3.6.0 - optionalDependencies: - fsevents: 2.3.3 - - cliui@7.0.4: - dependencies: - string-width: 4.2.3 - strip-ansi: 6.0.1 - wrap-ansi: 7.0.0 - color-convert@2.0.1: dependencies: color-name: 1.1.4 @@ -1129,6 +1398,8 @@ snapshots: concat-map@0.0.1: {} + convert-source-map@2.0.0: {} + cross-spawn@7.0.6: dependencies: path-key: 3.1.1 @@ -1139,87 +1410,75 @@ snapshots: d3-polygon@3.0.1: {} - debug@4.4.3(supports-color@8.1.1): + debug@4.4.3: dependencies: ms: 2.1.3 - optionalDependencies: - supports-color: 8.1.1 - - decamelize@4.0.0: {} deep-is@0.1.4: {} deepmerge@4.3.1: {} - diff@5.2.2: {} - - doctrine@3.0.0: - dependencies: - esutils: 2.0.3 - - emoji-regex@8.0.0: {} + detect-libc@2.1.2: {} es-errors@1.3.0: {} - escalade@3.2.0: {} + es-module-lexer@2.3.2: {} escape-string-regexp@4.0.0: {} - eslint-scope@7.2.2: + eslint-scope@8.4.0: dependencies: esrecurse: 4.3.0 estraverse: 5.3.0 eslint-visitor-keys@3.4.3: {} - eslint@8.57.1: + eslint-visitor-keys@4.2.1: {} + + eslint@9.39.5: dependencies: - '@eslint-community/eslint-utils': 4.10.1(eslint@8.57.1) + '@eslint-community/eslint-utils': 4.10.1(eslint@9.39.5) '@eslint-community/regexpp': 4.12.2 - '@eslint/eslintrc': 2.1.4 - '@eslint/js': 8.57.1 - '@humanwhocodes/config-array': 0.13.0 + '@eslint/config-array': 0.21.2 + '@eslint/config-helpers': 0.4.2 + '@eslint/core': 0.17.0 + '@eslint/eslintrc': 3.3.7 + '@eslint/js': 9.39.5 + '@eslint/plugin-kit': 0.4.1 + '@humanfs/node': 0.16.8 '@humanwhocodes/module-importer': 1.0.1 - '@nodelib/fs.walk': 1.2.8 - '@ungap/structured-clone': 1.4.0 + '@humanwhocodes/retry': 0.4.3 + '@types/estree': 1.0.10 ajv: 6.15.0 chalk: 4.1.2 cross-spawn: 7.0.6 - debug: 4.4.3(supports-color@8.1.1) - doctrine: 3.0.0 + debug: 4.4.3 escape-string-regexp: 4.0.0 - eslint-scope: 7.2.2 - eslint-visitor-keys: 3.4.3 - espree: 9.6.1 + eslint-scope: 8.4.0 + eslint-visitor-keys: 4.2.1 + espree: 10.4.0 esquery: 1.7.0 esutils: 2.0.3 fast-deep-equal: 3.1.3 - file-entry-cache: 6.0.1 + file-entry-cache: 8.0.0 find-up: 5.0.0 glob-parent: 6.0.2 - globals: 13.24.0 - graphemer: 1.4.0 ignore: 5.3.2 imurmurhash: 0.1.4 is-glob: 4.0.3 - is-path-inside: 3.0.3 - js-yaml: 4.3.2 json-stable-stringify-without-jsonify: 1.0.1 - levn: 0.4.1 lodash.merge: 4.6.2 minimatch: 3.1.5 natural-compare: 1.4.0 optionator: 0.9.4 - strip-ansi: 6.0.1 - text-table: 0.2.0 transitivePeerDependencies: - supports-color - espree@9.6.1: + espree@10.4.0: dependencies: acorn: 8.19.0 acorn-jsx: 5.3.2(acorn@8.19.0) - eslint-visitor-keys: 3.4.3 + eslint-visitor-keys: 4.2.1 esquery@1.7.0: dependencies: @@ -1233,80 +1492,52 @@ snapshots: estree-walker@2.0.2: {} + estree-walker@3.0.3: + dependencies: + '@types/estree': 1.0.10 + esutils@2.0.3: {} + expect-type@1.4.0: {} + fast-deep-equal@3.1.3: {} fast-json-stable-stringify@2.1.0: {} fast-levenshtein@2.0.6: {} - fastq@1.20.3: - dependencies: - reusify: 1.1.0 - - file-entry-cache@6.0.1: - dependencies: - flat-cache: 3.2.0 + fdir@6.5.0(picomatch@4.0.7): + optionalDependencies: + picomatch: 4.0.7 - fill-range@7.1.1: + file-entry-cache@8.0.0: dependencies: - to-regex-range: 5.0.1 + flat-cache: 4.0.1 find-up@5.0.0: dependencies: locate-path: 6.0.0 path-exists: 4.0.0 - flat-cache@3.2.0: + flat-cache@4.0.1: dependencies: flatted: 3.4.4 keyv: 4.5.4 - rimraf: 3.0.2 - - flat@5.0.2: {} flatted@3.4.4: {} - fs.realpath@1.0.0: {} - fsevents@2.3.3: optional: true function-bind@1.1.2: {} - get-caller-file@2.0.5: {} - - glob-parent@5.1.2: - dependencies: - is-glob: 4.0.3 - glob-parent@6.0.2: dependencies: is-glob: 4.0.3 - glob@7.2.3: - dependencies: - fs.realpath: 1.0.0 - inflight: 1.0.6 - inherits: 2.0.4 - minimatch: 3.1.5 - once: 1.4.0 - path-is-absolute: 1.0.1 - - glob@8.1.0: - dependencies: - fs.realpath: 1.0.0 - inflight: 1.0.6 - inherits: 2.0.4 - minimatch: 5.1.9 - once: 1.4.0 - - globals@13.24.0: - dependencies: - type-fest: 0.20.2 + globals@14.0.0: {} - graphemer@1.4.0: {} + globals@17.14.0: {} has-flag@4.0.0: {} @@ -1314,8 +1545,6 @@ snapshots: dependencies: function-bind: 1.1.2 - he@1.2.0: {} - ignore@5.3.2: {} import-fresh@3.3.1: @@ -1325,39 +1554,18 @@ snapshots: imurmurhash@0.1.4: {} - inflight@1.0.6: - dependencies: - once: 1.4.0 - wrappy: 1.0.2 - - inherits@2.0.4: {} - - is-binary-path@2.1.0: - dependencies: - binary-extensions: 2.3.0 - is-core-module@2.17.0: dependencies: hasown: 2.0.4 is-extglob@2.1.1: {} - is-fullwidth-code-point@3.0.0: {} - is-glob@4.0.3: dependencies: is-extglob: 2.1.1 is-module@1.0.0: {} - is-number@7.0.0: {} - - is-path-inside@3.0.3: {} - - is-plain-obj@2.1.0: {} - - is-unicode-supported@0.1.0: {} - isexe@2.0.0: {} js-yaml@4.3.2: @@ -1379,57 +1587,76 @@ snapshots: prelude-ls: 1.2.1 type-check: 0.4.0 + lightningcss-android-arm64@1.33.0: + optional: true + + lightningcss-darwin-arm64@1.33.0: + optional: true + + lightningcss-darwin-x64@1.33.0: + optional: true + + lightningcss-freebsd-x64@1.33.0: + optional: true + + lightningcss-linux-arm-gnueabihf@1.33.0: + optional: true + + lightningcss-linux-arm64-gnu@1.33.0: + optional: true + + lightningcss-linux-arm64-musl@1.33.0: + optional: true + + lightningcss-linux-x64-gnu@1.33.0: + optional: true + + lightningcss-linux-x64-musl@1.33.0: + optional: true + + lightningcss-win32-arm64-msvc@1.33.0: + optional: true + + lightningcss-win32-x64-msvc@1.33.0: + optional: true + + lightningcss@1.33.0: + dependencies: + detect-libc: 2.1.2 + optionalDependencies: + lightningcss-android-arm64: 1.33.0 + lightningcss-darwin-arm64: 1.33.0 + lightningcss-darwin-x64: 1.33.0 + lightningcss-freebsd-x64: 1.33.0 + lightningcss-linux-arm-gnueabihf: 1.33.0 + lightningcss-linux-arm64-gnu: 1.33.0 + lightningcss-linux-arm64-musl: 1.33.0 + lightningcss-linux-x64-gnu: 1.33.0 + lightningcss-linux-x64-musl: 1.33.0 + lightningcss-win32-arm64-msvc: 1.33.0 + lightningcss-win32-x64-msvc: 1.33.0 + locate-path@6.0.0: dependencies: p-locate: 5.0.0 lodash.merge@4.6.2: {} - log-symbols@4.1.0: + magic-string@0.30.21: dependencies: - chalk: 4.1.2 - is-unicode-supported: 0.1.0 + '@jridgewell/sourcemap-codec': 1.6.0 minimatch@3.1.5: dependencies: brace-expansion: 1.1.21 - minimatch@5.1.9: - dependencies: - brace-expansion: 2.1.7 - - mocha@10.8.2: - dependencies: - ansi-colors: 4.1.3 - browser-stdout: 1.3.1 - chokidar: 3.6.0 - debug: 4.4.3(supports-color@8.1.1) - diff: 5.2.2 - escape-string-regexp: 4.0.0 - find-up: 5.0.0 - glob: 8.1.0 - he: 1.2.0 - js-yaml: 4.3.2 - log-symbols: 4.1.0 - minimatch: 5.1.9 - ms: 2.1.3 - serialize-javascript: 6.0.2 - strip-json-comments: 3.1.1 - supports-color: 8.1.1 - workerpool: 6.5.1 - yargs: 16.2.2 - yargs-parser: 20.2.9 - yargs-unparser: 2.0.0 - ms@2.1.3: {} + nanoid@3.3.20: {} + natural-compare@1.4.0: {} - normalize-path@3.0.0: {} - - once@1.4.0: - dependencies: - wrappy: 1.0.2 + obug@2.2.1: {} optionator@0.9.4: dependencies: @@ -1454,31 +1681,25 @@ snapshots: path-exists@4.0.0: {} - path-is-absolute@1.0.1: {} - path-key@3.1.1: {} path-parse@1.0.7: {} - picomatch@2.3.2: {} - - picomatch@4.0.7: {} - - prelude-ls@1.2.1: {} + pathe@2.0.3: {} - punycode@2.3.1: {} + picocolors@1.1.1: {} - queue-microtask@1.2.3: {} + picomatch@4.0.7: {} - randombytes@2.1.0: + postcss@8.5.32: dependencies: - safe-buffer: 5.2.1 + nanoid: 3.3.20 + picocolors: 1.1.1 + source-map-js: 1.2.2 - readdirp@3.6.0: - dependencies: - picomatch: 2.3.2 + prelude-ls@1.2.1: {} - require-directory@2.1.1: {} + punycode@2.3.1: {} resolve-from@4.0.0: {} @@ -1489,11 +1710,26 @@ snapshots: path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 - reusify@1.1.0: {} - - rimraf@3.0.2: + rolldown@1.2.16: dependencies: - glob: 7.2.3 + '@oxc-project/types': 0.156.0 + '@rolldown/pluginutils': 1.0.1 + optionalDependencies: + '@rolldown/binding-android-arm-eabi': 1.2.16 + '@rolldown/binding-android-arm64': 1.2.16 + '@rolldown/binding-darwin-arm64': 1.2.16 + '@rolldown/binding-darwin-x64': 1.2.16 + '@rolldown/binding-freebsd-x64': 1.2.16 + '@rolldown/binding-linux-arm-gnueabihf': 1.2.16 + '@rolldown/binding-linux-arm64-gnu': 1.2.16 + '@rolldown/binding-linux-arm64-musl': 1.2.16 + '@rolldown/binding-linux-ppc64-gnu': 1.2.16 + '@rolldown/binding-linux-s390x-gnu': 1.2.16 + '@rolldown/binding-linux-x64-gnu': 1.2.16 + '@rolldown/binding-linux-x64-musl': 1.2.16 + '@rolldown/binding-openharmony-arm64': 1.2.16 + '@rolldown/binding-win32-arm64-msvc': 1.2.16 + '@rolldown/binding-win32-x64-msvc': 1.2.16 rollup@4.67.4: dependencies: @@ -1528,16 +1764,6 @@ snapshots: '@rollup/rollup-win32-x64-msvc': 4.67.4 fsevents: 2.3.3 - run-parallel@1.2.0: - dependencies: - queue-microtask: 1.2.3 - - safe-buffer@5.2.1: {} - - serialize-javascript@6.0.2: - dependencies: - randombytes: 2.1.0 - serialize-javascript@7.1.4: {} shebang-command@2.0.0: @@ -1546,8 +1772,12 @@ snapshots: shebang-regex@3.0.0: {} + siginfo@2.0.0: {} + smob@1.6.2: {} + source-map-js@1.2.2: {} + source-map-support@0.5.21: dependencies: buffer-from: 1.1.2 @@ -1555,15 +1785,9 @@ snapshots: source-map@0.6.1: {} - string-width@4.2.3: - dependencies: - emoji-regex: 8.0.0 - is-fullwidth-code-point: 3.0.0 - strip-ansi: 6.0.1 + stackback@0.0.2: {} - strip-ansi@6.0.1: - dependencies: - ansi-regex: 5.0.1 + std-env@4.3.0: {} strip-json-comments@3.1.1: {} @@ -1571,10 +1795,6 @@ snapshots: dependencies: has-flag: 4.0.0 - supports-color@8.1.1: - dependencies: - has-flag: 4.0.0 - supports-preserve-symlinks-flag@1.0.0: {} terser@5.51.2: @@ -1584,57 +1804,70 @@ snapshots: commander: 2.20.3 source-map-support: 0.5.21 - text-table@0.2.0: {} + tinybench@2.9.0: {} + + tinyexec@1.3.1: {} - to-regex-range@5.0.1: + tinyglobby@0.2.17: dependencies: - is-number: 7.0.0 + fdir: 6.5.0(picomatch@4.0.7) + picomatch: 4.0.7 + + tinyrainbow@3.2.0: {} type-check@0.4.0: dependencies: prelude-ls: 1.2.1 - type-fest@0.20.2: {} - uri-js@4.4.1: dependencies: punycode: 2.3.1 - which@2.0.2: + vite@8.3.5(terser@5.51.2): dependencies: - isexe: 2.0.0 - - word-wrap@1.2.5: {} + lightningcss: 1.33.0 + picomatch: 4.0.7 + postcss: 8.5.32 + rolldown: 1.2.16 + tinyglobby: 0.2.17 + optionalDependencies: + fsevents: 2.3.3 + terser: 5.51.2 - workerpool@6.5.1: {} + vitest@4.1.12(vite@8.3.5(terser@5.51.2)): + dependencies: + '@vitest/expect': 4.1.12 + '@vitest/mocker': 4.1.12(vite@8.3.5(terser@5.51.2)) + '@vitest/pretty-format': 4.1.12 + '@vitest/runner': 4.1.12 + '@vitest/snapshot': 4.1.12 + '@vitest/spy': 4.1.12 + '@vitest/utils': 4.1.12 + es-module-lexer: 2.3.2 + expect-type: 1.4.0 + magic-string: 0.30.21 + obug: 2.2.1 + pathe: 2.0.3 + picomatch: 4.0.7 + std-env: 4.3.0 + tinybench: 2.9.0 + tinyexec: 1.3.1 + tinyglobby: 0.2.17 + tinyrainbow: 3.2.0 + vite: 8.3.5(terser@5.51.2) + why-is-node-running: 2.3.0 + transitivePeerDependencies: + - msw - wrap-ansi@7.0.0: + which@2.0.2: dependencies: - ansi-styles: 4.3.0 - string-width: 4.2.3 - strip-ansi: 6.0.1 - - wrappy@1.0.2: {} - - y18n@5.0.8: {} - - yargs-parser@20.2.9: {} + isexe: 2.0.0 - yargs-unparser@2.0.0: + why-is-node-running@2.3.0: dependencies: - camelcase: 6.3.0 - decamelize: 4.0.0 - flat: 5.0.2 - is-plain-obj: 2.1.0 + siginfo: 2.0.0 + stackback: 0.0.2 - yargs@16.2.2: - dependencies: - cliui: 7.0.4 - escalade: 3.2.0 - get-caller-file: 2.0.5 - require-directory: 2.1.1 - string-width: 4.2.3 - y18n: 5.0.8 - yargs-parser: 20.2.9 + word-wrap@1.2.5: {} yocto-queue@0.1.0: {} diff --git a/test/.eslintrc.json b/test/.eslintrc.json deleted file mode 100644 index 39d0931e..00000000 --- a/test/.eslintrc.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "eslint:recommended", - "parserOptions": { - "sourceType": "module", - "ecmaVersion": 8 - }, - "env": { - "es6": true, - "mocha": true - } -} diff --git a/test/arc-test.js b/test/arc-test.js index 2bb465f5..ffd018ca 100644 --- a/test/arc-test.js +++ b/test/arc-test.js @@ -1,57 +1,58 @@ +import {test} from "vitest"; import assert from "assert"; import {arc} from "../src/index.js"; import {assertPathEqual} from "./asserts.js"; -it("arc().innerRadius(f)(…) propagates the context and arguments to the specified function f", () => { +test("arc().innerRadius(f)(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; arc().innerRadius(function() { actual = {that: this, args: [].slice.call(arguments)}; }).apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -it("arc().outerRadius(f)(…) propagates the context and arguments to the specified function f", () => { +test("arc().outerRadius(f)(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; arc().outerRadius(function() { actual = {that: this, args: [].slice.call(arguments)}; }).apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -it("arc().cornerRadius(f)(…) propagates the context and arguments to the specified function f", () => { +test("arc().cornerRadius(f)(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; arc().outerRadius(100).cornerRadius(function() { actual = {that: this, args: [].slice.call(arguments)}; }).apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -it("arc().startAngle(f)(…) propagates the context and arguments to the specified function f", () => { +test("arc().startAngle(f)(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; arc().startAngle(function() { actual = {that: this, args: [].slice.call(arguments)}; }).apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -it("arc().endAngle(f)(…) propagates the context and arguments to the specified function f", () => { +test("arc().endAngle(f)(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; arc().endAngle(function() { actual = {that: this, args: [].slice.call(arguments)}; }).apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -it("arc().padAngle(f)(…) propagates the context and arguments to the specified function f", () => { +test("arc().padAngle(f)(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; arc().outerRadius(100).startAngle(Math.PI / 2).padAngle(function() { actual = {that: this, args: [].slice.call(arguments)}; }).apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -it("arc().padRadius(f)(…) propagates the context and arguments to the specified function f", () => { +test("arc().padRadius(f)(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; arc().outerRadius(100).startAngle(Math.PI / 2).padAngle(0.1).padRadius(function() { actual = {that: this, args: [].slice.call(arguments)}; }).apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -it("arc().centroid(…) computes the midpoint of the center line of the arc", () => { +test("arc().centroid(…) computes the midpoint of the center line of the arc", () => { const a = arc(), round = function(x) { return Math.round(x * 1e6) / 1e6; }; assert.deepStrictEqual(a.centroid({innerRadius: 0, outerRadius: 100, startAngle: 0, endAngle: Math.PI}).map(round), [50, 0]); assert.deepStrictEqual(a.centroid({innerRadius: 0, outerRadius: 100, startAngle: 0, endAngle: Math.PI / 2}).map(round), [35.355339, -35.355339]); @@ -59,46 +60,46 @@ it("arc().centroid(…) computes the midpoint of the center line of the arc", () assert.deepStrictEqual(a.centroid({innerRadius: 50, outerRadius: 100, startAngle: 0, endAngle: -Math.PI / 2}).map(round), [-53.033009, -53.033009]); }); -it("arc().innerRadius(f).centroid(…) propagates the context and arguments to the specified function f", () => { +test("arc().innerRadius(f).centroid(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; arc().innerRadius(function() { actual = {that: this, args: [].slice.call(arguments)}; }).centroid.apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -it("arc().outerRadius(f).centroid(…) propagates the context and arguments to the specified function f", () => { +test("arc().outerRadius(f).centroid(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; arc().outerRadius(function() { actual = {that: this, args: [].slice.call(arguments)}; }).centroid.apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -it("arc().startAngle(f).centroid(…) propagates the context and arguments to the specified function f", () => { +test("arc().startAngle(f).centroid(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; arc().startAngle(function() { actual = {that: this, args: [].slice.call(arguments)}; }).centroid.apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -it("arc().endAngle(f).centroid(…) propagates the context and arguments to the specified function f", () => { +test("arc().endAngle(f).centroid(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; arc().endAngle(function() { actual = {that: this, args: [].slice.call(arguments)}; }).centroid.apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -it("arc().innerRadius(0).outerRadius(0) renders a point", () => { +test("arc().innerRadius(0).outerRadius(0) renders a point", () => { const a = arc().innerRadius(0).outerRadius(0); assertPathEqual(a.startAngle(0).endAngle(2 * Math.PI)(), "M0,0Z"); assertPathEqual(a.startAngle(0).endAngle(0)(), "M0,0Z"); }); -it("a negative angle span proceeds anticlockwise", () => { +test("a negative angle span proceeds anticlockwise", () => { const a = arc().innerRadius(0).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(-Math.PI/2)(), "M0,-100A100,100,0,0,0,-100,0L0,0Z"); }); -it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) renders a clockwise circle if r > 0 and θ₁ - θ₀ ≥ τ", () => { +test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) renders a clockwise circle if r > 0 and θ₁ - θ₀ ≥ τ", () => { const a = arc().innerRadius(0).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(2 * Math.PI)(), "M0,-100A100,100,0,1,1,0,100A100,100,0,1,1,0,-100Z"); assertPathEqual(a.startAngle(0).endAngle(3 * Math.PI)(), "M0,-100A100,100,0,1,1,0,100A100,100,0,1,1,0,-100Z"); @@ -107,7 +108,7 @@ it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) render assertPathEqual(a.startAngle(-3 * Math.PI).endAngle(0)(), "M0,100A100,100,0,1,1,0,-100A100,100,0,1,1,0,100Z"); }); -it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) renders an anticlockwise circle if r > 0 and θ₀ - θ₁ ≥ τ", () => { +test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) renders an anticlockwise circle if r > 0 and θ₀ - θ₁ ≥ τ", () => { const a = arc().innerRadius(0).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(-2 * Math.PI)(), "M0,-100A100,100,0,1,0,0,100A100,100,0,1,0,0,-100Z"); assertPathEqual(a.startAngle(0).endAngle(-3 * Math.PI)(), "M0,-100A100,100,0,1,0,0,100A100,100,0,1,0,0,-100Z"); @@ -118,7 +119,7 @@ it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) render // Note: The outer ring starts and ends at θ₀, but the inner ring starts and ends at θ₁. // Note: The outer ring is clockwise, but the inner ring is anticlockwise. -it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) renders a clockwise annulus if r₀ > 0, r₁ > 0 and θ₀ - θ₁ ≥ τ", () => { +test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) renders a clockwise annulus if r₀ > 0, r₁ > 0 and θ₀ - θ₁ ≥ τ", () => { const a = arc().innerRadius(50).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(2 * Math.PI)(), "M0,-100A100,100,0,1,1,0,100A100,100,0,1,1,0,-100M0,-50A50,50,0,1,0,0,50A50,50,0,1,0,0,-50Z"); assertPathEqual(a.startAngle(0).endAngle(3 * Math.PI)(), "M0,-100A100,100,0,1,1,0,100A100,100,0,1,1,0,-100M0,50A50,50,0,1,0,0,-50A50,50,0,1,0,0,50Z"); @@ -129,7 +130,7 @@ it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) // Note: The outer ring starts and ends at θ₀, but the inner ring starts and ends at θ₁. // Note: The outer ring is anticlockwise, but the inner ring is clockwise. -it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) renders an anticlockwise annulus if r₀ > 0, r₁ > 0 and θ₁ - θ₀ ≥ τ", () => { +test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) renders an anticlockwise annulus if r₀ > 0, r₁ > 0 and θ₁ - θ₀ ≥ τ", () => { const a = arc().innerRadius(50).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(-2 * Math.PI)(), "M0,-100A100,100,0,1,0,0,100A100,100,0,1,0,0,-100M0,-50A50,50,0,1,1,0,50A50,50,0,1,1,0,-50Z"); assertPathEqual(a.startAngle(0).endAngle(-3 * Math.PI)(), "M0,-100A100,100,0,1,0,0,100A100,100,0,1,0,0,-100M0,50A50,50,0,1,1,0,-50A50,50,0,1,1,0,50Z"); @@ -138,28 +139,28 @@ it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) assertPathEqual(a.startAngle(3 * Math.PI).endAngle(0)(), "M0,100A100,100,0,1,0,0,-100A100,100,0,1,0,0,100M0,-50A50,50,0,1,1,0,50A50,50,0,1,1,0,-50Z"); }); -it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) renders a small clockwise sector if r > 0 and π > θ₁ - θ₀ ≥ 0", () => { +test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) renders a small clockwise sector if r > 0 and π > θ₁ - θ₀ ≥ 0", () => { const a = arc().innerRadius(0).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(Math.PI / 2)(), "M0,-100A100,100,0,0,1,100,0L0,0Z"); assertPathEqual(a.startAngle(2 * Math.PI).endAngle(5 * Math.PI / 2)(), "M0,-100A100,100,0,0,1,100,0L0,0Z"); assertPathEqual(a.startAngle(-Math.PI).endAngle(-Math.PI / 2)(), "M0,100A100,100,0,0,1,-100,0L0,0Z"); }); -it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) renders a small anticlockwise sector if r > 0 and π > θ₀ - θ₁ ≥ 0", () => { +test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) renders a small anticlockwise sector if r > 0 and π > θ₀ - θ₁ ≥ 0", () => { const a = arc().innerRadius(0).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(-Math.PI / 2)(), "M0,-100A100,100,0,0,0,-100,0L0,0Z"); assertPathEqual(a.startAngle(-2 * Math.PI).endAngle(-5 * Math.PI / 2)(), "M0,-100A100,100,0,0,0,-100,0L0,0Z"); assertPathEqual(a.startAngle(Math.PI).endAngle(Math.PI / 2)(), "M0,100A100,100,0,0,0,100,0L0,0Z"); }); -it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) renders a large clockwise sector if r > 0 and τ > θ₁ - θ₀ ≥ π", () => { +test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) renders a large clockwise sector if r > 0 and τ > θ₁ - θ₀ ≥ π", () => { const a = arc().innerRadius(0).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(3 * Math.PI / 2)(), "M0,-100A100,100,0,1,1,-100,0L0,0Z"); assertPathEqual(a.startAngle(2 * Math.PI).endAngle(7 * Math.PI / 2)(), "M0,-100A100,100,0,1,1,-100,0L0,0Z"); assertPathEqual(a.startAngle(-Math.PI).endAngle(Math.PI / 2)(), "M0,100A100,100,0,1,1,100,0L0,0Z"); }); -it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) renders a large anticlockwise sector if r > 0 and τ > θ₀ - θ₁ ≥ π", () => { +test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) renders a large anticlockwise sector if r > 0 and τ > θ₀ - θ₁ ≥ π", () => { const a = arc().innerRadius(0).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(-3 * Math.PI / 2)(), "M0,-100A100,100,0,1,0,100,0L0,0Z"); assertPathEqual(a.startAngle(-2 * Math.PI).endAngle(-7 * Math.PI / 2)(), "M0,-100A100,100,0,1,0,100,0L0,0Z"); @@ -167,7 +168,7 @@ it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) render }); // Note: The outer ring is clockwise, but the inner ring is anticlockwise. -it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) renders a small clockwise annular sector if r₀ > 0, r₁ > 0 and π > θ₁ - θ₀ ≥ 0", () => { +test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) renders a small clockwise annular sector if r₀ > 0, r₁ > 0 and π > θ₁ - θ₀ ≥ 0", () => { const a = arc().innerRadius(50).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(Math.PI / 2)(), "M0,-100A100,100,0,0,1,100,0L50,0A50,50,0,0,0,0,-50Z"); assertPathEqual(a.startAngle(2 * Math.PI).endAngle(5 * Math.PI / 2)(), "M0,-100A100,100,0,0,1,100,0L50,0A50,50,0,0,0,0,-50Z"); @@ -175,7 +176,7 @@ it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) }); // Note: The outer ring is anticlockwise, but the inner ring is clockwise. -it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) renders a small anticlockwise annular sector if r₀ > 0, r₁ > 0 and π > θ₀ - θ₁ ≥ 0", () => { +test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) renders a small anticlockwise annular sector if r₀ > 0, r₁ > 0 and π > θ₀ - θ₁ ≥ 0", () => { const a = arc().innerRadius(50).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(-Math.PI / 2)(), "M0,-100A100,100,0,0,0,-100,0L-50,0A50,50,0,0,1,0,-50Z"); assertPathEqual(a.startAngle(-2 * Math.PI).endAngle(-5 * Math.PI / 2)(), "M0,-100A100,100,0,0,0,-100,0L-50,0A50,50,0,0,1,0,-50Z"); @@ -183,7 +184,7 @@ it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) }); // Note: The outer ring is clockwise, but the inner ring is anticlockwise. -it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) renders a large clockwise annular sector if r₀ > 0, r₁ > 0 and τ > θ₁ - θ₀ ≥ π", () => { +test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) renders a large clockwise annular sector if r₀ > 0, r₁ > 0 and τ > θ₁ - θ₀ ≥ π", () => { const a = arc().innerRadius(50).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(3 * Math.PI / 2)(), "M0,-100A100,100,0,1,1,-100,0L-50,0A50,50,0,1,0,0,-50Z"); assertPathEqual(a.startAngle(2 * Math.PI).endAngle(7 * Math.PI / 2)(), "M0,-100A100,100,0,1,1,-100,0L-50,0A50,50,0,1,0,0,-50Z"); @@ -191,20 +192,20 @@ it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) }); // Note: The outer ring is anticlockwise, but the inner ring is clockwise. -it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) renders a large anticlockwise annular sector if r₀ > 0, r₁ > 0 and τ > θ₀ - θ₁ ≥ π", () => { +test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) renders a large anticlockwise annular sector if r₀ > 0, r₁ > 0 and τ > θ₀ - θ₁ ≥ π", () => { const a = arc().innerRadius(50).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(-3 * Math.PI / 2)(), "M0,-100A100,100,0,1,0,100,0L50,0A50,50,0,1,1,0,-50Z"); assertPathEqual(a.startAngle(-2 * Math.PI).endAngle(-7 * Math.PI / 2)(), "M0,-100A100,100,0,1,0,100,0L50,0A50,50,0,1,1,0,-50Z"); assertPathEqual(a.startAngle(Math.PI).endAngle(-Math.PI / 2)(), "M0,100A100,100,0,1,0,-100,0L-50,0A50,50,0,1,1,0,50Z"); }); -it("arc().innerRadius(0).outerRadius(0).cornerRadius(r) renders a point", () => { +test("arc().innerRadius(0).outerRadius(0).cornerRadius(r) renders a point", () => { const a = arc().innerRadius(0).outerRadius(0).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(2 * Math.PI)(), "M0,0Z"); assertPathEqual(a.startAngle(0).endAngle(0)(), "M0,0Z"); }); -it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a clockwise circle if r > 0 and θ₁ - θ₀ ≥ τ", () => { +test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a clockwise circle if r > 0 and θ₁ - θ₀ ≥ τ", () => { const a = arc().innerRadius(0).outerRadius(100).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(2 * Math.PI)(), "M0,-100A100,100,0,1,1,0,100A100,100,0,1,1,0,-100Z"); assertPathEqual(a.startAngle(0).endAngle(3 * Math.PI)(), "M0,-100A100,100,0,1,1,0,100A100,100,0,1,1,0,-100Z"); @@ -213,7 +214,7 @@ it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).corner assertPathEqual(a.startAngle(-3 * Math.PI).endAngle(0)(), "M0,100A100,100,0,1,1,0,-100A100,100,0,1,1,0,100Z"); }); -it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders an anticlockwise circle if r > 0 and θ₀ - θ₁ ≥ τ", () => { +test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders an anticlockwise circle if r > 0 and θ₀ - θ₁ ≥ τ", () => { const a = arc().innerRadius(0).outerRadius(100).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(-2 * Math.PI)(), "M0,-100A100,100,0,1,0,0,100A100,100,0,1,0,0,-100Z"); assertPathEqual(a.startAngle(0).endAngle(-3 * Math.PI)(), "M0,-100A100,100,0,1,0,0,100A100,100,0,1,0,0,-100Z"); @@ -224,7 +225,7 @@ it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).corner // Note: The outer ring starts and ends at θ₀, but the inner ring starts and ends at θ₁. // Note: The outer ring is clockwise, but the inner ring is anticlockwise. -it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a clockwise annulus if r₀ > 0, r₁ > 0 and θ₀ - θ₁ ≥ τ", () => { +test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a clockwise annulus if r₀ > 0, r₁ > 0 and θ₀ - θ₁ ≥ τ", () => { const a = arc().innerRadius(50).outerRadius(100).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(2 * Math.PI)(), "M0,-100A100,100,0,1,1,0,100A100,100,0,1,1,0,-100M0,-50A50,50,0,1,0,0,50A50,50,0,1,0,0,-50Z"); assertPathEqual(a.startAngle(0).endAngle(3 * Math.PI)(), "M0,-100A100,100,0,1,1,0,100A100,100,0,1,1,0,-100M0,50A50,50,0,1,0,0,-50A50,50,0,1,0,0,50Z"); @@ -235,7 +236,7 @@ it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁). // Note: The outer ring starts and ends at θ₀, but the inner ring starts and ends at θ₁. // Note: The outer ring is anticlockwise, but the inner ring is clockwise. -it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders an anticlockwise annulus if r₀ > 0, r₁ > 0 and θ₁ - θ₀ ≥ τ", () => { +test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders an anticlockwise annulus if r₀ > 0, r₁ > 0 and θ₁ - θ₀ ≥ τ", () => { const a = arc().innerRadius(50).outerRadius(100).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(-2 * Math.PI)(), "M0,-100A100,100,0,1,0,0,100A100,100,0,1,0,0,-100M0,-50A50,50,0,1,1,0,50A50,50,0,1,1,0,-50Z"); assertPathEqual(a.startAngle(0).endAngle(-3 * Math.PI)(), "M0,-100A100,100,0,1,0,0,100A100,100,0,1,0,0,-100M0,50A50,50,0,1,1,0,-50A50,50,0,1,1,0,50Z"); @@ -244,28 +245,28 @@ it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁). assertPathEqual(a.startAngle(3 * Math.PI).endAngle(0)(), "M0,100A100,100,0,1,0,0,-100A100,100,0,1,0,0,100M0,-50A50,50,0,1,1,0,50A50,50,0,1,1,0,-50Z"); }); -it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a small clockwise sector if r > 0 and π > θ₁ - θ₀ ≥ 0", () => { +test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a small clockwise sector if r > 0 and π > θ₁ - θ₀ ≥ 0", () => { const a = arc().innerRadius(0).outerRadius(100).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(Math.PI / 2)(), "M0,-94.868330A5,5,0,0,1,5.263158,-99.861400A100,100,0,0,1,99.861400,-5.263158A5,5,0,0,1,94.868330,0L0,0Z"); assertPathEqual(a.startAngle(2 * Math.PI).endAngle(5 * Math.PI / 2)(), "M0,-94.868330A5,5,0,0,1,5.263158,-99.861400A100,100,0,0,1,99.861400,-5.263158A5,5,0,0,1,94.868330,0L0,0Z"); assertPathEqual(a.startAngle(-Math.PI).endAngle(-Math.PI / 2)(), "M0,94.868330A5,5,0,0,1,-5.263158,99.861400A100,100,0,0,1,-99.861400,5.263158A5,5,0,0,1,-94.868330,0L0,0Z"); }); -it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a small anticlockwise sector if r > 0 and π > θ₀ - θ₁ ≥ 0", () => { +test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a small anticlockwise sector if r > 0 and π > θ₀ - θ₁ ≥ 0", () => { const a = arc().innerRadius(0).outerRadius(100).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(-Math.PI / 2)(), "M0,-94.868330A5,5,0,0,0,-5.263158,-99.861400A100,100,0,0,0,-99.861400,-5.263158A5,5,0,0,0,-94.868330,0L0,0Z"); assertPathEqual(a.startAngle(-2 * Math.PI).endAngle(-5 * Math.PI / 2)(), "M0,-94.868330A5,5,0,0,0,-5.263158,-99.861400A100,100,0,0,0,-99.861400,-5.263158A5,5,0,0,0,-94.868330,0L0,0Z"); assertPathEqual(a.startAngle(Math.PI).endAngle(Math.PI / 2)(), "M0,94.868330A5,5,0,0,0,5.263158,99.861400A100,100,0,0,0,99.861400,5.263158A5,5,0,0,0,94.868330,0L0,0Z"); }); -it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a large clockwise sector if r > 0 and τ > θ₁ - θ₀ ≥ π", () => { +test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a large clockwise sector if r > 0 and τ > θ₁ - θ₀ ≥ π", () => { const a = arc().innerRadius(0).outerRadius(100).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(3 * Math.PI / 2)(), "M0,-94.868330A5,5,0,0,1,5.263158,-99.861400A100,100,0,1,1,-99.861400,5.263158A5,5,0,0,1,-94.868330,0L0,0Z"); assertPathEqual(a.startAngle(2 * Math.PI).endAngle(7 * Math.PI / 2)(), "M0,-94.868330A5,5,0,0,1,5.263158,-99.861400A100,100,0,1,1,-99.861400,5.263158A5,5,0,0,1,-94.868330,0L0,0Z"); assertPathEqual(a.startAngle(-Math.PI).endAngle(Math.PI / 2)(), "M0,94.868330A5,5,0,0,1,-5.263158,99.861400A100,100,0,1,1,99.861400,-5.263158A5,5,0,0,1,94.868330,0L0,0Z"); }); -it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a large anticlockwise sector if r > 0 and τ > θ₀ - θ₁ ≥ π", () => { +test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a large anticlockwise sector if r > 0 and τ > θ₀ - θ₁ ≥ π", () => { const a = arc().innerRadius(0).outerRadius(100).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(-3 * Math.PI / 2)(), "M0,-94.868330A5,5,0,0,0,-5.263158,-99.861400A100,100,0,1,0,99.861400,5.263158A5,5,0,0,0,94.868330,0L0,0Z"); assertPathEqual(a.startAngle(-2 * Math.PI).endAngle(-7 * Math.PI / 2)(), "M0,-94.868330A5,5,0,0,0,-5.263158,-99.861400A100,100,0,1,0,99.861400,5.263158A5,5,0,0,0,94.868330,0L0,0Z"); @@ -273,7 +274,7 @@ it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).corner }); // Note: The outer ring is clockwise, but the inner ring is anticlockwise. -it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a small clockwise annular sector if r₀ > 0, r₁ > 0 and π > θ₁ - θ₀ ≥ 0", () => { +test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a small clockwise annular sector if r₀ > 0, r₁ > 0 and π > θ₁ - θ₀ ≥ 0", () => { const a = arc().innerRadius(50).outerRadius(100).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(Math.PI / 2)(), "M0,-94.868330A5,5,0,0,1,5.263158,-99.861400A100,100,0,0,1,99.861400,-5.263158A5,5,0,0,1,94.868330,0L54.772256,0A5,5,0,0,1,49.792960,-4.545455A50,50,0,0,0,4.545455,-49.792960A5,5,0,0,1,0,-54.772256Z"); assertPathEqual(a.startAngle(2 * Math.PI).endAngle(5 * Math.PI / 2)(), "M0,-94.868330A5,5,0,0,1,5.263158,-99.861400A100,100,0,0,1,99.861400,-5.263158A5,5,0,0,1,94.868330,0L54.772256,0A5,5,0,0,1,49.792960,-4.545455A50,50,0,0,0,4.545455,-49.792960A5,5,0,0,1,0,-54.772256Z"); @@ -281,7 +282,7 @@ it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁). }); // Note: The outer ring is anticlockwise, but the inner ring is clockwise. -it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a small anticlockwise annular sector if r₀ > 0, r₁ > 0 and π > θ₀ - θ₁ ≥ 0", () => { +test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a small anticlockwise annular sector if r₀ > 0, r₁ > 0 and π > θ₀ - θ₁ ≥ 0", () => { const a = arc().innerRadius(50).outerRadius(100).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(-Math.PI / 2)(), "M0,-94.868330A5,5,0,0,0,-5.263158,-99.861400A100,100,0,0,0,-99.861400,-5.263158A5,5,0,0,0,-94.868330,0L-54.772256,0A5,5,0,0,0,-49.792960,-4.545455A50,50,0,0,1,-4.545455,-49.792960A5,5,0,0,0,0,-54.772256Z"); assertPathEqual(a.startAngle(-2 * Math.PI).endAngle(-5 * Math.PI / 2)(), "M0,-94.868330A5,5,0,0,0,-5.263158,-99.861400A100,100,0,0,0,-99.861400,-5.263158A5,5,0,0,0,-94.868330,0L-54.772256,0A5,5,0,0,0,-49.792960,-4.545455A50,50,0,0,1,-4.545455,-49.792960A5,5,0,0,0,0,-54.772256Z"); @@ -289,7 +290,7 @@ it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁). }); // Note: The outer ring is clockwise, but the inner ring is anticlockwise. -it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a large clockwise annular sector if r₀ > 0, r₁ > 0 and τ > θ₁ - θ₀ ≥ π", () => { +test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a large clockwise annular sector if r₀ > 0, r₁ > 0 and τ > θ₁ - θ₀ ≥ π", () => { const a = arc().innerRadius(50).outerRadius(100).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(3 * Math.PI / 2)(), "M0,-94.868330A5,5,0,0,1,5.263158,-99.861400A100,100,0,1,1,-99.861400,5.263158A5,5,0,0,1,-94.868330,0L-54.772256,0A5,5,0,0,1,-49.792960,4.545455A50,50,0,1,0,4.545455,-49.792960A5,5,0,0,1,0,-54.772256Z"); assertPathEqual(a.startAngle(2 * Math.PI).endAngle(7 * Math.PI / 2)(), "M0,-94.868330A5,5,0,0,1,5.263158,-99.861400A100,100,0,1,1,-99.861400,5.263158A5,5,0,0,1,-94.868330,0L-54.772256,0A5,5,0,0,1,-49.792960,4.545455A50,50,0,1,0,4.545455,-49.792960A5,5,0,0,1,0,-54.772256Z"); @@ -297,71 +298,71 @@ it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁). }); // Note: The outer ring is anticlockwise, but the inner ring is clockwise. -it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a large anticlockwise annular sector if r₀ > 0, r₁ > 0 and τ > θ₀ - θ₁ ≥ π", () => { +test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a large anticlockwise annular sector if r₀ > 0, r₁ > 0 and τ > θ₀ - θ₁ ≥ π", () => { const a = arc().innerRadius(50).outerRadius(100).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(-3 * Math.PI / 2)(), "M0,-94.868330A5,5,0,0,0,-5.263158,-99.861400A100,100,0,1,0,99.861400,5.263158A5,5,0,0,0,94.868330,0L54.772256,0A5,5,0,0,0,49.792960,4.545455A50,50,0,1,1,-4.545455,-49.792960A5,5,0,0,0,0,-54.772256Z"); assertPathEqual(a.startAngle(-2 * Math.PI).endAngle(-7 * Math.PI / 2)(), "M0,-94.868330A5,5,0,0,0,-5.263158,-99.861400A100,100,0,1,0,99.861400,5.263158A5,5,0,0,0,94.868330,0L54.772256,0A5,5,0,0,0,49.792960,4.545455A50,50,0,1,1,-4.545455,-49.792960A5,5,0,0,0,0,-54.772256Z"); assertPathEqual(a.startAngle(Math.PI).endAngle(-Math.PI / 2)(), "M0,94.868330A5,5,0,0,0,5.263158,99.861400A100,100,0,1,0,-99.861400,-5.263158A5,5,0,0,0,-94.868330,0L-54.772256,0A5,5,0,0,0,-49.792960,-4.545455A50,50,0,1,1,4.545455,49.792960A5,5,0,0,0,0,54.772256Z"); }); -it("arc().innerRadius(r₀).outerRadius(r₁).cornerRadius(rᵧ) restricts rᵧ to |r₁ - r₀| / 2", () => { +test("arc().innerRadius(r₀).outerRadius(r₁).cornerRadius(rᵧ) restricts rᵧ to |r₁ - r₀| / 2", () => { const a = arc().cornerRadius(Infinity).startAngle(0).endAngle(Math.PI / 2); assertPathEqual(a.innerRadius(90).outerRadius(100)(), "M0,-94.868330A5,5,0,0,1,5.263158,-99.861400A100,100,0,0,1,99.861400,-5.263158A5,5,0,0,1,94.868330,0L94.868330,0A5,5,0,0,1,89.875260,-4.736842A90,90,0,0,0,4.736842,-89.875260A5,5,0,0,1,0,-94.868330Z"); assertPathEqual(a.innerRadius(100).outerRadius(90)(), "M0,-94.868330A5,5,0,0,1,5.263158,-99.861400A100,100,0,0,1,99.861400,-5.263158A5,5,0,0,1,94.868330,0L94.868330,0A5,5,0,0,1,89.875260,-4.736842A90,90,0,0,0,4.736842,-89.875260A5,5,0,0,1,0,-94.868330Z"); }); -it("arc().innerRadius(r₀).outerRadius(r₁).cornerRadius(rᵧ) merges adjacent corners when rᵧ is relatively large", () => { +test("arc().innerRadius(r₀).outerRadius(r₁).cornerRadius(rᵧ) merges adjacent corners when rᵧ is relatively large", () => { const a = arc().cornerRadius(Infinity).startAngle(0).endAngle(Math.PI / 2); assertPathEqual(a.innerRadius(10).outerRadius(100)(), "M0,-41.421356A41.421356,41.421356,0,1,1,41.421356,0L24.142136,0A24.142136,24.142136,0,0,1,0,-24.142136Z"); assertPathEqual(a.innerRadius(100).outerRadius(10)(), "M0,-41.421356A41.421356,41.421356,0,1,1,41.421356,0L24.142136,0A24.142136,24.142136,0,0,1,0,-24.142136Z"); }); -it("arc().innerRadius(0).outerRadius(0).startAngle(0).endAngle(τ).padAngle(δ) does not pad a point", () => { +test("arc().innerRadius(0).outerRadius(0).startAngle(0).endAngle(τ).padAngle(δ) does not pad a point", () => { const a = arc().innerRadius(0).outerRadius(0).startAngle(0).endAngle(2 * Math.PI).padAngle(0.1); assertPathEqual(a(), "M0,0Z"); }); -it("arc().innerRadius(0).outerRadius(r).startAngle(0).endAngle(τ).padAngle(δ) does not pad a circle", () => { +test("arc().innerRadius(0).outerRadius(r).startAngle(0).endAngle(τ).padAngle(δ) does not pad a circle", () => { const a = arc().innerRadius(0).outerRadius(100).startAngle(0).endAngle(2 * Math.PI).padAngle(0.1); assertPathEqual(a(), "M0,-100A100,100,0,1,1,0,100A100,100,0,1,1,0,-100Z"); }); -it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(0).endAngle(τ).padAngle(δ) does not pad an annulus", () => { +test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(0).endAngle(τ).padAngle(δ) does not pad an annulus", () => { const a = arc().innerRadius(50).outerRadius(100).startAngle(0).endAngle(2 * Math.PI).padAngle(0.1); assertPathEqual(a(), "M0,-100A100,100,0,1,1,0,100A100,100,0,1,1,0,-100M0,-50A50,50,0,1,0,0,50A50,50,0,1,0,0,-50Z"); }); -it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).padAngle(δ) pads the outside of a circular sector", () => { +test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).padAngle(δ) pads the outside of a circular sector", () => { const a = arc().innerRadius(0).outerRadius(100).startAngle(0).endAngle(Math.PI / 2).padAngle(0.1); assertPathEqual(a(), "M4.997917,-99.875026A100,100,0,0,1,99.875026,-4.997917L0,0Z"); }); -it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).padAngle(δ) pads an annular sector", () => { +test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).padAngle(δ) pads an annular sector", () => { const a = arc().innerRadius(50).outerRadius(100).startAngle(0).endAngle(Math.PI / 2).padAngle(0.1); assertPathEqual(a(), "M5.587841,-99.843758A100,100,0,0,1,99.843758,-5.587841L49.686779,-5.587841A50,50,0,0,0,5.587841,-49.686779Z"); }); -it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).padAngle(δ) may collapse the inside of an annular sector", () => { +test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).padAngle(δ) may collapse the inside of an annular sector", () => { const a = arc().innerRadius(10).outerRadius(100).startAngle(0).endAngle(Math.PI / 2).padAngle(0.2); assertPathEqual(a(), "M10.033134,-99.495408A100,100,0,0,1,99.495408,-10.033134L7.071068,-7.071068Z"); }); -it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).padAngle(δ).cornerRadius(rᵧ) rounds and pads a circular sector", () => { +test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).padAngle(δ).cornerRadius(rᵧ) rounds and pads a circular sector", () => { const a = arc().innerRadius(0).outerRadius(100).startAngle(0).endAngle(Math.PI / 2).padAngle(0.1).cornerRadius(10); assertPathEqual(a(), "M4.470273,-89.330939A10,10,0,0,1,16.064195,-98.701275A100,100,0,0,1,98.701275,-16.064195A10,10,0,0,1,89.330939,-4.470273L0,0Z"); }); -it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).padAngle(δ).cornerRadius(rᵧ) rounds and pads an annular sector", () => { +test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).padAngle(δ).cornerRadius(rᵧ) rounds and pads an annular sector", () => { const a = arc().innerRadius(50).outerRadius(100).startAngle(0).endAngle(Math.PI / 2).padAngle(0.1).cornerRadius(10); assertPathEqual(a(), "M5.587841,-88.639829A10,10,0,0,1,17.319823,-98.488698A100,100,0,0,1,98.488698,-17.319823A10,10,0,0,1,88.639829,-5.587841L57.939790,-5.587841A10,10,0,0,1,48.283158,-12.989867A50,50,0,0,0,12.989867,-48.283158A10,10,0,0,1,5.587841,-57.939790Z"); }); -it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).padAngle(δ).cornerRadius(rᵧ) rounds and pads a collapsed annular sector", () => { +test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).padAngle(δ).cornerRadius(rᵧ) rounds and pads a collapsed annular sector", () => { const a = arc().innerRadius(10).outerRadius(100).startAngle(0).endAngle(Math.PI / 2).padAngle(0.2).cornerRadius(10); assertPathEqual(a(), "M9.669396,-88.145811A10,10,0,0,1,21.849183,-97.583878A100,100,0,0,1,97.583878,-21.849183A10,10,0,0,1,88.145811,-9.669396L7.071068,-7.071068Z"); }); -it("arc() handles a very small arc with rounded corners", () => { +test("arc() handles a very small arc with rounded corners", () => { const a = arc().innerRadius(15).outerRadius(24).padAngle(0).startAngle(1.2 - 1e-8).endAngle(1.2).cornerRadius(4); assertPathEqual(a(), "M22.369,-8.697L13.981,-5.435Z"); }); diff --git a/test/area-test.js b/test/area-test.js index 3c0c6ec3..eeb646eb 100644 --- a/test/area-test.js +++ b/test/area-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; import assert from "assert"; import {area, curveCardinal, curveLinear} from "../src/index.js"; import {assertPathEqual} from "./asserts.js"; -it("area() returns a default area shape", () => { +test("area() returns a default area shape", () => { const a = area(); assert.strictEqual(a.x0()([42, 34]), 42); assert.strictEqual(a.x1(), null); @@ -14,7 +15,7 @@ it("area() returns a default area shape", () => { assertPathEqual(a([[0, 1], [2, 3], [4, 5]]), "M0,1L2,3L4,5L4,0L2,0L0,0Z"); }); -it("area(x, y0, y1) sets x0, y0 and y1", () => { +test("area(x, y0, y1) sets x0, y0 and y1", () => { const x = function() {}, y = function() {}; assert.strictEqual(area(x).x0(), x); assert.strictEqual(area(x, y).y0(), y); @@ -24,49 +25,49 @@ it("area(x, y0, y1) sets x0, y0 and y1", () => { assert.strictEqual(area(3, 2, 1).y1()("aa"), 1); }); -it("area.x(f)(data) passes d, i and data to the specified function f", () => { +test("area.x(f)(data) passes d, i and data to the specified function f", () => { const data = ["a", "b"], actual = []; area().x(function() { actual.push([].slice.call(arguments)); })(data); assert.deepStrictEqual(actual, [["a", 0, data], ["b", 1, data]]); }); -it("area.x0(f)(data) passes d, i and data to the specified function f", () => { +test("area.x0(f)(data) passes d, i and data to the specified function f", () => { const data = ["a", "b"], actual = []; area().x0(function() { actual.push([].slice.call(arguments)); })(data); assert.deepStrictEqual(actual, [["a", 0, data], ["b", 1, data]]); }); -it("area.x1(f)(data) passes d, i and data to the specified function f", () => { +test("area.x1(f)(data) passes d, i and data to the specified function f", () => { const data = ["a", "b"], actual = []; area().x1(function() { actual.push([].slice.call(arguments)); })(data); assert.deepStrictEqual(actual, [["a", 0, data], ["b", 1, data]]); }); -it("area.y(f)(data) passes d, i and data to the specified function f", () => { +test("area.y(f)(data) passes d, i and data to the specified function f", () => { const data = ["a", "b"], actual = []; area().y(function() { actual.push([].slice.call(arguments)); })(data); assert.deepStrictEqual(actual, [["a", 0, data], ["b", 1, data]]); }); -it("area.y0(f)(data) passes d, i and data to the specified function f", () => { +test("area.y0(f)(data) passes d, i and data to the specified function f", () => { const data = ["a", "b"], actual = []; area().y0(function() { actual.push([].slice.call(arguments)); })(data); assert.deepStrictEqual(actual, [["a", 0, data], ["b", 1, data]]); }); -it("area.y1(f)(data) passes d, i and data to the specified function f", () => { +test("area.y1(f)(data) passes d, i and data to the specified function f", () => { const data = ["a", "b"], actual = []; area().y1(function() { actual.push([].slice.call(arguments)); })(data); assert.deepStrictEqual(actual, [["a", 0, data], ["b", 1, data]]); }); -it("area.defined(f)(data) passes d, i and data to the specified function f", () => { +test("area.defined(f)(data) passes d, i and data to the specified function f", () => { const data = ["a", "b"], actual = []; area().defined(function() { actual.push([].slice.call(arguments)); })(data); assert.deepStrictEqual(actual, [["a", 0, data], ["b", 1, data]]); }); -it("area.x(x)(data) observes the specified function", () => { +test("area.x(x)(data) observes the specified function", () => { const x = function(d) { return d.x; }; const a = area().x(x); assert.strictEqual(a.x(), x); @@ -75,7 +76,7 @@ it("area.x(x)(data) observes the specified function", () => { assertPathEqual(a([{x: 0, 1: 1}, {x: 2, 1: 3}, {x: 4, 1: 5}]), "M0,1L2,3L4,5L4,0L2,0L0,0Z"); }); -it("area.x(x)(data) observes the specified constant", () => { +test("area.x(x)(data) observes the specified constant", () => { const x = 0; const a = area().x(x); assert.strictEqual(a.x()(), 0); @@ -84,7 +85,7 @@ it("area.x(x)(data) observes the specified constant", () => { assertPathEqual(a([{1: 1}, {1: 3}, {1: 5}]), "M0,1L0,3L0,5L0,0L0,0L0,0Z"); }); -it("area.y(y)(data) observes the specified function", () => { +test("area.y(y)(data) observes the specified function", () => { const y = function(d) { return d.y; }; const a = area().y(y); assert.strictEqual(a.y(), y); @@ -93,7 +94,7 @@ it("area.y(y)(data) observes the specified function", () => { assertPathEqual(a([{0: 0, y: 1}, {0: 2, y: 3}, {0: 4, y: 5}]), "M0,1L2,3L4,5L4,5L2,3L0,1Z"); }); -it("area.y(y)(data) observes the specified constant", () => { +test("area.y(y)(data) observes the specified constant", () => { const a = area().y(0); assert.strictEqual(a.y()(), 0); assert.strictEqual(a.y0()(), 0); @@ -101,12 +102,12 @@ it("area.y(y)(data) observes the specified constant", () => { assertPathEqual(a([{0: 0}, {0: 2}, {0: 4}]), "M0,0L2,0L4,0L4,0L2,0L0,0Z"); }); -it("area.curve(curve) sets the curve method", () => { +test("area.curve(curve) sets the curve method", () => { const a = area().curve(curveCardinal); assertPathEqual(a([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1C0,1,0.666667,3,1,3C1.333333,3,1.666667,1,2,1C2.333333,1,3,3,3,3L3,0C3,0,2.333333,0,2,0C1.666667,0,1.333333,0,1,0C0.666667,0,0,0,0,0Z"); }); -it("area.curve(curveCardinal.tension(tension)) sets the cardinal spline tension", () => { +test("area.curve(curveCardinal.tension(tension)) sets the cardinal spline tension", () => { const a = area().curve(curveCardinal.tension(0.1)); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); @@ -115,7 +116,7 @@ it("area.curve(curveCardinal.tension(tension)) sets the cardinal spline tension" assertPathEqual(a([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1C0,1,0.700000,3,1,3C1.300000,3,1.700000,1,2,1C2.300000,1,3,3,3,3L3,0C3,0,2.300000,0,2,0C1.700000,0,1.300000,0,1,0C0.700000,0,0,0,0,0Z"); }); -it("area.curve(curveCardinal.tension(tension)) coerces the specified tension to a number", () => { +test("area.curve(curveCardinal.tension(tension)) coerces the specified tension to a number", () => { const a = area().curve(curveCardinal.tension("0.1")); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); @@ -124,7 +125,7 @@ it("area.curve(curveCardinal.tension(tension)) coerces the specified tension to assertPathEqual(a([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1C0,1,0.700000,3,1,3C1.300000,3,1.700000,1,2,1C2.300000,1,3,3,3,3L3,0C3,0,2.300000,0,2,0C1.700000,0,1.300000,0,1,0C0.700000,0,0,0,0,0Z"); }); -it("area.lineX0() returns a line derived from the area", () => { +test("area.lineX0() returns a line derived from the area", () => { const defined = function() { return true; }; const curve = curveCardinal; const context = {}; @@ -140,7 +141,7 @@ it("area.lineX0() returns a line derived from the area", () => { assert.strictEqual(l.y(), y); }); -it("area.lineX1() returns a line derived from the area", () => { +test("area.lineX1() returns a line derived from the area", () => { const defined = function() { return true; }; const curve = curveCardinal; const context = {}; @@ -156,7 +157,7 @@ it("area.lineX1() returns a line derived from the area", () => { assert.strictEqual(l.y(), y); }); -it("area.lineY0() returns a line derived from the area", () => { +test("area.lineY0() returns a line derived from the area", () => { const defined = function() { return true; }; const curve = curveCardinal; const context = {}; @@ -172,7 +173,7 @@ it("area.lineY0() returns a line derived from the area", () => { assert.strictEqual(l.y(), y0); }); -it("area.lineY1() returns a line derived from the area", () => { +test("area.lineY1() returns a line derived from the area", () => { const defined = function() { return true; }; const curve = curveCardinal; const context = {}; diff --git a/test/areaRadial-test.js b/test/areaRadial-test.js index aa74e697..f73c4971 100644 --- a/test/areaRadial-test.js +++ b/test/areaRadial-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; import assert from "assert"; import {areaRadial, curveCardinal, curveLinear} from "../src/index.js"; import {assertPathEqual} from "./asserts.js"; -it("areaRadial() returns a default radial area shape", () => { +test("areaRadial() returns a default radial area shape", () => { const a = areaRadial(); assert.strictEqual(a.startAngle()([42, 34]), 42); assert.strictEqual(a.endAngle(), null); @@ -14,7 +15,7 @@ it("areaRadial() returns a default radial area shape", () => { assertPathEqual(a([[0, 1], [2, 3], [4, 5]]), "M0,-1L2.727892,1.248441L-3.784012,3.268218L0,0L0,0L0,0Z"); }); -it("areaRadial.lineStartAngle() returns a line derived from the area", () => { +test("areaRadial.lineStartAngle() returns a line derived from the area", () => { const defined = function() { return true; }; const curve = curveCardinal; const context = {}; @@ -30,7 +31,7 @@ it("areaRadial.lineStartAngle() returns a line derived from the area", () => { assert.strictEqual(l.radius(), radius); }); -it("areaRadial.lineEndAngle() returns a line derived from the area", () => { +test("areaRadial.lineEndAngle() returns a line derived from the area", () => { const defined = function() { return true; }; const curve = curveCardinal; const context = {}; @@ -46,7 +47,7 @@ it("areaRadial.lineEndAngle() returns a line derived from the area", () => { assert.strictEqual(l.radius(), radius); }); -it("areaRadial.lineInnerRadius() returns a line derived from the area", () => { +test("areaRadial.lineInnerRadius() returns a line derived from the area", () => { const defined = function() { return true; }; const curve = curveCardinal; const context = {}; @@ -62,7 +63,7 @@ it("areaRadial.lineInnerRadius() returns a line derived from the area", () => { assert.strictEqual(l.radius(), innerRadius); }); -it("areaRadial.lineOuterRadius() returns a line derived from the area", () => { +test("areaRadial.lineOuterRadius() returns a line derived from the area", () => { const defined = function() { return true; }; const curve = curveCardinal; const context = {}; diff --git a/test/curve/basis-test.js b/test/curve/basis-test.js index a10980a8..4a7d9208 100644 --- a/test/curve/basis-test.js +++ b/test/curve/basis-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; import assert from "assert"; import {area, line, curveBasis} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -it("line.curve(curveBasis)(data) generates the expected path", () => { +test("line.curve(curveBasis)(data) generates the expected path", () => { const l = line().curve(curveBasis); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -10,7 +11,7 @@ it("line.curve(curveBasis)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [1, 3], [2, 1]]), "M0,1L0.166667,1.333333C0.333333,1.666667,0.666667,2.333333,1,2.333333C1.333333,2.333333,1.666667,1.666667,1.833333,1.333333L2,1"); }); -it("area.curve(curveBasis)(data) generates the expected path", () => { +test("area.curve(curveBasis)(data) generates the expected path", () => { const a = area().curve(curveBasis); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); diff --git a/test/curve/basisClosed-test.js b/test/curve/basisClosed-test.js index a66760a9..a05ee4f3 100644 --- a/test/curve/basisClosed-test.js +++ b/test/curve/basisClosed-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; import assert from "assert"; import {line, curveBasisClosed} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -it("line.curve(curveBasisClosed)(data) generates the expected path", () => { +test("line.curve(curveBasisClosed)(data) generates the expected path", () => { const l = line().curve(curveBasisClosed); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 0]]), "M0,0Z"); diff --git a/test/curve/basisOpen-test.js b/test/curve/basisOpen-test.js index 9f45b316..4aa9eaff 100644 --- a/test/curve/basisOpen-test.js +++ b/test/curve/basisOpen-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; import assert from "assert"; import {area, line, curveBasisOpen} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -it("line.curve(curveBasisOpen)(data) generates the expected path", () => { +test("line.curve(curveBasisOpen)(data) generates the expected path", () => { const l = line().curve(curveBasisOpen); assert.strictEqual(l([]), null); assert.strictEqual(l([[0, 0]]), null); @@ -12,7 +13,7 @@ it("line.curve(curveBasisOpen)(data) generates the expected path", () => { assertPathEqual(l([[0, 0], [0, 10], [10, 10], [10, 0], [0, 0]]), "M1.666667,8.333333C3.333333,10,6.666667,10,8.333333,8.333333C10,6.666667,10,3.333333,8.333333,1.666667"); }); -it("area.curve(curveBasisOpen)(data) generates the expected path", () => { +test("area.curve(curveBasisOpen)(data) generates the expected path", () => { const a = area().curve(curveBasisOpen); assert.strictEqual(a([]), null); assert.strictEqual(a([[0, 1]]), null); diff --git a/test/curve/bumpX-test.js b/test/curve/bumpX-test.js index dccea4ee..13d9304c 100644 --- a/test/curve/bumpX-test.js +++ b/test/curve/bumpX-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; import assert from "assert"; import {area, line, curveBumpX} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -it("line.curve(curveBumpX)(data) generates the expected path", () => { +test("line.curve(curveBumpX)(data) generates the expected path", () => { const l = line().curve(curveBumpX); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -10,7 +11,7 @@ it("line.curve(curveBumpX)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [1, 3], [2, 1]]), "M0,1C0.500000,1,0.500000,3,1,3C1.500000,3,1.500000,1,2,1"); }); -it("area.curve(curveBumpX)(data) generates the expected path", () => { +test("area.curve(curveBumpX)(data) generates the expected path", () => { const a = area().curve(curveBumpX); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); diff --git a/test/curve/bumpY-test.js b/test/curve/bumpY-test.js index 431b7c3b..1a7bc716 100644 --- a/test/curve/bumpY-test.js +++ b/test/curve/bumpY-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; import assert from "assert"; import {area, line, curveBumpY} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -it("line.curve(curveBumpY)(data) generates the expected path", () => { +test("line.curve(curveBumpY)(data) generates the expected path", () => { const l = line().curve(curveBumpY); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -10,7 +11,7 @@ it("line.curve(curveBumpY)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [1, 3], [2, 1]]), "M0,1C0,2,1,2,1,3C1,2,2,2,2,1"); }); -it("area.curve(curveBumpY)(data) generates the expected path", () => { +test("area.curve(curveBumpY)(data) generates the expected path", () => { const a = area().curve(curveBumpY); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); diff --git a/test/curve/bundle-test.js b/test/curve/bundle-test.js index a2a15f7d..023ee40e 100644 --- a/test/curve/bundle-test.js +++ b/test/curve/bundle-test.js @@ -1,17 +1,18 @@ +import {test} from "vitest"; import assert from "assert"; import {line, curveBundle} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -it("line.curve(curveBundle) uses a default beta of 0.85", () => { +test("line.curve(curveBundle) uses a default beta of 0.85", () => { const l = line().curve(curveBundle.beta(0.85)); assert.strictEqual(line().curve(curveBundle)([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -it("line.curve(curveBundle.beta(beta)) uses the specified beta", () => { +test("line.curve(curveBundle.beta(beta)) uses the specified beta", () => { assertPathEqual(line().curve(curveBundle.beta(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1L0.166667,1.222222C0.333333,1.444444,0.666667,1.888889,1,2C1.333333,2.111111,1.666667,1.888889,2,2C2.333333,2.111111,2.666667,2.555556,2.833333,2.777778L3,3"); }); -it("line.curve(curveBundle.beta(beta)) coerces the specified beta to a number", () => { +test("line.curve(curveBundle.beta(beta)) coerces the specified beta to a number", () => { const l = line().curve(curveBundle.beta("0.5")); assert.strictEqual(line().curve(curveBundle.beta(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); diff --git a/test/curve/cardinal-test.js b/test/curve/cardinal-test.js index 7a802d3c..a898d722 100644 --- a/test/curve/cardinal-test.js +++ b/test/curve/cardinal-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; import assert from "assert"; import {area, line, curveCardinal} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -it("line.curve(curveCardinal)(data) generates the expected path", () => { +test("line.curve(curveCardinal)(data) generates the expected path", () => { const l = line().curve(curveCardinal); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -11,21 +12,21 @@ it("line.curve(curveCardinal)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1C0,1,0.666667,3,1,3C1.333333,3,1.666667,1,2,1C2.333333,1,3,3,3,3"); }); -it("line.curve(curveCardinal) uses a default tension of zero", () => { +test("line.curve(curveCardinal) uses a default tension of zero", () => { const l = line().curve(curveCardinal.tension(0)); assert.strictEqual(line().curve(curveCardinal)([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -it("line.curve(curveCardinal.tension(tension)) uses the specified tension", () => { +test("line.curve(curveCardinal.tension(tension)) uses the specified tension", () => { assertPathEqual(line().curve(curveCardinal.tension(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1C0,1,0.833333,3,1,3C1.166667,3,1.833333,1,2,1C2.166667,1,3,3,3,3"); }); -it("line.curve(curveCardinal.tension(tension)) coerces the specified tension to a number", () => { +test("line.curve(curveCardinal.tension(tension)) coerces the specified tension to a number", () => { const l = line().curve(curveCardinal.tension("0.5")); assert.strictEqual(line().curve(curveCardinal.tension(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -it("area.curve(curveCardinal)(data) generates the expected path", () => { +test("area.curve(curveCardinal)(data) generates the expected path", () => { const a = area().curve(curveCardinal); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); @@ -34,16 +35,16 @@ it("area.curve(curveCardinal)(data) generates the expected path", () => { assertPathEqual(a([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1C0,1,0.666667,3,1,3C1.333333,3,1.666667,1,2,1C2.333333,1,3,3,3,3L3,0C3,0,2.333333,0,2,0C1.666667,0,1.333333,0,1,0C0.666667,0,0,0,0,0Z"); }); -it("area.curve(curveCardinal) uses a default tension of zero", () => { +test("area.curve(curveCardinal) uses a default tension of zero", () => { const a = area().curve(curveCardinal.tension(0)); assert.strictEqual(area().curve(curveCardinal)([[0, 1], [1, 3], [2, 1], [3, 3]]), a([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -it("area.curve(curveCardinal.tension(tension)) uses the specified tension", () => { +test("area.curve(curveCardinal.tension(tension)) uses the specified tension", () => { assertPathEqual(area().curve(curveCardinal.tension(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1C0,1,0.833333,3,1,3C1.166667,3,1.833333,1,2,1C2.166667,1,3,3,3,3L3,0C3,0,2.166667,0,2,0C1.833333,0,1.166667,0,1,0C0.833333,0,0,0,0,0Z"); }); -it("area.curve(curveCardinal.tension(tension)) coerces the specified tension to a number", () => { +test("area.curve(curveCardinal.tension(tension)) coerces the specified tension to a number", () => { const a = area().curve(curveCardinal.tension("0.5")); assert.strictEqual(area().curve(curveCardinal.tension(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), a([[0, 1], [1, 3], [2, 1], [3, 3]])); }); diff --git a/test/curve/cardinalClosed-test.js b/test/curve/cardinalClosed-test.js index 8c8246f5..70b8c04d 100644 --- a/test/curve/cardinalClosed-test.js +++ b/test/curve/cardinalClosed-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; import assert from "assert"; import {area, line, curveCardinalClosed} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -it("line.curve(curveCardinalClosed)(data) generates the expected path", () => { +test("line.curve(curveCardinalClosed)(data) generates the expected path", () => { const l = line().curve(curveCardinalClosed); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -11,21 +12,21 @@ it("line.curve(curveCardinalClosed)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.333333,3,1.666667,1,2,1C2.333333,1,3.333333,3,3,3C2.666667,3,0.333333,1,0,1C-0.333333,1,0.666667,3,1,3"); }); -it("line.curve(curveCardinalClosed) uses a default tension of zero", () => { +test("line.curve(curveCardinalClosed) uses a default tension of zero", () => { const l = line().curve(curveCardinalClosed.tension(0)); assert.strictEqual(line().curve(curveCardinalClosed)([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -it("line.curve(curveCardinalClosed.tension(tension)) uses the specified tension", () => { +test("line.curve(curveCardinalClosed.tension(tension)) uses the specified tension", () => { assertPathEqual(line().curve(curveCardinalClosed.tension(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.166667,3,1.833333,1,2,1C2.166667,1,3.166667,3,3,3C2.833333,3,0.166667,1,0,1C-0.166667,1,0.833333,3,1,3"); }); -it("line.curve(curveCardinalClosed.tension(tension)) coerces the specified tension to a number", () => { +test("line.curve(curveCardinalClosed.tension(tension)) coerces the specified tension to a number", () => { const l = line().curve(curveCardinalClosed.tension("0.5")); assert.strictEqual(line().curve(curveCardinalClosed.tension(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -it("area.curve(curveCardinalClosed)(data) generates the expected path", () => { +test("area.curve(curveCardinalClosed)(data) generates the expected path", () => { const a = area().curve(curveCardinalClosed); assert.strictEqual(a([]), null); assert.strictEqual(a([[0, 1]]), "M0,1ZM0,0Z"); @@ -34,16 +35,16 @@ it("area.curve(curveCardinalClosed)(data) generates the expected path", () => { assertPathEqual(a([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.333333,3,1.666667,1,2,1C2.333333,1,3.333333,3,3,3C2.666667,3,0.333333,1,0,1C-0.333333,1,0.666667,3,1,3M2,0C1.666667,0,1.333333,0,1,0C0.666667,0,-0.333333,0,0,0C0.333333,0,2.666667,0,3,0C3.333333,0,2.333333,0,2,0"); }); -it("area.curve(curveCardinalClosed) uses a default tension of zero", () => { +test("area.curve(curveCardinalClosed) uses a default tension of zero", () => { const a = area().curve(curveCardinalClosed.tension(0)); assert.strictEqual(area().curve(curveCardinalClosed)([[0, 1], [1, 3], [2, 1], [3, 3]]), a([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -it("area.curve(curveCardinalClosed.tension(tension)) uses the specified tension", () => { +test("area.curve(curveCardinalClosed.tension(tension)) uses the specified tension", () => { assertPathEqual(area().curve(curveCardinalClosed.tension(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.166667,3,1.833333,1,2,1C2.166667,1,3.166667,3,3,3C2.833333,3,0.166667,1,0,1C-0.166667,1,0.833333,3,1,3M2,0C1.833333,0,1.166667,0,1,0C0.833333,0,-0.166667,0,0,0C0.166667,0,2.833333,0,3,0C3.166667,0,2.166667,0,2,0"); }); -it("area.curve(curveCardinalClosed.tension(tension)) coerces the specified tension to a number", () => { +test("area.curve(curveCardinalClosed.tension(tension)) coerces the specified tension to a number", () => { const a = area().curve(curveCardinalClosed.tension("0.5")); assert.strictEqual(area().curve(curveCardinalClosed.tension(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), a([[0, 1], [1, 3], [2, 1], [3, 3]])); }); diff --git a/test/curve/cardinalOpen-test.js b/test/curve/cardinalOpen-test.js index ab205a9f..ebdb166a 100644 --- a/test/curve/cardinalOpen-test.js +++ b/test/curve/cardinalOpen-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; import assert from "assert"; import {area, line, curveCardinalOpen} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -it("line.curve(curveCardinalOpen)(data) generates the expected path", () => { +test("line.curve(curveCardinalOpen)(data) generates the expected path", () => { const l = line().curve(curveCardinalOpen); assert.strictEqual(l([]), null); assert.strictEqual(l([[0, 1]]), null); @@ -11,21 +12,21 @@ it("line.curve(curveCardinalOpen)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.333333,3,1.666667,1,2,1"); }); -it("line.curve(curveCardinalOpen) uses a default tension of zero", () => { +test("line.curve(curveCardinalOpen) uses a default tension of zero", () => { const l = line().curve(curveCardinalOpen.tension(0)); assert.strictEqual(line().curve(curveCardinalOpen)([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -it("line.curve(curveCardinalOpen.tension(tension)) uses the specified tension", () => { +test("line.curve(curveCardinalOpen.tension(tension)) uses the specified tension", () => { assertPathEqual(line().curve(curveCardinalOpen.tension(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.166667,3,1.833333,1,2,1"); }); -it("line.curve(curveCardinalOpen.tension(tension)) coerces the specified tension to a number", () => { +test("line.curve(curveCardinalOpen.tension(tension)) coerces the specified tension to a number", () => { const l = line().curve(curveCardinalOpen.tension("0.5")); assert.strictEqual(line().curve(curveCardinalOpen.tension(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -it("area.curve(curveCardinalOpen)(data) generates the expected path", () => { +test("area.curve(curveCardinalOpen)(data) generates the expected path", () => { const a = area().curve(curveCardinalOpen); assert.strictEqual(a([]), null); assert.strictEqual(a([[0, 1]]), null); @@ -34,16 +35,16 @@ it("area.curve(curveCardinalOpen)(data) generates the expected path", () => { assertPathEqual(a([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.333333,3,1.666667,1,2,1L2,0C1.666667,0,1.333333,0,1,0Z"); }); -it("area.curve(curveCardinalOpen) uses a default tension of zero", () => { +test("area.curve(curveCardinalOpen) uses a default tension of zero", () => { const a = area().curve(curveCardinalOpen.tension(0)); assert.strictEqual(area().curve(curveCardinalOpen)([[0, 1], [1, 3], [2, 1], [3, 3]]), a([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -it("area.curve(curveCardinalOpen.tension(tension)) uses the specified tension", () => { +test("area.curve(curveCardinalOpen.tension(tension)) uses the specified tension", () => { assertPathEqual(area().curve(curveCardinalOpen.tension(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.166667,3,1.833333,1,2,1L2,0C1.833333,0,1.166667,0,1,0Z"); }); -it("area.curve(curveCardinalOpen.tension(tension)) coerces the specified tension to a number", () => { +test("area.curve(curveCardinalOpen.tension(tension)) coerces the specified tension to a number", () => { const a = area().curve(curveCardinalOpen.tension("0.5")); assert.strictEqual(area().curve(curveCardinalOpen.tension(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), a([[0, 1], [1, 3], [2, 1], [3, 3]])); }); diff --git a/test/curve/catmullRom-test.js b/test/curve/catmullRom-test.js index a74f0824..118e52cc 100644 --- a/test/curve/catmullRom-test.js +++ b/test/curve/catmullRom-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; import assert from "assert"; import {area, line, curveCatmullRom} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -it("line.curve(curveCatmullRom)(data) generates the expected path", () => { +test("line.curve(curveCatmullRom)(data) generates the expected path", () => { const l = line().curve(curveCatmullRom); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -11,7 +12,7 @@ it("line.curve(curveCatmullRom)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1C0,1,0.666667,3,1,3C1.333333,3,1.666667,1,2,1C2.333333,1,3,3,3,3"); }); -it("line.curve(curveCatmullRom.alpha(1))(data) generates the expected path", () => { +test("line.curve(curveCatmullRom.alpha(1))(data) generates the expected path", () => { const l = line().curve(curveCatmullRom.alpha(1)); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -20,17 +21,17 @@ it("line.curve(curveCatmullRom.alpha(1))(data) generates the expected path", () assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1C0,1,0.666667,3,1,3C1.333333,3,1.666667,1,2,1C2.333333,1,3,3,3,3"); }); -it("line.curve(curveCatmullRom) uses a default alpha of 0.5 (centripetal)", () => { +test("line.curve(curveCatmullRom) uses a default alpha of 0.5 (centripetal)", () => { const l = line().curve(curveCatmullRom.alpha(0.5)); assert.strictEqual(line().curve(curveCatmullRom)([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -it("line.curve(curveCatmullRom.alpha(alpha)) coerces the specified alpha to a number", () => { +test("line.curve(curveCatmullRom.alpha(alpha)) coerces the specified alpha to a number", () => { const l = line().curve(curveCatmullRom.alpha("0.5")); assert.strictEqual(line().curve(curveCatmullRom.alpha(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -it("area.curve(curveCatmullRom.alpha(0))(data) generates the expected path", () => { +test("area.curve(curveCatmullRom.alpha(0))(data) generates the expected path", () => { const a = area().curve(curveCatmullRom.alpha(0)); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); @@ -39,12 +40,12 @@ it("area.curve(curveCatmullRom.alpha(0))(data) generates the expected path", () assertPathEqual(a([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1C0,1,0.666667,3,1,3C1.333333,3,1.666667,1,2,1C2.333333,1,3,3,3,3L3,0C3,0,2.333333,0,2,0C1.666667,0,1.333333,0,1,0C0.666667,0,0,0,0,0Z"); }); -it("area.curve(curveCatmullRom) uses a default alpha of 0.5 (centripetal)", () => { +test("area.curve(curveCatmullRom) uses a default alpha of 0.5 (centripetal)", () => { const a = area().curve(curveCatmullRom.alpha(0.5)); assert.strictEqual(area().curve(curveCatmullRom)([[0, 1], [1, 3], [2, 1], [3, 3]]), a([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -it("area.curve(curveCatmullRom.alpha(alpha)) coerces the specified alpha to a number", () => { +test("area.curve(curveCatmullRom.alpha(alpha)) coerces the specified alpha to a number", () => { const a = area().curve(curveCatmullRom.alpha("0.5")); assert.strictEqual(area().curve(curveCatmullRom.alpha(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), a([[0, 1], [1, 3], [2, 1], [3, 3]])); }); diff --git a/test/curve/catmullRomClosed-test.js b/test/curve/catmullRomClosed-test.js index 4d9fc8ff..eac77b9a 100644 --- a/test/curve/catmullRomClosed-test.js +++ b/test/curve/catmullRomClosed-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; import assert from "assert"; import {area, line, curveCatmullRomClosed} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -it("line.curve(curveCatmullRomClosed)(data) generates the expected path", () => { +test("line.curve(curveCatmullRomClosed)(data) generates the expected path", () => { const l = line().curve(curveCatmullRomClosed); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -11,7 +12,7 @@ it("line.curve(curveCatmullRomClosed)(data) generates the expected path", () => assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.333333,3,1.666667,1,2,1C2.333333,1,3.160469,2.858341,3,3C2.796233,3.179882,0.203767,0.820118,0,1C-0.160469,1.141659,0.666667,3,1,3"); }); -it("line.curve(curveCatmullRomClosed.alpha(0))(data) generates the expected path", () => { +test("line.curve(curveCatmullRomClosed.alpha(0))(data) generates the expected path", () => { const l = line().curve(curveCatmullRomClosed.alpha(0)); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -20,7 +21,7 @@ it("line.curve(curveCatmullRomClosed.alpha(0))(data) generates the expected path assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.333333,3,1.666667,1,2,1C2.333333,1,3.333333,3,3,3C2.666667,3,0.333333,1,0,1C-0.333333,1,0.666667,3,1,3"); }); -it("line.curve(curveCatmullRomClosed.alpha(1))(data) generates the expected path", () => { +test("line.curve(curveCatmullRomClosed.alpha(1))(data) generates the expected path", () => { const l = line().curve(curveCatmullRomClosed.alpha(1)); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -29,17 +30,17 @@ it("line.curve(curveCatmullRomClosed.alpha(1))(data) generates the expected path assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.333333,3,1.666667,1,2,1C2.333333,1,3.031652,2.746782,3,3C2.948962,3.408301,0.051038,0.591699,0,1C-0.031652,1.253218,0.666667,3,1,3"); }); -it("line.curve(curveCatmullRomClosed) uses a default alpha of 0.5 (centripetal)", () => { +test("line.curve(curveCatmullRomClosed) uses a default alpha of 0.5 (centripetal)", () => { const l = line().curve(curveCatmullRomClosed.alpha(0.5)); assert.strictEqual(line().curve(curveCatmullRomClosed)([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -it("line.curve(curveCatmullRomClosed.alpha(alpha)) coerces the specified alpha to a number", () => { +test("line.curve(curveCatmullRomClosed.alpha(alpha)) coerces the specified alpha to a number", () => { const l = line().curve(curveCatmullRomClosed.alpha("0.5")); assert.strictEqual(line().curve(curveCatmullRomClosed.alpha(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -it("area.curve(curveCatmullRomClosed.alpha(alpha)) coerces the specified alpha to a number", () => { +test("area.curve(curveCatmullRomClosed.alpha(alpha)) coerces the specified alpha to a number", () => { const a = area().curve(curveCatmullRomClosed.alpha("0.5")); assert.strictEqual(area().curve(curveCatmullRomClosed.alpha(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), a([[0, 1], [1, 3], [2, 1], [3, 3]])); }); diff --git a/test/curve/catmullRomOpen-test.js b/test/curve/catmullRomOpen-test.js index 2cdca0d6..4f67931f 100644 --- a/test/curve/catmullRomOpen-test.js +++ b/test/curve/catmullRomOpen-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; import assert from "assert"; import {area, line, curveCatmullRomOpen} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -it("line.curve(curveCatmullRomOpen)(data) generates the expected path", () => { +test("line.curve(curveCatmullRomOpen)(data) generates the expected path", () => { const l = line().curve(curveCatmullRomOpen); assert.strictEqual(l([]), null); assert.strictEqual(l([[0, 1]]), null); @@ -11,7 +12,7 @@ it("line.curve(curveCatmullRomOpen)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.333333,3,1.666667,1,2,1"); }); -it("line.curve(curveCatmullRomOpen.alpha(1))(data) generates the expected path", () => { +test("line.curve(curveCatmullRomOpen.alpha(1))(data) generates the expected path", () => { const l = line().curve(curveCatmullRomOpen.alpha(1)); assert.strictEqual(l([]), null); assert.strictEqual(l([[0, 1]]), null); @@ -20,17 +21,17 @@ it("line.curve(curveCatmullRomOpen.alpha(1))(data) generates the expected path", assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.333333,3,1.666667,1,2,1"); }); -it("line.curve(curveCatmullRomOpen) uses a default alpha of 0.5 (centripetal)", () => { +test("line.curve(curveCatmullRomOpen) uses a default alpha of 0.5 (centripetal)", () => { const l = line().curve(curveCatmullRomOpen.alpha(0.5)); assert.strictEqual(line().curve(curveCatmullRomOpen)([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -it("line.curve(curveCatmullRomOpen.alpha(alpha)) coerces the specified alpha to a number", () => { +test("line.curve(curveCatmullRomOpen.alpha(alpha)) coerces the specified alpha to a number", () => { const l = line().curve(curveCatmullRomOpen.alpha("0.5")); assert.strictEqual(line().curve(curveCatmullRomOpen.alpha(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -it("area.curve(curveCatmullRomOpen.alpha(0.5))(data) generates the expected path", () => { +test("area.curve(curveCatmullRomOpen.alpha(0.5))(data) generates the expected path", () => { const a = area().curve(curveCatmullRomOpen, 0.5); assert.strictEqual(a([]), null); assert.strictEqual(a([[0, 1]]), null); @@ -39,12 +40,12 @@ it("area.curve(curveCatmullRomOpen.alpha(0.5))(data) generates the expected path assertPathEqual(a([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.333333,3,1.666667,1,2,1L2,0C1.666667,0,1.333333,0,1,0Z"); }); -it("area.curve(curveCatmullRomOpen) uses a default alpha of 0.5 (centripetal)", () => { +test("area.curve(curveCatmullRomOpen) uses a default alpha of 0.5 (centripetal)", () => { const a = area().curve(curveCatmullRomOpen, 0.5); assert.strictEqual(area().curve(curveCatmullRomOpen)([[0, 1], [1, 3], [2, 1], [3, 3]]), a([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -it("area.curve(curveCatmullRomOpen.alpha(alpha)) coerces the specified alpha to a number", () => { +test("area.curve(curveCatmullRomOpen.alpha(alpha)) coerces the specified alpha to a number", () => { const a = area().curve(curveCatmullRomOpen.alpha("0.5")); assert.strictEqual(area().curve(curveCatmullRomOpen.alpha(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), a([[0, 1], [1, 3], [2, 1], [3, 3]])); }); diff --git a/test/curve/linear-test.js b/test/curve/linear-test.js index e81feb4d..617114de 100644 --- a/test/curve/linear-test.js +++ b/test/curve/linear-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; import assert from "assert"; import {area, line, curveLinear} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -it("line.curve(curveLinear)(data) generates the expected path", () => { +test("line.curve(curveLinear)(data) generates the expected path", () => { const l = line().curve(curveLinear); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -10,7 +11,7 @@ it("line.curve(curveLinear)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [2, 3], [4, 5]]), "M0,1L2,3L4,5"); }); -it("area.curve(curveLinear)(data) generates the expected path", () => { +test("area.curve(curveLinear)(data) generates the expected path", () => { const a = area().curve(curveLinear); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); diff --git a/test/curve/linearClosed-test.js b/test/curve/linearClosed-test.js index e9b5fcd3..b8516203 100644 --- a/test/curve/linearClosed-test.js +++ b/test/curve/linearClosed-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; import assert from "assert"; import {line, curveLinearClosed} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -it("line.curve(curveLinearClosed)(data) generates the expected path", () => { +test("line.curve(curveLinearClosed)(data) generates the expected path", () => { const l = line().curve(curveLinearClosed); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); diff --git a/test/curve/monotoneX-test.js b/test/curve/monotoneX-test.js index 0ed647f6..012551e4 100644 --- a/test/curve/monotoneX-test.js +++ b/test/curve/monotoneX-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; import assert from "assert"; import {area, line, curveMonotoneX} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -it("line.curve(curveMonotoneX)(data) generates the expected path", () => { +test("line.curve(curveMonotoneX)(data) generates the expected path", () => { const l = line().curve(curveMonotoneX); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -11,25 +12,25 @@ it("line.curve(curveMonotoneX)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1C0.333333,2,0.666667,3,1,3C1.333333,3,1.666667,1,2,1C2.333333,1,2.666667,2,3,3"); }); -it("line.curve(curveMonotoneX)(data) preserves monotonicity in y", () => { +test("line.curve(curveMonotoneX)(data) preserves monotonicity in y", () => { const l = line().curve(curveMonotoneX); assertPathEqual(l([[0, 200], [100, 100], [200, 100], [300, 300], [400, 300]]), "M0,200C33.333333,150,66.666667,100,100,100C133.333333,100,166.666667,100,200,100C233.333333,100,266.666667,300,300,300C333.333333,300,366.666667,300,400,300"); }); -it("line.curve(curveMonotoneX)(data) handles duplicate x-values", () => { +test("line.curve(curveMonotoneX)(data) handles duplicate x-values", () => { const l = line().curve(curveMonotoneX); assertPathEqual(l([[0, 200], [0, 100], [100, 100], [200, 0]]), "M0,200C0,200,0,100,0,100C33.333333,100,66.666667,100,100,100C133.333333,100,166.666667,50,200,0"); assertPathEqual(l([[0, 200], [100, 100], [100, 0], [200, 0]]), "M0,200C33.333333,183.333333,66.666667,166.666667,100,100C100,100,100,0,100,0C133.333333,0,166.666667,0,200,0"); assertPathEqual(l([[0, 200], [100, 100], [200, 100], [200, 0]]), "M0,200C33.333333,150,66.666667,100,100,100C133.333333,100,166.666667,100,200,100C200,100,200,0,200,0"); }); -it("line.curve(curveMonotoneX)(data) handles segments of infinite slope", () => { +test("line.curve(curveMonotoneX)(data) handles segments of infinite slope", () => { const l = line().curve(curveMonotoneX); assertPathEqual(l([[0, 200], [100, 150], [100, 50], [200, 0]]), "M0,200C33.333333,191.666667,66.666667,183.333333,100,150C100,150,100,50,100,50C133.333333,16.666667,166.666667,8.333333,200,0"); assertPathEqual(l([[200, 0], [100, 50], [100, 150], [0, 200]]), "M200,0C166.666667,8.333333,133.333333,16.666667,100,50C100,50,100,150,100,150C66.666667,183.333333,33.333333,191.666667,0,200"); }); -it("line.curve(curveMonotoneX)(data) ignores coincident points", () => { +test("line.curve(curveMonotoneX)(data) ignores coincident points", () => { const l = line().curve(curveMonotoneX); const p = l([[0, 200], [50, 200], [100, 100], [150, 0], [200, 0]]); assert.strictEqual(l([[0, 200], [0, 200], [50, 200], [100, 100], [150, 0], [200, 0]]), p); @@ -39,7 +40,7 @@ it("line.curve(curveMonotoneX)(data) ignores coincident points", () => { assert.strictEqual(l([[0, 200], [50, 200], [100, 100], [150, 0], [200, 0], [200, 0]]), p); }); -it("area.curve(curveMonotoneX)(data) generates the expected path", () => { +test("area.curve(curveMonotoneX)(data) generates the expected path", () => { const a = area().curve(curveMonotoneX); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); diff --git a/test/curve/monotoneY-test.js b/test/curve/monotoneY-test.js index 2aa55dd8..c920ffc5 100644 --- a/test/curve/monotoneY-test.js +++ b/test/curve/monotoneY-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; import assert from "assert"; import {area, line, curveMonotoneY} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -it("line.curve(curveMonotoneY)(data) generates the expected path", () => { +test("line.curve(curveMonotoneY)(data) generates the expected path", () => { const l = line().curve(curveMonotoneY); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]].map(reflect)), "M1,0Z"); @@ -11,25 +12,25 @@ it("line.curve(curveMonotoneY)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]].map(reflect)), "M1,0C2,0.333333,3,0.666667,3,1C3,1.333333,1,1.666667,1,2C1,2.333333,2,2.666667,3,3"); }); -it("line.curve(curveMonotoneY)(data) preserves monotonicity in y", () => { +test("line.curve(curveMonotoneY)(data) preserves monotonicity in y", () => { const l = line().curve(curveMonotoneY); assertPathEqual(l([[0, 200], [100, 100], [200, 100], [300, 300], [400, 300]].map(reflect)), "M200,0C150,33.333333,100,66.666667,100,100C100,133.333333,100,166.666667,100,200C100,233.333333,300,266.666667,300,300C300,333.333333,300,366.666667,300,400"); }); -it("line.curve(curveMonotoneY)(data) handles duplicate x-values", () => { +test("line.curve(curveMonotoneY)(data) handles duplicate x-values", () => { const l = line().curve(curveMonotoneY); assertPathEqual(l([[0, 200], [0, 100], [100, 100], [200, 0]].map(reflect)), "M200,0C200,0,100,0,100,0C100,33.333333,100,66.666667,100,100C100,133.333333,50,166.666667,0,200"); assertPathEqual(l([[0, 200], [100, 100], [100, 0], [200, 0]].map(reflect)), "M200,0C183.333333,33.333333,166.666667,66.666667,100,100C100,100,0,100,0,100C0,133.333333,0,166.666667,0,200"); assertPathEqual(l([[0, 200], [100, 100], [200, 100], [200, 0]].map(reflect)), "M200,0C150,33.333333,100,66.666667,100,100C100,133.333333,100,166.666667,100,200C100,200,0,200,0,200"); }); -it("line.curve(curveMonotoneY)(data) handles segments of infinite slope", () => { +test("line.curve(curveMonotoneY)(data) handles segments of infinite slope", () => { const l = line().curve(curveMonotoneY); assertPathEqual(l([[0, 200], [100, 150], [100, 50], [200, 0]].map(reflect)), "M200,0C191.666667,33.333333,183.333333,66.666667,150,100C150,100,50,100,50,100C16.666667,133.333333,8.333333,166.666667,0,200"); assertPathEqual(l([[200, 0], [100, 50], [100, 150], [0, 200]].map(reflect)), "M0,200C8.333333,166.666667,16.666667,133.333333,50,100C50,100,150,100,150,100C183.333333,66.666667,191.666667,33.333333,200,0"); }); -it("line.curve(curveMonotoneY)(data) ignores coincident points", () => { +test("line.curve(curveMonotoneY)(data) ignores coincident points", () => { const l = line().curve(curveMonotoneY), p = l([[0, 200], [50, 200], [100, 100], [150, 0], [200, 0]].map(reflect)); assert.strictEqual(l([[0, 200], [0, 200], [50, 200], [100, 100], [150, 0], [200, 0]].map(reflect)), p); @@ -39,7 +40,7 @@ it("line.curve(curveMonotoneY)(data) ignores coincident points", () => { assert.strictEqual(l([[0, 200], [50, 200], [100, 100], [150, 0], [200, 0], [200, 0]].map(reflect)), p); }); -it("area.curve(curveMonotoneY)(data) generates the expected path", () => { +test("area.curve(curveMonotoneY)(data) generates the expected path", () => { const a = area().curve(curveMonotoneY); assert.strictEqual(a([].map(reflect)), null); assertPathEqual(a([[0, 1]].map(reflect)), "M1,0L1,0Z"); diff --git a/test/curve/natural-test.js b/test/curve/natural-test.js index 46eca8d7..c45936c1 100644 --- a/test/curve/natural-test.js +++ b/test/curve/natural-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; import assert from "assert"; import {area, line, curveNatural} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -it("line.curve(curveNatural)(data) generates the expected path", () => { +test("line.curve(curveNatural)(data) generates the expected path", () => { const l = line().curve(curveNatural); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -11,7 +12,7 @@ it("line.curve(curveNatural)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1C0.333333,2.111111,0.666667,3.222222,1,3C1.333333,2.777778,1.666667,1.222222,2,1C2.333333,0.777778,2.666667,1.888889,3,3"); }); -it("area.curve(curveNatural)(data) generates the expected path", () => { +test("area.curve(curveNatural)(data) generates the expected path", () => { const a = area().curve(curveNatural); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); diff --git a/test/curve/step-test.js b/test/curve/step-test.js index 1bb5f993..47345d60 100644 --- a/test/curve/step-test.js +++ b/test/curve/step-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; import assert from "assert"; import {area, line, curveStep} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -it("line.curve(curveStep)(data) generates the expected path", () => { +test("line.curve(curveStep)(data) generates the expected path", () => { const l = line().curve(curveStep); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -10,7 +11,7 @@ it("line.curve(curveStep)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [2, 3], [4, 5]]), "M0,1L1,1L1,3L3,3L3,5L4,5"); }); -it("area.curve(curveStep)(data) generates the expected path", () => { +test("area.curve(curveStep)(data) generates the expected path", () => { const a = area().curve(curveStep); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); diff --git a/test/curve/stepAfter-test.js b/test/curve/stepAfter-test.js index 51e6f895..4710038d 100644 --- a/test/curve/stepAfter-test.js +++ b/test/curve/stepAfter-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; import assert from "assert"; import {area, line, curveStepAfter} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -it("line.curve(curveStepAfter)(data) generates the expected path", () => { +test("line.curve(curveStepAfter)(data) generates the expected path", () => { const l = line().curve(curveStepAfter); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -10,7 +11,7 @@ it("line.curve(curveStepAfter)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [2, 3], [4, 5]]), "M0,1L2,1L2,3L4,3L4,5"); }); -it("area.curve(curveStepAfter)(data) generates the expected path", () => { +test("area.curve(curveStepAfter)(data) generates the expected path", () => { const a = area().curve(curveStepAfter); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); diff --git a/test/curve/stepBefore-test.js b/test/curve/stepBefore-test.js index 4518d8ef..def2cf4b 100644 --- a/test/curve/stepBefore-test.js +++ b/test/curve/stepBefore-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; import assert from "assert"; import {area, line, curveStepBefore} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -it("line.curve(curveStepBefore)(data) generates the expected path", () => { +test("line.curve(curveStepBefore)(data) generates the expected path", () => { const l = line().curve(curveStepBefore); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -10,7 +11,7 @@ it("line.curve(curveStepBefore)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [2, 3], [4, 5]]), "M0,1L0,3L2,3L2,5L4,5"); }); -it("area.curve(curveStepBefore)(data) generates the expected path", () => { +test("area.curve(curveStepBefore)(data) generates the expected path", () => { const a = area().curve(curveStepBefore); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); diff --git a/test/line-test.js b/test/line-test.js index 4b738464..ef1ea7a6 100644 --- a/test/line-test.js +++ b/test/line-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; import assert from "assert"; import {line, curveLinear, curveLinearClosed} from "../src/index.js"; import {assertPathEqual} from "./asserts.js"; -it("line() returns a default line shape", () => { +test("line() returns a default line shape", () => { const l = line(); assert.strictEqual(l.x()([42, 34]), 42); assert.strictEqual(l.y()([42, 34]), 34); @@ -12,7 +13,7 @@ it("line() returns a default line shape", () => { assertPathEqual(l([[0, 1], [2, 3], [4, 5]]), "M0,1L2,3L4,5"); }); -it("line(x, y) sets x and y", () => { +test("line(x, y) sets x and y", () => { const x = function() {}, y = function() {}; assert.strictEqual(line(x).x(), x); assert.strictEqual(line(x, y).y(), y); @@ -20,51 +21,51 @@ it("line(x, y) sets x and y", () => { assert.strictEqual(line(3, 2).y()("aa"), 2); }); -it("line.x(f)(data) passes d, i and data to the specified function f", () => { +test("line.x(f)(data) passes d, i and data to the specified function f", () => { const data = ["a", "b"], actual = []; line().x(function() { actual.push([].slice.call(arguments)); })(data); assert.deepStrictEqual(actual, [["a", 0, data], ["b", 1, data]]); }); -it("line.y(f)(data) passes d, i and data to the specified function f", () => { +test("line.y(f)(data) passes d, i and data to the specified function f", () => { const data = ["a", "b"], actual = []; line().y(function() { actual.push([].slice.call(arguments)); })(data); assert.deepStrictEqual(actual, [["a", 0, data], ["b", 1, data]]); }); -it("line.defined(f)(data) passes d, i and data to the specified function f", () => { +test("line.defined(f)(data) passes d, i and data to the specified function f", () => { const data = ["a", "b"], actual = []; line().defined(function() { actual.push([].slice.call(arguments)); })(data); assert.deepStrictEqual(actual, [["a", 0, data], ["b", 1, data]]); }); -it("line.x(x)(data) observes the specified function", () => { +test("line.x(x)(data) observes the specified function", () => { const l = line().x(function(d) { return d.x; }); assertPathEqual(l([{x: 0, 1: 1}, {x: 2, 1: 3}, {x: 4, 1: 5}]), "M0,1L2,3L4,5"); }); -it("line.x(x)(data) observes the specified constant", () => { +test("line.x(x)(data) observes the specified constant", () => { const l = line().x(0); assertPathEqual(l([{1: 1}, {1: 3}, {1: 5}]), "M0,1L0,3L0,5"); }); -it("line.y(y)(data) observes the specified function", () => { +test("line.y(y)(data) observes the specified function", () => { const l = line().y(function(d) { return d.y; }); assertPathEqual(l([{0: 0, y: 1}, {0: 2, y: 3}, {0: 4, y: 5}]), "M0,1L2,3L4,5"); }); -it("line.y(y)(data) observes the specified constant", () => { +test("line.y(y)(data) observes the specified constant", () => { const l = line().y(0); assertPathEqual(l([{0: 0}, {0: 2}, {0: 4}]), "M0,0L2,0L4,0"); }); -it("line.curve(curve) sets the curve method", () => { +test("line.curve(curve) sets the curve method", () => { const l = line().curve(curveLinearClosed); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1], [2, 3]]), "M0,1L2,3Z"); }); -it("line.digits(digits) sets the maximum fractional digits", () => { +test("line.digits(digits) sets the maximum fractional digits", () => { const points = [[0, Math.PI], [Math.E, 4]]; const l = line(); assert.strictEqual(l.digits(), 3); diff --git a/test/lineRadial-test.js b/test/lineRadial-test.js index 790ba2e1..6e7cd4ea 100644 --- a/test/lineRadial-test.js +++ b/test/lineRadial-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; import assert from "assert"; import {curveLinear, lineRadial} from "../src/index.js"; import {assertPathEqual} from "./asserts.js"; -it("lineRadial() returns a default radial line shape", () => { +test("lineRadial() returns a default radial line shape", () => { const l = lineRadial(); assert.strictEqual(l.angle()([42, 34]), 42); assert.strictEqual(l.radius()([42, 34]), 34); diff --git a/test/link-test.js b/test/link-test.js index 2292e985..51cb53dc 100644 --- a/test/link-test.js +++ b/test/link-test.js @@ -1,10 +1,11 @@ +import {test} from "vitest"; import assert from "assert"; import {pathRound} from "d3-path"; import {link, linkHorizontal, linkVertical, linkRadial} from "../src/index.js"; import {curveLinear, curveBumpX, curveBumpY} from "../src/index.js"; import {assertPathEqual} from "./asserts.js"; -it("link(curve) returns a default link with the given curve", () => { +test("link(curve) returns a default link with the given curve", () => { const l = link(curveLinear); assert.strictEqual(l.source()({source: 42}), 42); assert.strictEqual(l.target()({target: 34}), 34); @@ -14,7 +15,7 @@ it("link(curve) returns a default link with the given curve", () => { assertPathEqual(l({source: [0, 1], target: [2, 3]}), "M0,1L2,3"); }); -it("link.source(source) sets source", () => { +test("link.source(source) sets source", () => { const l = link(curveLinear); const x = d => d.x; assert.strictEqual(l.source(x), l); @@ -22,7 +23,7 @@ it("link.source(source) sets source", () => { assertPathEqual(l({x: [0, 1], target: [2, 3]}), "M0,1L2,3"); }); -it("link.target(target) sets target", () => { +test("link.target(target) sets target", () => { const l = link(curveLinear); const x = d => d.x; assert.strictEqual(l.target(x), l); @@ -30,7 +31,7 @@ it("link.target(target) sets target", () => { assertPathEqual(l({source: [0, 1], x: [2, 3]}), "M0,1L2,3"); }); -it("link.source(f)(..args) passes arguments to the specified function f", () => { +test("link.source(f)(..args) passes arguments to the specified function f", () => { const source = {name: "source"}; const target = {name: "target"}; const data = {source, target}; @@ -40,7 +41,7 @@ it("link.source(f)(..args) passes arguments to the specified function f", () => assert.deepStrictEqual(actual, [[data, extra]]); }); -it("link.target(f)(..args) passes source and arguments to the specified function f", () => { +test("link.target(f)(..args) passes source and arguments to the specified function f", () => { const source = {name: "source"}; const target = {name: "target"}; const data = {source, target}; @@ -50,7 +51,7 @@ it("link.target(f)(..args) passes source and arguments to the specified function assert.deepStrictEqual(actual, [[data, extra]]); }); -it("link.x(x) sets x", () => { +test("link.x(x) sets x", () => { const l = link(curveLinear); const x = d => d.x; assert.strictEqual(l.x(x), l); @@ -58,7 +59,7 @@ it("link.x(x) sets x", () => { assertPathEqual(l({source: {x: 0, 1: 1}, target: {x: 2, 1: 3}}), "M0,1L2,3"); }); -it("link.y(y) sets y", () => { +test("link.y(y) sets y", () => { const l = link(curveLinear); const y = d => d.y; assert.strictEqual(l.y(y), l); @@ -66,7 +67,7 @@ it("link.y(y) sets y", () => { assertPathEqual(l({source: {0: 0, y: 1}, target: {0: 2, y: 3}}), "M0,1L2,3"); }); -it("link.x(f)(..args) passes source and arguments to the specified function f", () => { +test("link.x(f)(..args) passes source and arguments to the specified function f", () => { const source = {name: "source"}; const target = {name: "target"}; const data = {source, target}; @@ -76,7 +77,7 @@ it("link.x(f)(..args) passes source and arguments to the specified function f", assert.deepStrictEqual(actual, [[source, extra], [target, extra]]); }); -it("link.y(f)(..args) passes source and arguments to the specified function f", () => { +test("link.y(f)(..args) passes source and arguments to the specified function f", () => { const source = {name: "source"}; const target = {name: "target"}; const data = {source, target}; @@ -86,7 +87,7 @@ it("link.y(f)(..args) passes source and arguments to the specified function f", assert.deepStrictEqual(actual, [[source, extra], [target, extra]]); }); -it("linkHorizontal() is an alias for link(curveBumpX)", () => { +test("linkHorizontal() is an alias for link(curveBumpX)", () => { const l = linkHorizontal(), l2 = link(curveBumpX); assert.strictEqual(l.source(), l2.source()); assert.strictEqual(l.target(), l2.target()); @@ -96,7 +97,7 @@ it("linkHorizontal() is an alias for link(curveBumpX)", () => { assertPathEqual(l({source: [0, 1], target: [2, 3]}), l2({source: [0, 1], target: [2, 3]})); }); -it("linkVertical() is an alias for link(curveBumpY)", () => { +test("linkVertical() is an alias for link(curveBumpY)", () => { const l = linkVertical(), l2 = link(curveBumpY); assert.strictEqual(l.source(), l2.source()); assert.strictEqual(l.target(), l2.target()); @@ -106,14 +107,14 @@ it("linkVertical() is an alias for link(curveBumpY)", () => { assertPathEqual(l({source: [0, 1], target: [2, 3]}), l2({source: [0, 1], target: [2, 3]})); }); -it("link.context(context) sets the context", () => { +test("link.context(context) sets the context", () => { const p = pathRound(6); const l = link(curveLinear).context(p); assert.strictEqual(l({source: [0, Math.E], target: [Math.PI, 3]}), undefined); assert.strictEqual(p + "", "M0,2.718282L3.141593,3"); }); -it("linkRadial() works as expected", () => { +test("linkRadial() works as expected", () => { const l = linkRadial(), l2 = link(); assert.strictEqual(l.source(), l2.source()); assert.strictEqual(l.target(), l2.target()); diff --git a/test/offset/diverging-test.js b/test/offset/diverging-test.js index 2fd03843..f0514d46 100644 --- a/test/offset/diverging-test.js +++ b/test/offset/diverging-test.js @@ -1,7 +1,8 @@ +import {test} from "vitest"; import assert from "assert"; import {stackOffsetDiverging, stackOrderNone, stackOrderReverse} from "../../src/index.js"; -it("stackOffsetDiverging(series, order) applies a zero baseline, ignoring existing offsets", () => { +test("stackOffsetDiverging(series, order) applies a zero baseline, ignoring existing offsets", () => { const series = [ [[1, 2], [2, 4], [3, 4]], [[0, 3], [0, 4], [0, 2]], @@ -15,7 +16,7 @@ it("stackOffsetDiverging(series, order) applies a zero baseline, ignoring existi ]); }); -it("stackOffsetDiverging(series, order) handles a single series", () => { +test("stackOffsetDiverging(series, order) handles a single series", () => { const series = [ [[1, 2], [2, 4], [3, 4]] ]; @@ -25,7 +26,7 @@ it("stackOffsetDiverging(series, order) handles a single series", () => { ]); }); -it("stackOffsetDiverging(series, order) treats NaN as zero", () => { +test("stackOffsetDiverging(series, order) treats NaN as zero", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, 3], [0, NaN], [0, 2]], @@ -41,7 +42,7 @@ it("stackOffsetDiverging(series, order) treats NaN as zero", () => { ]); }); -it("stackOffsetDiverging(series, order) observes the specified order", () => { +test("stackOffsetDiverging(series, order) observes the specified order", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, 3], [0, 4], [0, 2]], @@ -55,7 +56,7 @@ it("stackOffsetDiverging(series, order) observes the specified order", () => { ]); }); -it("stackOffsetDiverging(series, order) puts negative values below zero, in order", () => { +test("stackOffsetDiverging(series, order) puts negative values below zero, in order", () => { const series = [ [[0, 1], [0, -2], [0, -1]], [[0, -3], [0, -4], [0, -2]], @@ -69,7 +70,7 @@ it("stackOffsetDiverging(series, order) puts negative values below zero, in orde ]); }); -it("stackOffsetDiverging(series, order) puts zero values at zero, in order", () => { +test("stackOffsetDiverging(series, order) puts zero values at zero, in order", () => { const series = [ [[0, 1], [0, 2], [0, -1]], [[0, 3], [0, 0], [0, 0]], diff --git a/test/offset/expand-test.js b/test/offset/expand-test.js index 0330aa2d..71b53b5f 100644 --- a/test/offset/expand-test.js +++ b/test/offset/expand-test.js @@ -1,7 +1,8 @@ +import {test} from "vitest"; import assert from "assert"; import {stackOffsetExpand, stackOrderNone, stackOrderReverse} from "../../src/index.js"; -it("stackOffsetExpand(series, order) expands to fill [0, 1]", () => { +test("stackOffsetExpand(series, order) expands to fill [0, 1]", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, 3], [0, 4], [0, 2]], @@ -15,7 +16,7 @@ it("stackOffsetExpand(series, order) expands to fill [0, 1]", () => { ]); }); -it("stackOffsetExpand(series, order) treats NaN as zero", () => { +test("stackOffsetExpand(series, order) treats NaN as zero", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, 3], [0, NaN], [0, 2]], @@ -31,7 +32,7 @@ it("stackOffsetExpand(series, order) treats NaN as zero", () => { ]); }); -it("stackOffsetExpand(series, order) observes the specified order", () => { +test("stackOffsetExpand(series, order) observes the specified order", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, 3], [0, 4], [0, 2]], diff --git a/test/offset/none-test.js b/test/offset/none-test.js index 8381d0d2..1f0cef2d 100644 --- a/test/offset/none-test.js +++ b/test/offset/none-test.js @@ -1,7 +1,8 @@ +import {test} from "vitest"; import assert from "assert"; import {stackOffsetNone, stackOrderNone, stackOrderReverse} from "../../src/index.js"; -it("stackOffsetNone(series, order) stacks upon the first layer’s existing positions", () => { +test("stackOffsetNone(series, order) stacks upon the first layer’s existing positions", () => { const series = [ [[1, 2], [2, 4], [3, 4]], [[0, 3], [0, 4], [0, 2]], @@ -15,7 +16,7 @@ it("stackOffsetNone(series, order) stacks upon the first layer’s existing posi ]); }); -it("stackOffsetNone(series, order) treats NaN as zero", () => { +test("stackOffsetNone(series, order) treats NaN as zero", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, 3], [0, NaN], [0, 2]], @@ -31,7 +32,7 @@ it("stackOffsetNone(series, order) treats NaN as zero", () => { ]); }); -it("stackOffsetNone(series, order) observes the specified order", () => { +test("stackOffsetNone(series, order) observes the specified order", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, 3], [0, 4], [0, 2]], diff --git a/test/offset/silhouette-test.js b/test/offset/silhouette-test.js index 5031bc9f..a169d4e8 100644 --- a/test/offset/silhouette-test.js +++ b/test/offset/silhouette-test.js @@ -1,7 +1,8 @@ +import {test} from "vitest"; import assert from "assert"; import {stackOffsetSilhouette, stackOrderNone, stackOrderReverse} from "../../src/index.js"; -it("stackOffsetSilhouette(series, order) centers the stack around zero", () => { +test("stackOffsetSilhouette(series, order) centers the stack around zero", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, 3], [0, 4], [0, 2]], @@ -15,7 +16,7 @@ it("stackOffsetSilhouette(series, order) centers the stack around zero", () => { ]); }); -it("stackOffsetSilhouette(series, order) treats NaN as zero", () => { +test("stackOffsetSilhouette(series, order) treats NaN as zero", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, 3], [0, NaN], [0, 2]], @@ -31,7 +32,7 @@ it("stackOffsetSilhouette(series, order) treats NaN as zero", () => { ]); }); -it("stackOffsetSilhouette(series, order) observes the specified order", () => { +test("stackOffsetSilhouette(series, order) observes the specified order", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, 3], [0, 4], [0, 2]], diff --git a/test/offset/wiggle-test.js b/test/offset/wiggle-test.js index b01bdd3e..96b6db6e 100644 --- a/test/offset/wiggle-test.js +++ b/test/offset/wiggle-test.js @@ -1,7 +1,8 @@ +import {test} from "vitest"; import assert from "assert"; import {stackOffsetWiggle, stackOrderNone, stackOrderReverse} from "../../src/index.js"; -it("stackOffsetWiggle(series, order) minimizes weighted wiggle", () => { +test("stackOffsetWiggle(series, order) minimizes weighted wiggle", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, 3], [0, 4], [0, 2]], @@ -15,7 +16,7 @@ it("stackOffsetWiggle(series, order) minimizes weighted wiggle", () => { ].map(roundSeries)); }); -it("stackOffsetWiggle(series, order) treats NaN as zero", () => { +test("stackOffsetWiggle(series, order) treats NaN as zero", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, NaN], [0, NaN], [0, NaN]], @@ -35,7 +36,7 @@ it("stackOffsetWiggle(series, order) treats NaN as zero", () => { ].map(roundSeries)); }); -it("stackOffsetWiggle(series, order) observes the specified order", () => { +test("stackOffsetWiggle(series, order) observes the specified order", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, 3], [0, 4], [0, 2]], diff --git a/test/order/appearance-test.js b/test/order/appearance-test.js index 88e3d749..7f8ae595 100644 --- a/test/order/appearance-test.js +++ b/test/order/appearance-test.js @@ -1,7 +1,8 @@ +import {test} from "vitest"; import assert from "assert"; import {stackOrderAppearance} from "../../src/index.js"; -it("stackOrderAppearance(series) returns an order by appearance", () => { +test("stackOrderAppearance(series) returns an order by appearance", () => { assert.deepStrictEqual(stackOrderAppearance([ [[0, 0], [0, 0], [0, 1]], [[0, 3], [0, 2], [0, 0]], @@ -9,7 +10,7 @@ it("stackOrderAppearance(series) returns an order by appearance", () => { ]), [1, 2, 0]); }); -it("stackOrderAppearance(series) treats NaN values as zero", () => { +test("stackOrderAppearance(series) treats NaN values as zero", () => { assert.deepStrictEqual(stackOrderAppearance([ [[0, NaN], [0, NaN], [0, 1]], [[0, 3], [0, 2], [0, NaN]], diff --git a/test/order/ascending-test.js b/test/order/ascending-test.js index 74a4a300..6d93412f 100644 --- a/test/order/ascending-test.js +++ b/test/order/ascending-test.js @@ -1,7 +1,8 @@ +import {test} from "vitest"; import assert from "assert"; import {stackOrderAscending} from "../../src/index.js"; -it("stackOrderAscending(series) returns an order by sum", () => { +test("stackOrderAscending(series) returns an order by sum", () => { assert.deepStrictEqual(stackOrderAscending([ [[0, 1], [0, 2], [0, 3]], [[0, 2], [0, 3], [0, 4]], @@ -9,7 +10,7 @@ it("stackOrderAscending(series) returns an order by sum", () => { ]), [2, 0, 1]); }); -it("stackOrderAscending(series) treats NaN values as zero", () => { +test("stackOrderAscending(series) treats NaN values as zero", () => { assert.deepStrictEqual(stackOrderAscending([ [[0, 1], [0, 2], [0, NaN], [0, 3]], [[0, 2], [0, 3], [0, NaN], [0, 4]], diff --git a/test/order/descending-test.js b/test/order/descending-test.js index 5793b62f..b0666025 100644 --- a/test/order/descending-test.js +++ b/test/order/descending-test.js @@ -1,7 +1,8 @@ +import {test} from "vitest"; import assert from "assert"; import {stackOrderDescending} from "../../src/index.js"; -it("stackOrderDescending(series) returns an order by sum", () => { +test("stackOrderDescending(series) returns an order by sum", () => { assert.deepStrictEqual(stackOrderDescending([ [[0, 1], [0, 2], [0, 3]], [[0, 2], [0, 3], [0, 4]], @@ -9,7 +10,7 @@ it("stackOrderDescending(series) returns an order by sum", () => { ]), [1, 0, 2]); }); -it("stackOrderDescending(series) treats NaN values as zero", () => { +test("stackOrderDescending(series) treats NaN values as zero", () => { assert.deepStrictEqual(stackOrderDescending([ [[0, 1], [0, 2], [0, 3], [0, NaN]], [[0, 2], [0, 3], [0, 4], [0, NaN]], diff --git a/test/order/insideOut-test.js b/test/order/insideOut-test.js index c4ef02b7..8b0b6724 100644 --- a/test/order/insideOut-test.js +++ b/test/order/insideOut-test.js @@ -1,7 +1,8 @@ +import {test} from "vitest"; import assert from "assert"; import {stackOrderInsideOut} from "../../src/index.js"; -it("stackOrderInsideOut(series) returns an order by appearance", () => { +test("stackOrderInsideOut(series) returns an order by appearance", () => { assert.deepStrictEqual(stackOrderInsideOut([ [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 1]], [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 2], [0, 0]], @@ -13,7 +14,7 @@ it("stackOrderInsideOut(series) returns an order by appearance", () => { ]), [2, 3, 6, 5, 4, 1, 0]); }); -it("stackOrderInsideOut(series) treats NaN values as zero", () => { +test("stackOrderInsideOut(series) treats NaN values as zero", () => { assert.deepStrictEqual(stackOrderInsideOut([ [[0, 0], [0, NaN], [0, 0], [0, 0], [0, 0], [0, 0], [0, 1]], [[0, 0], [0, 0], [0, NaN], [0, 0], [0, 0], [0, 2], [0, 0]], diff --git a/test/order/none-test.js b/test/order/none-test.js index 4f829dfa..31b208cc 100644 --- a/test/order/none-test.js +++ b/test/order/none-test.js @@ -1,6 +1,7 @@ +import {test} from "vitest"; import assert from "assert"; import {stackOrderNone} from "../../src/index.js"; -it("stackOrderNone(series) returns [0, 1, … series.length - 1]", () => { +test("stackOrderNone(series) returns [0, 1, … series.length - 1]", () => { assert.deepStrictEqual(stackOrderNone(new Array(4)), [0, 1, 2, 3]); }); diff --git a/test/order/reverse-test.js b/test/order/reverse-test.js index 3a73c6a6..a3186f43 100644 --- a/test/order/reverse-test.js +++ b/test/order/reverse-test.js @@ -1,6 +1,7 @@ +import {test} from "vitest"; import assert from "assert"; import {stackOrderReverse} from "../../src/index.js"; -it("stackOrderReverse(series) returns [series.length - 1, series.length - 2, … 0]", () => { +test("stackOrderReverse(series) returns [series.length - 1, series.length - 2, … 0]", () => { assert.deepStrictEqual(stackOrderReverse(new Array(4)), [3, 2, 1, 0]); }); diff --git a/test/pie-test.js b/test/pie-test.js index 5bd39c42..950bc49f 100644 --- a/test/pie-test.js +++ b/test/pie-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; /* eslint-disable no-loss-of-precision */ import assert from "assert"; import {pie} from "../src/index.js"; -it("pie() returns a default pie shape", () => { +test("pie() returns a default pie shape", () => { const p = pie(); assert.strictEqual(p.value()(42), 42); assert(p.sortValues()(1, 2) > 0); @@ -14,7 +15,7 @@ it("pie() returns a default pie shape", () => { assert.strictEqual(p.padAngle()(), 0); }); -it("pie(data) returns arcs in input order", () => { +test("pie(data) returns arcs in input order", () => { const p = pie(); assert.deepStrictEqual(p([1, 3, 2]), [ {data: 1, value: 1, index: 2, startAngle: 5.235987755982988, endAngle: 6.283185307179585, padAngle: 0}, @@ -23,7 +24,7 @@ it("pie(data) returns arcs in input order", () => { ]); }); -it("pie(data) accepts an iterable", () => { +test("pie(data) accepts an iterable", () => { const p = pie(); assert.deepStrictEqual(p(new Set([1, 3, 2])), [ {data: 1, value: 1, index: 2, startAngle: 5.235987755982988, endAngle: 6.283185307179585, padAngle: 0}, @@ -32,7 +33,7 @@ it("pie(data) accepts an iterable", () => { ]); }); -it("pie(data) coerces the specified value to a number", () => { +test("pie(data) coerces the specified value to a number", () => { const p = pie(); const three = {valueOf: function() { return 3; }}; assert.deepStrictEqual(p(["1", three, "2"]), [ @@ -42,7 +43,7 @@ it("pie(data) coerces the specified value to a number", () => { ]); }); -it("pie(data) treats negative values as zero", () => { +test("pie(data) treats negative values as zero", () => { const p = pie(); assert.deepStrictEqual(p([1, 0, -1]), [ {data: 1, value: 1, index: 0, startAngle: 0.000000000000000, endAngle: 6.283185307179586, padAngle: 0}, @@ -51,7 +52,7 @@ it("pie(data) treats negative values as zero", () => { ]); }); -it("pie(data) treats NaN values as zero", () => { +test("pie(data) treats NaN values as zero", () => { const p = pie(); const actual = p([1, NaN, undefined]); const expected = [ @@ -67,7 +68,7 @@ it("pie(data) treats NaN values as zero", () => { assert.deepStrictEqual(actual, expected); }); -it("pie(data) puts everything at the startAngle when the sum is zero", () => { +test("pie(data) puts everything at the startAngle when the sum is zero", () => { const p = pie(); assert.deepStrictEqual(p([0, 0]), [ {data: 0, value: 0, index: 0, startAngle: 0, endAngle: 0, padAngle: 0}, @@ -79,7 +80,7 @@ it("pie(data) puts everything at the startAngle when the sum is zero", () => { ]); }); -it("pie(data) restricts |endAngle - startAngle| to τ", () => { +test("pie(data) restricts |endAngle - startAngle| to τ", () => { const p = pie(); assert.deepStrictEqual(p.startAngle(0).endAngle(7)([1, 2]), [ {data: 1, value: 1, index: 1, startAngle: 4.1887902047863905, endAngle: 6.2831853071795860, padAngle: 0}, @@ -99,7 +100,7 @@ it("pie(data) restricts |endAngle - startAngle| to τ", () => { ]); }); -it("pie.value(value)(data) observes the specified value function", () => { +test("pie.value(value)(data) observes the specified value function", () => { assert.deepStrictEqual(pie().value(function(d, i) { return i; })(new Array(3)), [ {data: undefined, value: 0, index: 2, startAngle: 6.2831853071795860, endAngle: 6.2831853071795860, padAngle: 0}, {data: undefined, value: 1, index: 1, startAngle: 4.1887902047863905, endAngle: 6.2831853071795860, padAngle: 0}, @@ -107,21 +108,21 @@ it("pie.value(value)(data) observes the specified value function", () => { ]); }); -it("pie.value(f)(data) passes d, i and data to the specified function f", () => { +test("pie.value(f)(data) passes d, i and data to the specified function f", () => { const data = ["a", "b"]; let actual = []; pie().value(function() { actual.push([].slice.call(arguments)); })(data); assert.deepStrictEqual(actual, [["a", 0, data], ["b", 1, data]]); }); -it("pie().startAngle(f)(…) propagates the context and arguments to the specified function f", () => { +test("pie().startAngle(f)(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; pie().startAngle(function() { actual = {that: this, args: [].slice.call(arguments)}; }).apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -it("pie().startAngle(θ)(data) observes the specified start angle", () => { +test("pie().startAngle(θ)(data) observes the specified start angle", () => { assert.deepStrictEqual(pie().startAngle(Math.PI)([1, 2, 3]), [ {data: 1, value: 1, index: 2, startAngle: 5.759586531581287, endAngle: 6.283185307179586, padAngle: 0}, {data: 2, value: 2, index: 1, startAngle: 4.712388980384690, endAngle: 5.759586531581287, padAngle: 0}, @@ -129,7 +130,7 @@ it("pie().startAngle(θ)(data) observes the specified start angle", () => { ]); }); -it("pie().endAngle(θ)(data) observes the specified end angle", () => { +test("pie().endAngle(θ)(data) observes the specified end angle", () => { assert.deepStrictEqual(pie().endAngle(Math.PI)([1, 2, 3]), [ {data: 1, value: 1, index: 2, startAngle: 2.6179938779914940, endAngle: 3.1415926535897927, padAngle: 0}, {data: 2, value: 2, index: 1, startAngle: 1.5707963267948966, endAngle: 2.6179938779914940, padAngle: 0}, @@ -137,7 +138,7 @@ it("pie().endAngle(θ)(data) observes the specified end angle", () => { ]); }); -it("pie().padAngle(δ)(data) observes the specified pad angle", () => { +test("pie().padAngle(δ)(data) observes the specified pad angle", () => { assert.deepStrictEqual(pie().padAngle(0.1)([1, 2, 3]), [ {data: 1, value: 1, index: 2, startAngle: 5.1859877559829880, endAngle: 6.2831853071795850, padAngle: 0.1}, {data: 2, value: 2, index: 1, startAngle: 3.0915926535897933, endAngle: 5.1859877559829880, padAngle: 0.1}, @@ -145,21 +146,21 @@ it("pie().padAngle(δ)(data) observes the specified pad angle", () => { ]); }); -it("pie().endAngle(f)(…) propagates the context and arguments to the specified function f", () => { +test("pie().endAngle(f)(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; pie().endAngle(function() { actual = {that: this, args: [].slice.call(arguments)}; }).apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -it("pie().padAngle(f)(…) propagates the context and arguments to the specified function f", () => { +test("pie().padAngle(f)(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; pie().padAngle(function() { actual = {that: this, args: [].slice.call(arguments)}; }).apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -it("pie().startAngle(θ₀).endAngle(θ₁).padAngle(δ)(data) restricts the pad angle to |θ₁ - θ₀| / data.length", () => { +test("pie().startAngle(θ₀).endAngle(θ₁).padAngle(δ)(data) restricts the pad angle to |θ₁ - θ₀| / data.length", () => { assert.deepStrictEqual(pie().startAngle(0).endAngle(Math.PI).padAngle(Infinity)([1, 2, 3]), [ {data: 1, value: 1, index: 2, startAngle: 2.0943951023931953, endAngle: 3.1415926535897930, padAngle: 1.0471975511965976}, {data: 2, value: 2, index: 1, startAngle: 1.0471975511965976, endAngle: 2.0943951023931953, padAngle: 1.0471975511965976}, @@ -172,7 +173,7 @@ it("pie().startAngle(θ₀).endAngle(θ₁).padAngle(δ)(data) restricts the pad ]); }); -it("pie.sortValues(f) sorts arcs by value per the specified comparator function f", () => { +test("pie.sortValues(f) sorts arcs by value per the specified comparator function f", () => { const p = pie(); assert.deepStrictEqual(p.sortValues(function(a, b) { return a - b; })([1, 3, 2]), [ {data: 1, value: 1, index: 0, startAngle: 0.0000000000000000, endAngle: 1.0471975511965976, padAngle: 0}, @@ -187,7 +188,7 @@ it("pie.sortValues(f) sorts arcs by value per the specified comparator function assert.strictEqual(p.sort(), null); }); -it("pie.sort(f) sorts arcs by data per the specified comparator function f", () => { +test("pie.sort(f) sorts arcs by data per the specified comparator function f", () => { const a = {valueOf: function() { return 1; }, name: "a"}; const b = {valueOf: function() { return 2; }, name: "b"}; const c = {valueOf: function() { return 3; }, name: "c"}; diff --git a/test/stack-test.js b/test/stack-test.js index 573a92bc..bfa8e767 100644 --- a/test/stack-test.js +++ b/test/stack-test.js @@ -1,7 +1,8 @@ +import {test} from "vitest"; import assert from "assert"; import {stack, stackOffsetExpand, stackOffsetNone, stackOrderNone, stackOrderReverse} from "../src/index.js"; -it("stack() has the expected defaults", () => { +test("stack() has the expected defaults", () => { const s = stack(); assert.deepStrictEqual(s.keys()(), []); assert.strictEqual(s.value()({foo: 42}, "foo"), 42); @@ -9,7 +10,7 @@ it("stack() has the expected defaults", () => { assert.strictEqual(s.offset(), stackOffsetNone); }); -it("stack(data) computes the stacked series for the given data", () => { +test("stack(data) computes the stacked series for the given data", () => { const s = stack().keys([0, 1, 2, 3]); const data = [[1, 3, 5, 1], [2, 4, 2, 3], [1, 2, 4, 2]]; assert.deepStrictEqual(s(data), [ @@ -20,17 +21,17 @@ it("stack(data) computes the stacked series for the given data", () => { ]); }); -it("stack.keys(array) sets the array of constant keys", () => { +test("stack.keys(array) sets the array of constant keys", () => { const s = stack().keys(["0.0", "2.0", "4.0"]); assert.deepStrictEqual(s.keys()(), ["0.0", "2.0", "4.0"]); }); -it("stack.keys(function) sets the key accessor function", () => { +test("stack.keys(function) sets the key accessor function", () => { const s = stack().keys(function() { return "abc".split(""); }); assert.deepStrictEqual(s.keys()(), ["a", "b", "c"]); }); -it("stack(data, arguments…) passes the key accessor any additional arguments", () => { +test("stack(data, arguments…) passes the key accessor any additional arguments", () => { let A; let B; let k = function(data, a, b) { A = a, B = b; return Object.keys(data[0]); }; @@ -46,18 +47,18 @@ it("stack(data, arguments…) passes the key accessor any additional arguments", assert.strictEqual(B, "bar"); }); -it("stack.value(number) sets the constant value", () => { +test("stack.value(number) sets the constant value", () => { const s = stack().value("42.0"); assert.strictEqual(s.value()(), 42); }); -it("stack.value(function) sets the value accessor function", () => { +test("stack.value(function) sets the value accessor function", () => { const v = function() { return 42; }; const s = stack().value(v); assert.strictEqual(s.value(), v); }); -it("stack(data) passes the value accessor datum, key, index and data", () => { +test("stack(data) passes the value accessor datum, key, index and data", () => { let actual; let v = function(d, k, i, data) { actual = {datum: d, key: k, index: i, data: data}; return 2; }; let s = stack().keys(["foo"]).value(v); @@ -66,20 +67,20 @@ it("stack(data) passes the value accessor datum, key, index and data", () => { assert.deepStrictEqual(actual, {datum: data[0], key: "foo", index: 0, data: data}); }); -it("stack(data) coerces the return value of the value accessor to a number", () => { +test("stack(data) coerces the return value of the value accessor to a number", () => { const v = function() { return "2.0"; }; const s = stack().keys(["foo"]).value(v); const data = [{foo: 1}]; assert.deepStrictEqual(s(data), [series([[0, 2]], data, "foo", 0)]); }); -it("stack.order(null) is equivalent to stack.order(stackOrderNone)", () => { +test("stack.order(null) is equivalent to stack.order(stackOrderNone)", () => { const s = stack().order(null); assert.strictEqual(s.order(), stackOrderNone); assert.strictEqual(typeof s.order(), "function"); }); -it("stack.order(function) sets the order function", () => { +test("stack.order(function) sets the order function", () => { const s = stack().keys([0, 1, 2, 3]).order(stackOrderReverse); const data = [[1, 3, 5, 1], [2, 4, 2, 3], [1, 2, 4, 2]]; assert.strictEqual(s.order(), stackOrderReverse); @@ -91,13 +92,13 @@ it("stack.order(function) sets the order function", () => { ]); }); -it("stack.offset(null) is equivalent to stack.offset(stackOffsetNone)", () => { +test("stack.offset(null) is equivalent to stack.offset(stackOffsetNone)", () => { const s = stack().offset(null); assert.strictEqual(s.offset(), stackOffsetNone); assert.strictEqual(typeof s.offset(), "function"); }); -it("stack.offset(function) sets the offset function", () => { +test("stack.offset(function) sets the offset function", () => { const s = stack().keys([0, 1, 2, 3]).offset(stackOffsetExpand); const data = [[1, 3, 5, 1], [2, 4, 2, 3], [1, 2, 4, 2]]; assert.strictEqual(s.offset(), stackOffsetExpand); diff --git a/test/symbol-test.js b/test/symbol-test.js index c5db352f..5232691f 100644 --- a/test/symbol-test.js +++ b/test/symbol-test.js @@ -1,9 +1,10 @@ +import {test} from "vitest"; import assert from "assert"; import {symbol, symbolAsterisk, symbolCircle, symbolCross, symbolDiamond, symbolDiamond2, symbolPlus, symbolSquare, symbolSquare2, symbolStar, symbolTriangle, symbolTriangle2, symbolWye, symbolTimes} from "../src/index.js"; import {assertInDelta, assertPathEqual} from "./asserts.js"; import {polygonContext} from "./polygonContext.js"; -it("symbol() returns a default symbol shape", () => { +test("symbol() returns a default symbol shape", () => { const s = symbol(); assert.strictEqual(s.type()(), symbolCircle); assert.strictEqual(s.size()(), 64); @@ -11,21 +12,21 @@ it("symbol() returns a default symbol shape", () => { assertPathEqual(s(), "M4.513517,0A4.513517,4.513517,0,1,1,-4.513517,0A4.513517,4.513517,0,1,1,4.513517,0"); }); -it("symbol().size(f)(…) propagates the context and arguments to the specified function", () => { +test("symbol().size(f)(…) propagates the context and arguments to the specified function", () => { const expected = {that: {}, args: [42]}; let actual; symbol().size(function() { actual = {that: this, args: [].slice.call(arguments)}; return 64; }).apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -it("symbol().type(f)(…) propagates the context and arguments to the specified function", () => { +test("symbol().type(f)(…) propagates the context and arguments to the specified function", () => { const expected = {that: {}, args: [42]}; let actual; symbol().type(function() { actual = {that: this, args: [].slice.call(arguments)}; return symbolCircle; }).apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -it("symbol.size(size) observes the specified size function", () => { +test("symbol.size(size) observes the specified size function", () => { const size = function(d, i) { return d.z * 2 + i; }, s = symbol().size(size); assert.strictEqual(s.size(), size); @@ -36,7 +37,7 @@ it("symbol.size(size) observes the specified size function", () => { assertPathEqual(s({z: 4 * Math.PI}, 2), "M2.938813,0A2.938813,2.938813,0,1,1,-2.938813,0A2.938813,2.938813,0,1,1,2.938813,0"); }); -it("symbol.size(size) observes the specified size constant", () => { +test("symbol.size(size) observes the specified size constant", () => { const s = symbol(); assert.strictEqual(s.size(42).size()(), 42); assertPathEqual(s.size(0)(), "M0,0"); @@ -44,122 +45,122 @@ it("symbol.size(size) observes the specified size constant", () => { assertPathEqual(s.size(4 * Math.PI)(), "M2,0A2,2,0,1,1,-2,0A2,2,0,1,1,2,0"); }); -it("symbol.type(symbolAsterisk) generates the expected path", () => { +test("symbol.type(symbolAsterisk) generates the expected path", () => { const s = symbol().type(symbolAsterisk).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0L0,0M0,0L0,0M0,0L0,0"); assertPathEqual(s(20), "M0,2.705108L0,-2.705108M-2.342692,-1.352554L2.342692,1.352554M-2.342692,1.352554L2.342692,-1.352554"); }); -it("symbol.type(symbolCircle) generates the expected path", () => { +test("symbol.type(symbolCircle) generates the expected path", () => { const s = symbol().type(symbolCircle).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0"); assertPathEqual(s(20), "M2.523133,0A2.523133,2.523133,0,1,1,-2.523133,0A2.523133,2.523133,0,1,1,2.523133,0"); }); -it("symbol.type(symbolCross) generates a polygon with the specified size", () => { +test("symbol.type(symbolCross) generates a polygon with the specified size", () => { const p = polygonContext(), s = symbol().type(symbolCross).context(p); s.size(1)(); assertInDelta(p.area(), 1); s.size(240)(); assertInDelta(p.area(), 240); }); -it("symbol.type(symbolCross) generates the expected path", () => { +test("symbol.type(symbolCross) generates the expected path", () => { const s = symbol().type(symbolCross).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0L0,0L0,0L0,0L0,0L0,0L0,0L0,0L0,0L0,0L0,0L0,0Z"); assertPathEqual(s(20), "M-3,-1L-1,-1L-1,-3L1,-3L1,-1L3,-1L3,1L1,1L1,3L-1,3L-1,1L-3,1Z"); }); -it("symbol.type(symbolDiamond) generates a polygon with the specified size", () => { +test("symbol.type(symbolDiamond) generates a polygon with the specified size", () => { const p = polygonContext(), s = symbol().type(symbolDiamond).context(p); s.size(1)(); assertInDelta(p.area(), 1); s.size(240)(); assertInDelta(p.area(), 240); }); -it("symbol.type(symbolDiamond) generates the expected path", () => { +test("symbol.type(symbolDiamond) generates the expected path", () => { const s = symbol().type(symbolDiamond).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0L0,0L0,0L0,0Z"); assertPathEqual(s(10), "M0,-2.942831L1.699044,0L0,2.942831L-1.699044,0Z"); }); -it("symbol.type(symbolDiamond2) generates the expected path", () => { +test("symbol.type(symbolDiamond2) generates the expected path", () => { const s = symbol().type(symbolDiamond2).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0L0,0L0,0L0,0Z"); assertPathEqual(s(20), "M0,-2.800675L2.800675,0L0,2.800675L-2.800675,0Z"); }); -it("symbol.type(symbolPlus) generates the expected path", () => { +test("symbol.type(symbolPlus) generates the expected path", () => { const s = symbol().type(symbolPlus).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0L0,0M0,0L0,0"); assertPathEqual(s(20), "M-3.714814,0L3.714814,0M0,3.714814L0,-3.714814"); }); -it("symbol.type(symbolStar) generates a polygon with the specified size", () => { +test("symbol.type(symbolStar) generates a polygon with the specified size", () => { const p = polygonContext(), s = symbol().type(symbolStar).context(p); s.size(1)(); assertInDelta(p.area(), 1); s.size(240)(); assertInDelta(p.area(), 240); }); -it("symbol.type(symbolStar) generates the expected path", () => { +test("symbol.type(symbolStar) generates the expected path", () => { const s = symbol().type(symbolStar).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0L0,0L0,0L0,0L0,0L0,0L0,0L0,0L0,0L0,0Z"); assertPathEqual(s(10), "M0,-2.984649L0.670095,-0.922307L2.838570,-0.922307L1.084237,0.352290L1.754333,2.414632L0,1.140035L-1.754333,2.414632L-1.084237,0.352290L-2.838570,-0.922307L-0.670095,-0.922307Z"); }); -it("symbol.type(symbolSquare) generates a polygon with the specified size", () => { +test("symbol.type(symbolSquare) generates a polygon with the specified size", () => { const p = polygonContext(), s = symbol().type(symbolSquare).context(p); s.size(1)(); assertInDelta(p.area(), 1); s.size(240)(); assertInDelta(p.area(), 240); }); -it("symbol.type(symbolSquare) generates the expected path", () => { +test("symbol.type(symbolSquare) generates the expected path", () => { const s = symbol().type(symbolSquare).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0h0v0h0Z"); assertPathEqual(s(4), "M-1,-1h2v2h-2Z"); assertPathEqual(s(16), "M-2,-2h4v4h-4Z"); }); -it("symbol.type(symbolSquare2) generates the expected path", () => { +test("symbol.type(symbolSquare2) generates the expected path", () => { const s = symbol().type(symbolSquare2).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0L0,0L0,0L0,0Z"); assertPathEqual(s(20), "M1.981603,1.981603L1.981603,-1.981603L-1.981603,-1.981603L-1.981603,1.981603Z"); }); -it("symbol.type(symbolTriangle) generates a polygon with the specified size", () => { +test("symbol.type(symbolTriangle) generates a polygon with the specified size", () => { const p = polygonContext(), s = symbol().type(symbolTriangle).context(p); s.size(1)(); assertInDelta(p.area(), 1); s.size(240)(); assertInDelta(p.area(), 240); }); -it("symbol.type(symbolTriangle) generates the expected path", () => { +test("symbol.type(symbolTriangle) generates the expected path", () => { const s = symbol().type(symbolTriangle).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0L0,0L0,0Z"); assertPathEqual(s(10), "M0,-2.774528L2.402811,1.387264L-2.402811,1.387264Z"); }); -it("symbol.type(symbolTriangle2) generates the expected path", () => { +test("symbol.type(symbolTriangle2) generates the expected path", () => { const s = symbol().type(symbolTriangle2).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0L0,0L0,0Z"); assertPathEqual(s(20), "M0,-3.051786L2.642924,1.525893L-2.642924,1.525893Z"); }); -it("symbol.type(symbolWye) generates a polygon with the specified size", () => { +test("symbol.type(symbolWye) generates a polygon with the specified size", () => { const p = polygonContext(), s = symbol().type(symbolWye).context(p); s.size(1)(); assertInDelta(p.area(), 1); s.size(240)(); assertInDelta(p.area(), 240); }); -it("symbol.type(symbolWye) generates the expected path", () => { +test("symbol.type(symbolWye) generates the expected path", () => { const s = symbol().type(symbolWye).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0L0,0L0,0L0,0L0,0L0,0L0,0L0,0L0,0Z"); assertPathEqual(s(10), "M0.853360,0.492688L0.853360,2.199408L-0.853360,2.199408L-0.853360,0.492688L-2.331423,-0.360672L-1.478063,-1.838735L0,-0.985375L1.478063,-1.838735L2.331423,-0.360672Z"); }); -it("symbol.type(symbolTimes) generates the expected path", () => { +test("symbol.type(symbolTimes) generates the expected path", () => { const s = symbol().type(symbolTimes).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0L0,0M0,0L0,0"); assertPathEqual(s(20), "M-2.647561,-2.647561L2.647561,2.647561M-2.647561,2.647561L2.647561,-2.647561"); }); -it("symbol(type, size) is equivalent to symbol().type(type).size(size)", () => { +test("symbol(type, size) is equivalent to symbol().type(type).size(size)", () => { const s0 = symbol().type(symbolCross).size(16); const s1 = symbol(symbolCross, 16); assert.strictEqual(s0(), s1()); diff --git a/test/symbols-test.js b/test/symbols-test.js index ed943633..919a70cf 100644 --- a/test/symbols-test.js +++ b/test/symbols-test.js @@ -1,11 +1,12 @@ +import {test} from "vitest"; import assert from "assert"; import {symbols, symbolsFill, symbolsStroke, symbolCircle, symbolCross, symbolDiamond, symbolSquare, symbolStar, symbolTriangle, symbolWye, symbolPlus, symbolTimes, symbolTriangle2, symbolAsterisk, symbolSquare2, symbolDiamond2} from "../src/index.js"; -it("symbols is a deprecated alias for symbolsFill", () => { +test("symbols is a deprecated alias for symbolsFill", () => { assert.strictEqual(symbols, symbolsFill); }); -it("symbolsFill is the array of symbol types", () => { +test("symbolsFill is the array of symbol types", () => { assert.deepStrictEqual(symbolsFill, [ symbolCircle, symbolCross, @@ -17,7 +18,7 @@ it("symbolsFill is the array of symbol types", () => { ]); }); -it("symbolsStroke is the array of symbol types", () => { +test("symbolsStroke is the array of symbol types", () => { assert.deepStrictEqual(symbolsStroke, [ symbolCircle, symbolPlus, diff --git a/vitest.config.js b/vitest.config.js new file mode 100644 index 00000000..b7280506 --- /dev/null +++ b/vitest.config.js @@ -0,0 +1,3 @@ +import {defineConfig} from "vitest/config"; + +export default defineConfig({test: {include: ["test/**/*-test.js"]}}); From 8ed683465410c20a07ed71d5186e2ab2dd74affa Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Mon, 2 Nov 2026 18:12:42 -0800 Subject: [PATCH 03/10] eslint 10, vitest 5 Co-Authored-By: Claude Opus 5.5 --- package.json | 6 +- pnpm-lock.yaml | 559 +++++++++++++++++++------------------------------ 2 files changed, 216 insertions(+), 349 deletions(-) diff --git a/package.json b/package.json index 784e6c78..28b012f2 100644 --- a/package.json +++ b/package.json @@ -38,14 +38,14 @@ "d3-path": "^3.1.0" }, "devDependencies": { - "@eslint/js": "^9.39.5", + "@eslint/js": "^10.0.1", "@rollup/plugin-node-resolve": "^16.0.3", "@rollup/plugin-terser": "^1.0.2", "d3-polygon": "^3.0.1", - "eslint": "^9.39.5", + "eslint": "^10.14.0", "globals": "^17.14.0", "rollup": "^4.67.4", - "vitest": "^4.1.12" + "vitest": "^5.1.0" }, "scripts": { "test": "vitest", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f9a6f6c0..04c9b235 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,8 +13,8 @@ importers: version: 3.1.0 devDependencies: '@eslint/js': - specifier: ^9.39.5 - version: 9.39.5 + specifier: ^10.0.1 + version: 10.0.1(eslint@10.14.0) '@rollup/plugin-node-resolve': specifier: ^16.0.3 version: 16.0.3(rollup@4.67.4) @@ -25,8 +25,8 @@ importers: specifier: ^3.0.1 version: 3.0.1 eslint: - specifier: ^9.39.5 - version: 9.39.5 + specifier: ^10.14.0 + version: 10.14.0 globals: specifier: ^17.14.0 version: 17.14.0 @@ -34,11 +34,17 @@ importers: specifier: ^4.67.4 version: 4.67.4 vitest: - specifier: ^4.1.12 - version: 4.1.12(vite@8.3.5(terser@5.51.2)) + specifier: ^5.1.0 + version: 5.1.0(vite@8.3.5(terser@5.51.2)) packages: + '@cacheable/memory@2.2.0': + resolution: {integrity: sha512-CTLKqLItRCEixEAewD3/j9DB3/o96gpTPD4eJ1v+DGOlxZRZncRQkGYqqnAGCscYd6RNeXfGeiuCphsPtqyIfQ==} + + '@cacheable/utils@2.5.0': + resolution: {integrity: sha512-buipgOVDkkPXNR5+xBpDw7Zk2n1EvU7qBJCNUcL7rhQ//kfpOXPAvQ511Os0vpLYJ1pZnvudNytkQt2hst3wqA==} + '@eslint-community/eslint-utils@4.10.1': resolution: {integrity: sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -49,33 +55,34 @@ packages: resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} - '@eslint/config-array@0.21.2': - resolution: {integrity: sha512-nJl2KGTlrf9GjLimgIru+V/mzgSK0ABCDQRvxw5BjURL7WfH5uoWmizbH7QB6MmnMBd8cIC9uceWnezL1VZWWw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@eslint/config-array@0.23.5': + resolution: {integrity: sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} - '@eslint/config-helpers@0.4.2': - resolution: {integrity: sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@eslint/config-helpers@0.7.0': + resolution: {integrity: sha512-DObd/KKUsU+FaFv4PLxSRenpXfQWmPXXP3pPZ6/K1PCrMu2vQpMDMuQe/BqYeoLcz8ro0bVDF1RxOJgfVEdhUw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} - '@eslint/core@0.17.0': - resolution: {integrity: sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@eslint/core@1.2.1': + resolution: {integrity: sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} - '@eslint/eslintrc@3.3.7': - resolution: {integrity: sha512-F42g89Qd5oAWtp0k0nnSrjziAKza7w8SVT4mStc18LZMaRb4J1HQAHLCalEtDCxrTuksx7NU9qsmeLwpOfPqWw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/js@9.39.5': - resolution: {integrity: sha512-QywQuszQh77pIXCsq998c8hbhSTI/azTty1Z6N53dmAudKHhy573j3yvRLsX2BSp8YpLtoCEG8E9DJe+8zUh4A==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@eslint/js@10.0.1': + resolution: {integrity: sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} + peerDependencies: + eslint: ^10.0.0 + peerDependenciesMeta: + eslint: + optional: true - '@eslint/object-schema@2.1.7': - resolution: {integrity: sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@eslint/object-schema@3.0.5': + resolution: {integrity: sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} - '@eslint/plugin-kit@0.4.1': - resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@eslint/plugin-kit@0.7.3': + resolution: {integrity: sha512-IkO+/KEUvwbVpiURZg+P7zF74z5Jxe0UgJxVni+RtoHQ6IZieXaO02kmadomap/q+l6bc/jdPGGqTjhuZnuz1Q==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} '@humanfs/core@0.19.2': resolution: {integrity: sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==} @@ -113,6 +120,15 @@ packages: '@jridgewell/trace-mapping@0.3.31': resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} + '@keyv/bigmap@1.3.1': + resolution: {integrity: sha512-WbzE9sdmQtKy8vrNPa9BRnwZh5UF4s1KTmSK0KUVLo3eff5BlQNNWDnFOouNpKfPKDnms9xynJjsMYjMaT/aFQ==} + engines: {node: '>= 18'} + peerDependencies: + keyv: ^5.6.0 + + '@keyv/serialize@1.1.1': + resolution: {integrity: sha512-dXn3FZhPv0US+7dtJsIi2R+c7qWYiReoEh5zUntWCf4oSpMNib8FDhSoed6m3QyZdx5hK7iLFkYk3rNxwt8vTA==} + '@napi-rs/lzma-linux-x64-gnu@1.5.1': resolution: {integrity: sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==} engines: {node: ^22.20 || ^24.12 || >=25} @@ -392,15 +408,15 @@ packages: cpu: [x64] os: [win32] - '@standard-schema/spec@1.1.0': - resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} - '@types/chai@5.2.3': resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} '@types/deep-eql@4.0.2': resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==} + '@types/esrecurse@4.3.1': + resolution: {integrity: sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==} + '@types/estree@1.0.10': resolution: {integrity: sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==} @@ -410,13 +426,10 @@ packages: '@types/resolve@1.20.2': resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} - '@vitest/expect@4.1.12': - resolution: {integrity: sha512-vFlTt+YEu9WBpNjdGayNmlMVzrWPi1+sv853/7t2FU7hpO5gAFBKHzQmkCq5Xjpr+evegF2994LQT3hF3mRlqQ==} - - '@vitest/mocker@4.1.12': - resolution: {integrity: sha512-fKShNpKZzupWZuY0z7egydvL0sqW4INEZBEExMBMAa6izlENEVHwoXgdaTCaBZ5fwlr4xf2o1wXC83n9RpO+NA==} + '@vitest/mocker@5.1.0': + resolution: {integrity: sha512-5umB9/jlWcqVS6fsrFmv5Gdnpu6wAUio/lEOwAmvB7v+lFo/IW2B9FhAD0p19GCULTgMzLCdUmuCDCnAzWgppQ==} peerDependencies: - msw: ^2.4.9 + msw: ^2.4.9 || ^3.0.0 vite: ^6.0.0 || ^7.0.0 || ^8.0.0 peerDependenciesMeta: msw: @@ -424,20 +437,8 @@ packages: vite: optional: true - '@vitest/pretty-format@4.1.12': - resolution: {integrity: sha512-XW9O8+Mxx4VpCtkYdMJLZQQwsVryP9wk7cPKDxtXFfwSak6yRh5+2fep/Y0XF/ElBvJHq8bcYdi6aeuai0opZA==} - - '@vitest/runner@4.1.12': - resolution: {integrity: sha512-NKlVKCr5QnCe8jijdMnmkpHHU+WTqiLFR6G0pHji9uRjXK9xJl1k1nTw6F3pOOj2PDcsDt2GKQMI7wIsaT491w==} - - '@vitest/snapshot@4.1.12': - resolution: {integrity: sha512-ko1y1Qgb/slzQ9mr+b89Cuqud8WG1TKtsPD8r7ZUBdvVOGt85Af2HwCqHujrhwJq95hs/9RM7fcAPg57o1vlzw==} - - '@vitest/spy@4.1.12': - resolution: {integrity: sha512-RGq9x4JNGNTZHEJxvN0oSiJjeSCExm0n2gZKKJZHY9cX5AVA6M7VJILBT3ZJ/tJ/0J9uWT7fETV9/btoi//vSg==} - - '@vitest/utils@4.1.12': - resolution: {integrity: sha512-Q3awXrwOfEV+qc3WmO5ONyE0yO7Q1gQ9/oyHxGLZ/pl7N3NO/ZztqQwKLuwMkV+CA1JYSIeO3gkHnRDIo4AVaA==} + '@vitest/spy@5.1.0': + resolution: {integrity: sha512-2DPO5OMHWKrBngC+fCmTQqemNF0gidRhp3lxbBmRhW+M1XJrfgPpqNqWVevXtn2f2ufD5ZaR1B6B641aAlcX5A==} acorn-jsx@5.3.2: resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} @@ -452,54 +453,31 @@ packages: ajv@6.15.0: resolution: {integrity: sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==} - ansi-styles@4.3.0: - resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} - engines: {node: '>=8'} - - argparse@2.0.1: - resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} - assertion-error@2.0.1: resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} engines: {node: '>=12'} - balanced-match@1.0.2: - resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + balanced-match@4.0.4: + resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} + engines: {node: 18 || 20 || >=22} - brace-expansion@1.1.21: - resolution: {integrity: sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==} + brace-expansion@5.0.12: + resolution: {integrity: sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==} + engines: {node: 20 || >=22} buffer-from@1.1.2: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} - callsites@3.1.0: - resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} - engines: {node: '>=6'} + cacheable@2.5.0: + resolution: {integrity: sha512-60cyAOytib/OzBw1JNSoSV/boK1AtHryDIjvVBk7XbN4ugfkM3+Sry7fEjNgPMGgOjuaZPAp8ruZ0Cxafwyq9g==} chai@6.3.0: resolution: {integrity: sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==} engines: {node: '>=18'} - chalk@4.1.2: - resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} - engines: {node: '>=10'} - - color-convert@2.0.1: - resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} - engines: {node: '>=7.0.0'} - - color-name@1.1.4: - resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} - commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} - concat-map@0.0.1: - resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} - - convert-source-map@2.0.0: - resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} - cross-spawn@7.0.6: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} @@ -543,22 +521,21 @@ packages: resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} engines: {node: '>=10'} - eslint-scope@8.4.0: - resolution: {integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + eslint-scope@9.1.2: + resolution: {integrity: sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} eslint-visitor-keys@3.4.3: resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - eslint-visitor-keys@4.2.1: - resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + eslint-visitor-keys@5.0.1: + resolution: {integrity: sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} - eslint@9.39.5: - resolution: {integrity: sha512-DgZS62aPLXKlnxILS/AYCoRvHaZeXceIzlXPkkGGzJWSow1aEk0lbTlxUSlyjC8jcaKxAdOnTDz+o1JFSBsyjw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. + eslint@10.14.0: + resolution: {integrity: sha512-T0pNsxkb9IKmtQjhpK3d7nWOpFv+YHuMbTJnSVMoQblF0onvXfErrtp4V1jHtsQPan7dKaGVD0q1WCXnzMF31A==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} hasBin: true peerDependencies: jiti: '*' @@ -566,9 +543,9 @@ packages: jiti: optional: true - espree@10.4.0: - resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + espree@11.2.0: + resolution: {integrity: sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} esquery@1.7.0: resolution: {integrity: sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==} @@ -614,17 +591,15 @@ packages: picomatch: optional: true - file-entry-cache@8.0.0: - resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==} - engines: {node: '>=16.0.0'} + file-entry-cache@11.1.5: + resolution: {integrity: sha512-+PFTHITI08JIGhnNpGNI8T8inUpgZfk3GNEqfT9R2zZV2iFXg3CvqzSl/uEhs7TSGujYRELEANyDvS8Fj7+S7Q==} find-up@5.0.0: resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} engines: {node: '>=10'} - flat-cache@4.0.1: - resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==} - engines: {node: '>=16'} + flat-cache@6.1.23: + resolution: {integrity: sha512-f++BY9pTk+983xK1FLzlLpmM0i0z+jHmx3QESGkURMXujQZz1k5wzwX6hjnQ8goaD0B+sYnDK1yZ6MTyZfUaqA==} flatted@3.4.4: resolution: {integrity: sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==} @@ -641,30 +616,28 @@ packages: resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} engines: {node: '>=10.13.0'} - globals@14.0.0: - resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} - engines: {node: '>=18'} - globals@17.14.0: resolution: {integrity: sha512-UtdkTVyAJePQv0J2M9Xe4L0ruNSDV314XiIJsADI2Zf40bcdAonE/D/OhAU8AT99oij9mhLByb+NvA3QWZYgCg==} engines: {node: '>=18'} - has-flag@4.0.0: - resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} - engines: {node: '>=8'} + hashery@1.5.1: + resolution: {integrity: sha512-iZyKG96/JwPz1N55vj2Ie2vXbhu440zfUfJvSwEqEbeLluk7NnapfGqa7LH0mOsnDxTF85Mx8/dyR6HfqcbmbQ==} + engines: {node: '>=20'} hasown@2.0.4: resolution: {integrity: sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==} engines: {node: '>= 0.4'} + hookified@1.15.1: + resolution: {integrity: sha512-MvG/clsADq1GPM2KGo2nyfaWVyn9naPiXrqIe4jYjXNZQt238kWyOGrsyc/DmRAQ+Re6yeo6yX/yoNCG5KAEVg==} + + hookified@2.2.0: + resolution: {integrity: sha512-p/LgFzRN5FeoD3DLS6bkUapeye6E4SI6yJs6KetENd18S+FBthqYq2amJUWpt5z0EQwwHemidjY5OqJGEKm5uA==} + ignore@5.3.2: resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} engines: {node: '>= 4'} - import-fresh@3.3.1: - resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==} - engines: {node: '>=6'} - imurmurhash@0.1.4: resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} engines: {node: '>=0.8.19'} @@ -687,21 +660,14 @@ packages: isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} - js-yaml@4.3.2: - resolution: {integrity: sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==} - hasBin: true - - json-buffer@3.0.1: - resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} - json-schema-traverse@0.4.1: resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} json-stable-stringify-without-jsonify@1.0.1: resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} - keyv@4.5.4: - resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} + keyv@5.6.0: + resolution: {integrity: sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==} levn@0.4.1: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} @@ -785,14 +751,12 @@ packages: resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} engines: {node: '>=10'} - lodash.merge@4.6.2: - resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} - - magic-string@0.30.21: - resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} + magic-string@1.4.5: + resolution: {integrity: sha512-oLLC2+YvQUfAa+vxoufE/yc1icb87M9iXIRqAoR/2EhE/8cb3SF/+Gi0c2By1B+5Vz2e2vQtUvHiu1+63Znh+w==} - minimatch@3.1.5: - resolution: {integrity: sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==} + minimatch@10.2.6: + resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==} + engines: {node: 18 || 20 || >=22} ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} @@ -805,8 +769,8 @@ packages: natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} - obug@2.2.1: - resolution: {integrity: sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q==} + obug@3.0.0: + resolution: {integrity: sha512-5vvB5+W7ePv+p3uqxi+RcW1XAzLW0/hxt3/4X4Lc4qHudzOhmBiBwOY6DRob4WnanAEGvNcLjF+KNOufrUoEQw==} engines: {node: '>=12.20.0'} optionator@0.9.4: @@ -821,10 +785,6 @@ packages: resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} engines: {node: '>=10'} - parent-module@1.0.1: - resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} - engines: {node: '>=6'} - path-exists@4.0.0: resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} engines: {node: '>=8'} @@ -836,9 +796,6 @@ packages: path-parse@1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} - pathe@2.0.3: - resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} - picocolors@1.1.1: resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} @@ -858,9 +815,9 @@ packages: resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} - resolve-from@4.0.0: - resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} - engines: {node: '>=4'} + qified@0.10.1: + resolution: {integrity: sha512-+Owyggi9IxT1ePKGafcI87ubSmxol6smwJ+RAHDQlx9+9cPwFWDiKFFCPuWhr9ignlGpZ9vDQLw67N4dcTVFEA==} + engines: {node: '>=20'} resolve@1.22.13: resolution: {integrity: sha512-Dj/cW9zBV2aRj6XzCxuGIs3ESZKv02jixne3q6jFZYZ3/Tg09gHHviSMDL4kObh9pqSahdRHEnDoaP2gn8YLhA==} @@ -889,9 +846,6 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} - siginfo@2.0.0: - resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} - smob@1.6.2: resolution: {integrity: sha512-RQsvleCbF8cVHEv+xuDGaA4pOizFqJ0GgjtMSRo6oP8pnN7WsigHgVGey6aILRBKv4W2YOMHLqbKdnB6hpB9fw==} engines: {node: '>=20.0.0'} @@ -907,20 +861,9 @@ packages: resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} engines: {node: '>=0.10.0'} - stackback@0.0.2: - resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} - std-env@4.3.0: resolution: {integrity: sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==} - strip-json-comments@3.1.1: - resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} - engines: {node: '>=8'} - - supports-color@7.2.0: - resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} - engines: {node: '>=8'} - supports-preserve-symlinks-flag@1.0.0: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} @@ -930,8 +873,9 @@ packages: engines: {node: '>=10'} hasBin: true - tinybench@2.9.0: - resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} + tinybench@6.2.3: + resolution: {integrity: sha512-Al01C2JIBnO2CXCAPbpAl6sUiOZHeThGtHYNTa51JRw9PyWOCdr+9Ong05R4qg/Sk3+H645E8ov1h2c58ityNw==} + engines: {node: '>=20.0.0'} tinyexec@1.3.1: resolution: {integrity: sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==} @@ -941,10 +885,6 @@ packages: resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} engines: {node: '>=12.0.0'} - tinyrainbow@3.2.0: - resolution: {integrity: sha512-LgO3D9yZJjApUiuUfl9iFAwrtaX4+lok3wJIqttGoKCHlWUqHqbQpnxCf82L8FjgKsh4iGo78hqJwgL8F6To2A==} - engines: {node: '>=14.0.0'} - type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} @@ -995,23 +935,23 @@ packages: yaml: optional: true - vitest@4.1.12: - resolution: {integrity: sha512-5eWdz2yb3ajxWF3C8C4TjkXl7FGm3n2E/VlazALrQHzK7nYMSGFnCZto0bbPNl77AwkOZVLk0YnBAejUu0NiWA==} - engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0} + vitest@5.1.0: + resolution: {integrity: sha512-MzmNFnrwa8v8lF1bLxw3UJ4EREwVOVb75VqJZmUDRjJ6EluK/x9th7qTbaeDk41WxE1GxWqmTXcdsfobfH5sOA==} + engines: {node: ^22.12.0 || ^24.0.0 || >=26.0.0} hasBin: true peerDependencies: '@edge-runtime/vm': '*' '@opentelemetry/api': ^1.9.0 - '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0 - '@vitest/browser-playwright': 4.1.12 - '@vitest/browser-preview': 4.1.12 - '@vitest/browser-webdriverio': ^4.1.11 - '@vitest/coverage-istanbul': 4.1.12 - '@vitest/coverage-v8': 4.1.12 - '@vitest/ui': 4.1.12 + '@types/node': ^22.0.0 || >=24.0.0 + '@vitest/browser-playwright': 5.1.0 + '@vitest/browser-preview': 5.1.0 + '@vitest/browser-webdriverio': ^5.0.0-beta.5 || >=5.0.0 + '@vitest/coverage-istanbul': 5.1.0 + '@vitest/coverage-v8': 5.1.0 + '@vitest/ui': 5.1.0 happy-dom: '*' jsdom: '*' - vite: ^6.0.0 || ^7.0.0 || ^8.0.0 + vite: ^6.4.0 || ^7.0.0 || ^8.0.0 peerDependenciesMeta: '@edge-runtime/vm': optional: true @@ -1041,9 +981,9 @@ packages: engines: {node: '>= 8'} hasBin: true - why-is-node-running@2.3.0: - resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} - engines: {node: '>=8'} + why-is-node-running@3.2.1: + resolution: {integrity: sha512-Tb2FUhB4vUsGQlfSquQLYkApkuPAFQXGFzxWKHHumVz2dK+X1RUm/HnID4+TfIGYJ1kTcwOaCk/buYCEJr6YjQ==} + engines: {node: '>=20.11'} hasBin: true word-wrap@1.2.5: @@ -1056,50 +996,50 @@ packages: snapshots: - '@eslint-community/eslint-utils@4.10.1(eslint@9.39.5)': + '@cacheable/memory@2.2.0': dependencies: - eslint: 9.39.5 + '@cacheable/utils': 2.5.0 + '@keyv/bigmap': 1.3.1(keyv@5.6.0) + hookified: 1.15.1 + keyv: 5.6.0 + + '@cacheable/utils@2.5.0': + dependencies: + hashery: 1.5.1 + keyv: 5.6.0 + + '@eslint-community/eslint-utils@4.10.1(eslint@10.14.0)': + dependencies: + eslint: 10.14.0 eslint-visitor-keys: 3.4.3 '@eslint-community/regexpp@4.12.2': {} - '@eslint/config-array@0.21.2': + '@eslint/config-array@0.23.5': dependencies: - '@eslint/object-schema': 2.1.7 + '@eslint/object-schema': 3.0.5 debug: 4.4.3 - minimatch: 3.1.5 + minimatch: 10.2.6 transitivePeerDependencies: - supports-color - '@eslint/config-helpers@0.4.2': + '@eslint/config-helpers@0.7.0': dependencies: - '@eslint/core': 0.17.0 + '@eslint/core': 1.2.1 - '@eslint/core@0.17.0': + '@eslint/core@1.2.1': dependencies: '@types/json-schema': 7.0.15 - '@eslint/eslintrc@3.3.7': - dependencies: - ajv: 6.15.0 - debug: 4.4.3 - espree: 10.4.0 - globals: 14.0.0 - ignore: 5.3.2 - import-fresh: 3.3.1 - js-yaml: 4.3.2 - minimatch: 3.1.5 - strip-json-comments: 3.1.1 - transitivePeerDependencies: - - supports-color - - '@eslint/js@9.39.5': {} + '@eslint/js@10.0.1(eslint@10.14.0)': + optionalDependencies: + eslint: 10.14.0 - '@eslint/object-schema@2.1.7': {} + '@eslint/object-schema@3.0.5': {} - '@eslint/plugin-kit@0.4.1': + '@eslint/plugin-kit@0.7.3': dependencies: - '@eslint/core': 0.17.0 + '@eslint/core': 1.2.1 levn: 0.4.1 '@humanfs/core@0.19.2': @@ -1137,6 +1077,14 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.6.0 + '@keyv/bigmap@1.3.1(keyv@5.6.0)': + dependencies: + hashery: 1.5.1 + hookified: 1.15.1 + keyv: 5.6.0 + + '@keyv/serialize@1.1.1': {} + '@napi-rs/lzma-linux-x64-gnu@1.5.1': optional: true @@ -1293,8 +1241,6 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.67.4': optional: true - '@standard-schema/spec@1.1.0': {} - '@types/chai@5.2.3': dependencies: '@types/deep-eql': 4.0.2 @@ -1302,52 +1248,24 @@ snapshots: '@types/deep-eql@4.0.2': {} + '@types/esrecurse@4.3.1': {} + '@types/estree@1.0.10': {} '@types/json-schema@7.0.15': {} '@types/resolve@1.20.2': {} - '@vitest/expect@4.1.12': + '@vitest/mocker@5.1.0(vite@8.3.5(terser@5.51.2))': dependencies: - '@standard-schema/spec': 1.1.0 - '@types/chai': 5.2.3 - '@vitest/spy': 4.1.12 - '@vitest/utils': 4.1.12 - chai: 6.3.0 - tinyrainbow: 3.2.0 - - '@vitest/mocker@4.1.12(vite@8.3.5(terser@5.51.2))': - dependencies: - '@vitest/spy': 4.1.12 + '@jridgewell/trace-mapping': 0.3.31 + '@vitest/spy': 5.1.0 estree-walker: 3.0.3 - magic-string: 0.30.21 + magic-string: 1.4.5 optionalDependencies: vite: 8.3.5(terser@5.51.2) - '@vitest/pretty-format@4.1.12': - dependencies: - tinyrainbow: 3.2.0 - - '@vitest/runner@4.1.12': - dependencies: - '@vitest/utils': 4.1.12 - pathe: 2.0.3 - - '@vitest/snapshot@4.1.12': - dependencies: - '@vitest/pretty-format': 4.1.12 - '@vitest/utils': 4.1.12 - magic-string: 0.30.21 - pathe: 2.0.3 - - '@vitest/spy@4.1.12': {} - - '@vitest/utils@4.1.12': - dependencies: - '@vitest/pretty-format': 4.1.12 - convert-source-map: 2.0.0 - tinyrainbow: 3.2.0 + '@vitest/spy@5.1.0': {} acorn-jsx@5.3.2(acorn@8.19.0): dependencies: @@ -1362,44 +1280,28 @@ snapshots: json-schema-traverse: 0.4.1 uri-js: 4.4.1 - ansi-styles@4.3.0: - dependencies: - color-convert: 2.0.1 - - argparse@2.0.1: {} - assertion-error@2.0.1: {} - balanced-match@1.0.2: {} + balanced-match@4.0.4: {} - brace-expansion@1.1.21: + brace-expansion@5.0.12: dependencies: - balanced-match: 1.0.2 - concat-map: 0.0.1 + balanced-match: 4.0.4 buffer-from@1.1.2: {} - callsites@3.1.0: {} - - chai@6.3.0: {} - - chalk@4.1.2: + cacheable@2.5.0: dependencies: - ansi-styles: 4.3.0 - supports-color: 7.2.0 + '@cacheable/memory': 2.2.0 + '@cacheable/utils': 2.5.0 + hookified: 1.15.1 + keyv: 5.6.0 + qified: 0.10.1 - color-convert@2.0.1: - dependencies: - color-name: 1.1.4 - - color-name@1.1.4: {} + chai@6.3.0: {} commander@2.20.3: {} - concat-map@0.0.1: {} - - convert-source-map@2.0.0: {} - cross-spawn@7.0.6: dependencies: path-key: 3.1.1 @@ -1426,59 +1328,57 @@ snapshots: escape-string-regexp@4.0.0: {} - eslint-scope@8.4.0: + eslint-scope@9.1.2: dependencies: + '@types/esrecurse': 4.3.1 + '@types/estree': 1.0.10 esrecurse: 4.3.0 estraverse: 5.3.0 eslint-visitor-keys@3.4.3: {} - eslint-visitor-keys@4.2.1: {} + eslint-visitor-keys@5.0.1: {} - eslint@9.39.5: + eslint@10.14.0: dependencies: - '@eslint-community/eslint-utils': 4.10.1(eslint@9.39.5) + '@eslint-community/eslint-utils': 4.10.1(eslint@10.14.0) '@eslint-community/regexpp': 4.12.2 - '@eslint/config-array': 0.21.2 - '@eslint/config-helpers': 0.4.2 - '@eslint/core': 0.17.0 - '@eslint/eslintrc': 3.3.7 - '@eslint/js': 9.39.5 - '@eslint/plugin-kit': 0.4.1 + '@eslint/config-array': 0.23.5 + '@eslint/config-helpers': 0.7.0 + '@eslint/core': 1.2.1 + '@eslint/plugin-kit': 0.7.3 '@humanfs/node': 0.16.8 '@humanwhocodes/module-importer': 1.0.1 '@humanwhocodes/retry': 0.4.3 '@types/estree': 1.0.10 ajv: 6.15.0 - chalk: 4.1.2 cross-spawn: 7.0.6 debug: 4.4.3 escape-string-regexp: 4.0.0 - eslint-scope: 8.4.0 - eslint-visitor-keys: 4.2.1 - espree: 10.4.0 + eslint-scope: 9.1.2 + eslint-visitor-keys: 5.0.1 + espree: 11.2.0 esquery: 1.7.0 esutils: 2.0.3 fast-deep-equal: 3.1.3 - file-entry-cache: 8.0.0 + file-entry-cache: 11.1.5 find-up: 5.0.0 glob-parent: 6.0.2 ignore: 5.3.2 imurmurhash: 0.1.4 is-glob: 4.0.3 json-stable-stringify-without-jsonify: 1.0.1 - lodash.merge: 4.6.2 - minimatch: 3.1.5 + minimatch: 10.2.6 natural-compare: 1.4.0 optionator: 0.9.4 transitivePeerDependencies: - supports-color - espree@10.4.0: + espree@11.2.0: dependencies: acorn: 8.19.0 acorn-jsx: 5.3.2(acorn@8.19.0) - eslint-visitor-keys: 4.2.1 + eslint-visitor-keys: 5.0.1 esquery@1.7.0: dependencies: @@ -1510,19 +1410,20 @@ snapshots: optionalDependencies: picomatch: 4.0.7 - file-entry-cache@8.0.0: + file-entry-cache@11.1.5: dependencies: - flat-cache: 4.0.1 + flat-cache: 6.1.23 find-up@5.0.0: dependencies: locate-path: 6.0.0 path-exists: 4.0.0 - flat-cache@4.0.1: + flat-cache@6.1.23: dependencies: + cacheable: 2.5.0 flatted: 3.4.4 - keyv: 4.5.4 + hookified: 1.15.1 flatted@3.4.4: {} @@ -1535,22 +1436,21 @@ snapshots: dependencies: is-glob: 4.0.3 - globals@14.0.0: {} - globals@17.14.0: {} - has-flag@4.0.0: {} + hashery@1.5.1: + dependencies: + hookified: 1.15.1 hasown@2.0.4: dependencies: function-bind: 1.1.2 - ignore@5.3.2: {} + hookified@1.15.1: {} - import-fresh@3.3.1: - dependencies: - parent-module: 1.0.1 - resolve-from: 4.0.0 + hookified@2.2.0: {} + + ignore@5.3.2: {} imurmurhash@0.1.4: {} @@ -1568,19 +1468,13 @@ snapshots: isexe@2.0.0: {} - js-yaml@4.3.2: - dependencies: - argparse: 2.0.1 - - json-buffer@3.0.1: {} - json-schema-traverse@0.4.1: {} json-stable-stringify-without-jsonify@1.0.1: {} - keyv@4.5.4: + keyv@5.6.0: dependencies: - json-buffer: 3.0.1 + '@keyv/serialize': 1.1.1 levn@0.4.1: dependencies: @@ -1640,15 +1534,13 @@ snapshots: dependencies: p-locate: 5.0.0 - lodash.merge@4.6.2: {} - - magic-string@0.30.21: + magic-string@1.4.5: dependencies: '@jridgewell/sourcemap-codec': 1.6.0 - minimatch@3.1.5: + minimatch@10.2.6: dependencies: - brace-expansion: 1.1.21 + brace-expansion: 5.0.12 ms@2.1.3: {} @@ -1656,7 +1548,7 @@ snapshots: natural-compare@1.4.0: {} - obug@2.2.1: {} + obug@3.0.0: {} optionator@0.9.4: dependencies: @@ -1675,18 +1567,12 @@ snapshots: dependencies: p-limit: 3.1.0 - parent-module@1.0.1: - dependencies: - callsites: 3.1.0 - path-exists@4.0.0: {} path-key@3.1.1: {} path-parse@1.0.7: {} - pathe@2.0.3: {} - picocolors@1.1.1: {} picomatch@4.0.7: {} @@ -1701,7 +1587,9 @@ snapshots: punycode@2.3.1: {} - resolve-from@4.0.0: {} + qified@0.10.1: + dependencies: + hookified: 2.2.0 resolve@1.22.13: dependencies: @@ -1772,8 +1660,6 @@ snapshots: shebang-regex@3.0.0: {} - siginfo@2.0.0: {} - smob@1.6.2: {} source-map-js@1.2.2: {} @@ -1785,16 +1671,8 @@ snapshots: source-map@0.6.1: {} - stackback@0.0.2: {} - std-env@4.3.0: {} - strip-json-comments@3.1.1: {} - - supports-color@7.2.0: - dependencies: - has-flag: 4.0.0 - supports-preserve-symlinks-flag@1.0.0: {} terser@5.51.2: @@ -1804,7 +1682,7 @@ snapshots: commander: 2.20.3 source-map-support: 0.5.21 - tinybench@2.9.0: {} + tinybench@6.2.3: {} tinyexec@1.3.1: {} @@ -1813,8 +1691,6 @@ snapshots: fdir: 6.5.0(picomatch@4.0.7) picomatch: 4.0.7 - tinyrainbow@3.2.0: {} - type-check@0.4.0: dependencies: prelude-ls: 1.2.1 @@ -1834,28 +1710,22 @@ snapshots: fsevents: 2.3.3 terser: 5.51.2 - vitest@4.1.12(vite@8.3.5(terser@5.51.2)): + vitest@5.1.0(vite@8.3.5(terser@5.51.2)): dependencies: - '@vitest/expect': 4.1.12 - '@vitest/mocker': 4.1.12(vite@8.3.5(terser@5.51.2)) - '@vitest/pretty-format': 4.1.12 - '@vitest/runner': 4.1.12 - '@vitest/snapshot': 4.1.12 - '@vitest/spy': 4.1.12 - '@vitest/utils': 4.1.12 + '@types/chai': 5.2.3 + '@vitest/mocker': 5.1.0(vite@8.3.5(terser@5.51.2)) + chai: 6.3.0 es-module-lexer: 2.3.2 expect-type: 1.4.0 - magic-string: 0.30.21 - obug: 2.2.1 - pathe: 2.0.3 + magic-string: 1.4.5 + obug: 3.0.0 picomatch: 4.0.7 std-env: 4.3.0 - tinybench: 2.9.0 + tinybench: 6.2.3 tinyexec: 1.3.1 tinyglobby: 0.2.17 - tinyrainbow: 3.2.0 vite: 8.3.5(terser@5.51.2) - why-is-node-running: 2.3.0 + why-is-node-running: 3.2.1 transitivePeerDependencies: - msw @@ -1863,10 +1733,7 @@ snapshots: dependencies: isexe: 2.0.0 - why-is-node-running@2.3.0: - dependencies: - siginfo: 2.0.0 - stackback: 0.0.2 + why-is-node-running@3.2.1: {} word-wrap@1.2.5: {} From e85dcd11f3193e6d4f5efd32bc2e311dcc7082eb Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Mon, 2 Nov 2026 18:19:35 -0800 Subject: [PATCH 04/10] import it from vitest Co-Authored-By: Claude Opus 5.5 --- test/arc-test.js | 104 ++++++++++++++-------------- test/area-test.js | 42 +++++------ test/areaRadial-test.js | 12 ++-- test/curve/basis-test.js | 6 +- test/curve/basisClosed-test.js | 4 +- test/curve/basisOpen-test.js | 6 +- test/curve/bumpX-test.js | 6 +- test/curve/bumpY-test.js | 6 +- test/curve/bundle-test.js | 8 +-- test/curve/cardinal-test.js | 18 ++--- test/curve/cardinalClosed-test.js | 18 ++--- test/curve/cardinalOpen-test.js | 18 ++--- test/curve/catmullRom-test.js | 16 ++--- test/curve/catmullRomClosed-test.js | 14 ++-- test/curve/catmullRomOpen-test.js | 16 ++--- test/curve/linear-test.js | 6 +- test/curve/linearClosed-test.js | 4 +- test/curve/monotoneX-test.js | 14 ++-- test/curve/monotoneY-test.js | 14 ++-- test/curve/natural-test.js | 6 +- test/curve/step-test.js | 6 +- test/curve/stepAfter-test.js | 6 +- test/curve/stepBefore-test.js | 6 +- test/line-test.js | 24 +++---- test/lineRadial-test.js | 4 +- test/link-test.js | 28 ++++---- test/offset/diverging-test.js | 14 ++-- test/offset/expand-test.js | 8 +-- test/offset/none-test.js | 8 +-- test/offset/silhouette-test.js | 8 +-- test/offset/wiggle-test.js | 8 +-- test/order/appearance-test.js | 6 +- test/order/ascending-test.js | 6 +- test/order/descending-test.js | 6 +- test/order/insideOut-test.js | 6 +- test/order/none-test.js | 4 +- test/order/reverse-test.js | 4 +- test/pie-test.js | 40 +++++------ test/stack-test.js | 28 ++++---- test/symbol-test.js | 52 +++++++------- test/symbols-test.js | 8 +-- 41 files changed, 309 insertions(+), 309 deletions(-) diff --git a/test/arc-test.js b/test/arc-test.js index ffd018ca..b6d97d15 100644 --- a/test/arc-test.js +++ b/test/arc-test.js @@ -1,58 +1,58 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {arc} from "../src/index.js"; import {assertPathEqual} from "./asserts.js"; -test("arc().innerRadius(f)(…) propagates the context and arguments to the specified function f", () => { +it("arc().innerRadius(f)(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; arc().innerRadius(function() { actual = {that: this, args: [].slice.call(arguments)}; }).apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -test("arc().outerRadius(f)(…) propagates the context and arguments to the specified function f", () => { +it("arc().outerRadius(f)(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; arc().outerRadius(function() { actual = {that: this, args: [].slice.call(arguments)}; }).apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -test("arc().cornerRadius(f)(…) propagates the context and arguments to the specified function f", () => { +it("arc().cornerRadius(f)(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; arc().outerRadius(100).cornerRadius(function() { actual = {that: this, args: [].slice.call(arguments)}; }).apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -test("arc().startAngle(f)(…) propagates the context and arguments to the specified function f", () => { +it("arc().startAngle(f)(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; arc().startAngle(function() { actual = {that: this, args: [].slice.call(arguments)}; }).apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -test("arc().endAngle(f)(…) propagates the context and arguments to the specified function f", () => { +it("arc().endAngle(f)(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; arc().endAngle(function() { actual = {that: this, args: [].slice.call(arguments)}; }).apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -test("arc().padAngle(f)(…) propagates the context and arguments to the specified function f", () => { +it("arc().padAngle(f)(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; arc().outerRadius(100).startAngle(Math.PI / 2).padAngle(function() { actual = {that: this, args: [].slice.call(arguments)}; }).apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -test("arc().padRadius(f)(…) propagates the context and arguments to the specified function f", () => { +it("arc().padRadius(f)(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; arc().outerRadius(100).startAngle(Math.PI / 2).padAngle(0.1).padRadius(function() { actual = {that: this, args: [].slice.call(arguments)}; }).apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -test("arc().centroid(…) computes the midpoint of the center line of the arc", () => { +it("arc().centroid(…) computes the midpoint of the center line of the arc", () => { const a = arc(), round = function(x) { return Math.round(x * 1e6) / 1e6; }; assert.deepStrictEqual(a.centroid({innerRadius: 0, outerRadius: 100, startAngle: 0, endAngle: Math.PI}).map(round), [50, 0]); assert.deepStrictEqual(a.centroid({innerRadius: 0, outerRadius: 100, startAngle: 0, endAngle: Math.PI / 2}).map(round), [35.355339, -35.355339]); @@ -60,46 +60,46 @@ test("arc().centroid(…) computes the midpoint of the center line of the arc", assert.deepStrictEqual(a.centroid({innerRadius: 50, outerRadius: 100, startAngle: 0, endAngle: -Math.PI / 2}).map(round), [-53.033009, -53.033009]); }); -test("arc().innerRadius(f).centroid(…) propagates the context and arguments to the specified function f", () => { +it("arc().innerRadius(f).centroid(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; arc().innerRadius(function() { actual = {that: this, args: [].slice.call(arguments)}; }).centroid.apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -test("arc().outerRadius(f).centroid(…) propagates the context and arguments to the specified function f", () => { +it("arc().outerRadius(f).centroid(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; arc().outerRadius(function() { actual = {that: this, args: [].slice.call(arguments)}; }).centroid.apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -test("arc().startAngle(f).centroid(…) propagates the context and arguments to the specified function f", () => { +it("arc().startAngle(f).centroid(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; arc().startAngle(function() { actual = {that: this, args: [].slice.call(arguments)}; }).centroid.apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -test("arc().endAngle(f).centroid(…) propagates the context and arguments to the specified function f", () => { +it("arc().endAngle(f).centroid(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; arc().endAngle(function() { actual = {that: this, args: [].slice.call(arguments)}; }).centroid.apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -test("arc().innerRadius(0).outerRadius(0) renders a point", () => { +it("arc().innerRadius(0).outerRadius(0) renders a point", () => { const a = arc().innerRadius(0).outerRadius(0); assertPathEqual(a.startAngle(0).endAngle(2 * Math.PI)(), "M0,0Z"); assertPathEqual(a.startAngle(0).endAngle(0)(), "M0,0Z"); }); -test("a negative angle span proceeds anticlockwise", () => { +it("a negative angle span proceeds anticlockwise", () => { const a = arc().innerRadius(0).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(-Math.PI/2)(), "M0,-100A100,100,0,0,0,-100,0L0,0Z"); }); -test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) renders a clockwise circle if r > 0 and θ₁ - θ₀ ≥ τ", () => { +it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) renders a clockwise circle if r > 0 and θ₁ - θ₀ ≥ τ", () => { const a = arc().innerRadius(0).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(2 * Math.PI)(), "M0,-100A100,100,0,1,1,0,100A100,100,0,1,1,0,-100Z"); assertPathEqual(a.startAngle(0).endAngle(3 * Math.PI)(), "M0,-100A100,100,0,1,1,0,100A100,100,0,1,1,0,-100Z"); @@ -108,7 +108,7 @@ test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) rend assertPathEqual(a.startAngle(-3 * Math.PI).endAngle(0)(), "M0,100A100,100,0,1,1,0,-100A100,100,0,1,1,0,100Z"); }); -test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) renders an anticlockwise circle if r > 0 and θ₀ - θ₁ ≥ τ", () => { +it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) renders an anticlockwise circle if r > 0 and θ₀ - θ₁ ≥ τ", () => { const a = arc().innerRadius(0).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(-2 * Math.PI)(), "M0,-100A100,100,0,1,0,0,100A100,100,0,1,0,0,-100Z"); assertPathEqual(a.startAngle(0).endAngle(-3 * Math.PI)(), "M0,-100A100,100,0,1,0,0,100A100,100,0,1,0,0,-100Z"); @@ -119,7 +119,7 @@ test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) rend // Note: The outer ring starts and ends at θ₀, but the inner ring starts and ends at θ₁. // Note: The outer ring is clockwise, but the inner ring is anticlockwise. -test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) renders a clockwise annulus if r₀ > 0, r₁ > 0 and θ₀ - θ₁ ≥ τ", () => { +it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) renders a clockwise annulus if r₀ > 0, r₁ > 0 and θ₀ - θ₁ ≥ τ", () => { const a = arc().innerRadius(50).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(2 * Math.PI)(), "M0,-100A100,100,0,1,1,0,100A100,100,0,1,1,0,-100M0,-50A50,50,0,1,0,0,50A50,50,0,1,0,0,-50Z"); assertPathEqual(a.startAngle(0).endAngle(3 * Math.PI)(), "M0,-100A100,100,0,1,1,0,100A100,100,0,1,1,0,-100M0,50A50,50,0,1,0,0,-50A50,50,0,1,0,0,50Z"); @@ -130,7 +130,7 @@ test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁ // Note: The outer ring starts and ends at θ₀, but the inner ring starts and ends at θ₁. // Note: The outer ring is anticlockwise, but the inner ring is clockwise. -test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) renders an anticlockwise annulus if r₀ > 0, r₁ > 0 and θ₁ - θ₀ ≥ τ", () => { +it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) renders an anticlockwise annulus if r₀ > 0, r₁ > 0 and θ₁ - θ₀ ≥ τ", () => { const a = arc().innerRadius(50).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(-2 * Math.PI)(), "M0,-100A100,100,0,1,0,0,100A100,100,0,1,0,0,-100M0,-50A50,50,0,1,1,0,50A50,50,0,1,1,0,-50Z"); assertPathEqual(a.startAngle(0).endAngle(-3 * Math.PI)(), "M0,-100A100,100,0,1,0,0,100A100,100,0,1,0,0,-100M0,50A50,50,0,1,1,0,-50A50,50,0,1,1,0,50Z"); @@ -139,28 +139,28 @@ test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁ assertPathEqual(a.startAngle(3 * Math.PI).endAngle(0)(), "M0,100A100,100,0,1,0,0,-100A100,100,0,1,0,0,100M0,-50A50,50,0,1,1,0,50A50,50,0,1,1,0,-50Z"); }); -test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) renders a small clockwise sector if r > 0 and π > θ₁ - θ₀ ≥ 0", () => { +it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) renders a small clockwise sector if r > 0 and π > θ₁ - θ₀ ≥ 0", () => { const a = arc().innerRadius(0).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(Math.PI / 2)(), "M0,-100A100,100,0,0,1,100,0L0,0Z"); assertPathEqual(a.startAngle(2 * Math.PI).endAngle(5 * Math.PI / 2)(), "M0,-100A100,100,0,0,1,100,0L0,0Z"); assertPathEqual(a.startAngle(-Math.PI).endAngle(-Math.PI / 2)(), "M0,100A100,100,0,0,1,-100,0L0,0Z"); }); -test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) renders a small anticlockwise sector if r > 0 and π > θ₀ - θ₁ ≥ 0", () => { +it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) renders a small anticlockwise sector if r > 0 and π > θ₀ - θ₁ ≥ 0", () => { const a = arc().innerRadius(0).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(-Math.PI / 2)(), "M0,-100A100,100,0,0,0,-100,0L0,0Z"); assertPathEqual(a.startAngle(-2 * Math.PI).endAngle(-5 * Math.PI / 2)(), "M0,-100A100,100,0,0,0,-100,0L0,0Z"); assertPathEqual(a.startAngle(Math.PI).endAngle(Math.PI / 2)(), "M0,100A100,100,0,0,0,100,0L0,0Z"); }); -test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) renders a large clockwise sector if r > 0 and τ > θ₁ - θ₀ ≥ π", () => { +it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) renders a large clockwise sector if r > 0 and τ > θ₁ - θ₀ ≥ π", () => { const a = arc().innerRadius(0).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(3 * Math.PI / 2)(), "M0,-100A100,100,0,1,1,-100,0L0,0Z"); assertPathEqual(a.startAngle(2 * Math.PI).endAngle(7 * Math.PI / 2)(), "M0,-100A100,100,0,1,1,-100,0L0,0Z"); assertPathEqual(a.startAngle(-Math.PI).endAngle(Math.PI / 2)(), "M0,100A100,100,0,1,1,100,0L0,0Z"); }); -test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) renders a large anticlockwise sector if r > 0 and τ > θ₀ - θ₁ ≥ π", () => { +it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) renders a large anticlockwise sector if r > 0 and τ > θ₀ - θ₁ ≥ π", () => { const a = arc().innerRadius(0).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(-3 * Math.PI / 2)(), "M0,-100A100,100,0,1,0,100,0L0,0Z"); assertPathEqual(a.startAngle(-2 * Math.PI).endAngle(-7 * Math.PI / 2)(), "M0,-100A100,100,0,1,0,100,0L0,0Z"); @@ -168,7 +168,7 @@ test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁) rend }); // Note: The outer ring is clockwise, but the inner ring is anticlockwise. -test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) renders a small clockwise annular sector if r₀ > 0, r₁ > 0 and π > θ₁ - θ₀ ≥ 0", () => { +it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) renders a small clockwise annular sector if r₀ > 0, r₁ > 0 and π > θ₁ - θ₀ ≥ 0", () => { const a = arc().innerRadius(50).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(Math.PI / 2)(), "M0,-100A100,100,0,0,1,100,0L50,0A50,50,0,0,0,0,-50Z"); assertPathEqual(a.startAngle(2 * Math.PI).endAngle(5 * Math.PI / 2)(), "M0,-100A100,100,0,0,1,100,0L50,0A50,50,0,0,0,0,-50Z"); @@ -176,7 +176,7 @@ test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁ }); // Note: The outer ring is anticlockwise, but the inner ring is clockwise. -test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) renders a small anticlockwise annular sector if r₀ > 0, r₁ > 0 and π > θ₀ - θ₁ ≥ 0", () => { +it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) renders a small anticlockwise annular sector if r₀ > 0, r₁ > 0 and π > θ₀ - θ₁ ≥ 0", () => { const a = arc().innerRadius(50).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(-Math.PI / 2)(), "M0,-100A100,100,0,0,0,-100,0L-50,0A50,50,0,0,1,0,-50Z"); assertPathEqual(a.startAngle(-2 * Math.PI).endAngle(-5 * Math.PI / 2)(), "M0,-100A100,100,0,0,0,-100,0L-50,0A50,50,0,0,1,0,-50Z"); @@ -184,7 +184,7 @@ test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁ }); // Note: The outer ring is clockwise, but the inner ring is anticlockwise. -test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) renders a large clockwise annular sector if r₀ > 0, r₁ > 0 and τ > θ₁ - θ₀ ≥ π", () => { +it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) renders a large clockwise annular sector if r₀ > 0, r₁ > 0 and τ > θ₁ - θ₀ ≥ π", () => { const a = arc().innerRadius(50).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(3 * Math.PI / 2)(), "M0,-100A100,100,0,1,1,-100,0L-50,0A50,50,0,1,0,0,-50Z"); assertPathEqual(a.startAngle(2 * Math.PI).endAngle(7 * Math.PI / 2)(), "M0,-100A100,100,0,1,1,-100,0L-50,0A50,50,0,1,0,0,-50Z"); @@ -192,20 +192,20 @@ test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁ }); // Note: The outer ring is anticlockwise, but the inner ring is clockwise. -test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) renders a large anticlockwise annular sector if r₀ > 0, r₁ > 0 and τ > θ₀ - θ₁ ≥ π", () => { +it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁) renders a large anticlockwise annular sector if r₀ > 0, r₁ > 0 and τ > θ₀ - θ₁ ≥ π", () => { const a = arc().innerRadius(50).outerRadius(100); assertPathEqual(a.startAngle(0).endAngle(-3 * Math.PI / 2)(), "M0,-100A100,100,0,1,0,100,0L50,0A50,50,0,1,1,0,-50Z"); assertPathEqual(a.startAngle(-2 * Math.PI).endAngle(-7 * Math.PI / 2)(), "M0,-100A100,100,0,1,0,100,0L50,0A50,50,0,1,1,0,-50Z"); assertPathEqual(a.startAngle(Math.PI).endAngle(-Math.PI / 2)(), "M0,100A100,100,0,1,0,-100,0L-50,0A50,50,0,1,1,0,50Z"); }); -test("arc().innerRadius(0).outerRadius(0).cornerRadius(r) renders a point", () => { +it("arc().innerRadius(0).outerRadius(0).cornerRadius(r) renders a point", () => { const a = arc().innerRadius(0).outerRadius(0).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(2 * Math.PI)(), "M0,0Z"); assertPathEqual(a.startAngle(0).endAngle(0)(), "M0,0Z"); }); -test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a clockwise circle if r > 0 and θ₁ - θ₀ ≥ τ", () => { +it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a clockwise circle if r > 0 and θ₁ - θ₀ ≥ τ", () => { const a = arc().innerRadius(0).outerRadius(100).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(2 * Math.PI)(), "M0,-100A100,100,0,1,1,0,100A100,100,0,1,1,0,-100Z"); assertPathEqual(a.startAngle(0).endAngle(3 * Math.PI)(), "M0,-100A100,100,0,1,1,0,100A100,100,0,1,1,0,-100Z"); @@ -214,7 +214,7 @@ test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).corn assertPathEqual(a.startAngle(-3 * Math.PI).endAngle(0)(), "M0,100A100,100,0,1,1,0,-100A100,100,0,1,1,0,100Z"); }); -test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders an anticlockwise circle if r > 0 and θ₀ - θ₁ ≥ τ", () => { +it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders an anticlockwise circle if r > 0 and θ₀ - θ₁ ≥ τ", () => { const a = arc().innerRadius(0).outerRadius(100).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(-2 * Math.PI)(), "M0,-100A100,100,0,1,0,0,100A100,100,0,1,0,0,-100Z"); assertPathEqual(a.startAngle(0).endAngle(-3 * Math.PI)(), "M0,-100A100,100,0,1,0,0,100A100,100,0,1,0,0,-100Z"); @@ -225,7 +225,7 @@ test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).corn // Note: The outer ring starts and ends at θ₀, but the inner ring starts and ends at θ₁. // Note: The outer ring is clockwise, but the inner ring is anticlockwise. -test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a clockwise annulus if r₀ > 0, r₁ > 0 and θ₀ - θ₁ ≥ τ", () => { +it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a clockwise annulus if r₀ > 0, r₁ > 0 and θ₀ - θ₁ ≥ τ", () => { const a = arc().innerRadius(50).outerRadius(100).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(2 * Math.PI)(), "M0,-100A100,100,0,1,1,0,100A100,100,0,1,1,0,-100M0,-50A50,50,0,1,0,0,50A50,50,0,1,0,0,-50Z"); assertPathEqual(a.startAngle(0).endAngle(3 * Math.PI)(), "M0,-100A100,100,0,1,1,0,100A100,100,0,1,1,0,-100M0,50A50,50,0,1,0,0,-50A50,50,0,1,0,0,50Z"); @@ -236,7 +236,7 @@ test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁ // Note: The outer ring starts and ends at θ₀, but the inner ring starts and ends at θ₁. // Note: The outer ring is anticlockwise, but the inner ring is clockwise. -test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders an anticlockwise annulus if r₀ > 0, r₁ > 0 and θ₁ - θ₀ ≥ τ", () => { +it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders an anticlockwise annulus if r₀ > 0, r₁ > 0 and θ₁ - θ₀ ≥ τ", () => { const a = arc().innerRadius(50).outerRadius(100).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(-2 * Math.PI)(), "M0,-100A100,100,0,1,0,0,100A100,100,0,1,0,0,-100M0,-50A50,50,0,1,1,0,50A50,50,0,1,1,0,-50Z"); assertPathEqual(a.startAngle(0).endAngle(-3 * Math.PI)(), "M0,-100A100,100,0,1,0,0,100A100,100,0,1,0,0,-100M0,50A50,50,0,1,1,0,-50A50,50,0,1,1,0,50Z"); @@ -245,28 +245,28 @@ test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁ assertPathEqual(a.startAngle(3 * Math.PI).endAngle(0)(), "M0,100A100,100,0,1,0,0,-100A100,100,0,1,0,0,100M0,-50A50,50,0,1,1,0,50A50,50,0,1,1,0,-50Z"); }); -test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a small clockwise sector if r > 0 and π > θ₁ - θ₀ ≥ 0", () => { +it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a small clockwise sector if r > 0 and π > θ₁ - θ₀ ≥ 0", () => { const a = arc().innerRadius(0).outerRadius(100).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(Math.PI / 2)(), "M0,-94.868330A5,5,0,0,1,5.263158,-99.861400A100,100,0,0,1,99.861400,-5.263158A5,5,0,0,1,94.868330,0L0,0Z"); assertPathEqual(a.startAngle(2 * Math.PI).endAngle(5 * Math.PI / 2)(), "M0,-94.868330A5,5,0,0,1,5.263158,-99.861400A100,100,0,0,1,99.861400,-5.263158A5,5,0,0,1,94.868330,0L0,0Z"); assertPathEqual(a.startAngle(-Math.PI).endAngle(-Math.PI / 2)(), "M0,94.868330A5,5,0,0,1,-5.263158,99.861400A100,100,0,0,1,-99.861400,5.263158A5,5,0,0,1,-94.868330,0L0,0Z"); }); -test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a small anticlockwise sector if r > 0 and π > θ₀ - θ₁ ≥ 0", () => { +it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a small anticlockwise sector if r > 0 and π > θ₀ - θ₁ ≥ 0", () => { const a = arc().innerRadius(0).outerRadius(100).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(-Math.PI / 2)(), "M0,-94.868330A5,5,0,0,0,-5.263158,-99.861400A100,100,0,0,0,-99.861400,-5.263158A5,5,0,0,0,-94.868330,0L0,0Z"); assertPathEqual(a.startAngle(-2 * Math.PI).endAngle(-5 * Math.PI / 2)(), "M0,-94.868330A5,5,0,0,0,-5.263158,-99.861400A100,100,0,0,0,-99.861400,-5.263158A5,5,0,0,0,-94.868330,0L0,0Z"); assertPathEqual(a.startAngle(Math.PI).endAngle(Math.PI / 2)(), "M0,94.868330A5,5,0,0,0,5.263158,99.861400A100,100,0,0,0,99.861400,5.263158A5,5,0,0,0,94.868330,0L0,0Z"); }); -test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a large clockwise sector if r > 0 and τ > θ₁ - θ₀ ≥ π", () => { +it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a large clockwise sector if r > 0 and τ > θ₁ - θ₀ ≥ π", () => { const a = arc().innerRadius(0).outerRadius(100).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(3 * Math.PI / 2)(), "M0,-94.868330A5,5,0,0,1,5.263158,-99.861400A100,100,0,1,1,-99.861400,5.263158A5,5,0,0,1,-94.868330,0L0,0Z"); assertPathEqual(a.startAngle(2 * Math.PI).endAngle(7 * Math.PI / 2)(), "M0,-94.868330A5,5,0,0,1,5.263158,-99.861400A100,100,0,1,1,-99.861400,5.263158A5,5,0,0,1,-94.868330,0L0,0Z"); assertPathEqual(a.startAngle(-Math.PI).endAngle(Math.PI / 2)(), "M0,94.868330A5,5,0,0,1,-5.263158,99.861400A100,100,0,1,1,99.861400,-5.263158A5,5,0,0,1,94.868330,0L0,0Z"); }); -test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a large anticlockwise sector if r > 0 and τ > θ₀ - θ₁ ≥ π", () => { +it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a large anticlockwise sector if r > 0 and τ > θ₀ - θ₁ ≥ π", () => { const a = arc().innerRadius(0).outerRadius(100).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(-3 * Math.PI / 2)(), "M0,-94.868330A5,5,0,0,0,-5.263158,-99.861400A100,100,0,1,0,99.861400,5.263158A5,5,0,0,0,94.868330,0L0,0Z"); assertPathEqual(a.startAngle(-2 * Math.PI).endAngle(-7 * Math.PI / 2)(), "M0,-94.868330A5,5,0,0,0,-5.263158,-99.861400A100,100,0,1,0,99.861400,5.263158A5,5,0,0,0,94.868330,0L0,0Z"); @@ -274,7 +274,7 @@ test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).corn }); // Note: The outer ring is clockwise, but the inner ring is anticlockwise. -test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a small clockwise annular sector if r₀ > 0, r₁ > 0 and π > θ₁ - θ₀ ≥ 0", () => { +it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a small clockwise annular sector if r₀ > 0, r₁ > 0 and π > θ₁ - θ₀ ≥ 0", () => { const a = arc().innerRadius(50).outerRadius(100).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(Math.PI / 2)(), "M0,-94.868330A5,5,0,0,1,5.263158,-99.861400A100,100,0,0,1,99.861400,-5.263158A5,5,0,0,1,94.868330,0L54.772256,0A5,5,0,0,1,49.792960,-4.545455A50,50,0,0,0,4.545455,-49.792960A5,5,0,0,1,0,-54.772256Z"); assertPathEqual(a.startAngle(2 * Math.PI).endAngle(5 * Math.PI / 2)(), "M0,-94.868330A5,5,0,0,1,5.263158,-99.861400A100,100,0,0,1,99.861400,-5.263158A5,5,0,0,1,94.868330,0L54.772256,0A5,5,0,0,1,49.792960,-4.545455A50,50,0,0,0,4.545455,-49.792960A5,5,0,0,1,0,-54.772256Z"); @@ -282,7 +282,7 @@ test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁ }); // Note: The outer ring is anticlockwise, but the inner ring is clockwise. -test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a small anticlockwise annular sector if r₀ > 0, r₁ > 0 and π > θ₀ - θ₁ ≥ 0", () => { +it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a small anticlockwise annular sector if r₀ > 0, r₁ > 0 and π > θ₀ - θ₁ ≥ 0", () => { const a = arc().innerRadius(50).outerRadius(100).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(-Math.PI / 2)(), "M0,-94.868330A5,5,0,0,0,-5.263158,-99.861400A100,100,0,0,0,-99.861400,-5.263158A5,5,0,0,0,-94.868330,0L-54.772256,0A5,5,0,0,0,-49.792960,-4.545455A50,50,0,0,1,-4.545455,-49.792960A5,5,0,0,0,0,-54.772256Z"); assertPathEqual(a.startAngle(-2 * Math.PI).endAngle(-5 * Math.PI / 2)(), "M0,-94.868330A5,5,0,0,0,-5.263158,-99.861400A100,100,0,0,0,-99.861400,-5.263158A5,5,0,0,0,-94.868330,0L-54.772256,0A5,5,0,0,0,-49.792960,-4.545455A50,50,0,0,1,-4.545455,-49.792960A5,5,0,0,0,0,-54.772256Z"); @@ -290,7 +290,7 @@ test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁ }); // Note: The outer ring is clockwise, but the inner ring is anticlockwise. -test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a large clockwise annular sector if r₀ > 0, r₁ > 0 and τ > θ₁ - θ₀ ≥ π", () => { +it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a large clockwise annular sector if r₀ > 0, r₁ > 0 and τ > θ₁ - θ₀ ≥ π", () => { const a = arc().innerRadius(50).outerRadius(100).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(3 * Math.PI / 2)(), "M0,-94.868330A5,5,0,0,1,5.263158,-99.861400A100,100,0,1,1,-99.861400,5.263158A5,5,0,0,1,-94.868330,0L-54.772256,0A5,5,0,0,1,-49.792960,4.545455A50,50,0,1,0,4.545455,-49.792960A5,5,0,0,1,0,-54.772256Z"); assertPathEqual(a.startAngle(2 * Math.PI).endAngle(7 * Math.PI / 2)(), "M0,-94.868330A5,5,0,0,1,5.263158,-99.861400A100,100,0,1,1,-99.861400,5.263158A5,5,0,0,1,-94.868330,0L-54.772256,0A5,5,0,0,1,-49.792960,4.545455A50,50,0,1,0,4.545455,-49.792960A5,5,0,0,1,0,-54.772256Z"); @@ -298,71 +298,71 @@ test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁ }); // Note: The outer ring is anticlockwise, but the inner ring is clockwise. -test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a large anticlockwise annular sector if r₀ > 0, r₁ > 0 and τ > θ₀ - θ₁ ≥ π", () => { +it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).cornerRadius(rᵧ) renders a large anticlockwise annular sector if r₀ > 0, r₁ > 0 and τ > θ₀ - θ₁ ≥ π", () => { const a = arc().innerRadius(50).outerRadius(100).cornerRadius(5); assertPathEqual(a.startAngle(0).endAngle(-3 * Math.PI / 2)(), "M0,-94.868330A5,5,0,0,0,-5.263158,-99.861400A100,100,0,1,0,99.861400,5.263158A5,5,0,0,0,94.868330,0L54.772256,0A5,5,0,0,0,49.792960,4.545455A50,50,0,1,1,-4.545455,-49.792960A5,5,0,0,0,0,-54.772256Z"); assertPathEqual(a.startAngle(-2 * Math.PI).endAngle(-7 * Math.PI / 2)(), "M0,-94.868330A5,5,0,0,0,-5.263158,-99.861400A100,100,0,1,0,99.861400,5.263158A5,5,0,0,0,94.868330,0L54.772256,0A5,5,0,0,0,49.792960,4.545455A50,50,0,1,1,-4.545455,-49.792960A5,5,0,0,0,0,-54.772256Z"); assertPathEqual(a.startAngle(Math.PI).endAngle(-Math.PI / 2)(), "M0,94.868330A5,5,0,0,0,5.263158,99.861400A100,100,0,1,0,-99.861400,-5.263158A5,5,0,0,0,-94.868330,0L-54.772256,0A5,5,0,0,0,-49.792960,-4.545455A50,50,0,1,1,4.545455,49.792960A5,5,0,0,0,0,54.772256Z"); }); -test("arc().innerRadius(r₀).outerRadius(r₁).cornerRadius(rᵧ) restricts rᵧ to |r₁ - r₀| / 2", () => { +it("arc().innerRadius(r₀).outerRadius(r₁).cornerRadius(rᵧ) restricts rᵧ to |r₁ - r₀| / 2", () => { const a = arc().cornerRadius(Infinity).startAngle(0).endAngle(Math.PI / 2); assertPathEqual(a.innerRadius(90).outerRadius(100)(), "M0,-94.868330A5,5,0,0,1,5.263158,-99.861400A100,100,0,0,1,99.861400,-5.263158A5,5,0,0,1,94.868330,0L94.868330,0A5,5,0,0,1,89.875260,-4.736842A90,90,0,0,0,4.736842,-89.875260A5,5,0,0,1,0,-94.868330Z"); assertPathEqual(a.innerRadius(100).outerRadius(90)(), "M0,-94.868330A5,5,0,0,1,5.263158,-99.861400A100,100,0,0,1,99.861400,-5.263158A5,5,0,0,1,94.868330,0L94.868330,0A5,5,0,0,1,89.875260,-4.736842A90,90,0,0,0,4.736842,-89.875260A5,5,0,0,1,0,-94.868330Z"); }); -test("arc().innerRadius(r₀).outerRadius(r₁).cornerRadius(rᵧ) merges adjacent corners when rᵧ is relatively large", () => { +it("arc().innerRadius(r₀).outerRadius(r₁).cornerRadius(rᵧ) merges adjacent corners when rᵧ is relatively large", () => { const a = arc().cornerRadius(Infinity).startAngle(0).endAngle(Math.PI / 2); assertPathEqual(a.innerRadius(10).outerRadius(100)(), "M0,-41.421356A41.421356,41.421356,0,1,1,41.421356,0L24.142136,0A24.142136,24.142136,0,0,1,0,-24.142136Z"); assertPathEqual(a.innerRadius(100).outerRadius(10)(), "M0,-41.421356A41.421356,41.421356,0,1,1,41.421356,0L24.142136,0A24.142136,24.142136,0,0,1,0,-24.142136Z"); }); -test("arc().innerRadius(0).outerRadius(0).startAngle(0).endAngle(τ).padAngle(δ) does not pad a point", () => { +it("arc().innerRadius(0).outerRadius(0).startAngle(0).endAngle(τ).padAngle(δ) does not pad a point", () => { const a = arc().innerRadius(0).outerRadius(0).startAngle(0).endAngle(2 * Math.PI).padAngle(0.1); assertPathEqual(a(), "M0,0Z"); }); -test("arc().innerRadius(0).outerRadius(r).startAngle(0).endAngle(τ).padAngle(δ) does not pad a circle", () => { +it("arc().innerRadius(0).outerRadius(r).startAngle(0).endAngle(τ).padAngle(δ) does not pad a circle", () => { const a = arc().innerRadius(0).outerRadius(100).startAngle(0).endAngle(2 * Math.PI).padAngle(0.1); assertPathEqual(a(), "M0,-100A100,100,0,1,1,0,100A100,100,0,1,1,0,-100Z"); }); -test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(0).endAngle(τ).padAngle(δ) does not pad an annulus", () => { +it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(0).endAngle(τ).padAngle(δ) does not pad an annulus", () => { const a = arc().innerRadius(50).outerRadius(100).startAngle(0).endAngle(2 * Math.PI).padAngle(0.1); assertPathEqual(a(), "M0,-100A100,100,0,1,1,0,100A100,100,0,1,1,0,-100M0,-50A50,50,0,1,0,0,50A50,50,0,1,0,0,-50Z"); }); -test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).padAngle(δ) pads the outside of a circular sector", () => { +it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).padAngle(δ) pads the outside of a circular sector", () => { const a = arc().innerRadius(0).outerRadius(100).startAngle(0).endAngle(Math.PI / 2).padAngle(0.1); assertPathEqual(a(), "M4.997917,-99.875026A100,100,0,0,1,99.875026,-4.997917L0,0Z"); }); -test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).padAngle(δ) pads an annular sector", () => { +it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).padAngle(δ) pads an annular sector", () => { const a = arc().innerRadius(50).outerRadius(100).startAngle(0).endAngle(Math.PI / 2).padAngle(0.1); assertPathEqual(a(), "M5.587841,-99.843758A100,100,0,0,1,99.843758,-5.587841L49.686779,-5.587841A50,50,0,0,0,5.587841,-49.686779Z"); }); -test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).padAngle(δ) may collapse the inside of an annular sector", () => { +it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).padAngle(δ) may collapse the inside of an annular sector", () => { const a = arc().innerRadius(10).outerRadius(100).startAngle(0).endAngle(Math.PI / 2).padAngle(0.2); assertPathEqual(a(), "M10.033134,-99.495408A100,100,0,0,1,99.495408,-10.033134L7.071068,-7.071068Z"); }); -test("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).padAngle(δ).cornerRadius(rᵧ) rounds and pads a circular sector", () => { +it("arc().innerRadius(0).outerRadius(r).startAngle(θ₀).endAngle(θ₁).padAngle(δ).cornerRadius(rᵧ) rounds and pads a circular sector", () => { const a = arc().innerRadius(0).outerRadius(100).startAngle(0).endAngle(Math.PI / 2).padAngle(0.1).cornerRadius(10); assertPathEqual(a(), "M4.470273,-89.330939A10,10,0,0,1,16.064195,-98.701275A100,100,0,0,1,98.701275,-16.064195A10,10,0,0,1,89.330939,-4.470273L0,0Z"); }); -test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).padAngle(δ).cornerRadius(rᵧ) rounds and pads an annular sector", () => { +it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).padAngle(δ).cornerRadius(rᵧ) rounds and pads an annular sector", () => { const a = arc().innerRadius(50).outerRadius(100).startAngle(0).endAngle(Math.PI / 2).padAngle(0.1).cornerRadius(10); assertPathEqual(a(), "M5.587841,-88.639829A10,10,0,0,1,17.319823,-98.488698A100,100,0,0,1,98.488698,-17.319823A10,10,0,0,1,88.639829,-5.587841L57.939790,-5.587841A10,10,0,0,1,48.283158,-12.989867A50,50,0,0,0,12.989867,-48.283158A10,10,0,0,1,5.587841,-57.939790Z"); }); -test("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).padAngle(δ).cornerRadius(rᵧ) rounds and pads a collapsed annular sector", () => { +it("arc().innerRadius(r₀).outerRadius(r₁).startAngle(θ₀).endAngle(θ₁).padAngle(δ).cornerRadius(rᵧ) rounds and pads a collapsed annular sector", () => { const a = arc().innerRadius(10).outerRadius(100).startAngle(0).endAngle(Math.PI / 2).padAngle(0.2).cornerRadius(10); assertPathEqual(a(), "M9.669396,-88.145811A10,10,0,0,1,21.849183,-97.583878A100,100,0,0,1,97.583878,-21.849183A10,10,0,0,1,88.145811,-9.669396L7.071068,-7.071068Z"); }); -test("arc() handles a very small arc with rounded corners", () => { +it("arc() handles a very small arc with rounded corners", () => { const a = arc().innerRadius(15).outerRadius(24).padAngle(0).startAngle(1.2 - 1e-8).endAngle(1.2).cornerRadius(4); assertPathEqual(a(), "M22.369,-8.697L13.981,-5.435Z"); }); diff --git a/test/area-test.js b/test/area-test.js index eeb646eb..5c1d98d6 100644 --- a/test/area-test.js +++ b/test/area-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {area, curveCardinal, curveLinear} from "../src/index.js"; import {assertPathEqual} from "./asserts.js"; -test("area() returns a default area shape", () => { +it("area() returns a default area shape", () => { const a = area(); assert.strictEqual(a.x0()([42, 34]), 42); assert.strictEqual(a.x1(), null); @@ -15,7 +15,7 @@ test("area() returns a default area shape", () => { assertPathEqual(a([[0, 1], [2, 3], [4, 5]]), "M0,1L2,3L4,5L4,0L2,0L0,0Z"); }); -test("area(x, y0, y1) sets x0, y0 and y1", () => { +it("area(x, y0, y1) sets x0, y0 and y1", () => { const x = function() {}, y = function() {}; assert.strictEqual(area(x).x0(), x); assert.strictEqual(area(x, y).y0(), y); @@ -25,49 +25,49 @@ test("area(x, y0, y1) sets x0, y0 and y1", () => { assert.strictEqual(area(3, 2, 1).y1()("aa"), 1); }); -test("area.x(f)(data) passes d, i and data to the specified function f", () => { +it("area.x(f)(data) passes d, i and data to the specified function f", () => { const data = ["a", "b"], actual = []; area().x(function() { actual.push([].slice.call(arguments)); })(data); assert.deepStrictEqual(actual, [["a", 0, data], ["b", 1, data]]); }); -test("area.x0(f)(data) passes d, i and data to the specified function f", () => { +it("area.x0(f)(data) passes d, i and data to the specified function f", () => { const data = ["a", "b"], actual = []; area().x0(function() { actual.push([].slice.call(arguments)); })(data); assert.deepStrictEqual(actual, [["a", 0, data], ["b", 1, data]]); }); -test("area.x1(f)(data) passes d, i and data to the specified function f", () => { +it("area.x1(f)(data) passes d, i and data to the specified function f", () => { const data = ["a", "b"], actual = []; area().x1(function() { actual.push([].slice.call(arguments)); })(data); assert.deepStrictEqual(actual, [["a", 0, data], ["b", 1, data]]); }); -test("area.y(f)(data) passes d, i and data to the specified function f", () => { +it("area.y(f)(data) passes d, i and data to the specified function f", () => { const data = ["a", "b"], actual = []; area().y(function() { actual.push([].slice.call(arguments)); })(data); assert.deepStrictEqual(actual, [["a", 0, data], ["b", 1, data]]); }); -test("area.y0(f)(data) passes d, i and data to the specified function f", () => { +it("area.y0(f)(data) passes d, i and data to the specified function f", () => { const data = ["a", "b"], actual = []; area().y0(function() { actual.push([].slice.call(arguments)); })(data); assert.deepStrictEqual(actual, [["a", 0, data], ["b", 1, data]]); }); -test("area.y1(f)(data) passes d, i and data to the specified function f", () => { +it("area.y1(f)(data) passes d, i and data to the specified function f", () => { const data = ["a", "b"], actual = []; area().y1(function() { actual.push([].slice.call(arguments)); })(data); assert.deepStrictEqual(actual, [["a", 0, data], ["b", 1, data]]); }); -test("area.defined(f)(data) passes d, i and data to the specified function f", () => { +it("area.defined(f)(data) passes d, i and data to the specified function f", () => { const data = ["a", "b"], actual = []; area().defined(function() { actual.push([].slice.call(arguments)); })(data); assert.deepStrictEqual(actual, [["a", 0, data], ["b", 1, data]]); }); -test("area.x(x)(data) observes the specified function", () => { +it("area.x(x)(data) observes the specified function", () => { const x = function(d) { return d.x; }; const a = area().x(x); assert.strictEqual(a.x(), x); @@ -76,7 +76,7 @@ test("area.x(x)(data) observes the specified function", () => { assertPathEqual(a([{x: 0, 1: 1}, {x: 2, 1: 3}, {x: 4, 1: 5}]), "M0,1L2,3L4,5L4,0L2,0L0,0Z"); }); -test("area.x(x)(data) observes the specified constant", () => { +it("area.x(x)(data) observes the specified constant", () => { const x = 0; const a = area().x(x); assert.strictEqual(a.x()(), 0); @@ -85,7 +85,7 @@ test("area.x(x)(data) observes the specified constant", () => { assertPathEqual(a([{1: 1}, {1: 3}, {1: 5}]), "M0,1L0,3L0,5L0,0L0,0L0,0Z"); }); -test("area.y(y)(data) observes the specified function", () => { +it("area.y(y)(data) observes the specified function", () => { const y = function(d) { return d.y; }; const a = area().y(y); assert.strictEqual(a.y(), y); @@ -94,7 +94,7 @@ test("area.y(y)(data) observes the specified function", () => { assertPathEqual(a([{0: 0, y: 1}, {0: 2, y: 3}, {0: 4, y: 5}]), "M0,1L2,3L4,5L4,5L2,3L0,1Z"); }); -test("area.y(y)(data) observes the specified constant", () => { +it("area.y(y)(data) observes the specified constant", () => { const a = area().y(0); assert.strictEqual(a.y()(), 0); assert.strictEqual(a.y0()(), 0); @@ -102,12 +102,12 @@ test("area.y(y)(data) observes the specified constant", () => { assertPathEqual(a([{0: 0}, {0: 2}, {0: 4}]), "M0,0L2,0L4,0L4,0L2,0L0,0Z"); }); -test("area.curve(curve) sets the curve method", () => { +it("area.curve(curve) sets the curve method", () => { const a = area().curve(curveCardinal); assertPathEqual(a([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1C0,1,0.666667,3,1,3C1.333333,3,1.666667,1,2,1C2.333333,1,3,3,3,3L3,0C3,0,2.333333,0,2,0C1.666667,0,1.333333,0,1,0C0.666667,0,0,0,0,0Z"); }); -test("area.curve(curveCardinal.tension(tension)) sets the cardinal spline tension", () => { +it("area.curve(curveCardinal.tension(tension)) sets the cardinal spline tension", () => { const a = area().curve(curveCardinal.tension(0.1)); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); @@ -116,7 +116,7 @@ test("area.curve(curveCardinal.tension(tension)) sets the cardinal spline tensio assertPathEqual(a([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1C0,1,0.700000,3,1,3C1.300000,3,1.700000,1,2,1C2.300000,1,3,3,3,3L3,0C3,0,2.300000,0,2,0C1.700000,0,1.300000,0,1,0C0.700000,0,0,0,0,0Z"); }); -test("area.curve(curveCardinal.tension(tension)) coerces the specified tension to a number", () => { +it("area.curve(curveCardinal.tension(tension)) coerces the specified tension to a number", () => { const a = area().curve(curveCardinal.tension("0.1")); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); @@ -125,7 +125,7 @@ test("area.curve(curveCardinal.tension(tension)) coerces the specified tension t assertPathEqual(a([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1C0,1,0.700000,3,1,3C1.300000,3,1.700000,1,2,1C2.300000,1,3,3,3,3L3,0C3,0,2.300000,0,2,0C1.700000,0,1.300000,0,1,0C0.700000,0,0,0,0,0Z"); }); -test("area.lineX0() returns a line derived from the area", () => { +it("area.lineX0() returns a line derived from the area", () => { const defined = function() { return true; }; const curve = curveCardinal; const context = {}; @@ -141,7 +141,7 @@ test("area.lineX0() returns a line derived from the area", () => { assert.strictEqual(l.y(), y); }); -test("area.lineX1() returns a line derived from the area", () => { +it("area.lineX1() returns a line derived from the area", () => { const defined = function() { return true; }; const curve = curveCardinal; const context = {}; @@ -157,7 +157,7 @@ test("area.lineX1() returns a line derived from the area", () => { assert.strictEqual(l.y(), y); }); -test("area.lineY0() returns a line derived from the area", () => { +it("area.lineY0() returns a line derived from the area", () => { const defined = function() { return true; }; const curve = curveCardinal; const context = {}; @@ -173,7 +173,7 @@ test("area.lineY0() returns a line derived from the area", () => { assert.strictEqual(l.y(), y0); }); -test("area.lineY1() returns a line derived from the area", () => { +it("area.lineY1() returns a line derived from the area", () => { const defined = function() { return true; }; const curve = curveCardinal; const context = {}; diff --git a/test/areaRadial-test.js b/test/areaRadial-test.js index f73c4971..c04685d4 100644 --- a/test/areaRadial-test.js +++ b/test/areaRadial-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {areaRadial, curveCardinal, curveLinear} from "../src/index.js"; import {assertPathEqual} from "./asserts.js"; -test("areaRadial() returns a default radial area shape", () => { +it("areaRadial() returns a default radial area shape", () => { const a = areaRadial(); assert.strictEqual(a.startAngle()([42, 34]), 42); assert.strictEqual(a.endAngle(), null); @@ -15,7 +15,7 @@ test("areaRadial() returns a default radial area shape", () => { assertPathEqual(a([[0, 1], [2, 3], [4, 5]]), "M0,-1L2.727892,1.248441L-3.784012,3.268218L0,0L0,0L0,0Z"); }); -test("areaRadial.lineStartAngle() returns a line derived from the area", () => { +it("areaRadial.lineStartAngle() returns a line derived from the area", () => { const defined = function() { return true; }; const curve = curveCardinal; const context = {}; @@ -31,7 +31,7 @@ test("areaRadial.lineStartAngle() returns a line derived from the area", () => { assert.strictEqual(l.radius(), radius); }); -test("areaRadial.lineEndAngle() returns a line derived from the area", () => { +it("areaRadial.lineEndAngle() returns a line derived from the area", () => { const defined = function() { return true; }; const curve = curveCardinal; const context = {}; @@ -47,7 +47,7 @@ test("areaRadial.lineEndAngle() returns a line derived from the area", () => { assert.strictEqual(l.radius(), radius); }); -test("areaRadial.lineInnerRadius() returns a line derived from the area", () => { +it("areaRadial.lineInnerRadius() returns a line derived from the area", () => { const defined = function() { return true; }; const curve = curveCardinal; const context = {}; @@ -63,7 +63,7 @@ test("areaRadial.lineInnerRadius() returns a line derived from the area", () => assert.strictEqual(l.radius(), innerRadius); }); -test("areaRadial.lineOuterRadius() returns a line derived from the area", () => { +it("areaRadial.lineOuterRadius() returns a line derived from the area", () => { const defined = function() { return true; }; const curve = curveCardinal; const context = {}; diff --git a/test/curve/basis-test.js b/test/curve/basis-test.js index 4a7d9208..3ea64529 100644 --- a/test/curve/basis-test.js +++ b/test/curve/basis-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {area, line, curveBasis} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -test("line.curve(curveBasis)(data) generates the expected path", () => { +it("line.curve(curveBasis)(data) generates the expected path", () => { const l = line().curve(curveBasis); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -11,7 +11,7 @@ test("line.curve(curveBasis)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [1, 3], [2, 1]]), "M0,1L0.166667,1.333333C0.333333,1.666667,0.666667,2.333333,1,2.333333C1.333333,2.333333,1.666667,1.666667,1.833333,1.333333L2,1"); }); -test("area.curve(curveBasis)(data) generates the expected path", () => { +it("area.curve(curveBasis)(data) generates the expected path", () => { const a = area().curve(curveBasis); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); diff --git a/test/curve/basisClosed-test.js b/test/curve/basisClosed-test.js index a05ee4f3..b44634e8 100644 --- a/test/curve/basisClosed-test.js +++ b/test/curve/basisClosed-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {line, curveBasisClosed} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -test("line.curve(curveBasisClosed)(data) generates the expected path", () => { +it("line.curve(curveBasisClosed)(data) generates the expected path", () => { const l = line().curve(curveBasisClosed); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 0]]), "M0,0Z"); diff --git a/test/curve/basisOpen-test.js b/test/curve/basisOpen-test.js index 4aa9eaff..ef7a2365 100644 --- a/test/curve/basisOpen-test.js +++ b/test/curve/basisOpen-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {area, line, curveBasisOpen} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -test("line.curve(curveBasisOpen)(data) generates the expected path", () => { +it("line.curve(curveBasisOpen)(data) generates the expected path", () => { const l = line().curve(curveBasisOpen); assert.strictEqual(l([]), null); assert.strictEqual(l([[0, 0]]), null); @@ -13,7 +13,7 @@ test("line.curve(curveBasisOpen)(data) generates the expected path", () => { assertPathEqual(l([[0, 0], [0, 10], [10, 10], [10, 0], [0, 0]]), "M1.666667,8.333333C3.333333,10,6.666667,10,8.333333,8.333333C10,6.666667,10,3.333333,8.333333,1.666667"); }); -test("area.curve(curveBasisOpen)(data) generates the expected path", () => { +it("area.curve(curveBasisOpen)(data) generates the expected path", () => { const a = area().curve(curveBasisOpen); assert.strictEqual(a([]), null); assert.strictEqual(a([[0, 1]]), null); diff --git a/test/curve/bumpX-test.js b/test/curve/bumpX-test.js index 13d9304c..cf3e3abd 100644 --- a/test/curve/bumpX-test.js +++ b/test/curve/bumpX-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {area, line, curveBumpX} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -test("line.curve(curveBumpX)(data) generates the expected path", () => { +it("line.curve(curveBumpX)(data) generates the expected path", () => { const l = line().curve(curveBumpX); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -11,7 +11,7 @@ test("line.curve(curveBumpX)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [1, 3], [2, 1]]), "M0,1C0.500000,1,0.500000,3,1,3C1.500000,3,1.500000,1,2,1"); }); -test("area.curve(curveBumpX)(data) generates the expected path", () => { +it("area.curve(curveBumpX)(data) generates the expected path", () => { const a = area().curve(curveBumpX); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); diff --git a/test/curve/bumpY-test.js b/test/curve/bumpY-test.js index 1a7bc716..065827e2 100644 --- a/test/curve/bumpY-test.js +++ b/test/curve/bumpY-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {area, line, curveBumpY} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -test("line.curve(curveBumpY)(data) generates the expected path", () => { +it("line.curve(curveBumpY)(data) generates the expected path", () => { const l = line().curve(curveBumpY); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -11,7 +11,7 @@ test("line.curve(curveBumpY)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [1, 3], [2, 1]]), "M0,1C0,2,1,2,1,3C1,2,2,2,2,1"); }); -test("area.curve(curveBumpY)(data) generates the expected path", () => { +it("area.curve(curveBumpY)(data) generates the expected path", () => { const a = area().curve(curveBumpY); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); diff --git a/test/curve/bundle-test.js b/test/curve/bundle-test.js index 023ee40e..4a1bddfc 100644 --- a/test/curve/bundle-test.js +++ b/test/curve/bundle-test.js @@ -1,18 +1,18 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {line, curveBundle} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -test("line.curve(curveBundle) uses a default beta of 0.85", () => { +it("line.curve(curveBundle) uses a default beta of 0.85", () => { const l = line().curve(curveBundle.beta(0.85)); assert.strictEqual(line().curve(curveBundle)([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -test("line.curve(curveBundle.beta(beta)) uses the specified beta", () => { +it("line.curve(curveBundle.beta(beta)) uses the specified beta", () => { assertPathEqual(line().curve(curveBundle.beta(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1L0.166667,1.222222C0.333333,1.444444,0.666667,1.888889,1,2C1.333333,2.111111,1.666667,1.888889,2,2C2.333333,2.111111,2.666667,2.555556,2.833333,2.777778L3,3"); }); -test("line.curve(curveBundle.beta(beta)) coerces the specified beta to a number", () => { +it("line.curve(curveBundle.beta(beta)) coerces the specified beta to a number", () => { const l = line().curve(curveBundle.beta("0.5")); assert.strictEqual(line().curve(curveBundle.beta(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); diff --git a/test/curve/cardinal-test.js b/test/curve/cardinal-test.js index a898d722..fc742a3c 100644 --- a/test/curve/cardinal-test.js +++ b/test/curve/cardinal-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {area, line, curveCardinal} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -test("line.curve(curveCardinal)(data) generates the expected path", () => { +it("line.curve(curveCardinal)(data) generates the expected path", () => { const l = line().curve(curveCardinal); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -12,21 +12,21 @@ test("line.curve(curveCardinal)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1C0,1,0.666667,3,1,3C1.333333,3,1.666667,1,2,1C2.333333,1,3,3,3,3"); }); -test("line.curve(curveCardinal) uses a default tension of zero", () => { +it("line.curve(curveCardinal) uses a default tension of zero", () => { const l = line().curve(curveCardinal.tension(0)); assert.strictEqual(line().curve(curveCardinal)([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -test("line.curve(curveCardinal.tension(tension)) uses the specified tension", () => { +it("line.curve(curveCardinal.tension(tension)) uses the specified tension", () => { assertPathEqual(line().curve(curveCardinal.tension(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1C0,1,0.833333,3,1,3C1.166667,3,1.833333,1,2,1C2.166667,1,3,3,3,3"); }); -test("line.curve(curveCardinal.tension(tension)) coerces the specified tension to a number", () => { +it("line.curve(curveCardinal.tension(tension)) coerces the specified tension to a number", () => { const l = line().curve(curveCardinal.tension("0.5")); assert.strictEqual(line().curve(curveCardinal.tension(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -test("area.curve(curveCardinal)(data) generates the expected path", () => { +it("area.curve(curveCardinal)(data) generates the expected path", () => { const a = area().curve(curveCardinal); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); @@ -35,16 +35,16 @@ test("area.curve(curveCardinal)(data) generates the expected path", () => { assertPathEqual(a([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1C0,1,0.666667,3,1,3C1.333333,3,1.666667,1,2,1C2.333333,1,3,3,3,3L3,0C3,0,2.333333,0,2,0C1.666667,0,1.333333,0,1,0C0.666667,0,0,0,0,0Z"); }); -test("area.curve(curveCardinal) uses a default tension of zero", () => { +it("area.curve(curveCardinal) uses a default tension of zero", () => { const a = area().curve(curveCardinal.tension(0)); assert.strictEqual(area().curve(curveCardinal)([[0, 1], [1, 3], [2, 1], [3, 3]]), a([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -test("area.curve(curveCardinal.tension(tension)) uses the specified tension", () => { +it("area.curve(curveCardinal.tension(tension)) uses the specified tension", () => { assertPathEqual(area().curve(curveCardinal.tension(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1C0,1,0.833333,3,1,3C1.166667,3,1.833333,1,2,1C2.166667,1,3,3,3,3L3,0C3,0,2.166667,0,2,0C1.833333,0,1.166667,0,1,0C0.833333,0,0,0,0,0Z"); }); -test("area.curve(curveCardinal.tension(tension)) coerces the specified tension to a number", () => { +it("area.curve(curveCardinal.tension(tension)) coerces the specified tension to a number", () => { const a = area().curve(curveCardinal.tension("0.5")); assert.strictEqual(area().curve(curveCardinal.tension(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), a([[0, 1], [1, 3], [2, 1], [3, 3]])); }); diff --git a/test/curve/cardinalClosed-test.js b/test/curve/cardinalClosed-test.js index 70b8c04d..9ea50cfd 100644 --- a/test/curve/cardinalClosed-test.js +++ b/test/curve/cardinalClosed-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {area, line, curveCardinalClosed} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -test("line.curve(curveCardinalClosed)(data) generates the expected path", () => { +it("line.curve(curveCardinalClosed)(data) generates the expected path", () => { const l = line().curve(curveCardinalClosed); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -12,21 +12,21 @@ test("line.curve(curveCardinalClosed)(data) generates the expected path", () => assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.333333,3,1.666667,1,2,1C2.333333,1,3.333333,3,3,3C2.666667,3,0.333333,1,0,1C-0.333333,1,0.666667,3,1,3"); }); -test("line.curve(curveCardinalClosed) uses a default tension of zero", () => { +it("line.curve(curveCardinalClosed) uses a default tension of zero", () => { const l = line().curve(curveCardinalClosed.tension(0)); assert.strictEqual(line().curve(curveCardinalClosed)([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -test("line.curve(curveCardinalClosed.tension(tension)) uses the specified tension", () => { +it("line.curve(curveCardinalClosed.tension(tension)) uses the specified tension", () => { assertPathEqual(line().curve(curveCardinalClosed.tension(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.166667,3,1.833333,1,2,1C2.166667,1,3.166667,3,3,3C2.833333,3,0.166667,1,0,1C-0.166667,1,0.833333,3,1,3"); }); -test("line.curve(curveCardinalClosed.tension(tension)) coerces the specified tension to a number", () => { +it("line.curve(curveCardinalClosed.tension(tension)) coerces the specified tension to a number", () => { const l = line().curve(curveCardinalClosed.tension("0.5")); assert.strictEqual(line().curve(curveCardinalClosed.tension(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -test("area.curve(curveCardinalClosed)(data) generates the expected path", () => { +it("area.curve(curveCardinalClosed)(data) generates the expected path", () => { const a = area().curve(curveCardinalClosed); assert.strictEqual(a([]), null); assert.strictEqual(a([[0, 1]]), "M0,1ZM0,0Z"); @@ -35,16 +35,16 @@ test("area.curve(curveCardinalClosed)(data) generates the expected path", () => assertPathEqual(a([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.333333,3,1.666667,1,2,1C2.333333,1,3.333333,3,3,3C2.666667,3,0.333333,1,0,1C-0.333333,1,0.666667,3,1,3M2,0C1.666667,0,1.333333,0,1,0C0.666667,0,-0.333333,0,0,0C0.333333,0,2.666667,0,3,0C3.333333,0,2.333333,0,2,0"); }); -test("area.curve(curveCardinalClosed) uses a default tension of zero", () => { +it("area.curve(curveCardinalClosed) uses a default tension of zero", () => { const a = area().curve(curveCardinalClosed.tension(0)); assert.strictEqual(area().curve(curveCardinalClosed)([[0, 1], [1, 3], [2, 1], [3, 3]]), a([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -test("area.curve(curveCardinalClosed.tension(tension)) uses the specified tension", () => { +it("area.curve(curveCardinalClosed.tension(tension)) uses the specified tension", () => { assertPathEqual(area().curve(curveCardinalClosed.tension(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.166667,3,1.833333,1,2,1C2.166667,1,3.166667,3,3,3C2.833333,3,0.166667,1,0,1C-0.166667,1,0.833333,3,1,3M2,0C1.833333,0,1.166667,0,1,0C0.833333,0,-0.166667,0,0,0C0.166667,0,2.833333,0,3,0C3.166667,0,2.166667,0,2,0"); }); -test("area.curve(curveCardinalClosed.tension(tension)) coerces the specified tension to a number", () => { +it("area.curve(curveCardinalClosed.tension(tension)) coerces the specified tension to a number", () => { const a = area().curve(curveCardinalClosed.tension("0.5")); assert.strictEqual(area().curve(curveCardinalClosed.tension(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), a([[0, 1], [1, 3], [2, 1], [3, 3]])); }); diff --git a/test/curve/cardinalOpen-test.js b/test/curve/cardinalOpen-test.js index ebdb166a..a277444d 100644 --- a/test/curve/cardinalOpen-test.js +++ b/test/curve/cardinalOpen-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {area, line, curveCardinalOpen} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -test("line.curve(curveCardinalOpen)(data) generates the expected path", () => { +it("line.curve(curveCardinalOpen)(data) generates the expected path", () => { const l = line().curve(curveCardinalOpen); assert.strictEqual(l([]), null); assert.strictEqual(l([[0, 1]]), null); @@ -12,21 +12,21 @@ test("line.curve(curveCardinalOpen)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.333333,3,1.666667,1,2,1"); }); -test("line.curve(curveCardinalOpen) uses a default tension of zero", () => { +it("line.curve(curveCardinalOpen) uses a default tension of zero", () => { const l = line().curve(curveCardinalOpen.tension(0)); assert.strictEqual(line().curve(curveCardinalOpen)([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -test("line.curve(curveCardinalOpen.tension(tension)) uses the specified tension", () => { +it("line.curve(curveCardinalOpen.tension(tension)) uses the specified tension", () => { assertPathEqual(line().curve(curveCardinalOpen.tension(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.166667,3,1.833333,1,2,1"); }); -test("line.curve(curveCardinalOpen.tension(tension)) coerces the specified tension to a number", () => { +it("line.curve(curveCardinalOpen.tension(tension)) coerces the specified tension to a number", () => { const l = line().curve(curveCardinalOpen.tension("0.5")); assert.strictEqual(line().curve(curveCardinalOpen.tension(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -test("area.curve(curveCardinalOpen)(data) generates the expected path", () => { +it("area.curve(curveCardinalOpen)(data) generates the expected path", () => { const a = area().curve(curveCardinalOpen); assert.strictEqual(a([]), null); assert.strictEqual(a([[0, 1]]), null); @@ -35,16 +35,16 @@ test("area.curve(curveCardinalOpen)(data) generates the expected path", () => { assertPathEqual(a([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.333333,3,1.666667,1,2,1L2,0C1.666667,0,1.333333,0,1,0Z"); }); -test("area.curve(curveCardinalOpen) uses a default tension of zero", () => { +it("area.curve(curveCardinalOpen) uses a default tension of zero", () => { const a = area().curve(curveCardinalOpen.tension(0)); assert.strictEqual(area().curve(curveCardinalOpen)([[0, 1], [1, 3], [2, 1], [3, 3]]), a([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -test("area.curve(curveCardinalOpen.tension(tension)) uses the specified tension", () => { +it("area.curve(curveCardinalOpen.tension(tension)) uses the specified tension", () => { assertPathEqual(area().curve(curveCardinalOpen.tension(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.166667,3,1.833333,1,2,1L2,0C1.833333,0,1.166667,0,1,0Z"); }); -test("area.curve(curveCardinalOpen.tension(tension)) coerces the specified tension to a number", () => { +it("area.curve(curveCardinalOpen.tension(tension)) coerces the specified tension to a number", () => { const a = area().curve(curveCardinalOpen.tension("0.5")); assert.strictEqual(area().curve(curveCardinalOpen.tension(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), a([[0, 1], [1, 3], [2, 1], [3, 3]])); }); diff --git a/test/curve/catmullRom-test.js b/test/curve/catmullRom-test.js index 118e52cc..1e4f4916 100644 --- a/test/curve/catmullRom-test.js +++ b/test/curve/catmullRom-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {area, line, curveCatmullRom} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -test("line.curve(curveCatmullRom)(data) generates the expected path", () => { +it("line.curve(curveCatmullRom)(data) generates the expected path", () => { const l = line().curve(curveCatmullRom); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -12,7 +12,7 @@ test("line.curve(curveCatmullRom)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1C0,1,0.666667,3,1,3C1.333333,3,1.666667,1,2,1C2.333333,1,3,3,3,3"); }); -test("line.curve(curveCatmullRom.alpha(1))(data) generates the expected path", () => { +it("line.curve(curveCatmullRom.alpha(1))(data) generates the expected path", () => { const l = line().curve(curveCatmullRom.alpha(1)); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -21,17 +21,17 @@ test("line.curve(curveCatmullRom.alpha(1))(data) generates the expected path", ( assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1C0,1,0.666667,3,1,3C1.333333,3,1.666667,1,2,1C2.333333,1,3,3,3,3"); }); -test("line.curve(curveCatmullRom) uses a default alpha of 0.5 (centripetal)", () => { +it("line.curve(curveCatmullRom) uses a default alpha of 0.5 (centripetal)", () => { const l = line().curve(curveCatmullRom.alpha(0.5)); assert.strictEqual(line().curve(curveCatmullRom)([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -test("line.curve(curveCatmullRom.alpha(alpha)) coerces the specified alpha to a number", () => { +it("line.curve(curveCatmullRom.alpha(alpha)) coerces the specified alpha to a number", () => { const l = line().curve(curveCatmullRom.alpha("0.5")); assert.strictEqual(line().curve(curveCatmullRom.alpha(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -test("area.curve(curveCatmullRom.alpha(0))(data) generates the expected path", () => { +it("area.curve(curveCatmullRom.alpha(0))(data) generates the expected path", () => { const a = area().curve(curveCatmullRom.alpha(0)); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); @@ -40,12 +40,12 @@ test("area.curve(curveCatmullRom.alpha(0))(data) generates the expected path", ( assertPathEqual(a([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1C0,1,0.666667,3,1,3C1.333333,3,1.666667,1,2,1C2.333333,1,3,3,3,3L3,0C3,0,2.333333,0,2,0C1.666667,0,1.333333,0,1,0C0.666667,0,0,0,0,0Z"); }); -test("area.curve(curveCatmullRom) uses a default alpha of 0.5 (centripetal)", () => { +it("area.curve(curveCatmullRom) uses a default alpha of 0.5 (centripetal)", () => { const a = area().curve(curveCatmullRom.alpha(0.5)); assert.strictEqual(area().curve(curveCatmullRom)([[0, 1], [1, 3], [2, 1], [3, 3]]), a([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -test("area.curve(curveCatmullRom.alpha(alpha)) coerces the specified alpha to a number", () => { +it("area.curve(curveCatmullRom.alpha(alpha)) coerces the specified alpha to a number", () => { const a = area().curve(curveCatmullRom.alpha("0.5")); assert.strictEqual(area().curve(curveCatmullRom.alpha(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), a([[0, 1], [1, 3], [2, 1], [3, 3]])); }); diff --git a/test/curve/catmullRomClosed-test.js b/test/curve/catmullRomClosed-test.js index eac77b9a..99618e35 100644 --- a/test/curve/catmullRomClosed-test.js +++ b/test/curve/catmullRomClosed-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {area, line, curveCatmullRomClosed} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -test("line.curve(curveCatmullRomClosed)(data) generates the expected path", () => { +it("line.curve(curveCatmullRomClosed)(data) generates the expected path", () => { const l = line().curve(curveCatmullRomClosed); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -12,7 +12,7 @@ test("line.curve(curveCatmullRomClosed)(data) generates the expected path", () = assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.333333,3,1.666667,1,2,1C2.333333,1,3.160469,2.858341,3,3C2.796233,3.179882,0.203767,0.820118,0,1C-0.160469,1.141659,0.666667,3,1,3"); }); -test("line.curve(curveCatmullRomClosed.alpha(0))(data) generates the expected path", () => { +it("line.curve(curveCatmullRomClosed.alpha(0))(data) generates the expected path", () => { const l = line().curve(curveCatmullRomClosed.alpha(0)); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -21,7 +21,7 @@ test("line.curve(curveCatmullRomClosed.alpha(0))(data) generates the expected pa assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.333333,3,1.666667,1,2,1C2.333333,1,3.333333,3,3,3C2.666667,3,0.333333,1,0,1C-0.333333,1,0.666667,3,1,3"); }); -test("line.curve(curveCatmullRomClosed.alpha(1))(data) generates the expected path", () => { +it("line.curve(curveCatmullRomClosed.alpha(1))(data) generates the expected path", () => { const l = line().curve(curveCatmullRomClosed.alpha(1)); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -30,17 +30,17 @@ test("line.curve(curveCatmullRomClosed.alpha(1))(data) generates the expected pa assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.333333,3,1.666667,1,2,1C2.333333,1,3.031652,2.746782,3,3C2.948962,3.408301,0.051038,0.591699,0,1C-0.031652,1.253218,0.666667,3,1,3"); }); -test("line.curve(curveCatmullRomClosed) uses a default alpha of 0.5 (centripetal)", () => { +it("line.curve(curveCatmullRomClosed) uses a default alpha of 0.5 (centripetal)", () => { const l = line().curve(curveCatmullRomClosed.alpha(0.5)); assert.strictEqual(line().curve(curveCatmullRomClosed)([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -test("line.curve(curveCatmullRomClosed.alpha(alpha)) coerces the specified alpha to a number", () => { +it("line.curve(curveCatmullRomClosed.alpha(alpha)) coerces the specified alpha to a number", () => { const l = line().curve(curveCatmullRomClosed.alpha("0.5")); assert.strictEqual(line().curve(curveCatmullRomClosed.alpha(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -test("area.curve(curveCatmullRomClosed.alpha(alpha)) coerces the specified alpha to a number", () => { +it("area.curve(curveCatmullRomClosed.alpha(alpha)) coerces the specified alpha to a number", () => { const a = area().curve(curveCatmullRomClosed.alpha("0.5")); assert.strictEqual(area().curve(curveCatmullRomClosed.alpha(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), a([[0, 1], [1, 3], [2, 1], [3, 3]])); }); diff --git a/test/curve/catmullRomOpen-test.js b/test/curve/catmullRomOpen-test.js index 4f67931f..470593df 100644 --- a/test/curve/catmullRomOpen-test.js +++ b/test/curve/catmullRomOpen-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {area, line, curveCatmullRomOpen} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -test("line.curve(curveCatmullRomOpen)(data) generates the expected path", () => { +it("line.curve(curveCatmullRomOpen)(data) generates the expected path", () => { const l = line().curve(curveCatmullRomOpen); assert.strictEqual(l([]), null); assert.strictEqual(l([[0, 1]]), null); @@ -12,7 +12,7 @@ test("line.curve(curveCatmullRomOpen)(data) generates the expected path", () => assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.333333,3,1.666667,1,2,1"); }); -test("line.curve(curveCatmullRomOpen.alpha(1))(data) generates the expected path", () => { +it("line.curve(curveCatmullRomOpen.alpha(1))(data) generates the expected path", () => { const l = line().curve(curveCatmullRomOpen.alpha(1)); assert.strictEqual(l([]), null); assert.strictEqual(l([[0, 1]]), null); @@ -21,17 +21,17 @@ test("line.curve(curveCatmullRomOpen.alpha(1))(data) generates the expected path assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.333333,3,1.666667,1,2,1"); }); -test("line.curve(curveCatmullRomOpen) uses a default alpha of 0.5 (centripetal)", () => { +it("line.curve(curveCatmullRomOpen) uses a default alpha of 0.5 (centripetal)", () => { const l = line().curve(curveCatmullRomOpen.alpha(0.5)); assert.strictEqual(line().curve(curveCatmullRomOpen)([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -test("line.curve(curveCatmullRomOpen.alpha(alpha)) coerces the specified alpha to a number", () => { +it("line.curve(curveCatmullRomOpen.alpha(alpha)) coerces the specified alpha to a number", () => { const l = line().curve(curveCatmullRomOpen.alpha("0.5")); assert.strictEqual(line().curve(curveCatmullRomOpen.alpha(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), l([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -test("area.curve(curveCatmullRomOpen.alpha(0.5))(data) generates the expected path", () => { +it("area.curve(curveCatmullRomOpen.alpha(0.5))(data) generates the expected path", () => { const a = area().curve(curveCatmullRomOpen, 0.5); assert.strictEqual(a([]), null); assert.strictEqual(a([[0, 1]]), null); @@ -40,12 +40,12 @@ test("area.curve(curveCatmullRomOpen.alpha(0.5))(data) generates the expected pa assertPathEqual(a([[0, 1], [1, 3], [2, 1], [3, 3]]), "M1,3C1.333333,3,1.666667,1,2,1L2,0C1.666667,0,1.333333,0,1,0Z"); }); -test("area.curve(curveCatmullRomOpen) uses a default alpha of 0.5 (centripetal)", () => { +it("area.curve(curveCatmullRomOpen) uses a default alpha of 0.5 (centripetal)", () => { const a = area().curve(curveCatmullRomOpen, 0.5); assert.strictEqual(area().curve(curveCatmullRomOpen)([[0, 1], [1, 3], [2, 1], [3, 3]]), a([[0, 1], [1, 3], [2, 1], [3, 3]])); }); -test("area.curve(curveCatmullRomOpen.alpha(alpha)) coerces the specified alpha to a number", () => { +it("area.curve(curveCatmullRomOpen.alpha(alpha)) coerces the specified alpha to a number", () => { const a = area().curve(curveCatmullRomOpen.alpha("0.5")); assert.strictEqual(area().curve(curveCatmullRomOpen.alpha(0.5))([[0, 1], [1, 3], [2, 1], [3, 3]]), a([[0, 1], [1, 3], [2, 1], [3, 3]])); }); diff --git a/test/curve/linear-test.js b/test/curve/linear-test.js index 617114de..b5671879 100644 --- a/test/curve/linear-test.js +++ b/test/curve/linear-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {area, line, curveLinear} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -test("line.curve(curveLinear)(data) generates the expected path", () => { +it("line.curve(curveLinear)(data) generates the expected path", () => { const l = line().curve(curveLinear); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -11,7 +11,7 @@ test("line.curve(curveLinear)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [2, 3], [4, 5]]), "M0,1L2,3L4,5"); }); -test("area.curve(curveLinear)(data) generates the expected path", () => { +it("area.curve(curveLinear)(data) generates the expected path", () => { const a = area().curve(curveLinear); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); diff --git a/test/curve/linearClosed-test.js b/test/curve/linearClosed-test.js index b8516203..ecf41e79 100644 --- a/test/curve/linearClosed-test.js +++ b/test/curve/linearClosed-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {line, curveLinearClosed} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -test("line.curve(curveLinearClosed)(data) generates the expected path", () => { +it("line.curve(curveLinearClosed)(data) generates the expected path", () => { const l = line().curve(curveLinearClosed); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); diff --git a/test/curve/monotoneX-test.js b/test/curve/monotoneX-test.js index 012551e4..02c2157c 100644 --- a/test/curve/monotoneX-test.js +++ b/test/curve/monotoneX-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {area, line, curveMonotoneX} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -test("line.curve(curveMonotoneX)(data) generates the expected path", () => { +it("line.curve(curveMonotoneX)(data) generates the expected path", () => { const l = line().curve(curveMonotoneX); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -12,25 +12,25 @@ test("line.curve(curveMonotoneX)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1C0.333333,2,0.666667,3,1,3C1.333333,3,1.666667,1,2,1C2.333333,1,2.666667,2,3,3"); }); -test("line.curve(curveMonotoneX)(data) preserves monotonicity in y", () => { +it("line.curve(curveMonotoneX)(data) preserves monotonicity in y", () => { const l = line().curve(curveMonotoneX); assertPathEqual(l([[0, 200], [100, 100], [200, 100], [300, 300], [400, 300]]), "M0,200C33.333333,150,66.666667,100,100,100C133.333333,100,166.666667,100,200,100C233.333333,100,266.666667,300,300,300C333.333333,300,366.666667,300,400,300"); }); -test("line.curve(curveMonotoneX)(data) handles duplicate x-values", () => { +it("line.curve(curveMonotoneX)(data) handles duplicate x-values", () => { const l = line().curve(curveMonotoneX); assertPathEqual(l([[0, 200], [0, 100], [100, 100], [200, 0]]), "M0,200C0,200,0,100,0,100C33.333333,100,66.666667,100,100,100C133.333333,100,166.666667,50,200,0"); assertPathEqual(l([[0, 200], [100, 100], [100, 0], [200, 0]]), "M0,200C33.333333,183.333333,66.666667,166.666667,100,100C100,100,100,0,100,0C133.333333,0,166.666667,0,200,0"); assertPathEqual(l([[0, 200], [100, 100], [200, 100], [200, 0]]), "M0,200C33.333333,150,66.666667,100,100,100C133.333333,100,166.666667,100,200,100C200,100,200,0,200,0"); }); -test("line.curve(curveMonotoneX)(data) handles segments of infinite slope", () => { +it("line.curve(curveMonotoneX)(data) handles segments of infinite slope", () => { const l = line().curve(curveMonotoneX); assertPathEqual(l([[0, 200], [100, 150], [100, 50], [200, 0]]), "M0,200C33.333333,191.666667,66.666667,183.333333,100,150C100,150,100,50,100,50C133.333333,16.666667,166.666667,8.333333,200,0"); assertPathEqual(l([[200, 0], [100, 50], [100, 150], [0, 200]]), "M200,0C166.666667,8.333333,133.333333,16.666667,100,50C100,50,100,150,100,150C66.666667,183.333333,33.333333,191.666667,0,200"); }); -test("line.curve(curveMonotoneX)(data) ignores coincident points", () => { +it("line.curve(curveMonotoneX)(data) ignores coincident points", () => { const l = line().curve(curveMonotoneX); const p = l([[0, 200], [50, 200], [100, 100], [150, 0], [200, 0]]); assert.strictEqual(l([[0, 200], [0, 200], [50, 200], [100, 100], [150, 0], [200, 0]]), p); @@ -40,7 +40,7 @@ test("line.curve(curveMonotoneX)(data) ignores coincident points", () => { assert.strictEqual(l([[0, 200], [50, 200], [100, 100], [150, 0], [200, 0], [200, 0]]), p); }); -test("area.curve(curveMonotoneX)(data) generates the expected path", () => { +it("area.curve(curveMonotoneX)(data) generates the expected path", () => { const a = area().curve(curveMonotoneX); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); diff --git a/test/curve/monotoneY-test.js b/test/curve/monotoneY-test.js index c920ffc5..d4b2ac31 100644 --- a/test/curve/monotoneY-test.js +++ b/test/curve/monotoneY-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {area, line, curveMonotoneY} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -test("line.curve(curveMonotoneY)(data) generates the expected path", () => { +it("line.curve(curveMonotoneY)(data) generates the expected path", () => { const l = line().curve(curveMonotoneY); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]].map(reflect)), "M1,0Z"); @@ -12,25 +12,25 @@ test("line.curve(curveMonotoneY)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]].map(reflect)), "M1,0C2,0.333333,3,0.666667,3,1C3,1.333333,1,1.666667,1,2C1,2.333333,2,2.666667,3,3"); }); -test("line.curve(curveMonotoneY)(data) preserves monotonicity in y", () => { +it("line.curve(curveMonotoneY)(data) preserves monotonicity in y", () => { const l = line().curve(curveMonotoneY); assertPathEqual(l([[0, 200], [100, 100], [200, 100], [300, 300], [400, 300]].map(reflect)), "M200,0C150,33.333333,100,66.666667,100,100C100,133.333333,100,166.666667,100,200C100,233.333333,300,266.666667,300,300C300,333.333333,300,366.666667,300,400"); }); -test("line.curve(curveMonotoneY)(data) handles duplicate x-values", () => { +it("line.curve(curveMonotoneY)(data) handles duplicate x-values", () => { const l = line().curve(curveMonotoneY); assertPathEqual(l([[0, 200], [0, 100], [100, 100], [200, 0]].map(reflect)), "M200,0C200,0,100,0,100,0C100,33.333333,100,66.666667,100,100C100,133.333333,50,166.666667,0,200"); assertPathEqual(l([[0, 200], [100, 100], [100, 0], [200, 0]].map(reflect)), "M200,0C183.333333,33.333333,166.666667,66.666667,100,100C100,100,0,100,0,100C0,133.333333,0,166.666667,0,200"); assertPathEqual(l([[0, 200], [100, 100], [200, 100], [200, 0]].map(reflect)), "M200,0C150,33.333333,100,66.666667,100,100C100,133.333333,100,166.666667,100,200C100,200,0,200,0,200"); }); -test("line.curve(curveMonotoneY)(data) handles segments of infinite slope", () => { +it("line.curve(curveMonotoneY)(data) handles segments of infinite slope", () => { const l = line().curve(curveMonotoneY); assertPathEqual(l([[0, 200], [100, 150], [100, 50], [200, 0]].map(reflect)), "M200,0C191.666667,33.333333,183.333333,66.666667,150,100C150,100,50,100,50,100C16.666667,133.333333,8.333333,166.666667,0,200"); assertPathEqual(l([[200, 0], [100, 50], [100, 150], [0, 200]].map(reflect)), "M0,200C8.333333,166.666667,16.666667,133.333333,50,100C50,100,150,100,150,100C183.333333,66.666667,191.666667,33.333333,200,0"); }); -test("line.curve(curveMonotoneY)(data) ignores coincident points", () => { +it("line.curve(curveMonotoneY)(data) ignores coincident points", () => { const l = line().curve(curveMonotoneY), p = l([[0, 200], [50, 200], [100, 100], [150, 0], [200, 0]].map(reflect)); assert.strictEqual(l([[0, 200], [0, 200], [50, 200], [100, 100], [150, 0], [200, 0]].map(reflect)), p); @@ -40,7 +40,7 @@ test("line.curve(curveMonotoneY)(data) ignores coincident points", () => { assert.strictEqual(l([[0, 200], [50, 200], [100, 100], [150, 0], [200, 0], [200, 0]].map(reflect)), p); }); -test("area.curve(curveMonotoneY)(data) generates the expected path", () => { +it("area.curve(curveMonotoneY)(data) generates the expected path", () => { const a = area().curve(curveMonotoneY); assert.strictEqual(a([].map(reflect)), null); assertPathEqual(a([[0, 1]].map(reflect)), "M1,0L1,0Z"); diff --git a/test/curve/natural-test.js b/test/curve/natural-test.js index c45936c1..0966bcce 100644 --- a/test/curve/natural-test.js +++ b/test/curve/natural-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {area, line, curveNatural} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -test("line.curve(curveNatural)(data) generates the expected path", () => { +it("line.curve(curveNatural)(data) generates the expected path", () => { const l = line().curve(curveNatural); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -12,7 +12,7 @@ test("line.curve(curveNatural)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [1, 3], [2, 1], [3, 3]]), "M0,1C0.333333,2.111111,0.666667,3.222222,1,3C1.333333,2.777778,1.666667,1.222222,2,1C2.333333,0.777778,2.666667,1.888889,3,3"); }); -test("area.curve(curveNatural)(data) generates the expected path", () => { +it("area.curve(curveNatural)(data) generates the expected path", () => { const a = area().curve(curveNatural); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); diff --git a/test/curve/step-test.js b/test/curve/step-test.js index 47345d60..f681d495 100644 --- a/test/curve/step-test.js +++ b/test/curve/step-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {area, line, curveStep} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -test("line.curve(curveStep)(data) generates the expected path", () => { +it("line.curve(curveStep)(data) generates the expected path", () => { const l = line().curve(curveStep); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -11,7 +11,7 @@ test("line.curve(curveStep)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [2, 3], [4, 5]]), "M0,1L1,1L1,3L3,3L3,5L4,5"); }); -test("area.curve(curveStep)(data) generates the expected path", () => { +it("area.curve(curveStep)(data) generates the expected path", () => { const a = area().curve(curveStep); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); diff --git a/test/curve/stepAfter-test.js b/test/curve/stepAfter-test.js index 4710038d..98774782 100644 --- a/test/curve/stepAfter-test.js +++ b/test/curve/stepAfter-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {area, line, curveStepAfter} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -test("line.curve(curveStepAfter)(data) generates the expected path", () => { +it("line.curve(curveStepAfter)(data) generates the expected path", () => { const l = line().curve(curveStepAfter); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -11,7 +11,7 @@ test("line.curve(curveStepAfter)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [2, 3], [4, 5]]), "M0,1L2,1L2,3L4,3L4,5"); }); -test("area.curve(curveStepAfter)(data) generates the expected path", () => { +it("area.curve(curveStepAfter)(data) generates the expected path", () => { const a = area().curve(curveStepAfter); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); diff --git a/test/curve/stepBefore-test.js b/test/curve/stepBefore-test.js index def2cf4b..bf1195a3 100644 --- a/test/curve/stepBefore-test.js +++ b/test/curve/stepBefore-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {area, line, curveStepBefore} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; -test("line.curve(curveStepBefore)(data) generates the expected path", () => { +it("line.curve(curveStepBefore)(data) generates the expected path", () => { const l = line().curve(curveStepBefore); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1]]), "M0,1Z"); @@ -11,7 +11,7 @@ test("line.curve(curveStepBefore)(data) generates the expected path", () => { assertPathEqual(l([[0, 1], [2, 3], [4, 5]]), "M0,1L0,3L2,3L2,5L4,5"); }); -test("area.curve(curveStepBefore)(data) generates the expected path", () => { +it("area.curve(curveStepBefore)(data) generates the expected path", () => { const a = area().curve(curveStepBefore); assert.strictEqual(a([]), null); assertPathEqual(a([[0, 1]]), "M0,1L0,0Z"); diff --git a/test/line-test.js b/test/line-test.js index ef1ea7a6..f0d6332f 100644 --- a/test/line-test.js +++ b/test/line-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {line, curveLinear, curveLinearClosed} from "../src/index.js"; import {assertPathEqual} from "./asserts.js"; -test("line() returns a default line shape", () => { +it("line() returns a default line shape", () => { const l = line(); assert.strictEqual(l.x()([42, 34]), 42); assert.strictEqual(l.y()([42, 34]), 34); @@ -13,7 +13,7 @@ test("line() returns a default line shape", () => { assertPathEqual(l([[0, 1], [2, 3], [4, 5]]), "M0,1L2,3L4,5"); }); -test("line(x, y) sets x and y", () => { +it("line(x, y) sets x and y", () => { const x = function() {}, y = function() {}; assert.strictEqual(line(x).x(), x); assert.strictEqual(line(x, y).y(), y); @@ -21,51 +21,51 @@ test("line(x, y) sets x and y", () => { assert.strictEqual(line(3, 2).y()("aa"), 2); }); -test("line.x(f)(data) passes d, i and data to the specified function f", () => { +it("line.x(f)(data) passes d, i and data to the specified function f", () => { const data = ["a", "b"], actual = []; line().x(function() { actual.push([].slice.call(arguments)); })(data); assert.deepStrictEqual(actual, [["a", 0, data], ["b", 1, data]]); }); -test("line.y(f)(data) passes d, i and data to the specified function f", () => { +it("line.y(f)(data) passes d, i and data to the specified function f", () => { const data = ["a", "b"], actual = []; line().y(function() { actual.push([].slice.call(arguments)); })(data); assert.deepStrictEqual(actual, [["a", 0, data], ["b", 1, data]]); }); -test("line.defined(f)(data) passes d, i and data to the specified function f", () => { +it("line.defined(f)(data) passes d, i and data to the specified function f", () => { const data = ["a", "b"], actual = []; line().defined(function() { actual.push([].slice.call(arguments)); })(data); assert.deepStrictEqual(actual, [["a", 0, data], ["b", 1, data]]); }); -test("line.x(x)(data) observes the specified function", () => { +it("line.x(x)(data) observes the specified function", () => { const l = line().x(function(d) { return d.x; }); assertPathEqual(l([{x: 0, 1: 1}, {x: 2, 1: 3}, {x: 4, 1: 5}]), "M0,1L2,3L4,5"); }); -test("line.x(x)(data) observes the specified constant", () => { +it("line.x(x)(data) observes the specified constant", () => { const l = line().x(0); assertPathEqual(l([{1: 1}, {1: 3}, {1: 5}]), "M0,1L0,3L0,5"); }); -test("line.y(y)(data) observes the specified function", () => { +it("line.y(y)(data) observes the specified function", () => { const l = line().y(function(d) { return d.y; }); assertPathEqual(l([{0: 0, y: 1}, {0: 2, y: 3}, {0: 4, y: 5}]), "M0,1L2,3L4,5"); }); -test("line.y(y)(data) observes the specified constant", () => { +it("line.y(y)(data) observes the specified constant", () => { const l = line().y(0); assertPathEqual(l([{0: 0}, {0: 2}, {0: 4}]), "M0,0L2,0L4,0"); }); -test("line.curve(curve) sets the curve method", () => { +it("line.curve(curve) sets the curve method", () => { const l = line().curve(curveLinearClosed); assert.strictEqual(l([]), null); assertPathEqual(l([[0, 1], [2, 3]]), "M0,1L2,3Z"); }); -test("line.digits(digits) sets the maximum fractional digits", () => { +it("line.digits(digits) sets the maximum fractional digits", () => { const points = [[0, Math.PI], [Math.E, 4]]; const l = line(); assert.strictEqual(l.digits(), 3); diff --git a/test/lineRadial-test.js b/test/lineRadial-test.js index 6e7cd4ea..4372e0c0 100644 --- a/test/lineRadial-test.js +++ b/test/lineRadial-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {curveLinear, lineRadial} from "../src/index.js"; import {assertPathEqual} from "./asserts.js"; -test("lineRadial() returns a default radial line shape", () => { +it("lineRadial() returns a default radial line shape", () => { const l = lineRadial(); assert.strictEqual(l.angle()([42, 34]), 42); assert.strictEqual(l.radius()([42, 34]), 34); diff --git a/test/link-test.js b/test/link-test.js index 51cb53dc..7dc98729 100644 --- a/test/link-test.js +++ b/test/link-test.js @@ -1,11 +1,11 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {pathRound} from "d3-path"; import {link, linkHorizontal, linkVertical, linkRadial} from "../src/index.js"; import {curveLinear, curveBumpX, curveBumpY} from "../src/index.js"; import {assertPathEqual} from "./asserts.js"; -test("link(curve) returns a default link with the given curve", () => { +it("link(curve) returns a default link with the given curve", () => { const l = link(curveLinear); assert.strictEqual(l.source()({source: 42}), 42); assert.strictEqual(l.target()({target: 34}), 34); @@ -15,7 +15,7 @@ test("link(curve) returns a default link with the given curve", () => { assertPathEqual(l({source: [0, 1], target: [2, 3]}), "M0,1L2,3"); }); -test("link.source(source) sets source", () => { +it("link.source(source) sets source", () => { const l = link(curveLinear); const x = d => d.x; assert.strictEqual(l.source(x), l); @@ -23,7 +23,7 @@ test("link.source(source) sets source", () => { assertPathEqual(l({x: [0, 1], target: [2, 3]}), "M0,1L2,3"); }); -test("link.target(target) sets target", () => { +it("link.target(target) sets target", () => { const l = link(curveLinear); const x = d => d.x; assert.strictEqual(l.target(x), l); @@ -31,7 +31,7 @@ test("link.target(target) sets target", () => { assertPathEqual(l({source: [0, 1], x: [2, 3]}), "M0,1L2,3"); }); -test("link.source(f)(..args) passes arguments to the specified function f", () => { +it("link.source(f)(..args) passes arguments to the specified function f", () => { const source = {name: "source"}; const target = {name: "target"}; const data = {source, target}; @@ -41,7 +41,7 @@ test("link.source(f)(..args) passes arguments to the specified function f", () = assert.deepStrictEqual(actual, [[data, extra]]); }); -test("link.target(f)(..args) passes source and arguments to the specified function f", () => { +it("link.target(f)(..args) passes source and arguments to the specified function f", () => { const source = {name: "source"}; const target = {name: "target"}; const data = {source, target}; @@ -51,7 +51,7 @@ test("link.target(f)(..args) passes source and arguments to the specified functi assert.deepStrictEqual(actual, [[data, extra]]); }); -test("link.x(x) sets x", () => { +it("link.x(x) sets x", () => { const l = link(curveLinear); const x = d => d.x; assert.strictEqual(l.x(x), l); @@ -59,7 +59,7 @@ test("link.x(x) sets x", () => { assertPathEqual(l({source: {x: 0, 1: 1}, target: {x: 2, 1: 3}}), "M0,1L2,3"); }); -test("link.y(y) sets y", () => { +it("link.y(y) sets y", () => { const l = link(curveLinear); const y = d => d.y; assert.strictEqual(l.y(y), l); @@ -67,7 +67,7 @@ test("link.y(y) sets y", () => { assertPathEqual(l({source: {0: 0, y: 1}, target: {0: 2, y: 3}}), "M0,1L2,3"); }); -test("link.x(f)(..args) passes source and arguments to the specified function f", () => { +it("link.x(f)(..args) passes source and arguments to the specified function f", () => { const source = {name: "source"}; const target = {name: "target"}; const data = {source, target}; @@ -77,7 +77,7 @@ test("link.x(f)(..args) passes source and arguments to the specified function f" assert.deepStrictEqual(actual, [[source, extra], [target, extra]]); }); -test("link.y(f)(..args) passes source and arguments to the specified function f", () => { +it("link.y(f)(..args) passes source and arguments to the specified function f", () => { const source = {name: "source"}; const target = {name: "target"}; const data = {source, target}; @@ -87,7 +87,7 @@ test("link.y(f)(..args) passes source and arguments to the specified function f" assert.deepStrictEqual(actual, [[source, extra], [target, extra]]); }); -test("linkHorizontal() is an alias for link(curveBumpX)", () => { +it("linkHorizontal() is an alias for link(curveBumpX)", () => { const l = linkHorizontal(), l2 = link(curveBumpX); assert.strictEqual(l.source(), l2.source()); assert.strictEqual(l.target(), l2.target()); @@ -97,7 +97,7 @@ test("linkHorizontal() is an alias for link(curveBumpX)", () => { assertPathEqual(l({source: [0, 1], target: [2, 3]}), l2({source: [0, 1], target: [2, 3]})); }); -test("linkVertical() is an alias for link(curveBumpY)", () => { +it("linkVertical() is an alias for link(curveBumpY)", () => { const l = linkVertical(), l2 = link(curveBumpY); assert.strictEqual(l.source(), l2.source()); assert.strictEqual(l.target(), l2.target()); @@ -107,14 +107,14 @@ test("linkVertical() is an alias for link(curveBumpY)", () => { assertPathEqual(l({source: [0, 1], target: [2, 3]}), l2({source: [0, 1], target: [2, 3]})); }); -test("link.context(context) sets the context", () => { +it("link.context(context) sets the context", () => { const p = pathRound(6); const l = link(curveLinear).context(p); assert.strictEqual(l({source: [0, Math.E], target: [Math.PI, 3]}), undefined); assert.strictEqual(p + "", "M0,2.718282L3.141593,3"); }); -test("linkRadial() works as expected", () => { +it("linkRadial() works as expected", () => { const l = linkRadial(), l2 = link(); assert.strictEqual(l.source(), l2.source()); assert.strictEqual(l.target(), l2.target()); diff --git a/test/offset/diverging-test.js b/test/offset/diverging-test.js index f0514d46..660d7edd 100644 --- a/test/offset/diverging-test.js +++ b/test/offset/diverging-test.js @@ -1,8 +1,8 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {stackOffsetDiverging, stackOrderNone, stackOrderReverse} from "../../src/index.js"; -test("stackOffsetDiverging(series, order) applies a zero baseline, ignoring existing offsets", () => { +it("stackOffsetDiverging(series, order) applies a zero baseline, ignoring existing offsets", () => { const series = [ [[1, 2], [2, 4], [3, 4]], [[0, 3], [0, 4], [0, 2]], @@ -16,7 +16,7 @@ test("stackOffsetDiverging(series, order) applies a zero baseline, ignoring exis ]); }); -test("stackOffsetDiverging(series, order) handles a single series", () => { +it("stackOffsetDiverging(series, order) handles a single series", () => { const series = [ [[1, 2], [2, 4], [3, 4]] ]; @@ -26,7 +26,7 @@ test("stackOffsetDiverging(series, order) handles a single series", () => { ]); }); -test("stackOffsetDiverging(series, order) treats NaN as zero", () => { +it("stackOffsetDiverging(series, order) treats NaN as zero", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, 3], [0, NaN], [0, 2]], @@ -42,7 +42,7 @@ test("stackOffsetDiverging(series, order) treats NaN as zero", () => { ]); }); -test("stackOffsetDiverging(series, order) observes the specified order", () => { +it("stackOffsetDiverging(series, order) observes the specified order", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, 3], [0, 4], [0, 2]], @@ -56,7 +56,7 @@ test("stackOffsetDiverging(series, order) observes the specified order", () => { ]); }); -test("stackOffsetDiverging(series, order) puts negative values below zero, in order", () => { +it("stackOffsetDiverging(series, order) puts negative values below zero, in order", () => { const series = [ [[0, 1], [0, -2], [0, -1]], [[0, -3], [0, -4], [0, -2]], @@ -70,7 +70,7 @@ test("stackOffsetDiverging(series, order) puts negative values below zero, in or ]); }); -test("stackOffsetDiverging(series, order) puts zero values at zero, in order", () => { +it("stackOffsetDiverging(series, order) puts zero values at zero, in order", () => { const series = [ [[0, 1], [0, 2], [0, -1]], [[0, 3], [0, 0], [0, 0]], diff --git a/test/offset/expand-test.js b/test/offset/expand-test.js index 71b53b5f..021188ec 100644 --- a/test/offset/expand-test.js +++ b/test/offset/expand-test.js @@ -1,8 +1,8 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {stackOffsetExpand, stackOrderNone, stackOrderReverse} from "../../src/index.js"; -test("stackOffsetExpand(series, order) expands to fill [0, 1]", () => { +it("stackOffsetExpand(series, order) expands to fill [0, 1]", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, 3], [0, 4], [0, 2]], @@ -16,7 +16,7 @@ test("stackOffsetExpand(series, order) expands to fill [0, 1]", () => { ]); }); -test("stackOffsetExpand(series, order) treats NaN as zero", () => { +it("stackOffsetExpand(series, order) treats NaN as zero", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, 3], [0, NaN], [0, 2]], @@ -32,7 +32,7 @@ test("stackOffsetExpand(series, order) treats NaN as zero", () => { ]); }); -test("stackOffsetExpand(series, order) observes the specified order", () => { +it("stackOffsetExpand(series, order) observes the specified order", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, 3], [0, 4], [0, 2]], diff --git a/test/offset/none-test.js b/test/offset/none-test.js index 1f0cef2d..a01bc168 100644 --- a/test/offset/none-test.js +++ b/test/offset/none-test.js @@ -1,8 +1,8 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {stackOffsetNone, stackOrderNone, stackOrderReverse} from "../../src/index.js"; -test("stackOffsetNone(series, order) stacks upon the first layer’s existing positions", () => { +it("stackOffsetNone(series, order) stacks upon the first layer’s existing positions", () => { const series = [ [[1, 2], [2, 4], [3, 4]], [[0, 3], [0, 4], [0, 2]], @@ -16,7 +16,7 @@ test("stackOffsetNone(series, order) stacks upon the first layer’s existing po ]); }); -test("stackOffsetNone(series, order) treats NaN as zero", () => { +it("stackOffsetNone(series, order) treats NaN as zero", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, 3], [0, NaN], [0, 2]], @@ -32,7 +32,7 @@ test("stackOffsetNone(series, order) treats NaN as zero", () => { ]); }); -test("stackOffsetNone(series, order) observes the specified order", () => { +it("stackOffsetNone(series, order) observes the specified order", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, 3], [0, 4], [0, 2]], diff --git a/test/offset/silhouette-test.js b/test/offset/silhouette-test.js index a169d4e8..352bd102 100644 --- a/test/offset/silhouette-test.js +++ b/test/offset/silhouette-test.js @@ -1,8 +1,8 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {stackOffsetSilhouette, stackOrderNone, stackOrderReverse} from "../../src/index.js"; -test("stackOffsetSilhouette(series, order) centers the stack around zero", () => { +it("stackOffsetSilhouette(series, order) centers the stack around zero", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, 3], [0, 4], [0, 2]], @@ -16,7 +16,7 @@ test("stackOffsetSilhouette(series, order) centers the stack around zero", () => ]); }); -test("stackOffsetSilhouette(series, order) treats NaN as zero", () => { +it("stackOffsetSilhouette(series, order) treats NaN as zero", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, 3], [0, NaN], [0, 2]], @@ -32,7 +32,7 @@ test("stackOffsetSilhouette(series, order) treats NaN as zero", () => { ]); }); -test("stackOffsetSilhouette(series, order) observes the specified order", () => { +it("stackOffsetSilhouette(series, order) observes the specified order", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, 3], [0, 4], [0, 2]], diff --git a/test/offset/wiggle-test.js b/test/offset/wiggle-test.js index 96b6db6e..0f0ce104 100644 --- a/test/offset/wiggle-test.js +++ b/test/offset/wiggle-test.js @@ -1,8 +1,8 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {stackOffsetWiggle, stackOrderNone, stackOrderReverse} from "../../src/index.js"; -test("stackOffsetWiggle(series, order) minimizes weighted wiggle", () => { +it("stackOffsetWiggle(series, order) minimizes weighted wiggle", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, 3], [0, 4], [0, 2]], @@ -16,7 +16,7 @@ test("stackOffsetWiggle(series, order) minimizes weighted wiggle", () => { ].map(roundSeries)); }); -test("stackOffsetWiggle(series, order) treats NaN as zero", () => { +it("stackOffsetWiggle(series, order) treats NaN as zero", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, NaN], [0, NaN], [0, NaN]], @@ -36,7 +36,7 @@ test("stackOffsetWiggle(series, order) treats NaN as zero", () => { ].map(roundSeries)); }); -test("stackOffsetWiggle(series, order) observes the specified order", () => { +it("stackOffsetWiggle(series, order) observes the specified order", () => { const series = [ [[0, 1], [0, 2], [0, 1]], [[0, 3], [0, 4], [0, 2]], diff --git a/test/order/appearance-test.js b/test/order/appearance-test.js index 7f8ae595..5a73f03c 100644 --- a/test/order/appearance-test.js +++ b/test/order/appearance-test.js @@ -1,8 +1,8 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {stackOrderAppearance} from "../../src/index.js"; -test("stackOrderAppearance(series) returns an order by appearance", () => { +it("stackOrderAppearance(series) returns an order by appearance", () => { assert.deepStrictEqual(stackOrderAppearance([ [[0, 0], [0, 0], [0, 1]], [[0, 3], [0, 2], [0, 0]], @@ -10,7 +10,7 @@ test("stackOrderAppearance(series) returns an order by appearance", () => { ]), [1, 2, 0]); }); -test("stackOrderAppearance(series) treats NaN values as zero", () => { +it("stackOrderAppearance(series) treats NaN values as zero", () => { assert.deepStrictEqual(stackOrderAppearance([ [[0, NaN], [0, NaN], [0, 1]], [[0, 3], [0, 2], [0, NaN]], diff --git a/test/order/ascending-test.js b/test/order/ascending-test.js index 6d93412f..61a828a8 100644 --- a/test/order/ascending-test.js +++ b/test/order/ascending-test.js @@ -1,8 +1,8 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {stackOrderAscending} from "../../src/index.js"; -test("stackOrderAscending(series) returns an order by sum", () => { +it("stackOrderAscending(series) returns an order by sum", () => { assert.deepStrictEqual(stackOrderAscending([ [[0, 1], [0, 2], [0, 3]], [[0, 2], [0, 3], [0, 4]], @@ -10,7 +10,7 @@ test("stackOrderAscending(series) returns an order by sum", () => { ]), [2, 0, 1]); }); -test("stackOrderAscending(series) treats NaN values as zero", () => { +it("stackOrderAscending(series) treats NaN values as zero", () => { assert.deepStrictEqual(stackOrderAscending([ [[0, 1], [0, 2], [0, NaN], [0, 3]], [[0, 2], [0, 3], [0, NaN], [0, 4]], diff --git a/test/order/descending-test.js b/test/order/descending-test.js index b0666025..0f21962a 100644 --- a/test/order/descending-test.js +++ b/test/order/descending-test.js @@ -1,8 +1,8 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {stackOrderDescending} from "../../src/index.js"; -test("stackOrderDescending(series) returns an order by sum", () => { +it("stackOrderDescending(series) returns an order by sum", () => { assert.deepStrictEqual(stackOrderDescending([ [[0, 1], [0, 2], [0, 3]], [[0, 2], [0, 3], [0, 4]], @@ -10,7 +10,7 @@ test("stackOrderDescending(series) returns an order by sum", () => { ]), [1, 0, 2]); }); -test("stackOrderDescending(series) treats NaN values as zero", () => { +it("stackOrderDescending(series) treats NaN values as zero", () => { assert.deepStrictEqual(stackOrderDescending([ [[0, 1], [0, 2], [0, 3], [0, NaN]], [[0, 2], [0, 3], [0, 4], [0, NaN]], diff --git a/test/order/insideOut-test.js b/test/order/insideOut-test.js index 8b0b6724..398d1bff 100644 --- a/test/order/insideOut-test.js +++ b/test/order/insideOut-test.js @@ -1,8 +1,8 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {stackOrderInsideOut} from "../../src/index.js"; -test("stackOrderInsideOut(series) returns an order by appearance", () => { +it("stackOrderInsideOut(series) returns an order by appearance", () => { assert.deepStrictEqual(stackOrderInsideOut([ [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 1]], [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 2], [0, 0]], @@ -14,7 +14,7 @@ test("stackOrderInsideOut(series) returns an order by appearance", () => { ]), [2, 3, 6, 5, 4, 1, 0]); }); -test("stackOrderInsideOut(series) treats NaN values as zero", () => { +it("stackOrderInsideOut(series) treats NaN values as zero", () => { assert.deepStrictEqual(stackOrderInsideOut([ [[0, 0], [0, NaN], [0, 0], [0, 0], [0, 0], [0, 0], [0, 1]], [[0, 0], [0, 0], [0, NaN], [0, 0], [0, 0], [0, 2], [0, 0]], diff --git a/test/order/none-test.js b/test/order/none-test.js index 31b208cc..83a29b8a 100644 --- a/test/order/none-test.js +++ b/test/order/none-test.js @@ -1,7 +1,7 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {stackOrderNone} from "../../src/index.js"; -test("stackOrderNone(series) returns [0, 1, … series.length - 1]", () => { +it("stackOrderNone(series) returns [0, 1, … series.length - 1]", () => { assert.deepStrictEqual(stackOrderNone(new Array(4)), [0, 1, 2, 3]); }); diff --git a/test/order/reverse-test.js b/test/order/reverse-test.js index a3186f43..860b9743 100644 --- a/test/order/reverse-test.js +++ b/test/order/reverse-test.js @@ -1,7 +1,7 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {stackOrderReverse} from "../../src/index.js"; -test("stackOrderReverse(series) returns [series.length - 1, series.length - 2, … 0]", () => { +it("stackOrderReverse(series) returns [series.length - 1, series.length - 2, … 0]", () => { assert.deepStrictEqual(stackOrderReverse(new Array(4)), [3, 2, 1, 0]); }); diff --git a/test/pie-test.js b/test/pie-test.js index 950bc49f..203d8fa7 100644 --- a/test/pie-test.js +++ b/test/pie-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; /* eslint-disable no-loss-of-precision */ import assert from "assert"; import {pie} from "../src/index.js"; -test("pie() returns a default pie shape", () => { +it("pie() returns a default pie shape", () => { const p = pie(); assert.strictEqual(p.value()(42), 42); assert(p.sortValues()(1, 2) > 0); @@ -15,7 +15,7 @@ test("pie() returns a default pie shape", () => { assert.strictEqual(p.padAngle()(), 0); }); -test("pie(data) returns arcs in input order", () => { +it("pie(data) returns arcs in input order", () => { const p = pie(); assert.deepStrictEqual(p([1, 3, 2]), [ {data: 1, value: 1, index: 2, startAngle: 5.235987755982988, endAngle: 6.283185307179585, padAngle: 0}, @@ -24,7 +24,7 @@ test("pie(data) returns arcs in input order", () => { ]); }); -test("pie(data) accepts an iterable", () => { +it("pie(data) accepts an iterable", () => { const p = pie(); assert.deepStrictEqual(p(new Set([1, 3, 2])), [ {data: 1, value: 1, index: 2, startAngle: 5.235987755982988, endAngle: 6.283185307179585, padAngle: 0}, @@ -33,7 +33,7 @@ test("pie(data) accepts an iterable", () => { ]); }); -test("pie(data) coerces the specified value to a number", () => { +it("pie(data) coerces the specified value to a number", () => { const p = pie(); const three = {valueOf: function() { return 3; }}; assert.deepStrictEqual(p(["1", three, "2"]), [ @@ -43,7 +43,7 @@ test("pie(data) coerces the specified value to a number", () => { ]); }); -test("pie(data) treats negative values as zero", () => { +it("pie(data) treats negative values as zero", () => { const p = pie(); assert.deepStrictEqual(p([1, 0, -1]), [ {data: 1, value: 1, index: 0, startAngle: 0.000000000000000, endAngle: 6.283185307179586, padAngle: 0}, @@ -52,7 +52,7 @@ test("pie(data) treats negative values as zero", () => { ]); }); -test("pie(data) treats NaN values as zero", () => { +it("pie(data) treats NaN values as zero", () => { const p = pie(); const actual = p([1, NaN, undefined]); const expected = [ @@ -68,7 +68,7 @@ test("pie(data) treats NaN values as zero", () => { assert.deepStrictEqual(actual, expected); }); -test("pie(data) puts everything at the startAngle when the sum is zero", () => { +it("pie(data) puts everything at the startAngle when the sum is zero", () => { const p = pie(); assert.deepStrictEqual(p([0, 0]), [ {data: 0, value: 0, index: 0, startAngle: 0, endAngle: 0, padAngle: 0}, @@ -80,7 +80,7 @@ test("pie(data) puts everything at the startAngle when the sum is zero", () => { ]); }); -test("pie(data) restricts |endAngle - startAngle| to τ", () => { +it("pie(data) restricts |endAngle - startAngle| to τ", () => { const p = pie(); assert.deepStrictEqual(p.startAngle(0).endAngle(7)([1, 2]), [ {data: 1, value: 1, index: 1, startAngle: 4.1887902047863905, endAngle: 6.2831853071795860, padAngle: 0}, @@ -100,7 +100,7 @@ test("pie(data) restricts |endAngle - startAngle| to τ", () => { ]); }); -test("pie.value(value)(data) observes the specified value function", () => { +it("pie.value(value)(data) observes the specified value function", () => { assert.deepStrictEqual(pie().value(function(d, i) { return i; })(new Array(3)), [ {data: undefined, value: 0, index: 2, startAngle: 6.2831853071795860, endAngle: 6.2831853071795860, padAngle: 0}, {data: undefined, value: 1, index: 1, startAngle: 4.1887902047863905, endAngle: 6.2831853071795860, padAngle: 0}, @@ -108,21 +108,21 @@ test("pie.value(value)(data) observes the specified value function", () => { ]); }); -test("pie.value(f)(data) passes d, i and data to the specified function f", () => { +it("pie.value(f)(data) passes d, i and data to the specified function f", () => { const data = ["a", "b"]; let actual = []; pie().value(function() { actual.push([].slice.call(arguments)); })(data); assert.deepStrictEqual(actual, [["a", 0, data], ["b", 1, data]]); }); -test("pie().startAngle(f)(…) propagates the context and arguments to the specified function f", () => { +it("pie().startAngle(f)(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; pie().startAngle(function() { actual = {that: this, args: [].slice.call(arguments)}; }).apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -test("pie().startAngle(θ)(data) observes the specified start angle", () => { +it("pie().startAngle(θ)(data) observes the specified start angle", () => { assert.deepStrictEqual(pie().startAngle(Math.PI)([1, 2, 3]), [ {data: 1, value: 1, index: 2, startAngle: 5.759586531581287, endAngle: 6.283185307179586, padAngle: 0}, {data: 2, value: 2, index: 1, startAngle: 4.712388980384690, endAngle: 5.759586531581287, padAngle: 0}, @@ -130,7 +130,7 @@ test("pie().startAngle(θ)(data) observes the specified start angle", () => { ]); }); -test("pie().endAngle(θ)(data) observes the specified end angle", () => { +it("pie().endAngle(θ)(data) observes the specified end angle", () => { assert.deepStrictEqual(pie().endAngle(Math.PI)([1, 2, 3]), [ {data: 1, value: 1, index: 2, startAngle: 2.6179938779914940, endAngle: 3.1415926535897927, padAngle: 0}, {data: 2, value: 2, index: 1, startAngle: 1.5707963267948966, endAngle: 2.6179938779914940, padAngle: 0}, @@ -138,7 +138,7 @@ test("pie().endAngle(θ)(data) observes the specified end angle", () => { ]); }); -test("pie().padAngle(δ)(data) observes the specified pad angle", () => { +it("pie().padAngle(δ)(data) observes the specified pad angle", () => { assert.deepStrictEqual(pie().padAngle(0.1)([1, 2, 3]), [ {data: 1, value: 1, index: 2, startAngle: 5.1859877559829880, endAngle: 6.2831853071795850, padAngle: 0.1}, {data: 2, value: 2, index: 1, startAngle: 3.0915926535897933, endAngle: 5.1859877559829880, padAngle: 0.1}, @@ -146,21 +146,21 @@ test("pie().padAngle(δ)(data) observes the specified pad angle", () => { ]); }); -test("pie().endAngle(f)(…) propagates the context and arguments to the specified function f", () => { +it("pie().endAngle(f)(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; pie().endAngle(function() { actual = {that: this, args: [].slice.call(arguments)}; }).apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -test("pie().padAngle(f)(…) propagates the context and arguments to the specified function f", () => { +it("pie().padAngle(f)(…) propagates the context and arguments to the specified function f", () => { const expected = {that: {}, args: [42]}; let actual; pie().padAngle(function() { actual = {that: this, args: [].slice.call(arguments)}; }).apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -test("pie().startAngle(θ₀).endAngle(θ₁).padAngle(δ)(data) restricts the pad angle to |θ₁ - θ₀| / data.length", () => { +it("pie().startAngle(θ₀).endAngle(θ₁).padAngle(δ)(data) restricts the pad angle to |θ₁ - θ₀| / data.length", () => { assert.deepStrictEqual(pie().startAngle(0).endAngle(Math.PI).padAngle(Infinity)([1, 2, 3]), [ {data: 1, value: 1, index: 2, startAngle: 2.0943951023931953, endAngle: 3.1415926535897930, padAngle: 1.0471975511965976}, {data: 2, value: 2, index: 1, startAngle: 1.0471975511965976, endAngle: 2.0943951023931953, padAngle: 1.0471975511965976}, @@ -173,7 +173,7 @@ test("pie().startAngle(θ₀).endAngle(θ₁).padAngle(δ)(data) restricts the p ]); }); -test("pie.sortValues(f) sorts arcs by value per the specified comparator function f", () => { +it("pie.sortValues(f) sorts arcs by value per the specified comparator function f", () => { const p = pie(); assert.deepStrictEqual(p.sortValues(function(a, b) { return a - b; })([1, 3, 2]), [ {data: 1, value: 1, index: 0, startAngle: 0.0000000000000000, endAngle: 1.0471975511965976, padAngle: 0}, @@ -188,7 +188,7 @@ test("pie.sortValues(f) sorts arcs by value per the specified comparator functio assert.strictEqual(p.sort(), null); }); -test("pie.sort(f) sorts arcs by data per the specified comparator function f", () => { +it("pie.sort(f) sorts arcs by data per the specified comparator function f", () => { const a = {valueOf: function() { return 1; }, name: "a"}; const b = {valueOf: function() { return 2; }, name: "b"}; const c = {valueOf: function() { return 3; }, name: "c"}; diff --git a/test/stack-test.js b/test/stack-test.js index bfa8e767..9a422baa 100644 --- a/test/stack-test.js +++ b/test/stack-test.js @@ -1,8 +1,8 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {stack, stackOffsetExpand, stackOffsetNone, stackOrderNone, stackOrderReverse} from "../src/index.js"; -test("stack() has the expected defaults", () => { +it("stack() has the expected defaults", () => { const s = stack(); assert.deepStrictEqual(s.keys()(), []); assert.strictEqual(s.value()({foo: 42}, "foo"), 42); @@ -10,7 +10,7 @@ test("stack() has the expected defaults", () => { assert.strictEqual(s.offset(), stackOffsetNone); }); -test("stack(data) computes the stacked series for the given data", () => { +it("stack(data) computes the stacked series for the given data", () => { const s = stack().keys([0, 1, 2, 3]); const data = [[1, 3, 5, 1], [2, 4, 2, 3], [1, 2, 4, 2]]; assert.deepStrictEqual(s(data), [ @@ -21,17 +21,17 @@ test("stack(data) computes the stacked series for the given data", () => { ]); }); -test("stack.keys(array) sets the array of constant keys", () => { +it("stack.keys(array) sets the array of constant keys", () => { const s = stack().keys(["0.0", "2.0", "4.0"]); assert.deepStrictEqual(s.keys()(), ["0.0", "2.0", "4.0"]); }); -test("stack.keys(function) sets the key accessor function", () => { +it("stack.keys(function) sets the key accessor function", () => { const s = stack().keys(function() { return "abc".split(""); }); assert.deepStrictEqual(s.keys()(), ["a", "b", "c"]); }); -test("stack(data, arguments…) passes the key accessor any additional arguments", () => { +it("stack(data, arguments…) passes the key accessor any additional arguments", () => { let A; let B; let k = function(data, a, b) { A = a, B = b; return Object.keys(data[0]); }; @@ -47,18 +47,18 @@ test("stack(data, arguments…) passes the key accessor any additional arguments assert.strictEqual(B, "bar"); }); -test("stack.value(number) sets the constant value", () => { +it("stack.value(number) sets the constant value", () => { const s = stack().value("42.0"); assert.strictEqual(s.value()(), 42); }); -test("stack.value(function) sets the value accessor function", () => { +it("stack.value(function) sets the value accessor function", () => { const v = function() { return 42; }; const s = stack().value(v); assert.strictEqual(s.value(), v); }); -test("stack(data) passes the value accessor datum, key, index and data", () => { +it("stack(data) passes the value accessor datum, key, index and data", () => { let actual; let v = function(d, k, i, data) { actual = {datum: d, key: k, index: i, data: data}; return 2; }; let s = stack().keys(["foo"]).value(v); @@ -67,20 +67,20 @@ test("stack(data) passes the value accessor datum, key, index and data", () => { assert.deepStrictEqual(actual, {datum: data[0], key: "foo", index: 0, data: data}); }); -test("stack(data) coerces the return value of the value accessor to a number", () => { +it("stack(data) coerces the return value of the value accessor to a number", () => { const v = function() { return "2.0"; }; const s = stack().keys(["foo"]).value(v); const data = [{foo: 1}]; assert.deepStrictEqual(s(data), [series([[0, 2]], data, "foo", 0)]); }); -test("stack.order(null) is equivalent to stack.order(stackOrderNone)", () => { +it("stack.order(null) is equivalent to stack.order(stackOrderNone)", () => { const s = stack().order(null); assert.strictEqual(s.order(), stackOrderNone); assert.strictEqual(typeof s.order(), "function"); }); -test("stack.order(function) sets the order function", () => { +it("stack.order(function) sets the order function", () => { const s = stack().keys([0, 1, 2, 3]).order(stackOrderReverse); const data = [[1, 3, 5, 1], [2, 4, 2, 3], [1, 2, 4, 2]]; assert.strictEqual(s.order(), stackOrderReverse); @@ -92,13 +92,13 @@ test("stack.order(function) sets the order function", () => { ]); }); -test("stack.offset(null) is equivalent to stack.offset(stackOffsetNone)", () => { +it("stack.offset(null) is equivalent to stack.offset(stackOffsetNone)", () => { const s = stack().offset(null); assert.strictEqual(s.offset(), stackOffsetNone); assert.strictEqual(typeof s.offset(), "function"); }); -test("stack.offset(function) sets the offset function", () => { +it("stack.offset(function) sets the offset function", () => { const s = stack().keys([0, 1, 2, 3]).offset(stackOffsetExpand); const data = [[1, 3, 5, 1], [2, 4, 2, 3], [1, 2, 4, 2]]; assert.strictEqual(s.offset(), stackOffsetExpand); diff --git a/test/symbol-test.js b/test/symbol-test.js index 5232691f..f5b8aff6 100644 --- a/test/symbol-test.js +++ b/test/symbol-test.js @@ -1,10 +1,10 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {symbol, symbolAsterisk, symbolCircle, symbolCross, symbolDiamond, symbolDiamond2, symbolPlus, symbolSquare, symbolSquare2, symbolStar, symbolTriangle, symbolTriangle2, symbolWye, symbolTimes} from "../src/index.js"; import {assertInDelta, assertPathEqual} from "./asserts.js"; import {polygonContext} from "./polygonContext.js"; -test("symbol() returns a default symbol shape", () => { +it("symbol() returns a default symbol shape", () => { const s = symbol(); assert.strictEqual(s.type()(), symbolCircle); assert.strictEqual(s.size()(), 64); @@ -12,21 +12,21 @@ test("symbol() returns a default symbol shape", () => { assertPathEqual(s(), "M4.513517,0A4.513517,4.513517,0,1,1,-4.513517,0A4.513517,4.513517,0,1,1,4.513517,0"); }); -test("symbol().size(f)(…) propagates the context and arguments to the specified function", () => { +it("symbol().size(f)(…) propagates the context and arguments to the specified function", () => { const expected = {that: {}, args: [42]}; let actual; symbol().size(function() { actual = {that: this, args: [].slice.call(arguments)}; return 64; }).apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -test("symbol().type(f)(…) propagates the context and arguments to the specified function", () => { +it("symbol().type(f)(…) propagates the context and arguments to the specified function", () => { const expected = {that: {}, args: [42]}; let actual; symbol().type(function() { actual = {that: this, args: [].slice.call(arguments)}; return symbolCircle; }).apply(expected.that, expected.args); assert.deepStrictEqual(actual, expected); }); -test("symbol.size(size) observes the specified size function", () => { +it("symbol.size(size) observes the specified size function", () => { const size = function(d, i) { return d.z * 2 + i; }, s = symbol().size(size); assert.strictEqual(s.size(), size); @@ -37,7 +37,7 @@ test("symbol.size(size) observes the specified size function", () => { assertPathEqual(s({z: 4 * Math.PI}, 2), "M2.938813,0A2.938813,2.938813,0,1,1,-2.938813,0A2.938813,2.938813,0,1,1,2.938813,0"); }); -test("symbol.size(size) observes the specified size constant", () => { +it("symbol.size(size) observes the specified size constant", () => { const s = symbol(); assert.strictEqual(s.size(42).size()(), 42); assertPathEqual(s.size(0)(), "M0,0"); @@ -45,122 +45,122 @@ test("symbol.size(size) observes the specified size constant", () => { assertPathEqual(s.size(4 * Math.PI)(), "M2,0A2,2,0,1,1,-2,0A2,2,0,1,1,2,0"); }); -test("symbol.type(symbolAsterisk) generates the expected path", () => { +it("symbol.type(symbolAsterisk) generates the expected path", () => { const s = symbol().type(symbolAsterisk).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0L0,0M0,0L0,0M0,0L0,0"); assertPathEqual(s(20), "M0,2.705108L0,-2.705108M-2.342692,-1.352554L2.342692,1.352554M-2.342692,1.352554L2.342692,-1.352554"); }); -test("symbol.type(symbolCircle) generates the expected path", () => { +it("symbol.type(symbolCircle) generates the expected path", () => { const s = symbol().type(symbolCircle).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0"); assertPathEqual(s(20), "M2.523133,0A2.523133,2.523133,0,1,1,-2.523133,0A2.523133,2.523133,0,1,1,2.523133,0"); }); -test("symbol.type(symbolCross) generates a polygon with the specified size", () => { +it("symbol.type(symbolCross) generates a polygon with the specified size", () => { const p = polygonContext(), s = symbol().type(symbolCross).context(p); s.size(1)(); assertInDelta(p.area(), 1); s.size(240)(); assertInDelta(p.area(), 240); }); -test("symbol.type(symbolCross) generates the expected path", () => { +it("symbol.type(symbolCross) generates the expected path", () => { const s = symbol().type(symbolCross).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0L0,0L0,0L0,0L0,0L0,0L0,0L0,0L0,0L0,0L0,0L0,0Z"); assertPathEqual(s(20), "M-3,-1L-1,-1L-1,-3L1,-3L1,-1L3,-1L3,1L1,1L1,3L-1,3L-1,1L-3,1Z"); }); -test("symbol.type(symbolDiamond) generates a polygon with the specified size", () => { +it("symbol.type(symbolDiamond) generates a polygon with the specified size", () => { const p = polygonContext(), s = symbol().type(symbolDiamond).context(p); s.size(1)(); assertInDelta(p.area(), 1); s.size(240)(); assertInDelta(p.area(), 240); }); -test("symbol.type(symbolDiamond) generates the expected path", () => { +it("symbol.type(symbolDiamond) generates the expected path", () => { const s = symbol().type(symbolDiamond).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0L0,0L0,0L0,0Z"); assertPathEqual(s(10), "M0,-2.942831L1.699044,0L0,2.942831L-1.699044,0Z"); }); -test("symbol.type(symbolDiamond2) generates the expected path", () => { +it("symbol.type(symbolDiamond2) generates the expected path", () => { const s = symbol().type(symbolDiamond2).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0L0,0L0,0L0,0Z"); assertPathEqual(s(20), "M0,-2.800675L2.800675,0L0,2.800675L-2.800675,0Z"); }); -test("symbol.type(symbolPlus) generates the expected path", () => { +it("symbol.type(symbolPlus) generates the expected path", () => { const s = symbol().type(symbolPlus).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0L0,0M0,0L0,0"); assertPathEqual(s(20), "M-3.714814,0L3.714814,0M0,3.714814L0,-3.714814"); }); -test("symbol.type(symbolStar) generates a polygon with the specified size", () => { +it("symbol.type(symbolStar) generates a polygon with the specified size", () => { const p = polygonContext(), s = symbol().type(symbolStar).context(p); s.size(1)(); assertInDelta(p.area(), 1); s.size(240)(); assertInDelta(p.area(), 240); }); -test("symbol.type(symbolStar) generates the expected path", () => { +it("symbol.type(symbolStar) generates the expected path", () => { const s = symbol().type(symbolStar).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0L0,0L0,0L0,0L0,0L0,0L0,0L0,0L0,0L0,0Z"); assertPathEqual(s(10), "M0,-2.984649L0.670095,-0.922307L2.838570,-0.922307L1.084237,0.352290L1.754333,2.414632L0,1.140035L-1.754333,2.414632L-1.084237,0.352290L-2.838570,-0.922307L-0.670095,-0.922307Z"); }); -test("symbol.type(symbolSquare) generates a polygon with the specified size", () => { +it("symbol.type(symbolSquare) generates a polygon with the specified size", () => { const p = polygonContext(), s = symbol().type(symbolSquare).context(p); s.size(1)(); assertInDelta(p.area(), 1); s.size(240)(); assertInDelta(p.area(), 240); }); -test("symbol.type(symbolSquare) generates the expected path", () => { +it("symbol.type(symbolSquare) generates the expected path", () => { const s = symbol().type(symbolSquare).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0h0v0h0Z"); assertPathEqual(s(4), "M-1,-1h2v2h-2Z"); assertPathEqual(s(16), "M-2,-2h4v4h-4Z"); }); -test("symbol.type(symbolSquare2) generates the expected path", () => { +it("symbol.type(symbolSquare2) generates the expected path", () => { const s = symbol().type(symbolSquare2).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0L0,0L0,0L0,0Z"); assertPathEqual(s(20), "M1.981603,1.981603L1.981603,-1.981603L-1.981603,-1.981603L-1.981603,1.981603Z"); }); -test("symbol.type(symbolTriangle) generates a polygon with the specified size", () => { +it("symbol.type(symbolTriangle) generates a polygon with the specified size", () => { const p = polygonContext(), s = symbol().type(symbolTriangle).context(p); s.size(1)(); assertInDelta(p.area(), 1); s.size(240)(); assertInDelta(p.area(), 240); }); -test("symbol.type(symbolTriangle) generates the expected path", () => { +it("symbol.type(symbolTriangle) generates the expected path", () => { const s = symbol().type(symbolTriangle).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0L0,0L0,0Z"); assertPathEqual(s(10), "M0,-2.774528L2.402811,1.387264L-2.402811,1.387264Z"); }); -test("symbol.type(symbolTriangle2) generates the expected path", () => { +it("symbol.type(symbolTriangle2) generates the expected path", () => { const s = symbol().type(symbolTriangle2).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0L0,0L0,0Z"); assertPathEqual(s(20), "M0,-3.051786L2.642924,1.525893L-2.642924,1.525893Z"); }); -test("symbol.type(symbolWye) generates a polygon with the specified size", () => { +it("symbol.type(symbolWye) generates a polygon with the specified size", () => { const p = polygonContext(), s = symbol().type(symbolWye).context(p); s.size(1)(); assertInDelta(p.area(), 1); s.size(240)(); assertInDelta(p.area(), 240); }); -test("symbol.type(symbolWye) generates the expected path", () => { +it("symbol.type(symbolWye) generates the expected path", () => { const s = symbol().type(symbolWye).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0L0,0L0,0L0,0L0,0L0,0L0,0L0,0L0,0Z"); assertPathEqual(s(10), "M0.853360,0.492688L0.853360,2.199408L-0.853360,2.199408L-0.853360,0.492688L-2.331423,-0.360672L-1.478063,-1.838735L0,-0.985375L1.478063,-1.838735L2.331423,-0.360672Z"); }); -test("symbol.type(symbolTimes) generates the expected path", () => { +it("symbol.type(symbolTimes) generates the expected path", () => { const s = symbol().type(symbolTimes).size(function(d) { return d; }); assertPathEqual(s(0), "M0,0L0,0M0,0L0,0"); assertPathEqual(s(20), "M-2.647561,-2.647561L2.647561,2.647561M-2.647561,2.647561L2.647561,-2.647561"); }); -test("symbol(type, size) is equivalent to symbol().type(type).size(size)", () => { +it("symbol(type, size) is equivalent to symbol().type(type).size(size)", () => { const s0 = symbol().type(symbolCross).size(16); const s1 = symbol(symbolCross, 16); assert.strictEqual(s0(), s1()); diff --git a/test/symbols-test.js b/test/symbols-test.js index 919a70cf..43807772 100644 --- a/test/symbols-test.js +++ b/test/symbols-test.js @@ -1,12 +1,12 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {symbols, symbolsFill, symbolsStroke, symbolCircle, symbolCross, symbolDiamond, symbolSquare, symbolStar, symbolTriangle, symbolWye, symbolPlus, symbolTimes, symbolTriangle2, symbolAsterisk, symbolSquare2, symbolDiamond2} from "../src/index.js"; -test("symbols is a deprecated alias for symbolsFill", () => { +it("symbols is a deprecated alias for symbolsFill", () => { assert.strictEqual(symbols, symbolsFill); }); -test("symbolsFill is the array of symbol types", () => { +it("symbolsFill is the array of symbol types", () => { assert.deepStrictEqual(symbolsFill, [ symbolCircle, symbolCross, @@ -18,7 +18,7 @@ test("symbolsFill is the array of symbol types", () => { ]); }); -test("symbolsStroke is the array of symbol types", () => { +it("symbolsStroke is the array of symbol types", () => { assert.deepStrictEqual(symbolsStroke, [ symbolCircle, symbolPlus, From db137eaf0122b56bd1fb8ac508ba294cee824add Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Mon, 2 Nov 2026 18:31:33 -0800 Subject: [PATCH 05/10] node: imports Co-Authored-By: Claude Opus 5.5 --- test/arc-test.js | 2 +- test/area-test.js | 2 +- test/areaRadial-test.js | 2 +- test/asserts.js | 2 +- test/curve/basis-test.js | 2 +- test/curve/basisClosed-test.js | 2 +- test/curve/basisOpen-test.js | 2 +- test/curve/bumpX-test.js | 2 +- test/curve/bumpY-test.js | 2 +- test/curve/bundle-test.js | 2 +- test/curve/cardinal-test.js | 2 +- test/curve/cardinalClosed-test.js | 2 +- test/curve/cardinalOpen-test.js | 2 +- test/curve/catmullRom-test.js | 2 +- test/curve/catmullRomClosed-test.js | 2 +- test/curve/catmullRomOpen-test.js | 2 +- test/curve/linear-test.js | 2 +- test/curve/linearClosed-test.js | 2 +- test/curve/monotoneX-test.js | 2 +- test/curve/monotoneY-test.js | 2 +- test/curve/natural-test.js | 2 +- test/curve/step-test.js | 2 +- test/curve/stepAfter-test.js | 2 +- test/curve/stepBefore-test.js | 2 +- test/line-test.js | 2 +- test/lineRadial-test.js | 2 +- test/link-test.js | 2 +- test/offset/diverging-test.js | 2 +- test/offset/expand-test.js | 2 +- test/offset/none-test.js | 2 +- test/offset/silhouette-test.js | 2 +- test/offset/wiggle-test.js | 2 +- test/order/appearance-test.js | 2 +- test/order/ascending-test.js | 2 +- test/order/descending-test.js | 2 +- test/order/insideOut-test.js | 2 +- test/order/none-test.js | 2 +- test/order/reverse-test.js | 2 +- test/pie-test.js | 4 ++-- test/stack-test.js | 2 +- test/symbol-test.js | 2 +- test/symbols-test.js | 2 +- 42 files changed, 43 insertions(+), 43 deletions(-) diff --git a/test/arc-test.js b/test/arc-test.js index b6d97d15..3f9f5a87 100644 --- a/test/arc-test.js +++ b/test/arc-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {arc} from "../src/index.js"; import {assertPathEqual} from "./asserts.js"; diff --git a/test/area-test.js b/test/area-test.js index 5c1d98d6..700d73db 100644 --- a/test/area-test.js +++ b/test/area-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {area, curveCardinal, curveLinear} from "../src/index.js"; import {assertPathEqual} from "./asserts.js"; diff --git a/test/areaRadial-test.js b/test/areaRadial-test.js index c04685d4..be38e14a 100644 --- a/test/areaRadial-test.js +++ b/test/areaRadial-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {areaRadial, curveCardinal, curveLinear} from "../src/index.js"; import {assertPathEqual} from "./asserts.js"; diff --git a/test/asserts.js b/test/asserts.js index dddc667d..858c737e 100644 --- a/test/asserts.js +++ b/test/asserts.js @@ -1,4 +1,4 @@ -import assert from "assert"; +import assert from "node:assert"; export function assertPathEqual(actual, expected) { assert.strictEqual(normalizePath(actual + ""), normalizePath(expected + "")); diff --git a/test/curve/basis-test.js b/test/curve/basis-test.js index 3ea64529..896f2cc5 100644 --- a/test/curve/basis-test.js +++ b/test/curve/basis-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {area, line, curveBasis} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; diff --git a/test/curve/basisClosed-test.js b/test/curve/basisClosed-test.js index b44634e8..291e09ce 100644 --- a/test/curve/basisClosed-test.js +++ b/test/curve/basisClosed-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {line, curveBasisClosed} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; diff --git a/test/curve/basisOpen-test.js b/test/curve/basisOpen-test.js index ef7a2365..51660280 100644 --- a/test/curve/basisOpen-test.js +++ b/test/curve/basisOpen-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {area, line, curveBasisOpen} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; diff --git a/test/curve/bumpX-test.js b/test/curve/bumpX-test.js index cf3e3abd..a031f694 100644 --- a/test/curve/bumpX-test.js +++ b/test/curve/bumpX-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {area, line, curveBumpX} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; diff --git a/test/curve/bumpY-test.js b/test/curve/bumpY-test.js index 065827e2..40017568 100644 --- a/test/curve/bumpY-test.js +++ b/test/curve/bumpY-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {area, line, curveBumpY} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; diff --git a/test/curve/bundle-test.js b/test/curve/bundle-test.js index 4a1bddfc..18494505 100644 --- a/test/curve/bundle-test.js +++ b/test/curve/bundle-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {line, curveBundle} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; diff --git a/test/curve/cardinal-test.js b/test/curve/cardinal-test.js index fc742a3c..5ba5751d 100644 --- a/test/curve/cardinal-test.js +++ b/test/curve/cardinal-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {area, line, curveCardinal} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; diff --git a/test/curve/cardinalClosed-test.js b/test/curve/cardinalClosed-test.js index 9ea50cfd..82041e5a 100644 --- a/test/curve/cardinalClosed-test.js +++ b/test/curve/cardinalClosed-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {area, line, curveCardinalClosed} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; diff --git a/test/curve/cardinalOpen-test.js b/test/curve/cardinalOpen-test.js index a277444d..5643543d 100644 --- a/test/curve/cardinalOpen-test.js +++ b/test/curve/cardinalOpen-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {area, line, curveCardinalOpen} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; diff --git a/test/curve/catmullRom-test.js b/test/curve/catmullRom-test.js index 1e4f4916..aa3bcf1e 100644 --- a/test/curve/catmullRom-test.js +++ b/test/curve/catmullRom-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {area, line, curveCatmullRom} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; diff --git a/test/curve/catmullRomClosed-test.js b/test/curve/catmullRomClosed-test.js index 99618e35..89f1278c 100644 --- a/test/curve/catmullRomClosed-test.js +++ b/test/curve/catmullRomClosed-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {area, line, curveCatmullRomClosed} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; diff --git a/test/curve/catmullRomOpen-test.js b/test/curve/catmullRomOpen-test.js index 470593df..23eecd12 100644 --- a/test/curve/catmullRomOpen-test.js +++ b/test/curve/catmullRomOpen-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {area, line, curveCatmullRomOpen} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; diff --git a/test/curve/linear-test.js b/test/curve/linear-test.js index b5671879..20535bd3 100644 --- a/test/curve/linear-test.js +++ b/test/curve/linear-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {area, line, curveLinear} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; diff --git a/test/curve/linearClosed-test.js b/test/curve/linearClosed-test.js index ecf41e79..25f3192d 100644 --- a/test/curve/linearClosed-test.js +++ b/test/curve/linearClosed-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {line, curveLinearClosed} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; diff --git a/test/curve/monotoneX-test.js b/test/curve/monotoneX-test.js index 02c2157c..665782a5 100644 --- a/test/curve/monotoneX-test.js +++ b/test/curve/monotoneX-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {area, line, curveMonotoneX} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; diff --git a/test/curve/monotoneY-test.js b/test/curve/monotoneY-test.js index d4b2ac31..c426140d 100644 --- a/test/curve/monotoneY-test.js +++ b/test/curve/monotoneY-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {area, line, curveMonotoneY} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; diff --git a/test/curve/natural-test.js b/test/curve/natural-test.js index 0966bcce..ea431fae 100644 --- a/test/curve/natural-test.js +++ b/test/curve/natural-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {area, line, curveNatural} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; diff --git a/test/curve/step-test.js b/test/curve/step-test.js index f681d495..df89eeba 100644 --- a/test/curve/step-test.js +++ b/test/curve/step-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {area, line, curveStep} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; diff --git a/test/curve/stepAfter-test.js b/test/curve/stepAfter-test.js index 98774782..793876b4 100644 --- a/test/curve/stepAfter-test.js +++ b/test/curve/stepAfter-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {area, line, curveStepAfter} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; diff --git a/test/curve/stepBefore-test.js b/test/curve/stepBefore-test.js index bf1195a3..e13d16fd 100644 --- a/test/curve/stepBefore-test.js +++ b/test/curve/stepBefore-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {area, line, curveStepBefore} from "../../src/index.js"; import {assertPathEqual} from "../asserts.js"; diff --git a/test/line-test.js b/test/line-test.js index f0d6332f..55b8e13e 100644 --- a/test/line-test.js +++ b/test/line-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {line, curveLinear, curveLinearClosed} from "../src/index.js"; import {assertPathEqual} from "./asserts.js"; diff --git a/test/lineRadial-test.js b/test/lineRadial-test.js index 4372e0c0..b6a7c7db 100644 --- a/test/lineRadial-test.js +++ b/test/lineRadial-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {curveLinear, lineRadial} from "../src/index.js"; import {assertPathEqual} from "./asserts.js"; diff --git a/test/link-test.js b/test/link-test.js index 7dc98729..a4a86e36 100644 --- a/test/link-test.js +++ b/test/link-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {pathRound} from "d3-path"; import {link, linkHorizontal, linkVertical, linkRadial} from "../src/index.js"; import {curveLinear, curveBumpX, curveBumpY} from "../src/index.js"; diff --git a/test/offset/diverging-test.js b/test/offset/diverging-test.js index 660d7edd..f630a7d5 100644 --- a/test/offset/diverging-test.js +++ b/test/offset/diverging-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {stackOffsetDiverging, stackOrderNone, stackOrderReverse} from "../../src/index.js"; it("stackOffsetDiverging(series, order) applies a zero baseline, ignoring existing offsets", () => { diff --git a/test/offset/expand-test.js b/test/offset/expand-test.js index 021188ec..e2007aaf 100644 --- a/test/offset/expand-test.js +++ b/test/offset/expand-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {stackOffsetExpand, stackOrderNone, stackOrderReverse} from "../../src/index.js"; it("stackOffsetExpand(series, order) expands to fill [0, 1]", () => { diff --git a/test/offset/none-test.js b/test/offset/none-test.js index a01bc168..a6d358d9 100644 --- a/test/offset/none-test.js +++ b/test/offset/none-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {stackOffsetNone, stackOrderNone, stackOrderReverse} from "../../src/index.js"; it("stackOffsetNone(series, order) stacks upon the first layer’s existing positions", () => { diff --git a/test/offset/silhouette-test.js b/test/offset/silhouette-test.js index 352bd102..f41ae5bc 100644 --- a/test/offset/silhouette-test.js +++ b/test/offset/silhouette-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {stackOffsetSilhouette, stackOrderNone, stackOrderReverse} from "../../src/index.js"; it("stackOffsetSilhouette(series, order) centers the stack around zero", () => { diff --git a/test/offset/wiggle-test.js b/test/offset/wiggle-test.js index 0f0ce104..f4caeb50 100644 --- a/test/offset/wiggle-test.js +++ b/test/offset/wiggle-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {stackOffsetWiggle, stackOrderNone, stackOrderReverse} from "../../src/index.js"; it("stackOffsetWiggle(series, order) minimizes weighted wiggle", () => { diff --git a/test/order/appearance-test.js b/test/order/appearance-test.js index 5a73f03c..e2c07383 100644 --- a/test/order/appearance-test.js +++ b/test/order/appearance-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {stackOrderAppearance} from "../../src/index.js"; it("stackOrderAppearance(series) returns an order by appearance", () => { diff --git a/test/order/ascending-test.js b/test/order/ascending-test.js index 61a828a8..edb64ad5 100644 --- a/test/order/ascending-test.js +++ b/test/order/ascending-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {stackOrderAscending} from "../../src/index.js"; it("stackOrderAscending(series) returns an order by sum", () => { diff --git a/test/order/descending-test.js b/test/order/descending-test.js index 0f21962a..d93f89ca 100644 --- a/test/order/descending-test.js +++ b/test/order/descending-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {stackOrderDescending} from "../../src/index.js"; it("stackOrderDescending(series) returns an order by sum", () => { diff --git a/test/order/insideOut-test.js b/test/order/insideOut-test.js index 398d1bff..45c0cf4d 100644 --- a/test/order/insideOut-test.js +++ b/test/order/insideOut-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {stackOrderInsideOut} from "../../src/index.js"; it("stackOrderInsideOut(series) returns an order by appearance", () => { diff --git a/test/order/none-test.js b/test/order/none-test.js index 83a29b8a..20434e94 100644 --- a/test/order/none-test.js +++ b/test/order/none-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {stackOrderNone} from "../../src/index.js"; it("stackOrderNone(series) returns [0, 1, … series.length - 1]", () => { diff --git a/test/order/reverse-test.js b/test/order/reverse-test.js index 860b9743..652821e6 100644 --- a/test/order/reverse-test.js +++ b/test/order/reverse-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {stackOrderReverse} from "../../src/index.js"; it("stackOrderReverse(series) returns [series.length - 1, series.length - 2, … 0]", () => { diff --git a/test/pie-test.js b/test/pie-test.js index 203d8fa7..4d77666a 100644 --- a/test/pie-test.js +++ b/test/pie-test.js @@ -1,6 +1,6 @@ -import {it} from "vitest"; /* eslint-disable no-loss-of-precision */ -import assert from "assert"; +import assert from "node:assert"; +import {it} from "vitest"; import {pie} from "../src/index.js"; it("pie() returns a default pie shape", () => { diff --git a/test/stack-test.js b/test/stack-test.js index 9a422baa..34de5696 100644 --- a/test/stack-test.js +++ b/test/stack-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {stack, stackOffsetExpand, stackOffsetNone, stackOrderNone, stackOrderReverse} from "../src/index.js"; it("stack() has the expected defaults", () => { diff --git a/test/symbol-test.js b/test/symbol-test.js index f5b8aff6..d1eff744 100644 --- a/test/symbol-test.js +++ b/test/symbol-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {symbol, symbolAsterisk, symbolCircle, symbolCross, symbolDiamond, symbolDiamond2, symbolPlus, symbolSquare, symbolSquare2, symbolStar, symbolTriangle, symbolTriangle2, symbolWye, symbolTimes} from "../src/index.js"; import {assertInDelta, assertPathEqual} from "./asserts.js"; import {polygonContext} from "./polygonContext.js"; diff --git a/test/symbols-test.js b/test/symbols-test.js index 43807772..d14ab439 100644 --- a/test/symbols-test.js +++ b/test/symbols-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {symbols, symbolsFill, symbolsStroke, symbolCircle, symbolCross, symbolDiamond, symbolSquare, symbolStar, symbolTriangle, symbolWye, symbolPlus, symbolTimes, symbolTriangle2, symbolAsterisk, symbolSquare2, symbolDiamond2} from "../src/index.js"; it("symbols is a deprecated alias for symbolsFill", () => { From de9e2bd7aed12163b8c7e50bd7eee62234f0e1e1 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Mon, 2 Nov 2026 19:00:08 -0800 Subject: [PATCH 06/10] eslint config Co-Authored-By: Claude Opus 5.5 --- eslint.config.js | 8 +++++--- package.json | 2 +- rollup.config.js | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index d1afaa59..55dba4c4 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -3,8 +3,10 @@ import globals from "globals"; import {defineConfig} from "eslint/config"; export default defineConfig([ - {files: ["**/*.{js,ts,jsx,tsx}"], plugins: {js}, extends: ["js/recommended"]}, - {files: ["**/*.{js,ts,jsx,tsx}"], languageOptions: {globals: globals.browser}}, + {ignores: ["dist/"]}, + {files: ["**/*.{js,ts}"], plugins: {js}, extends: ["js/recommended"]}, + {files: ["**/*.{js,ts}"], languageOptions: {globals: globals.node}}, {languageOptions: {ecmaVersion: 2019, sourceType: "module"}}, - {rules: {"no-cond-assign": 0}} + {rules: {"no-cond-assign": 0}}, + {files: ["rollup.config.js"], languageOptions: {ecmaVersion: 2026}} ]); diff --git a/package.json b/package.json index 28b012f2..2ff45e7e 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ }, "scripts": { "test": "vitest", - "lint": "eslint src test", + "lint": "eslint", "prepublishOnly": "rm -rf dist && rollup -c" }, "engines": { diff --git a/rollup.config.js b/rollup.config.js index a13a979b..d05a0a31 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -57,7 +57,7 @@ export default [ config({ output: { file: `dist/${meta.name}.js`, - format: "umd", + format: "umd" } }), config({ From cd42b4931a835efba570a330f5d8cd103f22716b Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Mon, 2 Nov 2026 19:05:24 -0800 Subject: [PATCH 07/10] browser globals for src Co-Authored-By: Claude Opus 5.5 --- eslint.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eslint.config.js b/eslint.config.js index 55dba4c4..2f1c554d 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -5,7 +5,7 @@ import {defineConfig} from "eslint/config"; export default defineConfig([ {ignores: ["dist/"]}, {files: ["**/*.{js,ts}"], plugins: {js}, extends: ["js/recommended"]}, - {files: ["**/*.{js,ts}"], languageOptions: {globals: globals.node}}, + {files: ["src/**/*.{js,ts}"], languageOptions: {globals: globals.browser}}, {languageOptions: {ecmaVersion: 2019, sourceType: "module"}}, {rules: {"no-cond-assign": 0}}, {files: ["rollup.config.js"], languageOptions: {ecmaVersion: 2026}} From d5930e568953946d32a02435b2c91b8c740d3f54 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Mon, 2 Nov 2026 20:18:29 -0800 Subject: [PATCH 08/10] 3.2.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2ff45e7e..78548d69 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "d3-shape", - "version": "3.2.0", + "version": "3.2.1", "description": "Graphical primitives for visualization, such as lines and areas.", "homepage": "https://d3js.org/d3-shape/", "repository": { From 1a6afa24b160aea9d9ecb22f52d5ea1b8417b488 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Mon, 2 Nov 2026 20:19:28 -0800 Subject: [PATCH 09/10] d3-shape alias --- test/arc-test.js | 2 +- test/area-test.js | 2 +- test/areaRadial-test.js | 2 +- test/line-test.js | 2 +- test/lineRadial-test.js | 2 +- test/link-test.js | 4 ++-- test/pie-test.js | 2 +- test/stack-test.js | 2 +- test/symbol-test.js | 2 +- test/symbols-test.js | 2 +- vitest.config.js | 5 ++++- 11 files changed, 15 insertions(+), 12 deletions(-) diff --git a/test/arc-test.js b/test/arc-test.js index 3f9f5a87..4e06621f 100644 --- a/test/arc-test.js +++ b/test/arc-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {arc} from "../src/index.js"; +import {arc} from "d3-shape"; import {assertPathEqual} from "./asserts.js"; it("arc().innerRadius(f)(…) propagates the context and arguments to the specified function f", () => { diff --git a/test/area-test.js b/test/area-test.js index 700d73db..1de62ccc 100644 --- a/test/area-test.js +++ b/test/area-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {area, curveCardinal, curveLinear} from "../src/index.js"; +import {area, curveCardinal, curveLinear} from "d3-shape"; import {assertPathEqual} from "./asserts.js"; it("area() returns a default area shape", () => { diff --git a/test/areaRadial-test.js b/test/areaRadial-test.js index be38e14a..66856c87 100644 --- a/test/areaRadial-test.js +++ b/test/areaRadial-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {areaRadial, curveCardinal, curveLinear} from "../src/index.js"; +import {areaRadial, curveCardinal, curveLinear} from "d3-shape"; import {assertPathEqual} from "./asserts.js"; it("areaRadial() returns a default radial area shape", () => { diff --git a/test/line-test.js b/test/line-test.js index 55b8e13e..145ac98a 100644 --- a/test/line-test.js +++ b/test/line-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {line, curveLinear, curveLinearClosed} from "../src/index.js"; +import {line, curveLinear, curveLinearClosed} from "d3-shape"; import {assertPathEqual} from "./asserts.js"; it("line() returns a default line shape", () => { diff --git a/test/lineRadial-test.js b/test/lineRadial-test.js index b6a7c7db..4e78ea4c 100644 --- a/test/lineRadial-test.js +++ b/test/lineRadial-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {curveLinear, lineRadial} from "../src/index.js"; +import {curveLinear, lineRadial} from "d3-shape"; import {assertPathEqual} from "./asserts.js"; it("lineRadial() returns a default radial line shape", () => { diff --git a/test/link-test.js b/test/link-test.js index a4a86e36..7e38036a 100644 --- a/test/link-test.js +++ b/test/link-test.js @@ -1,8 +1,8 @@ import assert from "node:assert"; import {it} from "vitest"; import {pathRound} from "d3-path"; -import {link, linkHorizontal, linkVertical, linkRadial} from "../src/index.js"; -import {curveLinear, curveBumpX, curveBumpY} from "../src/index.js"; +import {link, linkHorizontal, linkVertical, linkRadial} from "d3-shape"; +import {curveLinear, curveBumpX, curveBumpY} from "d3-shape"; import {assertPathEqual} from "./asserts.js"; it("link(curve) returns a default link with the given curve", () => { diff --git a/test/pie-test.js b/test/pie-test.js index 4d77666a..5cc058fc 100644 --- a/test/pie-test.js +++ b/test/pie-test.js @@ -1,7 +1,7 @@ /* eslint-disable no-loss-of-precision */ import assert from "node:assert"; import {it} from "vitest"; -import {pie} from "../src/index.js"; +import {pie} from "d3-shape"; it("pie() returns a default pie shape", () => { const p = pie(); diff --git a/test/stack-test.js b/test/stack-test.js index 34de5696..9a86496d 100644 --- a/test/stack-test.js +++ b/test/stack-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {stack, stackOffsetExpand, stackOffsetNone, stackOrderNone, stackOrderReverse} from "../src/index.js"; +import {stack, stackOffsetExpand, stackOffsetNone, stackOrderNone, stackOrderReverse} from "d3-shape"; it("stack() has the expected defaults", () => { const s = stack(); diff --git a/test/symbol-test.js b/test/symbol-test.js index d1eff744..c6f68546 100644 --- a/test/symbol-test.js +++ b/test/symbol-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {symbol, symbolAsterisk, symbolCircle, symbolCross, symbolDiamond, symbolDiamond2, symbolPlus, symbolSquare, symbolSquare2, symbolStar, symbolTriangle, symbolTriangle2, symbolWye, symbolTimes} from "../src/index.js"; +import {symbol, symbolAsterisk, symbolCircle, symbolCross, symbolDiamond, symbolDiamond2, symbolPlus, symbolSquare, symbolSquare2, symbolStar, symbolTriangle, symbolTriangle2, symbolWye, symbolTimes} from "d3-shape"; import {assertInDelta, assertPathEqual} from "./asserts.js"; import {polygonContext} from "./polygonContext.js"; diff --git a/test/symbols-test.js b/test/symbols-test.js index d14ab439..df4f3fc4 100644 --- a/test/symbols-test.js +++ b/test/symbols-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {symbols, symbolsFill, symbolsStroke, symbolCircle, symbolCross, symbolDiamond, symbolSquare, symbolStar, symbolTriangle, symbolWye, symbolPlus, symbolTimes, symbolTriangle2, symbolAsterisk, symbolSquare2, symbolDiamond2} from "../src/index.js"; +import {symbols, symbolsFill, symbolsStroke, symbolCircle, symbolCross, symbolDiamond, symbolSquare, symbolStar, symbolTriangle, symbolWye, symbolPlus, symbolTimes, symbolTriangle2, symbolAsterisk, symbolSquare2, symbolDiamond2} from "d3-shape"; it("symbols is a deprecated alias for symbolsFill", () => { assert.strictEqual(symbols, symbolsFill); diff --git a/vitest.config.js b/vitest.config.js index b7280506..51943cde 100644 --- a/vitest.config.js +++ b/vitest.config.js @@ -1,3 +1,6 @@ import {defineConfig} from "vitest/config"; -export default defineConfig({test: {include: ["test/**/*-test.js"]}}); +export default defineConfig({ + resolve: {alias: {"d3-shape": "src/index.js"}}, + test: {include: ["test/**/*-test.js"]} +}); From 247964dd13be2c3f776b582a91b37d01886b7788 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Mon, 2 Nov 2026 20:20:39 -0800 Subject: [PATCH 10/10] more d3-shape alias --- test/curve/basis-test.js | 2 +- test/curve/basisClosed-test.js | 2 +- test/curve/basisOpen-test.js | 2 +- test/curve/bumpX-test.js | 2 +- test/curve/bumpY-test.js | 2 +- test/curve/bundle-test.js | 2 +- test/curve/cardinal-test.js | 2 +- test/curve/cardinalClosed-test.js | 2 +- test/curve/cardinalOpen-test.js | 2 +- test/curve/catmullRom-test.js | 2 +- test/curve/catmullRomClosed-test.js | 2 +- test/curve/catmullRomOpen-test.js | 2 +- test/curve/linear-test.js | 2 +- test/curve/linearClosed-test.js | 2 +- test/curve/monotoneX-test.js | 2 +- test/curve/monotoneY-test.js | 2 +- test/curve/natural-test.js | 2 +- test/curve/step-test.js | 2 +- test/curve/stepAfter-test.js | 2 +- test/curve/stepBefore-test.js | 2 +- test/offset/diverging-test.js | 2 +- test/offset/expand-test.js | 2 +- test/offset/none-test.js | 2 +- test/offset/silhouette-test.js | 2 +- test/offset/wiggle-test.js | 2 +- test/order/appearance-test.js | 2 +- test/order/ascending-test.js | 2 +- test/order/descending-test.js | 2 +- test/order/insideOut-test.js | 2 +- test/order/none-test.js | 2 +- test/order/reverse-test.js | 2 +- 31 files changed, 31 insertions(+), 31 deletions(-) diff --git a/test/curve/basis-test.js b/test/curve/basis-test.js index 896f2cc5..a6827f6e 100644 --- a/test/curve/basis-test.js +++ b/test/curve/basis-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {area, line, curveBasis} from "../../src/index.js"; +import {area, line, curveBasis} from "d3-shape"; import {assertPathEqual} from "../asserts.js"; it("line.curve(curveBasis)(data) generates the expected path", () => { diff --git a/test/curve/basisClosed-test.js b/test/curve/basisClosed-test.js index 291e09ce..dc2790aa 100644 --- a/test/curve/basisClosed-test.js +++ b/test/curve/basisClosed-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {line, curveBasisClosed} from "../../src/index.js"; +import {line, curveBasisClosed} from "d3-shape"; import {assertPathEqual} from "../asserts.js"; it("line.curve(curveBasisClosed)(data) generates the expected path", () => { diff --git a/test/curve/basisOpen-test.js b/test/curve/basisOpen-test.js index 51660280..37757df0 100644 --- a/test/curve/basisOpen-test.js +++ b/test/curve/basisOpen-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {area, line, curveBasisOpen} from "../../src/index.js"; +import {area, line, curveBasisOpen} from "d3-shape"; import {assertPathEqual} from "../asserts.js"; it("line.curve(curveBasisOpen)(data) generates the expected path", () => { diff --git a/test/curve/bumpX-test.js b/test/curve/bumpX-test.js index a031f694..d32ec02c 100644 --- a/test/curve/bumpX-test.js +++ b/test/curve/bumpX-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {area, line, curveBumpX} from "../../src/index.js"; +import {area, line, curveBumpX} from "d3-shape"; import {assertPathEqual} from "../asserts.js"; it("line.curve(curveBumpX)(data) generates the expected path", () => { diff --git a/test/curve/bumpY-test.js b/test/curve/bumpY-test.js index 40017568..188ba131 100644 --- a/test/curve/bumpY-test.js +++ b/test/curve/bumpY-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {area, line, curveBumpY} from "../../src/index.js"; +import {area, line, curveBumpY} from "d3-shape"; import {assertPathEqual} from "../asserts.js"; it("line.curve(curveBumpY)(data) generates the expected path", () => { diff --git a/test/curve/bundle-test.js b/test/curve/bundle-test.js index 18494505..7ae7794f 100644 --- a/test/curve/bundle-test.js +++ b/test/curve/bundle-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {line, curveBundle} from "../../src/index.js"; +import {line, curveBundle} from "d3-shape"; import {assertPathEqual} from "../asserts.js"; it("line.curve(curveBundle) uses a default beta of 0.85", () => { diff --git a/test/curve/cardinal-test.js b/test/curve/cardinal-test.js index 5ba5751d..ffe293b1 100644 --- a/test/curve/cardinal-test.js +++ b/test/curve/cardinal-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {area, line, curveCardinal} from "../../src/index.js"; +import {area, line, curveCardinal} from "d3-shape"; import {assertPathEqual} from "../asserts.js"; it("line.curve(curveCardinal)(data) generates the expected path", () => { diff --git a/test/curve/cardinalClosed-test.js b/test/curve/cardinalClosed-test.js index 82041e5a..f231e23a 100644 --- a/test/curve/cardinalClosed-test.js +++ b/test/curve/cardinalClosed-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {area, line, curveCardinalClosed} from "../../src/index.js"; +import {area, line, curveCardinalClosed} from "d3-shape"; import {assertPathEqual} from "../asserts.js"; it("line.curve(curveCardinalClosed)(data) generates the expected path", () => { diff --git a/test/curve/cardinalOpen-test.js b/test/curve/cardinalOpen-test.js index 5643543d..e8b60106 100644 --- a/test/curve/cardinalOpen-test.js +++ b/test/curve/cardinalOpen-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {area, line, curveCardinalOpen} from "../../src/index.js"; +import {area, line, curveCardinalOpen} from "d3-shape"; import {assertPathEqual} from "../asserts.js"; it("line.curve(curveCardinalOpen)(data) generates the expected path", () => { diff --git a/test/curve/catmullRom-test.js b/test/curve/catmullRom-test.js index aa3bcf1e..3d2108e4 100644 --- a/test/curve/catmullRom-test.js +++ b/test/curve/catmullRom-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {area, line, curveCatmullRom} from "../../src/index.js"; +import {area, line, curveCatmullRom} from "d3-shape"; import {assertPathEqual} from "../asserts.js"; it("line.curve(curveCatmullRom)(data) generates the expected path", () => { diff --git a/test/curve/catmullRomClosed-test.js b/test/curve/catmullRomClosed-test.js index 89f1278c..520dfafd 100644 --- a/test/curve/catmullRomClosed-test.js +++ b/test/curve/catmullRomClosed-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {area, line, curveCatmullRomClosed} from "../../src/index.js"; +import {area, line, curveCatmullRomClosed} from "d3-shape"; import {assertPathEqual} from "../asserts.js"; it("line.curve(curveCatmullRomClosed)(data) generates the expected path", () => { diff --git a/test/curve/catmullRomOpen-test.js b/test/curve/catmullRomOpen-test.js index 23eecd12..d6b303cb 100644 --- a/test/curve/catmullRomOpen-test.js +++ b/test/curve/catmullRomOpen-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {area, line, curveCatmullRomOpen} from "../../src/index.js"; +import {area, line, curveCatmullRomOpen} from "d3-shape"; import {assertPathEqual} from "../asserts.js"; it("line.curve(curveCatmullRomOpen)(data) generates the expected path", () => { diff --git a/test/curve/linear-test.js b/test/curve/linear-test.js index 20535bd3..e2a6e774 100644 --- a/test/curve/linear-test.js +++ b/test/curve/linear-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {area, line, curveLinear} from "../../src/index.js"; +import {area, line, curveLinear} from "d3-shape"; import {assertPathEqual} from "../asserts.js"; it("line.curve(curveLinear)(data) generates the expected path", () => { diff --git a/test/curve/linearClosed-test.js b/test/curve/linearClosed-test.js index 25f3192d..ed167c2a 100644 --- a/test/curve/linearClosed-test.js +++ b/test/curve/linearClosed-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {line, curveLinearClosed} from "../../src/index.js"; +import {line, curveLinearClosed} from "d3-shape"; import {assertPathEqual} from "../asserts.js"; it("line.curve(curveLinearClosed)(data) generates the expected path", () => { diff --git a/test/curve/monotoneX-test.js b/test/curve/monotoneX-test.js index 665782a5..69384c11 100644 --- a/test/curve/monotoneX-test.js +++ b/test/curve/monotoneX-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {area, line, curveMonotoneX} from "../../src/index.js"; +import {area, line, curveMonotoneX} from "d3-shape"; import {assertPathEqual} from "../asserts.js"; it("line.curve(curveMonotoneX)(data) generates the expected path", () => { diff --git a/test/curve/monotoneY-test.js b/test/curve/monotoneY-test.js index c426140d..2262353a 100644 --- a/test/curve/monotoneY-test.js +++ b/test/curve/monotoneY-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {area, line, curveMonotoneY} from "../../src/index.js"; +import {area, line, curveMonotoneY} from "d3-shape"; import {assertPathEqual} from "../asserts.js"; it("line.curve(curveMonotoneY)(data) generates the expected path", () => { diff --git a/test/curve/natural-test.js b/test/curve/natural-test.js index ea431fae..369095e2 100644 --- a/test/curve/natural-test.js +++ b/test/curve/natural-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {area, line, curveNatural} from "../../src/index.js"; +import {area, line, curveNatural} from "d3-shape"; import {assertPathEqual} from "../asserts.js"; it("line.curve(curveNatural)(data) generates the expected path", () => { diff --git a/test/curve/step-test.js b/test/curve/step-test.js index df89eeba..deeaefa1 100644 --- a/test/curve/step-test.js +++ b/test/curve/step-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {area, line, curveStep} from "../../src/index.js"; +import {area, line, curveStep} from "d3-shape"; import {assertPathEqual} from "../asserts.js"; it("line.curve(curveStep)(data) generates the expected path", () => { diff --git a/test/curve/stepAfter-test.js b/test/curve/stepAfter-test.js index 793876b4..96eb3f4f 100644 --- a/test/curve/stepAfter-test.js +++ b/test/curve/stepAfter-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {area, line, curveStepAfter} from "../../src/index.js"; +import {area, line, curveStepAfter} from "d3-shape"; import {assertPathEqual} from "../asserts.js"; it("line.curve(curveStepAfter)(data) generates the expected path", () => { diff --git a/test/curve/stepBefore-test.js b/test/curve/stepBefore-test.js index e13d16fd..fb67b16f 100644 --- a/test/curve/stepBefore-test.js +++ b/test/curve/stepBefore-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {area, line, curveStepBefore} from "../../src/index.js"; +import {area, line, curveStepBefore} from "d3-shape"; import {assertPathEqual} from "../asserts.js"; it("line.curve(curveStepBefore)(data) generates the expected path", () => { diff --git a/test/offset/diverging-test.js b/test/offset/diverging-test.js index f630a7d5..315002be 100644 --- a/test/offset/diverging-test.js +++ b/test/offset/diverging-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {stackOffsetDiverging, stackOrderNone, stackOrderReverse} from "../../src/index.js"; +import {stackOffsetDiverging, stackOrderNone, stackOrderReverse} from "d3-shape"; it("stackOffsetDiverging(series, order) applies a zero baseline, ignoring existing offsets", () => { const series = [ diff --git a/test/offset/expand-test.js b/test/offset/expand-test.js index e2007aaf..f3d8a839 100644 --- a/test/offset/expand-test.js +++ b/test/offset/expand-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {stackOffsetExpand, stackOrderNone, stackOrderReverse} from "../../src/index.js"; +import {stackOffsetExpand, stackOrderNone, stackOrderReverse} from "d3-shape"; it("stackOffsetExpand(series, order) expands to fill [0, 1]", () => { const series = [ diff --git a/test/offset/none-test.js b/test/offset/none-test.js index a6d358d9..fae760a7 100644 --- a/test/offset/none-test.js +++ b/test/offset/none-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {stackOffsetNone, stackOrderNone, stackOrderReverse} from "../../src/index.js"; +import {stackOffsetNone, stackOrderNone, stackOrderReverse} from "d3-shape"; it("stackOffsetNone(series, order) stacks upon the first layer’s existing positions", () => { const series = [ diff --git a/test/offset/silhouette-test.js b/test/offset/silhouette-test.js index f41ae5bc..60ef27df 100644 --- a/test/offset/silhouette-test.js +++ b/test/offset/silhouette-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {stackOffsetSilhouette, stackOrderNone, stackOrderReverse} from "../../src/index.js"; +import {stackOffsetSilhouette, stackOrderNone, stackOrderReverse} from "d3-shape"; it("stackOffsetSilhouette(series, order) centers the stack around zero", () => { const series = [ diff --git a/test/offset/wiggle-test.js b/test/offset/wiggle-test.js index f4caeb50..0b9fc6d3 100644 --- a/test/offset/wiggle-test.js +++ b/test/offset/wiggle-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {stackOffsetWiggle, stackOrderNone, stackOrderReverse} from "../../src/index.js"; +import {stackOffsetWiggle, stackOrderNone, stackOrderReverse} from "d3-shape"; it("stackOffsetWiggle(series, order) minimizes weighted wiggle", () => { const series = [ diff --git a/test/order/appearance-test.js b/test/order/appearance-test.js index e2c07383..5ae474c5 100644 --- a/test/order/appearance-test.js +++ b/test/order/appearance-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {stackOrderAppearance} from "../../src/index.js"; +import {stackOrderAppearance} from "d3-shape"; it("stackOrderAppearance(series) returns an order by appearance", () => { assert.deepStrictEqual(stackOrderAppearance([ diff --git a/test/order/ascending-test.js b/test/order/ascending-test.js index edb64ad5..e258f813 100644 --- a/test/order/ascending-test.js +++ b/test/order/ascending-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {stackOrderAscending} from "../../src/index.js"; +import {stackOrderAscending} from "d3-shape"; it("stackOrderAscending(series) returns an order by sum", () => { assert.deepStrictEqual(stackOrderAscending([ diff --git a/test/order/descending-test.js b/test/order/descending-test.js index d93f89ca..1ff70750 100644 --- a/test/order/descending-test.js +++ b/test/order/descending-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {stackOrderDescending} from "../../src/index.js"; +import {stackOrderDescending} from "d3-shape"; it("stackOrderDescending(series) returns an order by sum", () => { assert.deepStrictEqual(stackOrderDescending([ diff --git a/test/order/insideOut-test.js b/test/order/insideOut-test.js index 45c0cf4d..8dd9e847 100644 --- a/test/order/insideOut-test.js +++ b/test/order/insideOut-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {stackOrderInsideOut} from "../../src/index.js"; +import {stackOrderInsideOut} from "d3-shape"; it("stackOrderInsideOut(series) returns an order by appearance", () => { assert.deepStrictEqual(stackOrderInsideOut([ diff --git a/test/order/none-test.js b/test/order/none-test.js index 20434e94..a1b69330 100644 --- a/test/order/none-test.js +++ b/test/order/none-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {stackOrderNone} from "../../src/index.js"; +import {stackOrderNone} from "d3-shape"; it("stackOrderNone(series) returns [0, 1, … series.length - 1]", () => { assert.deepStrictEqual(stackOrderNone(new Array(4)), [0, 1, 2, 3]); diff --git a/test/order/reverse-test.js b/test/order/reverse-test.js index 652821e6..eb1aa850 100644 --- a/test/order/reverse-test.js +++ b/test/order/reverse-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {stackOrderReverse} from "../../src/index.js"; +import {stackOrderReverse} from "d3-shape"; it("stackOrderReverse(series) returns [series.length - 1, series.length - 2, … 0]", () => { assert.deepStrictEqual(stackOrderReverse(new Array(4)), [3, 2, 1, 0]);