Skip to content

Commit

Permalink
chore: upgrade to node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
Nebulis committed Feb 18, 2024
1 parent 5270926 commit f0ee496
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ jobs:
version:
runs-on: ubuntu-latest
container:
image: node:16
image: node:18
steps:
- run: node -v
- run: npm -v
bundle_dependencies:
runs-on: ubuntu-latest
container:
image: node:16
image: node:18
steps:
# - name: Install OS dependencies
# run: |-
Expand All @@ -26,7 +26,7 @@ jobs:
build:
runs-on: ubuntu-latest
container:
image: node:16
image: node:18
needs:
- bundle_dependencies
steps:
Expand All @@ -43,7 +43,7 @@ jobs:
build_with_ssr:
runs-on: ubuntu-latest
container:
image: node:16
image: node:18
needs:
- bundle_dependencies
steps:
Expand All @@ -57,7 +57,7 @@ jobs:
lint:
runs-on: ubuntu-latest
container:
image: node:16
image: node:18
needs:
- bundle_dependencies
steps:
Expand All @@ -71,7 +71,7 @@ jobs:
types:
runs-on: ubuntu-latest
container:
image: node:16
image: node:18
needs:
- bundle_dependencies
steps:
Expand All @@ -85,7 +85,7 @@ jobs:
test:
runs-on: ubuntu-latest
container:
image: node:16
image: node:18
needs:
- bundle_dependencies
steps:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.16.0
v18.17.0
8 changes: 6 additions & 2 deletions src/use-dimensions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ export interface NoDimensionObject {
bottom?: never
}

export type UseDimensionsHook = [(node: HTMLElement | null) => void, NoDimensionObject | DimensionObject, HTMLElement | null]
export type UseDimensionsHook = [
(node: HTMLElement | null) => void,
NoDimensionObject | DimensionObject,
HTMLElement | null
]

export interface UseDimensionsArgs {
liveMeasure?: boolean
Expand Down Expand Up @@ -66,7 +70,7 @@ function useDimensions({ liveMeasure = true }: UseDimensionsArgs = {}): UseDimen
}
}
}
}, [node])
}, [node, liveMeasure])

return [ref, dimensions, node]
}
Expand Down

0 comments on commit f0ee496

Please sign in to comment.