Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,27 @@ jQuery is a dependency of the package and is installed with it.

## Download
* **npm:** [jquery-form](https://www.npmjs.com/package/jquery-form). `dist/jquery.form.min.js` is the minified build, `dist/jquery.form.js` the readable one.
* **GitHub:** each version's built files are in the `dist` folder of its tag, such as [`v4.6.0/dist`](https://github.com/jquery-form/form/tree/v4.6.0/dist); see the [releases](https://github.com/jquery-form/form/releases). The `dist` folder on `main` holds unreleased code.
* **GitHub:** each version's built files are in the `dist` folder of its tag, such as [`v4.6.1/dist`](https://github.com/jquery-form/form/tree/v4.6.1/dist); see the [releases](https://github.com/jquery-form/form/releases). The `dist` folder on `main` holds unreleased code.

### CDN
From jsDelivr:

```html
<script src="https://cdn.jsdelivr.net/npm/jquery-form@4.6.0/dist/jquery.form.min.js" integrity="sha384-6nWaJ1CxEQhUyWbY8mCCA3pAsWr1hPIee2byhQUP4SN9ydEguzTY7hVQV/NVNgiQ" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery-form@4.6.1/dist/jquery.form.min.js" integrity="sha384-4Xz+VDJUQ/ijcQQ5xNLhUuPl/+Pj3hvI39d6ngjSLEF2EygwKs62OeAS0PC2TjNl" crossorigin="anonymous"></script>
```

Or from cdnjs:

```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.form/4.6.0/jquery.form.min.js" integrity="sha384-6nWaJ1CxEQhUyWbY8mCCA3pAsWr1hPIee2byhQUP4SN9ydEguzTY7hVQV/NVNgiQ" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.form/4.6.1/jquery.form.min.js" integrity="sha384-4Xz+VDJUQ/ijcQQ5xNLhUuPl/+Pj3hvI39d6ngjSLEF2EygwKs62OeAS0PC2TjNl" crossorigin="anonymous"></script>
```

## Usage
With a script tag, load the plugin after jQuery:

```html
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery-form@4.6.0/dist/jquery.form.min.js" integrity="sha384-6nWaJ1CxEQhUyWbY8mCCA3pAsWr1hPIee2byhQUP4SN9ydEguzTY7hVQV/NVNgiQ" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery-form@4.6.1/dist/jquery.form.min.js" integrity="sha384-4Xz+VDJUQ/ijcQQ5xNLhUuPl/+Pj3hvI39d6ngjSLEF2EygwKs62OeAS0PC2TjNl" crossorigin="anonymous"></script>
```

With a bundler, importing the module registers the plugin on the jQuery that `import "jquery"` resolves to, so `jquery` must be importable:
Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ The jQuery Form Plugin allows you to easily and unobtrusively upgrade HTML forms
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/jquery-form@4.6.0/dist/jquery.form.min.js"
integrity="sha384-6nWaJ1CxEQhUyWbY8mCCA3pAsWr1hPIee2byhQUP4SN9ydEguzTY7hVQV/NVNgiQ"
src="https://cdn.jsdelivr.net/npm/jquery-form@4.6.1/dist/jquery.form.min.js"
integrity="sha384-4Xz+VDJUQ/ijcQQ5xNLhUuPl/+Pj3hvI39d6ngjSLEF2EygwKs62OeAS0PC2TjNl"
crossorigin="anonymous"
></script>

Expand Down
12 changes: 11 additions & 1 deletion docs/plans/modernization.md
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,17 @@ The order:
mutation testing came first; CI passed without a rerun. npm has 4.6.0 with provenance, and
jsDelivr, cdnjs and Packagist serve it; the CDN SRI hashes match the published file. #544 is
closed.
6. **5.0** (Phase 14) after 4.6.0. Cut `release/4.x` from the 4.6.0 tag first (ADR-0002).
- 4.6.1 done 2026-11-28, the first release from `release/4.x` (cut at 6c29155, `main`'s tip
after 4.6.0; PR #648, merge commit 302dc93, tag `v4.6.1`). 4.4.0 had made `src/jquery.form.js`,
4.3.0's `main`, the ES module source, which broke projects that load that path as a classic
script (WordPress, SHIRASAGI, OpenSourcePOS, Eventum, and cdnjs's 4.6.0 `jquery.form.js`).
4.6.1 moves the module sources to `src/esm/` and commits the classic build at
`src/jquery.form.js` (ADR-0001). CI also tests jQuery 1.12.4 and 4.1.0, and Firefox runs in
`npm test`. npm has 4.6.1 on `latest` with provenance; jsDelivr, cdnjs and Packagist serve
it, and both CDN SRI hashes match. The 4.3.0–4.6.0 release notes now point at it. cdnjs/packages#2301
moves cdnjs to npm auto-update so 5.0's `src/` can't collide again. Idea for later: #649.
6. **5.0** (Phase 14) after 4.6.0. `release/4.x` is cut (above). Before merging #646, update
`main`'s required checks to the 5.0 matrix (3.5.0, 3.7.1, 4.0.0, 4.1.0).

Each release adds its column to `docs/metrics.md` and its section to the GitHub release notes.

Expand Down