-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Melanie Seltzer <[email protected]>
- Loading branch information
1 parent
34f3841
commit ed0c6da
Showing
4 changed files
with
23 additions
and
22 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# react-use-caret-position | ||
|
||
## 1.1.0 | ||
|
||
### Minor Changes | ||
|
||
- [#73](https://github.com/melanieseltzer/react-use-caret-position/pull/73) [`cb32a6b`](https://github.com/melanieseltzer/react-use-caret-position/commit/cb32a6bbf5f2f9037e7787c96c23cec5a80218da) Thanks [@melanieseltzer](https://github.com/melanieseltzer)! - Clean up package.json: | ||
|
||
- Remove `jsnext:main` as it's deprecated and replaced by `module` field | ||
- Add an `exports` map | ||
- Mark package as a module | ||
- Point to TypeScript types | ||
- Expose UMD and modern bundle | ||
|
||
### Patch Changes | ||
|
||
- [#77](https://github.com/melanieseltzer/react-use-caret-position/pull/77) [`f4579e0`](https://github.com/melanieseltzer/react-use-caret-position/commit/f4579e04954118670492fbb06ace41ee7e1d6761) Thanks [@melanieseltzer](https://github.com/melanieseltzer)! - Removed conditionals checking existence of the ref object itself. The returned ref object from `useEffect` always exists, so the checks were unnecessary. | ||
|
||
```diff | ||
- if (node && node.current) | ||
+ if (node.current) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "react-use-caret-position", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "A React hook to keep track of the caret position in an input", | ||
"author": "Melanie Seltzer <[email protected]>", | ||
"license": "MIT", | ||
|