- Resolved deprecation warnings in the test suite by installing additional testing libraries:
- Added
@testing-library/domversion^10.4.0. - Added
@testing-library/reactversion^16.0.1.
- Added
- Updated
@types/reactfrom18.3.3to18.3.10. - Updated
eslint-plugin-prettierfrom5.1.3to5.2.1. - Updated
huskyfrom9.1.4to9.1.6. - Updated
ts-jestfrom29.2.3to29.2.5. - Updated
typescriptfrom5.5.3to5.6.2.
- Updated
huskyfrom9.0.11to9.1.4. - Updated
prettierfrom3.3.0to3.3.3. - Updated
@typescript-eslint/parserfrom7.12.0to7.18.0. - Updated
@typescript-eslint/eslint-pluginfrom7.12.0to7.18.0. - Updated
ts-jestfrom29.1.4to29.2.3. - Updated
typescriptfrom5.4.5to5.5.3.
- Updated
react-domfrom18.2.0to18.3.1. - Updated
@types/react-domfrom18.2.25to18.3.0. - Updated
@typescript-eslint/parserfrom7.8.0to7.12.0. - Updated
@types/reactfrom18.3.1to18.3.3. - Updated
@typescript-eslint/eslint-pluginfrom7.8.0to7.12.0. - Updated
ts-jestfrom29.1.2to29.1.4. - Updated
prettierfrom3.2.5to3.3.0.
- Bump
ejsfrom version3.1.9to3.1.10in the npm_and_yarn group. - Bump
@typescript-eslint/parserfrom version7.7.1to7.8.0. - Bump
eslint-plugin-react-hooksfrom version4.6.0to4.6.2. - Bump
@typescript-eslint/eslint-pluginfrom version7.7.1to7.8.0. - Updates
reactfrom version18.2.0to18.3.1. - Updates
@types/reactfrom version18.2.79to18.3.1.
- Optimizations: Enhanced the performance of the
useTextAnalyzerhook by wrapping several calculations inuseMemoto avoid unnecessary re-computations.
- Updated README to clarify features.
- Updated
@typescript-eslint/eslint-pluginfrom7.7.0to7.7.1. - Updated
@typescript-eslint/parserfrom7.7.0to7.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
countWordsutility to correctly treat each CJK character as a separate word, enhancing accuracy in word counting for Chinese, Japanese, and Korean texts. - Enhanced
countSentencesto recognize CJK-specific punctuation, improving sentence detection accuracy in CJK languages.
- Updated
typescriptfrom5.2.2to5.4.5. - Updated
@types/reactfrom18.2.73to18.2.79. - Updated
@types/react-domfrom18.2.23to18.2.25. - Updated
@typescript-eslint/eslint-pluginfrom7.4.0to7.7.0. - Updated
@typescript-eslint/parserfrom7.4.0to7.7.0.
- process cases when
wordsPerMinuteis a string
- Reading Time Format: The format of the
readingTimeoutput in theuseTextAnalyzerhook has been modified. Previously,readingTimewas 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
wordsPerMinuteto theuseTextAnalyzerhook. 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.mdstyling
- use
useMemoto calculate all stats
- fix
calculateCharFrequencieslogic
- update
calculateCharFrequenciesto correctly calc emoji
- update word splitting mechanism in
countWordFrequencies
- update
countParagraphsto ignore trailing and leading whitespaces
- update
countWordsto exclude non alphanumeric characters
- fix
calculateWordFrequencieslogic to omit multiple whitespaces
- fix
countSentenceslogic to omit multiple whitespaces
- update code structure, move utils to separate files
- fix
calculateWordFrequenciesfor empty text
- fix bug in
countParagraphs - update
countSearchFrequencylogic
- add
trimTextparam
- 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