Skip to content

Align Simple Form with the DOM-first runtime#204

Merged
tagliala merged 1 commit intomainfrom
experimental/remove-jquery
Apr 19, 2026
Merged

Align Simple Form with the DOM-first runtime#204
tagliala merged 1 commit intomainfrom
experimental/remove-jquery

Conversation

@tagliala
Copy link
Copy Markdown
Contributor

Update the Simple Form JavaScript hooks to match the jQuery-free ClientSideValidations runtime and stop assuming jQuery wrappers in the browser integration.

SimpleForm::FormBuilder add/remove hooks now work with native DOM elements. Use closest(), querySelector(), parentElement, and classList to find wrappers and feedback nodes while preserving the existing error markup for the default, Bootstrap 4, and Bootstrap 5 builders.

Refresh the QUnit coverage to build fixtures and assert behavior through plain DOM APIs, regenerate the published and vendored assets, switch the browser harness to a neutral QUnit CDN, and remove the remaining jQuery-specific assumptions from the test setup and documentation.

Raise the compatibility floor to ClientSideValidations 24.x by requiring client_side_validations >= 24.0 in the gem, setting the npm peer dependency to @client-side-validations/client-side-validations >= 24.0.0, and updating the appraisal matrix to csv-24.0. Bump the gem and npm package versions to 18.0.0 for the release.

Update the Simple Form JavaScript hooks to match the jQuery-free
ClientSideValidations runtime and stop assuming jQuery wrappers in the
browser integration.

SimpleForm::FormBuilder add/remove hooks now work with native DOM
elements. Use closest(), querySelector(), parentElement, and classList
to find wrappers and feedback nodes while preserving the existing error
markup for the default, Bootstrap 4, and Bootstrap 5 builders.

Refresh the QUnit coverage to build fixtures and assert behavior through
plain DOM APIs, regenerate the published and vendored assets, switch the
browser harness to a neutral QUnit CDN, and remove the remaining
jQuery-specific assumptions from the test setup and documentation.

Raise the compatibility floor to ClientSideValidations 24.x by requiring
client_side_validations >= 24.0 in the gem, setting the npm peer
dependency to @client-side-validations/client-side-validations >=
24.0.0, and updating the appraisal matrix to csv-24.0. Bump the gem
and npm package versions to 18.0.0 for the release.
@tagliala tagliala force-pushed the experimental/remove-jquery branch from 74f3adf to 5f497e2 Compare April 19, 2026 14:51
@tagliala tagliala merged commit f022fa0 into main Apr 19, 2026
15 checks passed
@tagliala tagliala deleted the experimental/remove-jquery branch April 19, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant