Skip to content

Commit e7615f1

Browse files
committed
chore: add pull request template, update readme and package.json
1 parent c277eb9 commit e7615f1

File tree

3 files changed

+53
-2
lines changed

3 files changed

+53
-2
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!--
2+
☝️How to write a compelling PR title for @smakss/react-scroll-direction:
3+
- Prefix it with [feature], [bugfix], [chore] or other relevant tags (if applicable)
4+
- Start with a verb, for example: add, delete, improve, fix…
5+
- Specify the main change or improvement, e.g., "add sensitivity adjustment for scroll detection"
6+
- Prefix with [WIP] if it's a work in progress
7+
-->
8+
9+
# WHY is this change introduced?
10+
11+
Resolves #0000 <!-- link to issue or task card if one exists -->
12+
13+
<!--
14+
Share context about the problem or feature request.
15+
Why is this change beneficial for the users of this hook?
16+
-->
17+
18+
## WHAT does this PR introduce or fix?
19+
20+
<!--
21+
Detailed summary of changes. Indicate if it introduces a new feature, fixes a bug, or makes improvements.
22+
Before/after code snippets or explanations are recommended for critical changes.
23+
-->
24+
25+
### QA Checklist
26+
27+
**Note**: Ensure thorough testing, especially considering interactions with other hooks or components.
28+
29+
- [ ] I have tested this change on multiple React versions
30+
- [ ] I have verified compatibility with different React setups (e.g., Create React App, Next.js, etc.)
31+
- [ ] I have added/updated relevant tests, if applicable
32+
- [ ] I have updated the `README.md` and related documentation, if necessary
33+
34+
### Dependency-specific Checklist
35+
36+
- [ ] Dependencies introduced are lightweight and well-maintained
37+
- [ ] No known vulnerabilities exist with the introduced dependencies
38+
39+
### Usage-specific Checklist
40+
41+
- [ ] The hook's API remains consistent and user-friendly
42+
- [ ] Any new features have been documented with clear examples
43+
44+
### Release Notes
45+
46+
**Note**: once this PR is merged, a new release or update might be required for the users.
47+
48+
- Main changes or updates introduced in this release.

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# React Scroll Direction Hook
22

3-
![npm](https://img.shields.io/npm/v/@smakss/react-scroll-direction) ![Snyk Vulnerabilities for npm package](https://img.shields.io/snyk/vulnerabilities/npm/@smakss/react-scroll-direction) ![NPM](https://img.shields.io/npm/l/@smakss/react-scroll-direction) ![npm](https://img.shields.io/npm/dt/@smakss/react-scroll-direction) ![npm bundle size (scoped)](https://img.shields.io/bundlephobia/min/@smakss/react-scroll-direction)
3+
![npm](https://img.shields.io/npm/v/@smakss/react-scroll-direction) ![Known Vulnerabilities](https://snyk.io/test/github/{smakss}/{@smakss/react-scroll-direction}/badge.svg) ![NPM](https://img.shields.io/npm/l/@smakss/react-scroll-direction) ![npm](https://img.shields.io/npm/dt/@smakss/react-scroll-direction) ![npm bundle size (scoped)](https://img.shields.io/bundlephobia/min/@smakss/react-scroll-direction)
44

55
`@smakss/react-scroll-direction` is a versatile, lightweight React hook that detects scroll direction in your application with ease. You can fine-tune its sensitivity using an adjustable threshold, catering to your application's unique needs.
66

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
"npm",
3131
"yarn",
3232
"react",
33+
"remix",
34+
"nextjs",
35+
"gatsby",
3336
"scroll",
3437
"direction",
3538
"SMAKSS",
@@ -57,5 +60,5 @@
5760
"lint:fix": "eslint src/**/*.ts --fix"
5861
},
5962
"type": "module",
60-
"version": "2.1.1"
63+
"version": "2.2.1"
6164
}

0 commit comments

Comments
 (0)