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

@@ -50,7 +50,7 @@ const moveModuleBetween = (chunkGraph, oldChunk, newChunk) => (module) => {
const isNotAEntryModule = (chunkGraph, chunk) => (module) =>
!chunkGraph.isEntryModuleInChunk(module, chunk);
/** @typedef {{ id?: NonNullable<Chunk["id"]>, hash?: NonNullable<Chunk["hash"]>, modules: Module[], size: number }} SplitData */
/** @typedef {{ id?: NonNullable<Chunk["id"]>, hash?: NonNullable<Chunk["hash"]>, modules: string[], size: number }} SplitData */
/** @type {WeakSet<Chunk>} */
const recordedChunks = new WeakSet();
@@ -64,16 +64,21 @@ class AggressiveSplittingPlugin {
constructor(options = {}) {
validate(options);
/** @type {AggressiveSplittingPluginOptions} */
this.options = options;
if (typeof this.options.minSize !== "number") {
this.options.minSize = 30 * 1024;
}
if (typeof this.options.maxSize !== "number") {
this.options.maxSize = 50 * 1024;
}
if (typeof this.options.chunkOverhead !== "number") {
this.options.chunkOverhead = 0;
}
if (typeof this.options.entryChunkMultiplicator !== "number") {
this.options.entryChunkMultiplicator = 1;
}
@@ -114,7 +119,9 @@ class AggressiveSplittingPlugin {
(chunks) => {
const chunkGraph = compilation.chunkGraph;
// Precompute stuff
/** @type {Map<string, Module>} */
const nameToModuleMap = new Map();
/** @type {Map<Module, string>} */
const moduleToNameMap = new Map();
const makePathsRelative =
identifierUtils.makePathsRelative.bindContextCache(
@@ -128,10 +135,10 @@ class AggressiveSplittingPlugin {
}
// Check used chunk ids
/** @typedef {Set<ChunkId>} */
/** @type {Set<ChunkId>} */
const usedIds = new Set();
for (const chunk of chunks) {
usedIds.add(chunk.id);
usedIds.add(/** @type {ChunkId} */ (chunk.id));
}
const recordedSplits =
@@ -154,8 +161,8 @@ class AggressiveSplittingPlugin {
}
// Get module objects from names
const selectedModules = splitData.modules.map((name) =>
nameToModuleMap.get(name)
const selectedModules = splitData.modules.map(
(name) => /** @type {Module} */ (nameToModuleMap.get(name))
);
// Does the modules exist at all?
@@ -240,6 +247,7 @@ class AggressiveSplittingPlugin {
const modules = chunkGraph
.getOrderedChunkModules(chunk, compareModulesByIdentifier)
.filter(isNotAEntryModule(chunkGraph, chunk));
/** @type {Module[]} */
const selectedModules = [];
let selectedModulesSize = 0;
for (let k = 0; k < modules.length; k++) {
@@ -255,7 +263,7 @@ class AggressiveSplittingPlugin {
/** @type {SplitData} */
const splitData = {
modules: selectedModules
.map((m) => moduleToNameMap.get(m))
.map((m) => /** @type {string} */ (moduleToNameMap.get(m)))
.sort(),
size: selectedModulesSize
};
@@ -271,6 +279,7 @@ class AggressiveSplittingPlugin {
);
compilation.hooks.recordHash.tap(PLUGIN_NAME, (records) => {
// 4. save made splittings to records
/** @type {Set<SplitData>} */
const allSplits = new Set();
/** @type {Set<SplitData>} */
const invalidSplits = new Set();