Repository navigation
v1.4.0
Codebase Optimization & Comprehensive E2E Coverage
Added
- Shared
useToolState()hook eliminates state save/restore boilerplate across all 36 tool components - Shared
validateNonEmpty()utility standardizes input validation across 19 tool logic modules - ~130 new Playwright E2E tests (357 total) covering option toggles, value verification, edge cases, unicode, boundary conditions, and multi-mode interactions for every tool
- Missing
rclone-password.spec.tsE2E test file
Changed
- Replaced 10 duplicate language page files with 2 Astro dynamic routes using
getStaticPaths()(~116 lines removed) - Extracted 460 lines of locale data from
CronExpression.tsxintoCronPhrases.ts(component drops from 1172 → 707 lines) - Converted
cards()pattern from plain functions tocreateMemoin 5 components - Converted
parsed()/expiry()tocreateMemoin CsvViewer and JwtDecoder - Replaced
createEffectwithcreateMemoin PasswordStrength - Migrated all 36 tool components from manual
onMount/onCleanuptouseToolState()hook (net -248 lines) - Migrated 19 tool logic files to
validateNonEmpty(), consistently usingvalidated.value(trimmed) - Extracted
beforeEachin 7 E2E test files to reduce boilerplate
Performance
- Replaced O(n×m)
split().join()loop in emoji-shortcode with single-pass regex
Full changelog: v1.3.5...v1.4.0