-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from shakacode/rescript-11
Update to rescript@11
- Loading branch information
Showing
19 changed files
with
6,173 additions
and
7,165 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ node_modules/ | |
lib/ | ||
.merlin | ||
.bsb.lock | ||
*.bs.js | ||
*.res.js |
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,5 +1,8 @@ | ||
# History | ||
|
||
### 2.0.0 | ||
- `rescript` is updated to `v11`. | ||
|
||
### 1.0.1 | ||
- Fix dead links in READMEs. | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "rescript-debounce-react", | ||
"version": "1.0.1", | ||
"version": "2.0.0", | ||
"description": "Debounce hooks for @rescript/react", | ||
"author": "Alex Fedoseev <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -33,10 +33,10 @@ | |
"debounce" | ||
], | ||
"dependencies": { | ||
"rescript-debounce": "^1.0.0" | ||
"rescript-debounce": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"@rescript/react": "0.10.3", | ||
"rescript": "10.0.1" | ||
"@rescript/react": "0.12.1", | ||
"rescript": "11.0.1" | ||
} | ||
} |
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
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,9 +1,9 @@ | ||
let useDebounced = (~wait=?, fn) => { | ||
let ref = React.useRef(Debounce.make(~wait?, fn)) | ||
let ref = fn->Debounce.make(~wait?)->React.useRef | ||
ref.current | ||
} | ||
|
||
let useControlled = (~wait=?, fn) => { | ||
let ref = React.useRef(Debounce.makeControlled(~wait?, fn)) | ||
let ref = fn->Debounce.makeControlled(~wait?)->React.useRef | ||
ref.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,2 +1,2 @@ | ||
let useDebounced: (~wait: int=?, 'a => unit, 'a) => unit | ||
let useDebounced: (~wait: int=?, 'a => unit) => 'a => unit | ||
let useControlled: (~wait: int=?, 'a => unit) => Debounce.debounced<'a> |
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,5 +1,8 @@ | ||
# History | ||
|
||
### 2.0.0 | ||
- `rescript` is updated to `v11`. | ||
|
||
### 1.0.1 | ||
- Fix dead links in READMEs. | ||
|
||
|
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
Oops, something went wrong.