Repository navigation
Conversation
bower.json and composer.json ask for the same range. Renames the manifest test "should agree on the version with the registry manifest and every dist banner" to "... with every dist banner".
3.5.0 comes from the jquery35 npm alias, so scripts/fetch-jquery.sh goes; the packed-package fixtures add 3.5.0.
X2: replaces the 4.x deprecateOldJQuery warning and its seven tests with requireJQuery35 and its throw tests; nothing throws at load.
The check named 3.7.1 only, so the new 3.5.0 fixture took the jQuery 4 branch.
… before 3 paths Removes 30 tests (16 attr2, 11 ready queue, 3 no prop/on/offset) and renames or edits the tests that branched on jQuery before 3.
Also drops the $.error guard and the "+" undo in deepSerialize, which no supported jQuery needs. Removes 26 legacy-browser tests, renames 3, edits the upload progress test and adds 3.
Drops datetime from the clearFields type list. Removes 4 clearInputs and 8 closeKeepAlive tests, and adds 1 that pins the ignored option.
Removes bindDelegated and its always-on warning. Removes 12 delegation: true tests, replaces the empty-string and rewrite-to-true tests with 5 that expect the error, and edits 1 ajaxFormUnbind test.
Removes the File API and FormData detection and its deprecation. Removes 7 tests that reloaded the plugin without them, moves the 8 remaining legacy-jquery tests to plugin-load.test.js, and edits 1 debug-log test.
Edits "should resolve its name to the CommonJS factory" into "should install the module build ... when imported by name".
… export condition
…s and $.ajax do - replaces "should resolve the Deferred with the response text, not the parsed data" - renames "should resolve the Deferred with the response text, success and the xhr"
…ieldValue no longer changes what is sent - replaces "should be used by formToArray, fieldSerialize and fieldValue when a page overrides it" - replaces "should skip a control for which an overriding $.fieldValue returns undefined" - removes the "when a page replaces $.fieldValue" warning tests (8) and "should prefix a deprecation warning with the plugin name", with deprecate()
…ors only, never parsing HTML
…nore semantic Edited or removed tests (4.x behavior): - serialization: "...non-semantic mode" (now tree order), "append an outside control ... when semantic is true", "named anchors and images when semantic is true", "form-associated custom element ...", "call filtering with each candidate ...", "append the clicked image when it is the only control ...", "append a clicked image from outside the form ...", "order the clicked image in place only when semantic is true" - serialization-oracle: "formToArray with semantic ..." (removed); ajax-form: "image coordinates when semantic is true" (removed) - the other semantic-named serialization and submission tests lose the flag and its wording
…r an unnamed one Edited tests (4.x behavior): - serialization: "skip image inputs that were not clicked", "include the clicked image value and coordinates", "send the clicked image's fields at its place in tree order", "send the clicked image when it is the only control", "not send a clicked image that is disabled or unnamed" (split), "send an empty value for a clicked image without a value attribute" (replaced), "serialize missing click coordinates as empty values", "send the clicked image in tree order ..." - ajax-form: "send the point 0,0 for an image passed to requestSubmit", "send the clicked image's coordinates when controls named clk_x and clk_y ..."; iframe-transport: "submit clicked image values and coordinates as hidden inputs"
…native submission does Edited tests (4.x behavior): serialization "send the literal value of a hidden input named _charset_ and nothing for dirname" (the dirname half moves to the new dirname tests)
…n does Edited tests (4.x behavior): serialization "send the literal value of a hidden input named _charset_" (now expects UTF-8)
… as a native submission does Edited tests (4.x behavior): xhr-transport "append an empty string when a multipart form has an empty file input" (now an empty file)
… with an optional marker
…nstall in CONTRIBUTING
…ng in the options
…moving latest back
package-lock.json regenerated from the merged package.json.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
jquery-form 5.0, the breaking release. Every change has an entry in
docs/migrating-to-5.md, with who is affected and before and after code. It ships first as5.0.0-beta.1on the npmnextdist-tag;lateststays on 4.6.0 until 5.0.0.Also in this PR:
SECURITY.mdsupports 5.x, with 4.x fixes on a best-effort basis.release.ymlpicks the dist-tag:nextfor a pre-release,v<major>for an older major, and otherwiselatest, never movinglatestback.The iframe transport is kept in 5.0 and may be removed in 6.0. If you use
iframe: true, comment on #629 with your use case.Evidence
After (5.0.0-beta.1):
npm test: Chromium 1,098 passed, WebKit 1,077 passed, 100% coverage.npm run test:e2e: 474 passed (the native-submission comparison, through a real server), and 23 of 23 published-package tests against the packed tarball.src: 95.51%.security-extendedand the repo's query pack: no results. Each fixed XSS sink, reopened on purpose, is flagged.Merge Danger
Door: two-way for the merge, one-way for publishing
Merging changes
mainonly. Pushing av5.0.0-beta.Ntag publishes to npm onnext, which can't be unpublished after 72 hours.release/4.xis cut fromv4.6.0just before this merges, and it needs therelease.ymldist-tag commit cherry-picked first, or a 4.x patch would takelatest.Blast Radius: consumers
Anyone who installs
jquery-form@latestafter 5.0.0 gets the breaking changes: pages on jQuery before 3.5 or old browsers, deepsrcimports, and servers that depend on 4.x's field order or image-button fields. The beta reaches only people who ask for@next. The docs site builds frommain, so it switches to 5.0 docs on merge.🤖 Generated with Claude Code