Skip to content

Commit e921ad0

Browse files
authored
Merge branch 'master' into dependabot/github_actions/akhilmhdh/contributors-readme-action-2.3.10
2 parents f2e8f34 + 6b1616b commit e921ad0

File tree

6 files changed

+2934
-2641
lines changed

6 files changed

+2934
-2641
lines changed

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
run: yarn build:clean && yarn test:coverage --testLocationInResults --reporters=default --reporters=@jamesacarr/jest-reporter-github-actions
8181

8282
- name: "Upload coverage to Codecov"
83-
uses: codecov/codecov-action@v3
83+
uses: codecov/codecov-action@v4
8484
with:
8585
token: ${{ secrets.CODECOV_TOKEN }}
8686
files: coverage/lcov.info

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
yarn lint-staged

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,10 @@ Coming from `react-use`? Check out our
283283
</a>
284284
</td>
285285
<td align="center">
286-
<a href="https://github.com/MichalTarasiuk">
287-
<img src="https://avatars.githubusercontent.com/u/69385846?v=4" width="100;" alt="MichalTarasiuk"/>
286+
<a href="https://github.com/michaltarasiuk">
287+
<img src="https://avatars.githubusercontent.com/u/69385846?v=4" width="100;" alt="michaltarasiuk"/>
288288
<br />
289-
<sub><b>Michał Tarasiuk</b></sub>
289+
<sub><b>Null</b></sub>
290290
</a>
291291
</td>
292292
<td align="center">

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"node": ">=18.0.0"
3434
},
3535
"scripts": {
36-
"prepare": "husky install",
36+
"prepare": "husky",
3737
"commit": "git-cz",
3838
"build": "yarn build:clean && tsc --version && tsc",
3939
"build:clean": "yarn rimraf -g ./src/**/*.js ./src/**/*.d.ts",
@@ -76,15 +76,15 @@
7676
},
7777
"devDependencies": {
7878
"@babel/core": "^7.23.9",
79-
"@commitlint/cli": "^18.6.0",
80-
"@commitlint/config-conventional": "^18.6.2",
81-
"@commitlint/cz-commitlint": "^18.6.1",
79+
"@commitlint/cli": "^19.5.0",
80+
"@commitlint/config-conventional": "^19.5.0",
81+
"@commitlint/cz-commitlint": "^19.5.0",
8282
"@jamesacarr/jest-reporter-github-actions": "^0.0.4",
8383
"@react-hookz/eslint-config": "^2.1.5",
8484
"@react-hookz/eslint-formatter-gha": "^1.0.1",
8585
"@semantic-release/changelog": "^6.0.3",
8686
"@semantic-release/git": "^10.0.1",
87-
"@semantic-release/github": "^9.2.6",
87+
"@semantic-release/github": "^11.0.0",
8888
"@swc/core": "^1.4.2",
8989
"@swc/jest": "^0.2.36",
9090
"@testing-library/react-hooks": "^8.0.1",
@@ -94,8 +94,8 @@
9494
"@types/react-dom": "^18.2.6",
9595
"babel-loader": "^9.1.3",
9696
"commitizen": "^4.3.0",
97-
"commitlint": "^18.6.1",
98-
"concurrently": "^8.2.2",
97+
"commitlint": "^19.5.0",
98+
"concurrently": "^9.0.1",
9999
"eslint": "^8.57.0",
100100
"eslint-plugin-prettier": "^5.1.3",
101101
"husky": "^9.0.11",
@@ -112,5 +112,6 @@
112112
"ts-node": "^10.9.2",
113113
"typescript": "^5.3.3",
114114
"yarn": "^1.22.21"
115-
}
115+
},
116+
"packageManager": "yarn@1.22.22"
116117
}

src/useIntersectionObserver/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ const getObserverEntry = (options: IntersectionObserverInit): ObserverEntry => {
7474
if (callbacks.size === 0) {
7575
observer.disconnect();
7676

77-
rootObservers!.delete(opt);
77+
rootObservers.delete(opt);
7878

79-
if (rootObservers!.size === 0) {
79+
if (rootObservers.size === 0) {
8080
observers.delete(root);
8181
}
8282
}

0 commit comments

Comments
 (0)