client_side_validations-simple_form 17.0.0 → 18.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9bf395541153201f2a24d71c7cdf79eef8aa2cc7ed4a1ba7d57b8e187323ad00
|
|
4
|
+
data.tar.gz: 943aa430a26392cf7c751035e55c5f888e1949e45c425692093924f665ab7001
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '02954368fe77269c32a79fa8e64a2c3c6103330991e3480484b9c6c4a943e85b9434df37bf4fc13ec6b9210035adbb1966a3e69d5489a61376620d2240dbd16f'
|
|
7
|
+
data.tar.gz: 972b7945804c36135dad04be63c62da3888f51b27a295b2e8c165b97deee19dbb86a95679b2897fc6d1fb1a04dead7b55638801f19157b9b98b7960340b53396
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 18.0.0 / 2026-04-19
|
|
4
|
+
|
|
5
|
+
* [FEATURE] Breaking change: Align the Simple Form JavaScript hooks with the DOM-first `ClientSideValidations` runtime
|
|
6
|
+
* [ENHANCEMENT] Remove jQuery-specific assumptions from the browser test harness and documentation
|
|
7
|
+
|
|
3
8
|
## 17.0.0 / 2026-01-07
|
|
4
9
|
|
|
5
10
|
* [FEATURE] Drop Internet Explorer and other older browsers support
|
data/README.md
CHANGED
|
@@ -28,9 +28,11 @@ required **before** `client_side_validations-simple_form`.
|
|
|
28
28
|
|
|
29
29
|
Instructions depend on your technology stack.
|
|
30
30
|
|
|
31
|
+
This package extends the jQuery-free, DOM-first `ClientSideValidations` runtime.
|
|
32
|
+
|
|
31
33
|
#### When using Webpacker ####
|
|
32
34
|
|
|
33
|
-
Make sure that you are requiring
|
|
35
|
+
Make sure that you are requiring Client Side Validations before the Simple Form plugin.
|
|
34
36
|
|
|
35
37
|
Add the following package:
|
|
36
38
|
|
|
@@ -58,7 +60,7 @@ require('@client-side-validations/simple-form/dist/simple-form.bootstrap4.esm')
|
|
|
58
60
|
|
|
59
61
|
#### When using Sprockets ####
|
|
60
62
|
|
|
61
|
-
Make sure that you are requiring
|
|
63
|
+
Make sure that you are requiring Client Side Validations before the Simple Form plugin.
|
|
62
64
|
|
|
63
65
|
According to the web framework you are using, add **one** of the following
|
|
64
66
|
lines to your `app/assets/javascripts/application.js`, **after**
|
|
@@ -80,6 +82,18 @@ rails g client_side_validations:copy_assets
|
|
|
80
82
|
|
|
81
83
|
Note: If you run `copy_assets`, you will need to run it again each time you update this project.
|
|
82
84
|
|
|
85
|
+
## Migration Guide ##
|
|
86
|
+
|
|
87
|
+
### Removing jQuery Dependency ###
|
|
88
|
+
|
|
89
|
+
`client_side_validations-simple_form` now plugs into the DOM-first `ClientSideValidations` runtime and no longer assumes jQuery is present.
|
|
90
|
+
|
|
91
|
+
Follow the main `ClientSideValidations` migration guide for the public API changes. In particular, load the current DOM-first `ClientSideValidations` bundle before loading this package, and update any custom code that still expects jQuery-wrapped objects.
|
|
92
|
+
|
|
93
|
+
Custom Simple Form builders now receive native DOM elements in their `add` and `remove` hooks, so custom overrides should use DOM APIs such as `.closest()`, `.querySelector()`, and `.classList`.
|
|
94
|
+
|
|
95
|
+
If you vendor the compiled assets with `rails g client_side_validations:copy_assets`, run that generator again after upgrading so the copied Simple Form assets stay in sync with the current `ClientSideValidations` bundle.
|
|
96
|
+
|
|
83
97
|
## Usage ##
|
|
84
98
|
|
|
85
99
|
The usage is the same as `ClientSideValidations`, just pass `validate: true` to the form builder
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Client Side Validations Simple Form JS (Bootstrap 4+) -
|
|
2
|
+
* Client Side Validations Simple Form JS (Bootstrap 4+) - v18.0.0 (https://github.com/DavyJonesLocker/client_side_validations-simple_form)
|
|
3
3
|
* Copyright (c) 2026 Geremia Taglialatela, Brian Cardarella
|
|
4
4
|
* Licensed under MIT (https://opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
ClientSideValidations.formBuilders['SimpleForm::FormBuilder'] = {
|
|
25
|
-
add: function (
|
|
26
|
-
this.wrapper(settings.wrapper).add.call(this,
|
|
25
|
+
add: function (element, settings, message) {
|
|
26
|
+
this.wrapper(settings.wrapper).add.call(this, element, settings, message);
|
|
27
27
|
},
|
|
28
|
-
remove: function (
|
|
29
|
-
this.wrapper(settings.wrapper).remove.call(this,
|
|
28
|
+
remove: function (element, settings) {
|
|
29
|
+
this.wrapper(settings.wrapper).remove.call(this, element, settings);
|
|
30
30
|
},
|
|
31
31
|
wrapper: function (name) {
|
|
32
32
|
return this.wrappers[name] || this.wrappers.default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Client Side Validations Simple Form JS (Default) -
|
|
2
|
+
* Client Side Validations Simple Form JS (Default) - v18.0.0 (https://github.com/DavyJonesLocker/client_side_validations-simple_form)
|
|
3
3
|
* Copyright (c) 2026 Geremia Taglialatela, Brian Cardarella
|
|
4
4
|
* Licensed under MIT (https://opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
ClientSideValidations.formBuilders['SimpleForm::FormBuilder'] = {
|
|
25
|
-
add: function (
|
|
26
|
-
this.wrapper(settings.wrapper).add.call(this,
|
|
25
|
+
add: function (element, settings, message) {
|
|
26
|
+
this.wrapper(settings.wrapper).add.call(this, element, settings, message);
|
|
27
27
|
},
|
|
28
|
-
remove: function (
|
|
29
|
-
this.wrapper(settings.wrapper).remove.call(this,
|
|
28
|
+
remove: function (element, settings) {
|
|
29
|
+
this.wrapper(settings.wrapper).remove.call(this, element, settings);
|
|
30
30
|
},
|
|
31
31
|
wrapper: function (name) {
|
|
32
32
|
return this.wrappers[name] || this.wrappers.default;
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: client_side_validations-simple_form
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 18.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Geremia Taglialatela
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
19
|
+
version: '24.0'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
26
|
+
version: '24.0'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: simple_form
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
78
78
|
- !ruby/object:Gem::Version
|
|
79
79
|
version: '0'
|
|
80
80
|
requirements: []
|
|
81
|
-
rubygems_version: 4.0.
|
|
81
|
+
rubygems_version: 4.0.9
|
|
82
82
|
specification_version: 4
|
|
83
83
|
summary: ClientSideValidations SimpleForm
|
|
84
84
|
test_files: []
|