Skip to content

Commit

Permalink
ci: Update ALL Dependencies (main) -- Workflow Bot (#3740)
Browse files Browse the repository at this point in the history
  • Loading branch information
1 parent 1d025fe commit c8a5eaf
Show file tree
Hide file tree
Showing 20 changed files with 219 additions and 255 deletions.
358 changes: 179 additions & 179 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4026,10 +4026,10 @@
"devDependencies": {
"@eslint/js": "^9.13.0",
"@tsconfig/node20": "^20.1.4",
"@types/node": "^20.17.1",
"@types/node": "^20.17.2",
"@types/vscode": "1.90.0",
"@types/vscode-webview": "^1.57.5",
"@vitest/coverage-istanbul": "^2.1.3",
"@vitest/coverage-istanbul": "^2.1.4",
"@vscode/vsce": "^3.2.1",
"ansi-styles": "^6.2.1",
"chokidar-cli": "^3.0.0",
Expand All @@ -4049,9 +4049,9 @@
"rollup-plugin-dts": "^6.1.1",
"shx": "^0.3.4",
"typescript": "^5.6.3",
"typescript-eslint": "^8.11.0",
"typescript-eslint": "^8.12.1",
"vite": "^5.4.10",
"vitest": "^2.1.3"
"vitest": "^2.1.4"
},
"dependencies": {
"@cspell/cspell-bundled-dicts": "^8.15.4",
Expand Down
4 changes: 2 additions & 2 deletions packages/_integrationTests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
"devDependencies": {
"@cspell/cspell-types": "^8.15.4",
"@cspell/dict-de-de": "^4.0.3",
"@types/chai": "^5.0.0",
"@types/chai": "^5.0.1",
"@types/decompress": "^4.2.7",
"@types/mocha": "^10.0.9",
"@types/node": "^20.17.1",
"@types/node": "^20.17.2",
"chai": "^5.1.2",
"cross-env": "^7.0.3"
},
Expand Down
8 changes: 2 additions & 6 deletions packages/_server/src/api/apiModels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,7 @@ export interface WorkspaceConfigForDocument {

export type WorkspaceConfigForDocumentResponse = WorkspaceConfigForDocument;

export type FieldExistsInTarget = {
[key in ConfigurationTarget]?: boolean;
};
export type FieldExistsInTarget = Partial<Record<ConfigurationTarget, boolean>>;

export type ConfigurationTarget = ConfigScopeVScode;

Expand All @@ -247,9 +245,7 @@ export type {
SpellCheckerSettingsProperties,
} from '../config/cspellConfig/index.mjs';

export type VSCodeSettingsCspell = {
[key in ExtensionId]?: CSpellUserSettings;
};
export type VSCodeSettingsCspell = Partial<Record<ExtensionId, CSpellUserSettings>>;

export type PublishDiagnostics = Required<PublishDiagnosticsParams>;

Expand Down
4 changes: 1 addition & 3 deletions packages/_server/src/config/configTargets.mts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ export interface ConfigTargetCSpell extends TargetBaseWithHas {

type HasConfigFields = 'words' | 'ignoreWords';

type HasConfigField = {
[key in HasConfigFields]: boolean | undefined;
};
type HasConfigField = Record<HasConfigFields, boolean | undefined>;
export interface ConfigTargetVSCode extends TargetBaseWithHas {
kind: 'vscode';
scope: ConfigScopeVScode;
Expand Down
4 changes: 1 addition & 3 deletions packages/_server/src/config/configTargetsHelper.mts
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ function dictionariesToTargets(dicts: DictionaryDefinitionCustom[]): ConfigTarge
return dicts.map(dictToT).flatMap((x) => [...x]);
}

type DictScopeMapKnown = {
[key in ConfigScope]: number;
};
type DictScopeMapKnown = Record<ConfigScope, number>;
interface DictScopeMap extends DictScopeMapKnown {
unknown: number;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ type DictionaryDefCustom = Omit<DictionaryDefinitionCustom, 'type' | 'useCompoun

export type DictionaryDef = CustomDictionary | DictionaryDefPreferred | DictionaryDefCustom;

export type CustomDictionaries = {
[Name in DictionaryId]: EnableCustomDictionary | CustomDictionariesDictionary;
};
export type CustomDictionaries = Record<DictionaryId, EnableCustomDictionary | CustomDictionariesDictionary>;

export type CustomDictionaryEntry = CustomDictionaryAugmentExistingDictionary | CustomDictionary | DictionaryId;
type OptionalField<T, K extends keyof T> = {
Expand Down
14 changes: 9 additions & 5 deletions packages/client/src/commands.mts
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,14 @@ const commandsFromServer: ClientSideCommandHandlerApi = {
},
};

type CommandHandler = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-invalid-void-type
[key in string]: (...params: any[]) => void | Promise<void> | Promise<unknown>;
};
// eslint-disable-next-line @typescript-eslint/no-explicit-any
type ExplicitAny = any;

type CommandHandler =
| ((...params: ExplicitAny[]) => void)
| ((...params: ExplicitAny[]) => undefined)
| ((...params: ExplicitAny[]) => Promise<unknown>);
type CommandHandlers = Record<string, CommandHandler>;

const prompt = onCommandUseDiagsSelectionOrPrompt;
const tsFCfg = (configTarget: ConfigurationTarget, limitToTarget = false) =>
Expand Down Expand Up @@ -195,7 +199,7 @@ export const commandHandlers = {
'cSpell.disableLanguage': disableLanguageIdCmd,
'cSpell.enableCurrentLanguage': enableCurrentFileType, // legacy
'cSpell.disableCurrentLanguage': disableCurrentFileType, // legacy
} as const satisfies CommandHandler;
} as const satisfies CommandHandlers;

type ImplementedCommandHandlers = typeof commandHandlers;
type ImplementedCommandNames = keyof ImplementedCommandHandlers;
Expand Down
4 changes: 1 addition & 3 deletions packages/client/src/di.mts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ export interface GlobalDependencies {
eventLogger: EventLogger;
}

type KeysForGlobalDependencies = {
[K in GlobalDependenciesKeys]: undefined;
};
type KeysForGlobalDependencies = Record<GlobalDependenciesKeys, undefined>;

const definedDependencyKeys: KeysForGlobalDependencies = {
name: undefined,
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/infoViewer/infoHelper.mts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export async function calcSettings(
}

type InspectKeys = keyof InspectValues<SelectedCSpellUserSettings>;
const keyMap: { [k in InspectKeys]: ConfigSource } = {
const keyMap: Record<InspectKeys, ConfigSource> = {
defaultValue: 'default',
globalValue: 'user',
workspaceValue: 'workspace',
Expand Down
4 changes: 1 addition & 3 deletions packages/client/src/languageServer/MapDiagnosticSeverity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import { DiagnosticSeverity } from 'vscode';
import type { DiagnosticSeverity as DiagnosticSeverityNum } from 'vscode-languageclient/node';
import { DiagnosticSeverity as LcDiagnosticSeverity } from 'vscode-languageclient/node';

type MapDiagnosticSeverity = {
[key in DiagnosticSeverity]: DiagnosticSeverityNum;
};
type MapDiagnosticSeverity = Record<DiagnosticSeverity, DiagnosticSeverityNum>;

export const diagSeverityMap: MapDiagnosticSeverity = {
[DiagnosticSeverity.Error]: LcDiagnosticSeverity.Error,
Expand Down
12 changes: 4 additions & 8 deletions packages/client/src/repl/args.mts
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,9 @@ export type TypeToTypeName<T> = T extends boolean
? 'number[]'
: never;

export type ArgsDefinitions = {
[k in string]: ArgDef<ArgTypeNames>;
};
export type ArgsDefinitions = Record<string, ArgDef<ArgTypeNames>>;

type ArgInlineDef<N extends string, T extends ArgTypeNames> = { [k in N]: ArgDef<T> };
type ArgInlineDef<N extends string, T extends ArgTypeNames> = Record<N, ArgDef<T>>;

/**
* Define an argument
Expand All @@ -423,7 +421,7 @@ export function defArg<N extends string, T extends ArgTypeNames>(
return { [name]: { type, description, required } } as ArgInlineDef<N, T>;
}

type OptInlineDef<N extends string, T extends OptionTypeNames> = { [k in N]: OptionDef<T> };
type OptInlineDef<N extends string, T extends OptionTypeNames> = Record<N, OptionDef<T>>;

/**
* Define an option
Expand All @@ -446,9 +444,7 @@ type ArgDefsToArgs<T extends ArgsDefinitions> = {
[k in keyof T]?: TypeNameToType<T[k]['type']>;
} & { _: string[] };

export type OptionDefinitions = {
[k in string]: OptionDef<OptionTypeNames>;
};
export type OptionDefinitions = Record<string, OptionDef<OptionTypeNames>>;

type OptDefsToOpts<T extends OptionDefinitions> = {
[k in keyof T]: TypeNameToType<T[k]['type']>;
Expand Down
4 changes: 1 addition & 3 deletions packages/client/src/settings/clientConfigTarget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ export const isClientConfigTargetDictionary = isA<ClientConfigTargetDictionary>(
export const isClientConfigTargetCSpell = isA<ClientConfigTargetCSpell>(ConfigKinds.Cspell);
export const isClientConfigTargetVSCode = isA<ClientConfigTargetVSCode>(ConfigKinds.Vscode);

type ScopeToOrder = {
[K in ClientConfigScope]: number;
};
type ScopeToOrder = Record<ClientConfigScope, number>;

const scopeOrderGlobalToLocal: ScopeToOrder = {
user: 1,
Expand Down
12 changes: 3 additions & 9 deletions packages/client/src/settings/configTargetHelper.mts
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,11 @@ import { ConfigKinds } from './clientConfigTarget.js';
import { CSpellConfigFields } from './configFields.mjs';
import { configurationTargetToDictionaryScope } from './targetAndScope.mjs';

type ConfigKindMask = {
[key in ClientConfigKind]?: boolean;
};
type ConfigKindMask = Partial<Record<ClientConfigKind, boolean>>;

type ConfigScopeMask = {
[key in ClientConfigScope]?: boolean;
};
type ConfigScopeMask = Partial<Record<ClientConfigScope, boolean>>;

export type ConfigTargetMatchPattern = {
[key in ClientConfigKind | ClientConfigScope]?: boolean;
};
export type ConfigTargetMatchPattern = Partial<Record<ClientConfigKind | ClientConfigScope, boolean>>;

export type ConfigTargetMatchPatternKey = keyof ConfigTargetMatchPattern;

Expand Down
8 changes: 2 additions & 6 deletions packages/client/src/settings/targetAndScope.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@ import type { ClientConfigScope } from './clientConfigTarget.js';

type ConfigScopeVScode = ConfigTargetVSCode['scope'];

type TargetToConfigScope = {
[key in ConfigurationTarget]: ConfigScopeVScode;
};
type TargetToConfigScope = Record<ConfigurationTarget, ConfigScopeVScode>;

type ConfigScopeToTarget = {
[key in ConfigScopeVScode]: ConfigurationTarget;
};
type ConfigScopeToTarget = Record<ConfigScopeVScode, ConfigurationTarget>;

const targetToScope: TargetToConfigScope = {
[ConfigurationTarget.Global]: 'user',
Expand Down
4 changes: 1 addition & 3 deletions packages/client/src/settings/vsConfig.mts
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,7 @@ const targetToScopeMap: TargetToScopeMap = {
[ConfigurationTarget.WorkspaceFolder]: 'workspaceFolderValue',
};

type ConfigTargetToName = {
[key in ConfigurationTarget]: string;
};
type ConfigTargetToName = Record<ConfigurationTarget, string>;

const configTargetToName: ConfigTargetToName = {
[ConfigurationTarget.Global]: 'user',
Expand Down
12 changes: 3 additions & 9 deletions packages/client/src/storage/context.mts
Original file line number Diff line number Diff line change
Expand Up @@ -246,17 +246,11 @@ async function _updateDocumentRelatedContext(client: CSpellClient, doc: TextDocu

type ConfigTargetKindAndScope = ConfigKind | ConfigScope;

type ConfigAggregates = {
[key in ConfigTargetKindAndScope]?: number;
};
type ConfigAggregates = Partial<Record<ConfigTargetKindAndScope, number>>;

type ConfigScopeCnt = {
[key in ConfigScope]?: number;
};
type ConfigScopeCnt = Partial<Record<ConfigScope, number>>;

type ConfigMatrix = {
[key in ConfigKind]: ConfigScopeCnt;
};
type ConfigMatrix = Record<ConfigKind, ConfigScopeCnt>;

interface CalcTargetAggregates {
agg: ConfigAggregates;
Expand Down
4 changes: 1 addition & 3 deletions packages/client/src/vscode/packageJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ interface Contributes {

type MenuTypes = 'editor/context' | 'commandPalette' | 'view/item/context';

type Menus = {
[key in MenuTypes]?: MenuItem[];
};
type Menus = Partial<Record<MenuTypes, MenuItem[]>>;

interface MenuItem {
command: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/utils-disposables/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"devDependencies": {
"@tsconfig/node20": "^20.1.4",
"@types/node": "^20.17.1",
"@types/node": "^20.17.2",
"ts2mjs": "^3.0.0",
"tslib": "^2.8.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/webview-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"rollup-plugin-css-only": "^4.5.2",
"rollup-plugin-livereload": "^2.0.5",
"rollup-plugin-svelte": "^7.2.2",
"svelte": "^5.1.3",
"svelte": "^5.1.4",
"svelte-check": "^4.0.5",
"svelte-preprocess": "^6.0.3",
"tslib": "^2.8.0",
Expand Down

0 comments on commit c8a5eaf

Please sign in to comment.