Skip to content

Commit

Permalink
fix(deps): update react monorepo (#150)
Browse files Browse the repository at this point in the history
* fix(deps): update react monorepo

* fix effect dep

* idontevenknowman

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: William Boman <[email protected]>
  • Loading branch information
renovate[bot] and williamboman authored Dec 20, 2024
1 parent 78306d4 commit 044d9fa
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 42 deletions.
8 changes: 4 additions & 4 deletions components/SearchInput/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { ForwardedRef, RefAttributes, ChangeEvent, HTMLAttributes, forwardRef, useCallback } from "react"
import { ForwardedRef, RefAttributes, ChangeEvent, forwardRef, useCallback, InputHTMLAttributes } from "react"

export type SearchValue<Keyword> = {
values: string[]
keywords: { keyword: Keyword; value: string }[]
raw: string
}

type Props<Keyword> = Omit<HTMLAttributes<HTMLInputElement>, "value" | "onChange"> & {
type Props<Keyword> = Omit<InputHTMLAttributes<HTMLInputElement>, "value" | "onChange"> & {
value: SearchValue<Keyword>
onChange: (search: SearchValue<Keyword>) => void
}
Expand Down Expand Up @@ -42,7 +42,7 @@ export const EmptySearch: Readonly<SearchValue<unknown>> = {

function SearchInputComponent<Keyword>(
{ value, onChange, ...rest }: Props<Keyword> & RefAttributes<HTMLInputElement>,
ref: ForwardedRef<HTMLInputElement>
ref: ForwardedRef<HTMLInputElement>,
) {
const handleChange = useCallback(
(event: ChangeEvent<HTMLInputElement>) => {
Expand All @@ -52,7 +52,7 @@ function SearchInputComponent<Keyword>(
onChange(parseSearch(event.target.value) as SearchValue<Keyword>)
}
},
[onChange]
[onChange],
)

return <input {...rest} ref={ref} type="search" value={value.raw} onChange={handleChange} />
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion pages/registry/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default function RegistryList({ packages, checksum, timestamp, version }:
},
)
},
[router],
[router, pathname, searchParams],
)

useVimSearchKeybind(searchRef)
Expand Down
62 changes: 28 additions & 34 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 044d9fa

Please sign in to comment.