Update npm packages (73 packages including @jqhtml 2.3.36)

Update npm registry domain from privatenpm.hanson.xyz to npm.internal.hanson.xyz

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2026-02-20 11:31:28 +00:00
parent d01a6179aa
commit b5eb27a827
1690 changed files with 47348 additions and 16848 deletions

View File

@@ -28,6 +28,8 @@ const ConcatenatedModule = require("./ConcatenatedModule");
/** @typedef {import("../RequestShortener")} RequestShortener */
/** @typedef {import("../util/runtime").RuntimeSpec} RuntimeSpec */
/** @typedef {Module | ((requestShortener: RequestShortener) => string)} Problem */
/**
* @typedef {object} Statistics
* @property {number} cached
@@ -104,7 +106,7 @@ class ModuleConcatenationPlugin {
/**
* @param {Module} module the module
* @param {Module | ((requestShortener: RequestShortener) => string)} problem the problem
* @param {Problem} problem the problem
* @returns {(requestShortener: RequestShortener) => string} the reason
*/
const formatBailoutWarning = (module, problem) => (requestShortener) => {
@@ -143,7 +145,9 @@ class ModuleConcatenationPlugin {
"webpack.ModuleConcatenationPlugin"
);
const { chunkGraph, moduleGraph } = compilation;
/** @type {Module[]} */
const relevantModules = [];
/** @type {Set<Module>} */
const possibleInners = new Set();
const context = {
chunkGraph,
@@ -265,7 +269,9 @@ class ModuleConcatenationPlugin {
let statsEmptyConfigurations = 0;
logger.time("find modules to concatenate");
/** @type {ConcatConfiguration[]} */
const concatConfigurations = [];
/** @type {Set<Module>} */
const usedAsInner = new Set();
for (const currentRoot of relevantModules) {
// when used by another configuration as inner:
@@ -273,6 +279,7 @@ class ModuleConcatenationPlugin {
// TODO reconsider that when it's only used in a different runtime
if (usedAsInner.has(currentRoot)) continue;
/** @type {RuntimeSpec} */
let chunkRuntime;
for (const r of chunkGraph.getModuleRuntimes(currentRoot)) {
chunkRuntime = mergeRuntimeOwned(chunkRuntime, r);
@@ -295,6 +302,7 @@ class ModuleConcatenationPlugin {
);
// cache failures to add modules
/** @type {Map<Module, Problem>} */
const failureCache = new Map();
// potential optional import candidates
@@ -311,6 +319,7 @@ class ModuleConcatenationPlugin {
}
for (const imp of candidates) {
/** @type {Set<Module>} */
const impCandidates = new Set();
const problem = this._tryToAdd(
compilation,
@@ -373,6 +382,7 @@ class ModuleConcatenationPlugin {
logger.time("sort concat configurations");
concatConfigurations.sort((a, b) => b.modules.size - a.modules.size);
logger.timeEnd("sort concat configurations");
/** @type {Set<Module>} */
const usedModules = new Set();
logger.time("create concatenated modules");
@@ -515,6 +525,7 @@ class ModuleConcatenationPlugin {
*/
_getImports(compilation, module, runtime) {
const moduleGraph = compilation.moduleGraph;
/** @type {Set<Module>} */
const set = new Set();
for (const dep of module.dependencies) {
// Get reference info only for harmony Dependencies
@@ -555,11 +566,11 @@ class ModuleConcatenationPlugin {
* @param {RuntimeSpec} activeRuntime the runtime scope of the root module
* @param {Set<Module>} possibleModules modules that are candidates
* @param {Set<Module>} candidates list of potential candidates (will be added to)
* @param {Map<Module, Module | ((requestShortener: RequestShortener) => string)>} failureCache cache for problematic modules to be more performant
* @param {Map<Module, Problem>} failureCache cache for problematic modules to be more performant
* @param {ChunkGraph} chunkGraph the chunk graph
* @param {boolean} avoidMutateOnFailure avoid mutating the config when adding fails
* @param {Statistics} statistics gathering metrics
* @returns {null | Module | ((requestShortener: RequestShortener) => string)} the problematic module
* @returns {null | Problem} the problematic module
*/
_tryToAdd(
compilation,
@@ -646,6 +657,7 @@ class ModuleConcatenationPlugin {
* @returns {string} problem description
*/
const problem = (requestShortener) => {
/** @type {Set<string>} */
const importingExplanations = new Set(
activeNonModulesConnections
.map((c) => c.explanation)
@@ -674,6 +686,7 @@ class ModuleConcatenationPlugin {
if (chunkGraph.getNumberOfModuleChunks(originModule) === 0) continue;
// We don't care for connections from other runtimes
/** @type {RuntimeSpec} */
let originRuntime;
for (const r of chunkGraph.getModuleRuntimes(originModule)) {
originRuntime = mergeRuntimeOwned(originRuntime, r);
@@ -822,6 +835,7 @@ class ModuleConcatenationPlugin {
}
}
/** @type {undefined | number} */
let backup;
if (avoidMutateOnFailure) {
backup = config.snapshot();
@@ -864,7 +878,6 @@ class ModuleConcatenationPlugin {
}
}
/** @typedef {Module | ((requestShortener: RequestShortener) => string)} Problem */
/** @typedef {Map<Module, Problem>} Warnings */
class ConcatConfiguration {
@@ -873,7 +886,9 @@ class ConcatConfiguration {
* @param {RuntimeSpec} runtime the runtime
*/
constructor(rootModule, runtime) {
/** @type {Module} */
this.rootModule = rootModule;
/** @type {RuntimeSpec} */
this.runtime = runtime;
/** @type {Set<Module>} */
this.modules = new Set();