Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
63c3117
test: keep the iframe source payload in an about:blank fragment so We…
kevindb Nov 2, 2026
033828c
build: run the suite on WebKit as well as Chromium
kevindb Nov 2, 2026
139b77b
ci: run the jQuery matrix on WebKit as well as Chromium
kevindb Nov 2, 2026
85de738
build: add a test:firefox script that runs the suite on Firefox in Pl…
kevindb Nov 2, 2026
1ea076a
ci: run the jQuery matrix on Firefox as well as Chromium and WebKit
kevindb Nov 2, 2026
9549f51
build: generalize the Firefox script into test:docker with cached Nod…
kevindb Nov 2, 2026
7a85f06
docs: explain running the tests in Docker
kevindb Nov 2, 2026
42fd042
test: compare formToArray and formSerialize with FormData on seeded r…
kevindb Nov 2, 2026
c27558b
fix: send lone surrogates as U+FFFD instead of throwing URIError
kevindb Nov 2, 2026
4afd31b
test: share the oracle's seeded forms and known differences in a module
kevindb Nov 2, 2026
665e808
build: add Playwright Test and a recording server for end-to-end tests
kevindb Nov 2, 2026
ac3be02
test: compare the plugin's requests with native submits end to end
kevindb Nov 2, 2026
692b020
ci: run the end-to-end tests on 3 browsers and 3 jQuery versions
kevindb Nov 2, 2026
2a9b203
docs: explain running the end-to-end tests
kevindb Nov 2, 2026
81e1dd2
fix: send an iframe upload's clicked button with lone surrogates as U…
kevindb Nov 2, 2026
3d38f71
docs: plan the empty file input and disabled iframe submitter fixes f…
kevindb Nov 2, 2026
45d7671
build: pack the package into fixture projects and serve it to publish…
kevindb Nov 2, 2026
df7fe49
test: load the packed package by script tag, RequireJS, import map, C…
kevindb Nov 2, 2026
f6a4e60
build: run the published-file tests in npm run test:e2e and its Docke…
kevindb Nov 2, 2026
0896176
docs: explain the published-file tests
kevindb Nov 2, 2026
eb5e99a
fix: let bundlers use the module build and name the minified build fo…
kevindb Nov 2, 2026
9d7ed4a
fix: publish LICENSE-MIT with the package
kevindb Nov 2, 2026
2f616b5
fix: let the CommonJS factory use the window it is given instead of t…
kevindb Nov 2, 2026
b05a521
fix: encode spaces as + on every jQuery version, as a native submissi…
kevindb Nov 2, 2026
c137ff1
test: cover debug output, the old-jQuery warning and ajaxForm unbinding
kevindb Nov 2, 2026
09ca0f0
test: cover iframe upload events, CSRF method checks and embedded res…
kevindb Nov 2, 2026
191f28f
test: cover container serialization, an overriding fieldValue and res…
kevindb Nov 2, 2026
fd6b910
test: cover submission url, method and transport edge cases
kevindb Nov 2, 2026
1d92e6f
fix: reject an unparsable iframe response with parsererror, and repor…
kevindb Nov 2, 2026
5c8dc94
fix: leave a submitter disabled by its fieldset out of an iframe upload
kevindb Nov 2, 2026
fc0f110
fix: send lone surrogates in data and extraData as U+FFFD instead of …
kevindb Nov 2, 2026
641bcde
docs: list the deprecation warnings and the 4.6.0 fixes
kevindb Nov 2, 2026
606b4e9
docs: record the Phase 13 metrics and status
kevindb Nov 2, 2026
802c0b3
docs: add the oracle's spec gaps to the 5.0 plan and keep the probes
kevindb Nov 2, 2026
1f18b3f
docs: plan the minimatch override removal and the CodeQL alert 7 dism…
kevindb Nov 2, 2026
58698cd
docs: record npm audit at 0 after the minimatch override
kevindb Nov 2, 2026
72e22a2
feat: warn under debug when a page replaces $.fieldValue
kevindb Nov 2, 2026
ba64c16
docs: list the $.fieldValue replacement warning in the deprecations
kevindb Nov 2, 2026
f5ddc1b
docs: plan the 4.4.0-4.6.0 release train without waiting for CVE IDs
kevindb Nov 6, 2026
5902676
ci: install WebKit in the release verify job, which npm test now needs
kevindb Nov 6, 2026
f214998
docs: mark the release workflow WebKit fix done in the 4.6.0 step
kevindb Nov 6, 2026
f5c4b30
docs: record the advisory review and the npm trusted publisher setup
kevindb Nov 7, 2026
5037b50
docs: record the npm access settings, the advisory rewording and the …
kevindb Nov 7, 2026
fd607b9
docs: note the ci.yml conflict to resolve when phase-13 rebases onto …
kevindb Nov 7, 2026
7778875
docs: note the minimatch override also landing on main in PR #638
kevindb Nov 7, 2026
6928a30
ci: skip the e2e jobs on docs-only PRs
kevindb Nov 7, 2026
aa7d88f
docs: record the 4.4.0 release and the required-check rename for 4.6.0
kevindb Nov 7, 2026
34aec7b
fix: look up target and iframeTarget strings as selectors, never as HTML
kevindb Nov 8, 2026
a458160
docs: record that target and iframeTarget strings are only selectors …
kevindb Nov 8, 2026
8ad23f8
docs: plan the docs site cleanup for 4.6.0 and the examples rewrite f…
kevindb Nov 10, 2026
6edaaf9
docs: plan the 4.6.0 README, docs site, metadata and repository cleanup
kevindb Nov 11, 2026
3cef4fd
docs: plan the Contributor Covenant 2.1 update for 4.6.0
kevindb Nov 11, 2026
64e0cbd
docs: ship the 4.6.0 cleanup in the release PR after a short 4.5.0 soak
kevindb Nov 11, 2026
f4648f1
docs: document beforeFormUnbind, filtering and the stored jqXHR on th…
kevindb Nov 11, 2026
312b9cd
docs: make the README a landing page that links to the docs site
kevindb Nov 11, 2026
fd23dfa
docs: drop html5shiv, the Chrome Frame meta and the unused analytics …
kevindb Nov 11, 2026
4349e0c
docs: add npm installation to the docs site's quick start
kevindb Nov 11, 2026
b581199
docs: point the FAQ at the contributing guide's tests and the uploadP…
kevindb Nov 11, 2026
a764c31
build: use the (LGPL-2.1-or-later OR MIT) SPDX license expression in …
kevindb Nov 11, 2026
b61cf7c
build: point the manifests' homepage at the docs site
kevindb Nov 11, 2026
615b615
chore: replace the issue template with a bug report form that sends s…
kevindb Nov 11, 2026
a3e64be
ci: add Dependabot version updates for GitHub Actions and grouped npm…
kevindb Nov 11, 2026
e277092
chore: delete the root _config.yml; GitHub Pages builds the site from…
kevindb Nov 11, 2026
f48dc80
docs: fix the CONTRIBUTORS headings and switch its malsup.com link to…
kevindb Nov 11, 2026
ec44d40
docs: keep Contributor Covenant 1.4, since the project has no private…
kevindb Nov 11, 2026
6159c19
docs: point CONTRIBUTORS at malsup.com/jquery/form; jquery.malsup.com…
kevindb Nov 11, 2026
a8668f0
docs: load the examples' malsup.com demo endpoints and images over https
kevindb Nov 11, 2026
8098210
docs: replace the FAQ and examples links to malsup.com pages with the…
kevindb Nov 11, 2026
b495033
docs: record the malsup.com link check in the plan
kevindb Nov 11, 2026
1edf2a6
docs: indent the CONTRIBUTING steps so their code blocks and sub-bull…
kevindb Nov 11, 2026
c35a615
docs: fix a literal Markdown link, a broken anchor and unlinked issue…
kevindb Nov 11, 2026
29b3b54
docs: fix the CONTRIBUTORS heading levels and the trailing blank line…
kevindb Nov 11, 2026
c6c9300
docs: escape the pipes that split a tooling-research table row
kevindb Nov 11, 2026
2197184
chore: release 4.6.0
kevindb Nov 14, 2026
c9a17db
docs: record the 4.6.0 release metrics and plan status
kevindb Nov 14, 2026
7b84e09
docs: point the CDN snippets and dist link at 4.6.0
kevindb Nov 14, 2026
e3fc766
ci: key the Playwright browser cache on the runner image
kevindb Nov 14, 2026
90730fe
docs: record the new required checks and the e2e follow-up
kevindb Nov 14, 2026
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
57 changes: 57 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Bug report
description: Something in jQuery Form does not work as documented.
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
Please search the [open issues](https://github.com/jquery-form/form/issues) first, and see [Reporting a bug](https://github.com/jquery-form/form/blob/main/CONTRIBUTING.md#reporting-a-bug).
Do not report security issues here; see the [security policy](https://github.com/jquery-form/form/blob/main/SECURITY.md).
- type: textarea
id: description
attributes:
label: Description
description: What happened?
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected behavior
description: What did you expect to happen?
validations:
required: true
- type: textarea
id: steps
attributes:
label: Steps to reproduce
description: The form markup, the options you pass to `ajaxForm` or `ajaxSubmit`, and what you do on the page.
render: html
validations:
required: true
- type: input
id: demo
attributes:
label: Demonstration
description: A link to a minimal example, for instance on [JSFiddle](https://jsfiddle.net/) or [CodePen](https://codepen.io/).
- type: input
id: plugin-version
attributes:
label: jQuery Form version
placeholder: "4.5.0"
validations:
required: true
- type: input
id: jquery-version
attributes:
label: jQuery version
placeholder: "3.7.1"
validations:
required: true
- type: input
id: browsers
attributes:
label: Browsers and versions
placeholder: "Firefox 140, Safari 26"
validations:
required: true
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: Report a security vulnerability
url: https://github.com/jquery-form/form/security/advisories/new
about: Please report security issues privately, as the security policy (SECURITY.md) describes, not in a public issue.
- name: Documentation
url: https://jquery-form.github.io/form/
about: The API, options and examples.
29 changes: 29 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
commit-message:
prefix: ci
groups:
github-actions:
patterns:
- "*"

# Version updates for the dev tooling only. The jQuery dev dependencies (jquery, jquery4, ...)
# are pinned on purpose: the test matrix runs those exact releases.
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
allow:
- dependency-type: development
ignore:
- dependency-name: "jquery*"
commit-message:
prefix: build
include: scope
groups:
dev-dependencies:
dependency-type: development
19 changes: 0 additions & 19 deletions .github/issue_template.md

This file was deleted.

84 changes: 72 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,22 +59,25 @@ jobs:
- name: Get Playwright version
id: playwright
if: env.CODE == 'true'
run: echo "version=$(node -p "require('playwright/package.json').version")" >> "$GITHUB_OUTPUT"
# The runner image is in the key: a browser cached on one Ubuntu release can miss libraries on the next.
run: |
echo "version=$(node -p "require('playwright/package.json').version")" >> "$GITHUB_OUTPUT"
echo "image=$ImageOS" >> "$GITHUB_OUTPUT"
- name: Cache Playwright browsers
if: env.CODE == 'true'
uses: actions/cache@v6
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ steps.playwright.outputs.version }}
- name: Install Chromium
key: playwright-${{ runner.os }}-${{ steps.playwright.outputs.image }}-${{ steps.playwright.outputs.version }}
- name: Install Chromium and WebKit
if: env.CODE == 'true'
run: |
start=$(date +%s)
trap 'printf "%s\t%s\n" "Install Chromium" "$(($(date +%s) - start))" >> "$TIMINGS"' EXIT
npx playwright install chromium
trap 'printf "%s\t%s\n" "Install Chromium and WebKit" "$(($(date +%s) - start))" >> "$TIMINGS"' EXIT
npx playwright install --with-deps chromium webkit
- name: Check the test script matches the CI steps
run: |
expected="npm run lint && npm run format:check && npm run build && vitest run --coverage"
expected="npm run lint && npm run format:check && npm run build && vitest run --coverage --project !suite-webkit && vitest run --project suite-webkit"
actual=$(node -p "require('./package.json').scripts.test")
if [ "$actual" != "$expected" ]; then
echo "package.json test script has drifted from the CI steps."
Expand Down Expand Up @@ -103,7 +106,13 @@ jobs:
run: |
start=$(date +%s)
trap 'printf "%s\t%s\n" "vitest run --coverage" "$(($(date +%s) - start))" >> "$TIMINGS"' EXIT
npx vitest run --coverage --reporter=default --reporter=json --outputFile.json=vitest-report.json
npx vitest run --coverage --project !suite-webkit --reporter=default --reporter=json --outputFile.json=vitest-report.json
- name: vitest run --project suite-webkit
if: env.CODE == 'true'
run: |
start=$(date +%s)
trap 'printf "%s\t%s\n" "vitest run --project suite-webkit" "$(($(date +%s) - start))" >> "$TIMINGS"' EXIT
npx vitest run --project suite-webkit
- name: Check committed dist matches the build
if: env.CODE == 'true'
run: |
Expand All @@ -130,13 +139,15 @@ jobs:
# Branch protection requires each matrix check by name, so a docs-only PR skips the steps, not the
# job: a job skipped by `if` reports one unexpanded "jQuery ${{ matrix.jquery }}" check instead.
jquery:
name: jQuery ${{ matrix.jquery }}
name: jQuery ${{ matrix.jquery }} on ${{ matrix.browser }}
needs: changes
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
browser: [chromium, webkit, firefox]
jquery: ["1.7.2", "3.7.1", "4.0.0"]
include:
- { jquery: "1.7.2", file: ".jquery/jquery-1.7.2.js" }
- { jquery: "3.7.1", file: "node_modules/jquery/dist/jquery.js" }
Expand All @@ -156,20 +167,69 @@ jobs:
- name: Get Playwright version
id: playwright
if: env.CODE == 'true'
run: echo "version=$(node -p "require('playwright/package.json').version")" >> "$GITHUB_OUTPUT"
# The runner image is in the key: a browser cached on one Ubuntu release can miss libraries on the next.
run: |
echo "version=$(node -p "require('playwright/package.json').version")" >> "$GITHUB_OUTPUT"
echo "image=$ImageOS" >> "$GITHUB_OUTPUT"
- name: Cache Playwright browsers
if: env.CODE == 'true'
uses: actions/cache@v6
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ steps.playwright.outputs.version }}
- run: npx playwright install chromium
key: playwright-${{ runner.os }}-${{ steps.playwright.outputs.image }}-${{ steps.playwright.outputs.version }}-${{ matrix.browser }}
- run: npx playwright install --with-deps ${{ matrix.browser }}
if: env.CODE == 'true'
- name: Fetch jQuery 1.7.2
if: env.CODE == 'true' && matrix.jquery == '1.7.2'
run: scripts/fetch-jquery.sh 1.7.2
- name: Run the suite on jQuery ${{ matrix.jquery }}
if: env.CODE == 'true'
run: npx vitest run --project suite
run: npx vitest run --project suite-${{ matrix.browser }}
env:
JQUERY_FILE: ${{ matrix.file }}
JQUERY_FORM_FIREFOX: ${{ matrix.browser == 'firefox' && '1' || '' }}

# End-to-end tests: the built plugin posting to a real server (npm run test:e2e).
# Not a required check, so a docs-only PR can skip the whole job.
e2e:
name: e2e on jQuery ${{ matrix.jquery }} on ${{ matrix.browser }}
needs: changes
if: needs.changes.outputs.code == 'true'
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
browser: [chromium, webkit, firefox]
jquery: ["1.7.2", "3.7.1", "4.0.0"]
include:
- { jquery: "1.7.2", file: ".jquery/jquery-1.7.2.js" }
- { jquery: "3.7.1", file: "node_modules/jquery/dist/jquery.js" }
- { jquery: "4.0.0", file: "node_modules/jquery4/dist/jquery.js" }
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
cache: npm
- run: npm ci
- name: Get Playwright version
id: playwright
# The runner image is in the key: a browser cached on one Ubuntu release can miss libraries on the next.
run: |
echo "version=$(node -p "require('playwright/package.json').version")" >> "$GITHUB_OUTPUT"
echo "image=$ImageOS" >> "$GITHUB_OUTPUT"
- name: Cache Playwright browsers
uses: actions/cache@v6
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ steps.playwright.outputs.image }}-${{ steps.playwright.outputs.version }}-${{ matrix.browser }}
- run: npx playwright install --with-deps ${{ matrix.browser }}
- name: Fetch jQuery 1.7.2
if: matrix.jquery == '1.7.2'
run: scripts/fetch-jquery.sh 1.7.2
- name: Run the end-to-end tests on jQuery ${{ matrix.jquery }}
run: npm run test:e2e -- --project ${{ matrix.browser }}
env:
JQUERY_FILE: ${{ matrix.file }}
JQUERY_FORM_FIREFOX: ${{ matrix.browser == 'firefox' && '1' || '' }}
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,17 @@ jobs:
- run: npm ci
- name: Get Playwright version
id: playwright
run: echo "version=$(node -p "require('playwright/package.json').version")" >> "$GITHUB_OUTPUT"
# The runner image is in the key: a browser cached on one Ubuntu release can miss libraries on the next.
run: |
echo "version=$(node -p "require('playwright/package.json').version")" >> "$GITHUB_OUTPUT"
echo "image=$ImageOS" >> "$GITHUB_OUTPUT"
- name: Cache Playwright browsers
uses: actions/cache@v6
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ steps.playwright.outputs.version }}
- run: npx playwright install chromium
key: playwright-${{ runner.os }}-${{ steps.playwright.outputs.image }}-${{ steps.playwright.outputs.version }}
# npm test runs the suite in Chromium and WebKit; WebKit needs its system libraries.
- run: npx playwright install --with-deps chromium webkit
- run: npm test
- name: Check committed dist matches the build
run: git diff --exit-code -- dist
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,7 @@ $RECYCLE.BIN/
### Build and test output ###
coverage/
.vitest/
test-results/
playwright-report/
.jquery/
.pack/
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ package-lock.json
prototype/
test/ajax/
test/img/
playwright-report/
test-results/
.pack/
Loading
Loading