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

@@ -43,7 +43,7 @@ const {
/** @typedef {import("./ModuleGraph")} ModuleGraph */
/** @typedef {import("./ModuleGraphConnection").ConnectionState} ConnectionState */
/** @typedef {import("./RuntimeModule")} RuntimeModule */
/** @typedef {typeof import("./util/Hash")} Hash */
/** @typedef {import("./util/Hash").HashFunction} HashFunction */
/** @typedef {import("./util/runtime").RuntimeSpec} RuntimeSpec */
/** @type {ReadonlySet<string>} */
@@ -69,7 +69,9 @@ class ModuleHashInfo {
* @param {string} renderedHash rendered hash
*/
constructor(hash, renderedHash) {
/** @type {string} */
this.hash = hash;
/** @type {string} */
this.renderedHash = renderedHash;
}
}
@@ -95,10 +97,11 @@ const getModuleRuntimes = (chunks) => {
/**
* @param {SourceTypesByModule | undefined} sourceTypesByModule sourceTypesByModule
* @returns {(set: SortableSet<Module>) => Map<string, SortableSet<Module>>} modules by source type
* @returns {ModulesBySourceType} modules by source type
*/
const modulesBySourceType = (sourceTypesByModule) => (set) => {
/** @type {Map<SourceType, SortableSet<Module>>} */
/** @typedef {SortableSet<Module>} ModuleSortableSet */
/** @type {Map<SourceType, ModuleSortableSet>} */
const map = new Map();
for (const module of set) {
const sourceTypes =
@@ -107,6 +110,7 @@ const modulesBySourceType = (sourceTypesByModule) => (set) => {
for (const sourceType of sourceTypes) {
let innerSet = map.get(sourceType);
if (innerSet === undefined) {
/** @type {ModuleSortableSet} */
innerSet = new SortableSet();
map.set(sourceType, innerSet);
}
@@ -122,6 +126,10 @@ const modulesBySourceType = (sourceTypesByModule) => (set) => {
}
return map;
};
/** @typedef {(set: SortableSet<Module>) => Map<string, SortableSet<Module>>} ModulesBySourceType */
/** @type {ModulesBySourceType} */
const defaultModulesBySourceType = modulesBySourceType(undefined);
/**
@@ -164,11 +172,14 @@ const getModulesSize = (modules) => {
return size;
};
/** @typedef {Record<string, number>} SizesOfModules */
/**
* @param {Iterable<Module>} modules the sortable Set to get the size of
* @returns {Record<string, number>} the sizes of the modules
* @returns {SizesOfModules} the sizes of the modules
*/
const getModulesSizes = (modules) => {
/** @type {SizesOfModules} */
const sizes = Object.create(null);
for (const module of modules) {
for (const type of module.getSourceTypes()) {
@@ -199,6 +210,7 @@ const isAvailableChunk = (a, b) => {
/** @typedef {Set<Chunk>} EntryInChunks */
/** @typedef {Set<Chunk>} RuntimeInChunks */
/** @typedef {string | number} ModuleId */
/** @typedef {RuntimeSpecMap<Set<string>, RuntimeRequirements>} ChunkGraphRuntimeRequirements */
class ChunkGraphModule {
constructor() {
@@ -212,7 +224,7 @@ class ChunkGraphModule {
this.hashes = undefined;
/** @type {ModuleId | null} */
this.id = null;
/** @type {RuntimeSpecMap<Set<string>, RuntimeRequirements> | undefined} */
/** @type {ChunkGraphRuntimeRequirements | undefined} */
this.runtimeRequirements = undefined;
/** @type {RuntimeSpecMap<string, bigint> | undefined} */
this.graphHashes = undefined;
@@ -242,7 +254,7 @@ class ChunkGraphChunk {
this.runtimeRequirements = undefined;
/** @type {Set<string>} */
this.runtimeRequirementsInTree = new Set();
/** @type {ModulesBySourceType} */
this._modulesBySourceType = defaultModulesBySourceType;
}
}
@@ -251,13 +263,14 @@ class ChunkGraphChunk {
/** @typedef {Record<ModuleId, string>} IdToHashMap */
/** @typedef {Record<ChunkId, IdToHashMap>} ChunkModuleHashMap */
/** @typedef {Record<ChunkId, ModuleId[]>} ChunkModuleIdMap */
/** @typedef {Record<ChunkId, boolean>} ChunkConditionMap */
/** @typedef {(a: Module, b: Module) => -1 | 0 | 1} ModuleComparator */
class ChunkGraph {
/**
* @param {ModuleGraph} moduleGraph the module graph
* @param {string | Hash} hashFunction the hash function to use
* @param {HashFunction} hashFunction the hash function to use
*/
constructor(moduleGraph, hashFunction = DEFAULTS.HASH_FUNCTION) {
/**
@@ -809,6 +822,7 @@ class ChunkGraph {
)) {
if (filterFn(module)) {
if (idToHashMap === undefined) {
/** @type {IdToHashMap} */
idToHashMap = Object.create(null);
chunkModuleHashMap[/** @type {ChunkId} */ (asyncChunk.id)] =
/** @type {IdToHashMap} */
@@ -830,9 +844,10 @@ class ChunkGraph {
/**
* @param {Chunk} chunk the chunk
* @param {ChunkFilterPredicate} filterFn function used to filter chunks
* @returns {Record<ChunkId, boolean>} chunk map
* @returns {ChunkConditionMap} chunk condition map
*/
getChunkConditionMap(chunk, filterFn) {
/** @type {ChunkConditionMap} */
const map = Object.create(null);
for (const c of chunk.getAllReferencedChunks()) {
map[/** @type {ChunkId} */ (c.id)] = filterFn(c, this);
@@ -848,6 +863,7 @@ class ChunkGraph {
*/
hasModuleInGraph(chunk, filterFn, filterChunkFn) {
const queue = new Set(chunk.groupsIterable);
/** @type {Set<Chunk>} */
const chunksProcessed = new Set();
for (const chunkGroup of queue) {
@@ -1556,6 +1572,7 @@ Caller might not support runtime-dependent code generation (opt-out via optimiza
const cgm = this._getChunkGraphModule(module);
const runtimeRequirementsMap = cgm.runtimeRequirements;
if (runtimeRequirementsMap === undefined) {
/** @type {ChunkGraphRuntimeRequirements} */
const map = new RuntimeSpecMap();
// TODO avoid cloning item and track ownership instead
map.set(runtime, transferOwnership ? items : new Set(items));
@@ -1740,6 +1757,7 @@ Caller might not support runtime-dependent code generation (opt-out via optimiza
} else {
// cspell:word Tnamespace
for (const connection of connections) {
/** @type {Set<ConnectionState>} */
const states = new Set();
let stateInfo = "";
forEachRuntime(
@@ -1754,7 +1772,10 @@ Caller might not support runtime-dependent code generation (opt-out via optimiza
if (states.size === 1) {
const state = first(states);
if (state === false) continue;
stateInfo = activeStateToString(state);
stateInfo = activeStateToString(
/** @type {ConnectionState} */
(state)
);
}
processConnection(connection, stateInfo);
}