diff --git a/components/SearchInput/index.tsx b/components/SearchInput/index.tsx index 60019be..75f8af2 100644 --- a/components/SearchInput/index.tsx +++ b/components/SearchInput/index.tsx @@ -1,4 +1,4 @@ -import { ForwardedRef, RefAttributes, ChangeEvent, HTMLAttributes, forwardRef, useCallback } from "react" +import { ForwardedRef, RefAttributes, ChangeEvent, forwardRef, useCallback, InputHTMLAttributes } from "react" export type SearchValue = { values: string[] @@ -6,7 +6,7 @@ export type SearchValue = { raw: string } -type Props = Omit, "value" | "onChange"> & { +type Props = Omit, "value" | "onChange"> & { value: SearchValue onChange: (search: SearchValue) => void } @@ -42,7 +42,7 @@ export const EmptySearch: Readonly> = { function SearchInputComponent( { value, onChange, ...rest }: Props & RefAttributes, - ref: ForwardedRef + ref: ForwardedRef, ) { const handleChange = useCallback( (event: ChangeEvent) => { @@ -52,7 +52,7 @@ function SearchInputComponent( onChange(parseSearch(event.target.value) as SearchValue) } }, - [onChange] + [onChange], ) return diff --git a/package.json b/package.json index d48ab0f..fcf58ff 100644 --- a/package.json +++ b/package.json @@ -13,15 +13,15 @@ "dependencies": { "adm-zip": "^0.5.10", "next": "15.1.0", - "react": "18.2.0", - "react-dom": "18.2.0" + "react": "18.3.1", + "react-dom": "18.3.1" }, "devDependencies": { "@tsconfig/strictest": "^2.0.1", "@types/adm-zip": "^0.5.0", "@types/jest": "^29.5.1", "@types/node": "22.10.2", - "@types/react": "18.2.42", + "@types/react": "18.3.18", "@typescript-eslint/eslint-plugin": "^8.0.0", "@typescript-eslint/parser": "^8.0.0", "eslint": "9.17.0", diff --git a/pages/registry/list.tsx b/pages/registry/list.tsx index 12e8aa1..0faa183 100644 --- a/pages/registry/list.tsx +++ b/pages/registry/list.tsx @@ -91,7 +91,7 @@ export default function RegistryList({ packages, checksum, timestamp, version }: }, ) }, - [router], + [router, pathname, searchParams], ) useVimSearchKeybind(searchRef) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d1b4478..5ad1ae6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,13 +13,13 @@ importers: version: 0.5.16 next: specifier: 15.1.0 - version: 15.1.0(@babel/core@7.23.9)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + version: 15.1.0(@babel/core@7.23.9)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: - specifier: 18.2.0 - version: 18.2.0 + specifier: 18.3.1 + version: 18.3.1 react-dom: - specifier: 18.2.0 - version: 18.2.0(react@18.2.0) + specifier: 18.3.1 + version: 18.3.1(react@18.3.1) devDependencies: '@tsconfig/strictest': specifier: ^2.0.1 @@ -34,8 +34,8 @@ importers: specifier: 22.10.2 version: 22.10.2 '@types/react': - specifier: 18.2.42 - version: 18.2.42 + specifier: 18.3.18 + version: 18.3.18 '@typescript-eslint/eslint-plugin': specifier: ^8.0.0 version: 8.18.1(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(typescript@5.7.2) @@ -628,11 +628,8 @@ packages: '@types/prop-types@15.7.5': resolution: {integrity: sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==} - '@types/react@18.2.42': - resolution: {integrity: sha512-c1zEr96MjakLYus/wPnuWDo1/zErfdU9rNsIGmE+NV71nx88FG9Ttgo5dqorXTu/LImX2f63WBP986gJkMPNbA==} - - '@types/scheduler@0.16.3': - resolution: {integrity: sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ==} + '@types/react@18.3.18': + resolution: {integrity: sha512-t4yC+vtgnkYjNSKlFx1jkAhH8LgTo2N/7Qvi83kdEaUtMDiwpbLAktKDaAMlRcJ5eSxZkH74eEGt1ky31d7kfQ==} '@types/stack-utils@2.0.3': resolution: {integrity: sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==} @@ -1983,10 +1980,10 @@ packages: queue-microtask@1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} - react-dom@18.2.0: - resolution: {integrity: sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==} + react-dom@18.3.1: + resolution: {integrity: sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==} peerDependencies: - react: ^18.2.0 + react: ^18.3.1 react-is@16.13.1: resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==} @@ -1994,8 +1991,8 @@ packages: react-is@18.3.1: resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==} - react@18.2.0: - resolution: {integrity: sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==} + react@18.3.1: + resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==} engines: {node: '>=0.10.0'} reflect.getprototypeof@1.0.4: @@ -2049,8 +2046,8 @@ packages: resolution: {integrity: sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==} engines: {node: '>= 0.4'} - scheduler@0.23.0: - resolution: {integrity: sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==} + scheduler@0.23.2: + resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==} semver@6.3.1: resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} @@ -2999,14 +2996,11 @@ snapshots: '@types/prop-types@15.7.5': {} - '@types/react@18.2.42': + '@types/react@18.3.18': dependencies: '@types/prop-types': 15.7.5 - '@types/scheduler': 0.16.3 csstype: 3.1.2 - '@types/scheduler@0.16.3': {} - '@types/stack-utils@2.0.3': {} '@types/yargs-parser@21.0.3': {} @@ -4559,7 +4553,7 @@ snapshots: natural-compare@1.4.0: {} - next@15.1.0(@babel/core@7.23.9)(react-dom@18.2.0(react@18.2.0))(react@18.2.0): + next@15.1.0(@babel/core@7.23.9)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: '@next/env': 15.1.0 '@swc/counter': 0.1.3 @@ -4567,9 +4561,9 @@ snapshots: busboy: 1.6.0 caniuse-lite: 1.0.30001589 postcss: 8.4.31 - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) - styled-jsx: 5.1.6(@babel/core@7.23.9)(react@18.2.0) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + styled-jsx: 5.1.6(@babel/core@7.23.9)(react@18.3.1) optionalDependencies: '@next/swc-darwin-arm64': 15.1.0 '@next/swc-darwin-x64': 15.1.0 @@ -4737,17 +4731,17 @@ snapshots: queue-microtask@1.2.3: {} - react-dom@18.2.0(react@18.2.0): + react-dom@18.3.1(react@18.3.1): dependencies: loose-envify: 1.4.0 - react: 18.2.0 - scheduler: 0.23.0 + react: 18.3.1 + scheduler: 0.23.2 react-is@16.13.1: {} react-is@18.3.1: {} - react@18.2.0: + react@18.3.1: dependencies: loose-envify: 1.4.0 @@ -4810,7 +4804,7 @@ snapshots: es-errors: 1.3.0 is-regex: 1.1.4 - scheduler@0.23.0: + scheduler@0.23.2: dependencies: loose-envify: 1.4.0 @@ -4972,10 +4966,10 @@ snapshots: strip-json-comments@3.1.1: {} - styled-jsx@5.1.6(@babel/core@7.23.9)(react@18.2.0): + styled-jsx@5.1.6(@babel/core@7.23.9)(react@18.3.1): dependencies: client-only: 0.0.1 - react: 18.2.0 + react: 18.3.1 optionalDependencies: '@babel/core': 7.23.9