2 Commits

Author SHA1 Message Date
MAZE
df210a1246 chore(release): 2.0.1 2025-03-25 17:54:27 +03:30
MAZE
4895a7266d fix: add delay to cipher text 2025-03-25 17:54:12 +03:30
4 changed files with 14 additions and 5 deletions

View File

@@ -2,6 +2,13 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [2.0.1](https://github.com/remvze/moodist/compare/v2.0.0...v2.0.1) (2025-03-25)
### 🐛 Bug Fixes
* add delay to cipher text ([4895a72](https://github.com/remvze/moodist/commit/4895a7266d1b7458bc09a77dd6922058a247ea98))
## [2.0.0](https://github.com/remvze/moodist/compare/v1.5.1...v2.0.0) (2025-03-25)

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "moodist",
"version": "2.0.0",
"version": "2.0.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "moodist",
"version": "2.0.0",
"version": "2.0.1",
"dependencies": {
"@astrojs/react": "3.6.0",
"@floating-ui/react": "0.26.0",

View File

@@ -1,7 +1,7 @@
{
"name": "moodist",
"type": "module",
"version": "2.0.0",
"version": "2.0.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",

View File

@@ -12,10 +12,12 @@ export function CipherText({ interval = 50, text }: CipherTextProps) {
const [isMounted, setIsMounted] = useState(false);
useEffect(() => {
setIsMounted(true);
setTimeout(() => setIsMounted(true), 2000);
}, []);
useEffect(() => {
if (!isMounted) return;
let timer: NodeJS.Timeout;
if (outputText !== text) {
@@ -29,7 +31,7 @@ export function CipherText({ interval = 50, text }: CipherTextProps) {
}
return () => clearInterval(timer);
}, [text, interval, outputText]);
}, [text, interval, outputText, isMounted]);
useEffect(() => {
if (outputText === text) {