- Resolved deprecation warnings in the test suite by installing additional testing libraries:
- Added
@testing-library/dom
version^10.4.0
. - Added
@testing-library/react
version^16.0.1
.
- Added
- Updated
@types/react
from18.3.3
to18.3.10
. - Updated
eslint-plugin-prettier
from5.1.3
to5.2.1
. - Updated
husky
from9.1.4
to9.1.6
. - Updated
ts-jest
from29.2.3
to29.2.5
. - Updated
typescript
from5.5.3
to5.6.2
.
- Updated
husky
from9.0.11
to9.1.4
. - Updated
prettier
from3.3.0
to3.3.3
. - Updated
@typescript-eslint/parser
from7.12.0
to7.18.0
. - Updated
@typescript-eslint/eslint-plugin
from7.12.0
to7.18.0
. - Updated
ts-jest
from29.1.4
to29.2.3
. - Updated
typescript
from5.4.5
to5.5.3
.
- Updated
react-dom
from18.2.0
to18.3.1
. - Updated
@types/react-dom
from18.2.25
to18.3.0
. - Updated
@typescript-eslint/parser
from7.8.0
to7.12.0
. - Updated
@types/react
from18.3.1
to18.3.3
. - Updated
@typescript-eslint/eslint-plugin
from7.8.0
to7.12.0
. - Updated
ts-jest
from29.1.2
to29.1.4
. - Updated
prettier
from3.2.5
to3.3.0
.
- Bump
ejs
from version3.1.9
to3.1.10
in the npm_and_yarn group. - Bump
@typescript-eslint/parser
from version7.7.1
to7.8.0
. - Bump
eslint-plugin-react-hooks
from version4.6.0
to4.6.2
. - Bump
@typescript-eslint/eslint-plugin
from version7.7.1
to7.8.0
. - Updates
react
from version18.2.0
to18.3.1
. - Updates
@types/react
from version18.2.79
to18.3.1
.
- Optimizations: Enhanced the performance of the
useTextAnalyzer
hook by wrapping several calculations inuseMemo
to avoid unnecessary re-computations.
- Updated README to clarify features.
- Updated
@typescript-eslint/eslint-plugin
from7.7.0
to7.7.1
. - Updated
@typescript-eslint/parser
from7.7.0
to7.7.1
.
- CJK Support Enhancements: Improved support for CJK text in various utilities:
- Added automatic detection of CJK text to adjust reading time calculations based on the typical reading speed for CJK languages.
- Updated
countWords
utility to correctly treat each CJK character as a separate word, enhancing accuracy in word counting for Chinese, Japanese, and Korean texts. - Enhanced
countSentences
to recognize CJK-specific punctuation, improving sentence detection accuracy in CJK languages.
- Updated
typescript
from5.2.2
to5.4.5
. - Updated
@types/react
from18.2.73
to18.2.79
. - Updated
@types/react-dom
from18.2.23
to18.2.25
. - Updated
@typescript-eslint/eslint-plugin
from7.4.0
to7.7.0
. - Updated
@typescript-eslint/parser
from7.4.0
to7.7.0
.
- process cases when
wordsPerMinute
is a string
- Reading Time Format: The format of the
readingTime
output in theuseTextAnalyzer
hook has been modified. Previously,readingTime
was returned as a single integer representing the total number of seconds. Now, it is an object containing detailed aspects of the estimated reading time:minutes
: Total estimated reading time expressed in whole minutes.seconds
: Remaining seconds beyond the counted minutes.total
: Total estimated reading time expressed in seconds.text
: Human-readable summary of the reading time.
- Custom Reading Speed: Added a new optional parameter
wordsPerMinute
to theuseTextAnalyzer
hook. This parameter allows users to specify their reading speed, which the hook uses to calculate the estimated reading time. The default value is set to 250 words per minute.
- fix word splitter to count contractions like "don't" as one word.
- store default value for reading speed in constants
- update keywords
- update
README.md
styling
- use
useMemo
to calculate all stats
- fix
calculateCharFrequencies
logic
- update
calculateCharFrequencies
to correctly calc emoji
- update word splitting mechanism in
countWordFrequencies
- update
countParagraphs
to ignore trailing and leading whitespaces
- update
countWords
to exclude non alphanumeric characters
- fix
calculateWordFrequencies
logic to omit multiple whitespaces
- fix
countSentences
logic to omit multiple whitespaces
- update code structure, move utils to separate files
- fix
calculateWordFrequencies
for empty text
- fix bug in
countParagraphs
- update
countSearchFrequency
logic
- add
trimText
param
- add basic functionality:
- calculate number of words
- calculate number of characters
- calculate number of sentences
- calculate number of paragraphs
- calculate frequency of the search term
- calculate estimated reading time
- find most frequent word
- find least frequent word
- find most frequent character
- find least frequent character