From 0d83dc482fef0b6eda79edd240e6f579d7bfdcc4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20Go=C5=82e=CC=A8biowski-Owczarek?=
Date: Fri, 30 Jan 2026 00:40:20 +0100
Subject: [PATCH] Build: Use jQuery 4.0.0 for demos; update RequireJS from
2.1.14 to 2.3.8
---
Gruntfile.js | 4 +-
bower.json | 4 +-
external/jquery/jquery.js | 4390 +++++++++++++--------------------
external/requirejs/require.js | 153 +-
4 files changed, 1792 insertions(+), 2759 deletions(-)
diff --git a/Gruntfile.js b/Gruntfile.js
index 7f40028731f..db31ef4742a 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -253,8 +253,8 @@ grunt.initConfig( {
"jquery-simulate/jquery.simulate.js": "jquery-simulate/jquery.simulate.js",
"jquery-simulate/LICENSE.txt": "jquery-simulate/LICENSE.txt",
- "jquery/jquery.js": "jquery-3.x/dist/jquery.js",
- "jquery/LICENSE.txt": "jquery-3.x/LICENSE.txt",
+ "jquery/jquery.js": "jquery/dist/jquery.js",
+ "jquery/LICENSE.txt": "jquery/LICENSE.txt",
"jquery-1.12.4/jquery.js": "jquery-1.12.4/dist/jquery.js",
"jquery-1.12.4/LICENSE.txt": "jquery-1.12.4/LICENSE.txt",
diff --git a/bower.json b/bower.json
index fa3f5e00929..b7b97cde5b6 100644
--- a/bower.json
+++ b/bower.json
@@ -16,9 +16,9 @@
"jquery-mousewheel": "3.2.2",
"jquery-simulate": "1.1.1",
"qunit": "2.19.4",
- "requirejs": "2.1.14",
+ "requirejs": "2.3.8",
+ "jquery": "jquery#4.0.0",
"jquery-1.12.4": "jquery#1.12.4",
- "jquery-3.x": "jquery#3.7.1",
"jquery-2.2.4": "jquery#2.2.4",
"jquery-3.0.0": "jquery#3.0.0",
"jquery-3.1.0": "jquery#3.1.0",
diff --git a/external/jquery/jquery.js b/external/jquery/jquery.js
index 1a86433c223..097b0883448 100644
--- a/external/jquery/jquery.js
+++ b/external/jquery/jquery.js
@@ -1,12 +1,12 @@
/*!
- * jQuery JavaScript Library v3.7.1
+ * jQuery JavaScript Library v4.0.0
* https://jquery.com/
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
- * https://jquery.org/license
+ * https://jquery.com/license/
*
- * Date: 2023-08-28T13:37Z
+ * Date: 2026-01-18T00:20Z
*/
( function( global, factory ) {
@@ -16,19 +16,7 @@
// For CommonJS and CommonJS-like environments where a proper `window`
// is present, execute the factory and get jQuery.
- // For environments that do not have a `window` with a `document`
- // (such as Node.js), expose a factory as module.exports.
- // This accentuates the need for the creation of a real `window`.
- // e.g. var jQuery = require("jquery")(window);
- // See ticket trac-14549 for more info.
- module.exports = global.document ?
- factory( global, true ) :
- function( w ) {
- if ( !w.document ) {
- throw new Error( "jQuery requires a window with a document" );
- }
- return factory( w );
- };
+ module.exports = factory( global, true );
} else {
factory( global );
}
@@ -36,29 +24,31 @@
// Pass this if window is not defined yet
} )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
-// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1
-// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode
-// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common
-// enough that all such attempts are guarded in a try block.
"use strict";
+if ( !window.document ) {
+ throw new Error( "jQuery requires a window with a document" );
+}
+
var arr = [];
var getProto = Object.getPrototypeOf;
var slice = arr.slice;
+// Support: IE 11+
+// IE doesn't have Array#flat; provide a fallback.
var flat = arr.flat ? function( array ) {
return arr.flat.call( array );
} : function( array ) {
return arr.concat.apply( [], array );
};
-
var push = arr.push;
var indexOf = arr.indexOf;
+// [[Class]] -> type pairs
var class2type = {};
var toString = class2type.toString;
@@ -69,85 +59,64 @@ var fnToString = hasOwn.toString;
var ObjectFunctionString = fnToString.call( Object );
+// All support tests are defined in their respective modules.
var support = {};
-var isFunction = function isFunction( obj ) {
-
- // Support: Chrome <=57, Firefox <=52
- // In some browsers, typeof returns "function" for HTML