Skip to content

1.0.4

Choose a tag to compare

@jschwind jschwind released this 24 Feb 18:22
· 12 commits to main since this release
23d210f

Release 1.0.4 – Changelog Summary

This release focuses on improved extensibility, stronger test coverage, and documentation enhancements. It introduces a dedicated redirect hook, adds a German README, and tightens robustness around edge cases to improve reliability in real-world form handling scenarios.

  • Custom Redirect Hook
    Introduced a redirect(url) method used internally instead of direct window.location access.
    Enables easier overriding, testing, and integration with SPA-style navigation flows.

  • Improved Callback Lifecycle
    Expanded support and tests for onBeforeSubmit and onAfterSubmit callbacks.
    Provides finer control over submission flow, including conditional abort and post-submit hooks.

  • Stronger Error Handling
    Enhanced handling of failed fetch requests with guaranteed onError invocation.
    Improves resilience and predictable error reporting in network failure scenarios.

  • Robust Invalid Feedback Edge Cases
    Safeguards added for elements without valid parent containers when showing or clearing validation feedback.
    Prevents runtime errors and ensures graceful behavior in atypical DOM structures.

  • 100% Test Coverage Enforcement
    Added comprehensive tests and strict Jest coverage thresholds (100% across branches, functions, lines, statements).
    Ensures higher code reliability and guards against regressions in future updates.

  • German Documentation Added
    Introduced a full README.de.md for German-speaking users.
    Improves accessibility and adoption in German-language projects and teams.

  • README Badges & Metadata Updates
    Added badges (npm version, downloads, CI, coverage, stars) and updated CDN examples to 1.0.4.
    Provides clearer project status visibility and accurate integration references.

  • Development Tooling Updates
    Updated Jest, Babel, and related devDependencies to newer versions and added coverage configuration.
    Improves developer experience and aligns tooling with current ecosystem standards.

  • .gitignore and Build Artifacts Adjustments
    Ignored coverage output and included package-lock.json for reproducible installs.
    Enhances repository hygiene and consistent dependency resolution.

Compatibility: Backward compatible


Full Changelog: 1.0.3...1.0.4