-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(release): Test v7.38.0 (#9921)
Signed-off-by: Matt Krick <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Matt Krick <[email protected]> Co-authored-by: Bartosz Jarocki <[email protected]> Co-authored-by: Marcus Wermuth <[email protected]> Co-authored-by: Jordan Husney <[email protected]> Co-authored-by: Rafa <[email protected]> Co-authored-by: Georg Bremer <[email protected]> Co-authored-by: parabol-release-bot[bot] <150284312+parabol-release-bot[bot]@users.noreply.github.com> Co-authored-by: Rafael Romero <[email protected]> Co-authored-by: Bruce Tian <[email protected]> Co-authored-by: Nick O'Ferrall <[email protected]> Co-authored-by: snyk-bot <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: GitHub Action <[email protected]> Co-authored-by: Dale Bumblis <[email protected]> Co-authored-by: Mohd Muneeb <[email protected]> Co-authored-by: Muneeb-Ventures <[email protected]> Co-authored-by: Terry Acker <[email protected]> Co-authored-by: github-actions <[email protected]>
- Loading branch information
1 parent
ba81227
commit daaaa72
Showing
39 changed files
with
455 additions
and
209 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
".": "7.37.8" | ||
".": "7.38.0" | ||
} |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
"description": "An open-source app for building smarter, more agile teams.", | ||
"author": "Parabol Inc. <[email protected]> (http://github.com/ParabolInc)", | ||
"license": "AGPL-3.0", | ||
"version": "7.37.8", | ||
"version": "7.38.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ParabolInc/parabol" | ||
|
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": "chronos", | ||
"version": "7.37.8", | ||
"version": "7.38.0", | ||
"description": "A cron job scheduler", | ||
"author": "Matt Krick <[email protected]>", | ||
"homepage": "https://github.com/ParabolInc/parabol/tree/master/packages/chronos#readme", | ||
|
@@ -25,6 +25,6 @@ | |
}, | ||
"dependencies": { | ||
"cron": "^2.3.1", | ||
"parabol-server": "7.37.8" | ||
"parabol-server": "7.38.0" | ||
} | ||
} |
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
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,37 @@ | ||
import {useEffect, useRef, useState} from 'react' | ||
|
||
/** | ||
* Debounces a search string. It will wait for the user to stop typing or finishing a word before returning the debounced search string. | ||
*/ | ||
export const useDebouncedSearch = (search: string) => { | ||
const wordEndChars = /[\s,.\!?:;\-\(\)\[\]\{\}<>"'\\|&*+=#%@$]/ | ||
const timer = useRef<NodeJS.Timeout>() | ||
const [debouncedSearch, setDebouncedSearch] = useState('') | ||
|
||
useEffect(() => { | ||
if (!search) { | ||
setDebouncedSearch(search) | ||
return | ||
} | ||
// if they finished a word, send it now | ||
if (wordEndChars.test(search.at(-1)!)) { | ||
setDebouncedSearch(search) | ||
return | ||
} | ||
// assuming 40 wpm with 5 characters per word we get 300ms between characters | ||
// give some wiggle room for slow typers | ||
timer.current = setTimeout(() => { | ||
setDebouncedSearch(search) | ||
timer.current = undefined | ||
}, 500) | ||
return () => { | ||
clearTimeout(timer.current) | ||
timer.current = undefined | ||
} | ||
}, [search]) | ||
|
||
return { | ||
debouncedSearch, | ||
dirty: !!timer.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
Oops, something went wrong.