@samline/forms 2.9.0 → 2.10.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.
- package/CHANGELOG.md +15 -1
- package/README.md +1 -1
- package/dist/browser/global.global.js +20 -12
- package/dist/browser/global.global.js.map +1 -1
- package/dist/browser/index.cjs +31 -2
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/{chunk-6MA5TF6R.js → chunk-JAEFD56I.js} +32 -3
- package/dist/chunk-JAEFD56I.js.map +1 -0
- package/dist/index.cjs +31 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-6MA5TF6R.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,19 @@ All notable changes to `@samline/forms` are documented in this file. The format
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [2.10.0] - 2026-11-12
|
|
8
|
+
|
|
9
|
+
No breaking API changes.
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Support for `@samline/formatter` 3.0.0. The optional peer now accepts `^2.1.0 || ^3.0.0`. Formatter 3 makes phones opt-in, so forms loads `@samline/formatter/phone` and calls `registerPhone()` the first time a field is formatted with `type: 'phone'`. Forms without phone fields never load libphonenumber-js, and bundlers put the phone subpath in its own lazy chunk. If the subpath cannot be loaded, forms logs one `console.error` and leaves the field unformatted.
|
|
14
|
+
- The standalone script bundles formatter 3.0.0, with phone support included.
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- A submit the user starts while a debounced auto-submit is pending cancels the pending one. Before, the form was submitted twice.
|
|
19
|
+
|
|
7
20
|
## [2.9.0] - 2026-11-12
|
|
8
21
|
|
|
9
22
|
No breaking API changes.
|
|
@@ -290,7 +303,8 @@ No breaking API changes. The behavior changes below fix incorrect or surprising
|
|
|
290
303
|
|
|
291
304
|
- Initial release of `@samline/forms`. Vanilla JS form controller with framework-specific variants (React, Vue, Svelte) initially included; bundled `.local/` agent docs at the repo root.
|
|
292
305
|
|
|
293
|
-
[Unreleased]: https://github.com/samline/forms/compare/v2.
|
|
306
|
+
[Unreleased]: https://github.com/samline/forms/compare/v2.10.0...HEAD
|
|
307
|
+
[2.10.0]: https://github.com/samline/forms/compare/v2.9.0...v2.10.0
|
|
294
308
|
[2.9.0]: https://github.com/samline/forms/compare/v2.8.0...v2.9.0
|
|
295
309
|
[2.8.0]: https://github.com/samline/forms/compare/v2.7.2...v2.8.0
|
|
296
310
|
[2.7.2]: https://github.com/samline/forms/compare/v2.7.1...v2.7.2
|
package/README.md
CHANGED
|
@@ -78,7 +78,7 @@ Invalid submits are always prevented and focus moves to the first invalid field.
|
|
|
78
78
|
The standalone build defines `window.Forms` and already includes `@samline/formatter`. Pin the version.
|
|
79
79
|
|
|
80
80
|
```html
|
|
81
|
-
<script src="https://unpkg.com/@samline/forms@2.
|
|
81
|
+
<script src="https://unpkg.com/@samline/forms@2.10.0/dist/browser/global.global.js"></script>
|
|
82
82
|
<script>
|
|
83
83
|
const signup = window.Forms.form('signup', {
|
|
84
84
|
validators: { email: { required: true, pattern: /^[^\s@]+@[^\s@]+\.[^\s@]+$/ } },
|