Skip to content

Releases: avalynx/avalynx-form

1.0.5

28 Feb 09:00
0e5d5eb

Choose a tag to compare

Release 1.0.5 – Changelog Summary

Version 1.0.5 enhances validation handling for complex input components and expands example integrations with AvalynxAutocomplete and AvalynxSelect. It also introduces CI testing infrastructure and general repository consistency improvements.

  • Support for Custom Input Containers
    Validation now automatically applies is-invalid to nearest *-input-container elements in addition to the input itself.
    Ensures correct visual feedback when using composite components like autocomplete or select wrappers.

  • New Autocomplete & Select Form Examples
    Added dedicated examples demonstrating AvalynxAutocomplete and AvalynxSelect integration within AvalynxForm validation flows.
    Helps developers implement advanced form fields with consistent validation behavior.

  • Improved Validation Clearing Logic
    Clearing invalid feedback now also removes validation classes from custom input containers.
    Prevents lingering error states and keeps UI feedback fully synchronized.

  • CI Workflow & Codecov Integration
    Added GitHub Actions workflow to run tests and upload coverage reports.
    Improves reliability and ensures regressions are detected automatically.

  • Standardized Author Naming
    Unified author naming conventions across LICENSE and package metadata (camel case module names).
    Provides consistent attribution and alignment across the Avalynx ecosystem.

  • Example Localization & Cleanup
    Switched example HTML files to English and removed obsolete test artifacts.
    Enhances clarity for international users and keeps the repository streamlined.

Compatibility: Backward compatible


Full Changelog: 1.0.4...1.0.5

1.0.4

24 Feb 18:22
23d210f

Choose a tag to compare

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

1.0.3

11 Feb 12:14
5e31e50

Choose a tag to compare

Release 1.0.3 – Changelog Summary

This release enhances extensibility and reliability of AvalynxForm by introducing new lifecycle callbacks and improving error handling. It gives developers finer control over form submission flow while maintaining full backward compatibility.

  • New onBeforeSubmit Callback
    Introduces a hook executed before the AJAX request is sent, with the ability to cancel submission by returning false.
    Enables custom validation, confirmation dialogs, or conditional logic before submitting.

  • New onAfterSubmit Callback
    Adds a post-submission hook that runs after the request completes (success or failure).
    Ideal for cleanup tasks, UI updates, analytics tracking, or resetting form state.

  • Improved AJAX Error Handling
    Adds support for an onError callback triggered when an AJAX request fails.
    Provides structured error handling and better control over failure scenarios.

  • Initialization Order Fix
    Corrects the this.id assignment order during initialization.
    Prevents potential edge cases and ensures stable form setup.

  • Documentation & Metadata Updates
    Updated README examples, CDN references, and repository metadata.
    Ensures clarity, accurate usage instructions, and improved developer onboarding.

  • Development Example Adjustments
    Example files now reference the local source script for development.
    Simplifies testing and contribution workflows.

Compatibility: Backward compatible


Full Changelog: 1.0.2...1.0.3

1.0.2

05 Oct 16:54
cd90119

Choose a tag to compare

Release 1.0.2 – Changelog Summary

This update focuses on improving robustness and stability by adding safer option handling and aligning all documentation and examples to the latest version. It ensures AvalynxForm behaves predictably even with invalid or missing initialization parameters.

  • Safer Options Handling
    Added validation for options in the constructor to handle null or invalid inputs gracefully.
    Prevents runtime errors and improves reliability in dynamic initialization scenarios.

  • Version Alignment Across Assets
    Updated all version headers and CDN references to 1.0.2.
    Ensures clarity and consistency across distributed files and documentation.

  • Updated Example Files
    All example pages now reference the 1.0.2 build.
    Provides users with up-to-date working demos using the latest release.

  • Package Metadata Update
    Incremented package.json version to 1.0.2.
    Keeps npm registry and dependency management accurate.

Compatibility: Backward compatible


Full Changelog: 1.0.1...1.0.2

1.0.1

04 Oct 10:36
317616e

Choose a tag to compare

Release 1.0.1 – Changelog Summary

This patch release focuses on richer examples, sturdier validation feedback, and better developer ergonomics. It introduces a new AvalynxSelect demo, hardens selector handling, and expands automated tests for reliable form behavior.

  • AvalynxSelect Example & Docs
    Added a dedicated “Form with AvalynxSelect” example and README link.
    Lets you see and copy a working select-integration pattern quickly.

  • Improved Validation Feedback
    Escaped attribute selectors in showInvalidFeedback/clearInvalidFeedback.
    Ensures error messages correctly target fields like name[key] and name[].

  • Server-Side Validation Update
    Extended result.php to validate the new avalynxselect field.
    Provides end-to-end demo of client+server validation for selects.

  • Expanded Jest Test Suite
    Reworked and significantly broadened tests (validation, submission, loaders).
    Increases confidence in behavior across success and error scenarios.

  • CDN & Version Bump
    All references updated to 1.0.1 (examples, README, builds).
    Guarantees users loading from jsDelivr get the latest code.

  • Build & Module Format Improvements
    Adjusted build script and ESM bundle to import Bootstrap correctly and export the class; kept CommonJS export in non-ESM build.
    Makes consumption smoother in both ESM and CommonJS environments.

  • Example Pages Refresh
    Updated example pages to load 1.0.1 and added the new demo to the index.
    Keeps examples consistent and easy to try out.

  • Docker Dev Image Upgrade
    Base image moved to PHP 8.3; added Node/Yarn tooling.
    Speeds up local development for building and testing assets.

  • Repo Hygiene
    Added ai.txt to .gitignore.
    Prevents accidental commits of local/temporary files.

Compatibility: Backward compatible


Full Changelog: 1.0.0...1.0.1

1.0.0

05 Jun 20:18
139379d

Choose a tag to compare

Release 1.0.0 – Changelog Summary

This major release marks AvalynxForm reaching a stable 1.0.0 milestone. It introduces Symfony AssetComposer integration, simplifies documentation, and updates all version references for consistency across environments.

  • Stable 1.0.0 Release
    Bumped version across all code, examples, and documentation.
    Provides a stable foundation for production-ready usage.

  • Symfony AssetComposer Support
    Added installation instructions for Symfony’s AssetComposer Bundle.
    Makes integration into Symfony projects simpler and more consistent.

  • Documentation Refresh
    Expanded the README with new installation guidance.
    Improves onboarding for developers using different environments.

  • Removed Redundant Changelog File
    Removed CHANGELOG.md in favor of GitHub-based release tracking.
    Simplifies version management and centralizes release history.

Compatibility: Backward compatible


Full Changelog: 0.0.2...1.0.0

0.0.2

07 Mar 22:01
14ab5af

Choose a tag to compare

Release 0.0.2 – Changelog Summary

This release introduces asset management improvements, documentation updates, and general cleanup to streamline development and usage. It ensures more consistent builds and easier testing for different response scenarios.

  • New Asset Composer Support
    Added assetscomposer.json to define distributed and development files.
    This ensures clear inclusion of the correct resources for production and development environments.

  • Example Enhancement
    Linked a new "Form with slow response" example in the README.
    Helps users test and understand behavior under delayed server responses.

  • Version Bump to 0.0.2
    Updated all references across code, examples, and documentation.
    Users now get the latest version automatically via CDN.

  • Gitignore Improvement
    Added package-lock.json to .gitignore.
    Prevents accidental commits of local dependency changes, improving consistency.

  • Cleanup in Vendor Package
    Removed package-lock.json from the avalynx-alert package.
    Eliminates stale or unnecessary dependency tracking files.

Compatibility: Backward compatible


Full Changelog: 0.0.1...0.0.2

0.0.1

09 Jun 10:17

Choose a tag to compare