diff --git a/package.json b/package.json index 8d2e8cf..010a48e 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "@types/uuid": "^8.3.4", "eslint": "8.22.0", "eslint-config-next": "12.2.5", - "typescript": "4.7.4", + "typescript": "5.6.3", "vercel": "^30.2.2" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9354b01..f998702 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -81,10 +81,10 @@ devDependencies: version: 8.22.0 eslint-config-next: specifier: 12.2.5 - version: 12.2.5(eslint@8.22.0)(typescript@4.7.4) + version: 12.2.5(eslint@8.22.0)(typescript@5.6.3) typescript: - specifier: 4.7.4 - version: 4.7.4 + specifier: 5.6.3 + version: 5.6.3 vercel: specifier: ^30.2.2 version: 30.2.3(@types/node@18.7.3) @@ -1867,7 +1867,7 @@ packages: resolution: {integrity: sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ==} dependencies: '@gar/promisify': 1.1.3 - semver: 7.6.3 + semver: 7.3.8 dev: true /@npmcli/move-file@1.1.2: @@ -2276,7 +2276,7 @@ packages: resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} dev: true - /@typescript-eslint/parser@5.62.0(eslint@8.22.0)(typescript@4.7.4): + /@typescript-eslint/parser@5.62.0(eslint@8.22.0)(typescript@5.6.3): resolution: {integrity: sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -2288,10 +2288,10 @@ packages: dependencies: '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/types': 5.62.0 - '@typescript-eslint/typescript-estree': 5.62.0(typescript@4.7.4) + '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.6.3) debug: 4.3.7 eslint: 8.22.0 - typescript: 4.7.4 + typescript: 5.6.3 transitivePeerDependencies: - supports-color dev: true @@ -2309,7 +2309,7 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@typescript-eslint/typescript-estree@5.62.0(typescript@4.7.4): + /@typescript-eslint/typescript-estree@5.62.0(typescript@5.6.3): resolution: {integrity: sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -2324,8 +2324,8 @@ packages: globby: 11.1.0 is-glob: 4.0.3 semver: 7.6.3 - tsutils: 3.21.0(typescript@4.7.4) - typescript: 4.7.4 + tsutils: 3.21.0(typescript@5.6.3) + typescript: 5.6.3 transitivePeerDependencies: - supports-color dev: true @@ -2589,7 +2589,7 @@ packages: recast: 0.21.5 remark-frontmatter: 4.0.1 remark-mdx-frontmatter: 1.1.1 - semver: 7.6.3 + semver: 7.3.8 sort-package-json: 1.57.0 tar-fs: 2.1.1 tsconfig-paths: 4.2.0 @@ -4272,7 +4272,7 @@ packages: source-map: 0.6.1 dev: true - /eslint-config-next@12.2.5(eslint@8.22.0)(typescript@4.7.4): + /eslint-config-next@12.2.5(eslint@8.22.0)(typescript@5.6.3): resolution: {integrity: sha512-SOowilkqPzW6DxKp3a3SYlrfPi5Ajs9MIzp9gVfUDxxH9QFM5ElkR1hX5m/iICJuvCbWgQqFBiA3mCMozluniw==} peerDependencies: eslint: ^7.23.0 || ^8.0.0 @@ -4283,7 +4283,7 @@ packages: dependencies: '@next/eslint-plugin-next': 12.2.5 '@rushstack/eslint-patch': 1.10.4 - '@typescript-eslint/parser': 5.62.0(eslint@8.22.0)(typescript@4.7.4) + '@typescript-eslint/parser': 5.62.0(eslint@8.22.0)(typescript@5.6.3) eslint: 8.22.0 eslint-import-resolver-node: 0.3.9 eslint-import-resolver-typescript: 2.7.1(eslint-plugin-import@2.31.0)(eslint@8.22.0) @@ -4291,7 +4291,7 @@ packages: eslint-plugin-jsx-a11y: 6.10.0(eslint@8.22.0) eslint-plugin-react: 7.37.1(eslint@8.22.0) eslint-plugin-react-hooks: 4.6.2(eslint@8.22.0) - typescript: 4.7.4 + typescript: 5.6.3 transitivePeerDependencies: - eslint-import-resolver-webpack - supports-color @@ -4346,7 +4346,7 @@ packages: eslint-import-resolver-webpack: optional: true dependencies: - '@typescript-eslint/parser': 5.62.0(eslint@8.22.0)(typescript@4.7.4) + '@typescript-eslint/parser': 5.62.0(eslint@8.22.0)(typescript@5.6.3) debug: 3.2.7 eslint: 8.22.0 eslint-import-resolver-node: 0.3.9 @@ -4366,7 +4366,7 @@ packages: optional: true dependencies: '@rtsao/scc': 1.1.0 - '@typescript-eslint/parser': 5.62.0(eslint@8.22.0)(typescript@4.7.4) + '@typescript-eslint/parser': 5.62.0(eslint@8.22.0)(typescript@5.6.3) array-includes: 3.1.8 array.prototype.findlastindex: 1.2.5 array.prototype.flat: 1.3.2 @@ -5083,7 +5083,7 @@ packages: '@types/glob': 7.2.0 array-union: 2.1.0 dir-glob: 3.0.1 - fast-glob: 3.3.2 + fast-glob: 3.2.11 glob: 7.2.3 ignore: 5.3.2 merge2: 1.4.1 @@ -8165,14 +8165,14 @@ packages: /tslib@2.7.0: resolution: {integrity: sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==} - /tsutils@3.21.0(typescript@4.7.4): + /tsutils@3.21.0(typescript@5.6.3): resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} engines: {node: '>= 6'} peerDependencies: typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta' dependencies: tslib: 1.14.1 - typescript: 4.7.4 + typescript: 5.6.3 dev: true /type-check@0.3.2: @@ -8251,15 +8251,15 @@ packages: possible-typed-array-names: 1.0.0 dev: true - /typescript@4.7.4: - resolution: {integrity: sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==} + /typescript@4.9.5: + resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} engines: {node: '>=4.2.0'} hasBin: true dev: true - /typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + /typescript@5.6.3: + resolution: {integrity: sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==} + engines: {node: '>=14.17'} hasBin: true dev: true diff --git a/src/core/IssueComparison.tsx b/src/core/IssueComparison.tsx index d124d32..c6d1c2f 100644 --- a/src/core/IssueComparison.tsx +++ b/src/core/IssueComparison.tsx @@ -8,7 +8,7 @@ import { Comparison } from "./_types"; type Props = { firstButtonLabel: string; - property: "effort" | "value"; + property: "effort"; successiveButtonLabel: string; title: ReactNode; tournamentId: string; diff --git a/src/core/defaultState.ts b/src/core/defaultState.ts index a1acad4..9314bcc 100644 --- a/src/core/defaultState.ts +++ b/src/core/defaultState.ts @@ -2,12 +2,12 @@ import { scaleLinear } from "@visx/scale"; import { State } from "./_types"; const defaultState: State = { - comparisons: { effort: [], value: [] }, + comparisons: { effort: [] }, issueDetails: {}, issueSummaries: [], pendingRequests: 0, - scales: { effort: scaleLinear(), value: scaleLinear() }, - stats: { effort: {}, value: {} }, + scales: { effort: scaleLinear() }, + stats: { effort: {} }, tournaments: {}, };