Congratulations on the release, the changes look good!
Description
According to the npm package description, in order to use jQuery with JSDOM, you can now use a Factory:
const { JSDOM } = require( "jsdom" );
const { window } = new JSDOM( "" );
const { jQueryFactory } = require( "jquery/factory" );
const $ = jQueryFactory( window );
When the library is installed through npm:
npm install jquery@4.0.0-beta
The following files are available:

According to the package.json, there should be a factory in the dist and dist-module folders:

Link to test case
This is an issue with the bundle itself, rather than some particular jQuery functionality, but the test is rather simple:
- Install the package via NPM.
- Create a simple
test.js file with the following contents:
const { JSDOM } = require("jsdom");
const { window } = new JSDOM();
const { jQueryFactory } = require("jquery/factory");
const $ = jQuery = jQueryFactory( window );
console.log("success");
- And run it:
node test.js

I am guessing that the following array is the culprit:
https://github.com/jquery/jquery/blob/main/build/release/dist.js#L15
Congratulations on the release, the changes look good!
Description
According to the npm package description, in order to use jQuery with JSDOM, you can now use a Factory:
When the library is installed through npm:
The following files are available:
According to the
package.json, there should be a factory in thedistanddist-modulefolders:Link to test case
This is an issue with the bundle itself, rather than some particular jQuery functionality, but the test is rather simple:
test.jsfile with the following contents:node test.jsI am guessing that the following array is the culprit:
https://github.com/jquery/jquery/blob/main/build/release/dist.js#L15