Skip to content

Commit 6dd973a

Browse files
Merge pull request #102 from MichaelCurrin/build-deps-upgrade
build(deps): upgrade Node, NPM, and deps
2 parents ad4cd99 + d654424 commit 6dd973a

File tree

16 files changed

+727
-4562
lines changed

16 files changed

+727
-4562
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ q test-quick:
4646
build:
4747
npm run build
4848

49-
# Global install.
49+
# Build then install in VS Code.
5050
e ext:
5151
npm run checks
5252
npm run ext

package-lock.json

Lines changed: 493 additions & 4325 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,23 @@
2525
"sb": "bin/reset_sandbox.sh"
2626
},
2727
"engines": {
28-
"node": ">=16",
29-
"npm": ">=8",
30-
"vscode": "^1.74.0"
28+
"node": ">=20",
29+
"npm": ">=9",
30+
"vscode": "^1.81.0"
3131
},
3232
"devDependencies": {
3333
"@types/mocha": "^10.0.1",
34-
"@types/node": "^16.11.1",
34+
"@types/node": "^20.5.4",
3535
"@types/vscode": "^1.74.0",
36-
"@typescript-eslint/eslint-plugin": "^5.48.0",
37-
"@typescript-eslint/parser": "^5.48.0",
36+
"@typescript-eslint/eslint-plugin": "^6.4.1",
37+
"@typescript-eslint/parser": "^6.4.1",
3838
"@vscode/vsce": "^2.19.0",
3939
"eslint": "^8.31.0",
4040
"mocha": "^10.0.0",
4141
"nyc": "^15.1.0",
42-
"prettier": "^2.7.0",
42+
"prettier": "^3.0.2",
4343
"source-map-support": "^0.5.20",
44-
"typescript": "^4.7.2",
44+
"typescript": "^5.1.6",
4545
"vscode-test": "^1.6.1"
4646
},
4747
"displayName": "Auto Commit Message",
@@ -77,9 +77,6 @@
7777
"color": "#f0efe7",
7878
"theme": "light"
7979
},
80-
"activationEvents": [
81-
"onCommand:commitMsg.autofill"
82-
],
8380
"contributes": {
8481
"commands": [
8582
{

src/api/git.d.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,10 @@ export interface Repository {
197197

198198
getObjectDetails(
199199
treeish: string,
200-
path: string
200+
path: string,
201201
): Promise<{ mode: string; object: string; size: number }>;
202202
detectObjectType(
203-
object: string
203+
object: string,
204204
): Promise<{ mimetype: string; encoding?: string }>;
205205
buffer(ref: string, path: string): Promise<Buffer>;
206206
show(ref: string, path: string): Promise<string>;
@@ -231,13 +231,13 @@ export interface Repository {
231231
getBranch(name: string): Promise<Branch>;
232232
getBranches(
233233
query: BranchQuery,
234-
cancellationToken?: CancellationToken
234+
cancellationToken?: CancellationToken,
235235
): Promise<Ref[]>;
236236
setBranchUpstream(name: string, upstream: string): Promise<void>;
237237

238238
getRefs(
239239
query: RefQuery,
240-
cancellationToken?: CancellationToken
240+
cancellationToken?: CancellationToken,
241241
): Promise<Ref[]>;
242242

243243
getMergeBase(ref1: string, ref2: string): Promise<string>;
@@ -259,7 +259,7 @@ export interface Repository {
259259
remoteName?: string,
260260
branchName?: string,
261261
setUpstream?: boolean,
262-
force?: ForcePushMode
262+
force?: ForcePushMode,
263263
): Promise<void>;
264264

265265
blame(path: string): Promise<string>;
@@ -307,7 +307,7 @@ export interface PushErrorHandler {
307307
repository: Repository,
308308
remote: Remote,
309309
refspec: string,
310-
error: Error & { gitErrorCode: GitErrorCodes }
310+
error: Error & { gitErrorCode: GitErrorCodes },
311311
): Promise<boolean>;
312312
}
313313

@@ -336,7 +336,7 @@ export interface API {
336336
registerRemoteSourceProvider(provider: RemoteSourceProvider): Disposable;
337337
registerCredentialsProvider(provider: CredentialsProvider): Disposable;
338338
registerPostCommitCommandsProvider(
339-
provider: PostCommitCommandsProvider
339+
provider: PostCommitCommandsProvider,
340340
): Disposable;
341341
registerPushErrorHandler(handler: PushErrorHandler): Disposable;
342342
}

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function _validateFoundRepos(git: API) {
3131
*/
3232
async function _handleRepos(
3333
git: API,
34-
sourceControl: vscode.SourceControl
34+
sourceControl: vscode.SourceControl,
3535
): Promise<Repository | false> {
3636
const selectedRepo = git.repositories.find(repository => {
3737
const uri = sourceControl.rootUri;
@@ -85,7 +85,7 @@ async function _chooseRepoForAutofill(sourceControl?: vscode.SourceControl) {
8585
export function activate(context: vscode.ExtensionContext) {
8686
const disposable = vscode.commands.registerCommand(
8787
"commitMsg.autofill",
88-
_chooseRepoForAutofill
88+
_chooseRepoForAutofill,
8989
);
9090

9191
context.subscriptions.push(disposable);

src/generate/convCommit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export class ConventionalCommit {
171171
*/
172172
export function getConventionType(
173173
action: ACTION,
174-
filePath: string
174+
filePath: string,
175175
): CONVENTIONAL_TYPE {
176176
if (action === ACTION.R || action === ACTION.D) {
177177
return CONVENTIONAL_TYPE.CHORE;

src/git/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function _execute(cwd: string, subcommand: string, options: string[] = []) {
3434
*/
3535
async function _diffIndex(
3636
repository: Repository,
37-
options: string[] = []
37+
options: string[] = [],
3838
): Promise<Array<string>> {
3939
const cwd = repository.rootUri.fsPath;
4040
const cmd = "diff-index";
@@ -77,7 +77,7 @@ export async function getChanges(repository: Repository) {
7777
}
7878

7979
console.debug(
80-
"Staging area is empty. Using unstaged files (tracked files only still)."
80+
"Staging area is empty. Using unstaged files (tracked files only still).",
8181
);
8282

8383
const allChanges = await _diffIndex(repository);

src/git/parseOutput.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const GIT_STATUS_SPLIT = " -> ";
1919
export function parseStatus(line: string): FileChange {
2020
if (line.length <= 4) {
2121
throw new Error(
22-
`Input string must be at least 4 characters. Got: '${line}'`
22+
`Input string must be at least 4 characters. Got: '${line}'`,
2323
);
2424
}
2525
const x = line[0];
@@ -56,7 +56,7 @@ export function parseStatus(line: string): FileChange {
5656
export function parseDiffIndex(line: string): FileChange {
5757
if (line.length <= 4) {
5858
throw new Error(
59-
`Invalid input. Input string must be at least 4 characters. Got: '${line}'`
59+
`Invalid input. Input string must be at least 4 characters. Got: '${line}'`,
6060
);
6161
}
6262
const x = line[0];

src/lib/paths.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export function humanList(paths: string[]) {
117117
*/
118118
export function moveOrRenameFromPaths(
119119
oldP: SplitPathResult,
120-
newP: SplitPathResult
120+
newP: SplitPathResult,
121121
) {
122122
let result: MoveOrRename;
123123

src/prepareCommitMsg.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export function _newMsg(lines: string[]) {
193193
*/
194194
export function _joinOldAndNew(
195195
autoMsgPieces: ConvCommitMsg,
196-
oldMsgPieces: MsgPieces
196+
oldMsgPieces: MsgPieces,
197197
): string {
198198
let typePrefix = "";
199199

@@ -205,7 +205,7 @@ export function _joinOldAndNew(
205205

206206
const descResult = _joinWithSpace(
207207
autoMsgPieces.description,
208-
oldMsgPieces.description
208+
oldMsgPieces.description,
209209
);
210210

211211
if (!typePrefix) {
@@ -239,7 +239,7 @@ export function _joinOldAndNew(
239239
export function _combineOldAndNew(
240240
autoType: CONVENTIONAL_TYPE,
241241
autoDesc: string,
242-
oldMsg: string
242+
oldMsg: string,
243243
): string {
244244
if (!oldMsg) {
245245
const autoCommitMsg: ConvCommitMsg = {
@@ -273,7 +273,7 @@ export function _combineOldAndNew(
273273
export function _generateMsgWithOld(lines: string[], oldMsg: string) {
274274
if (oldMsg === "") {
275275
throw new Error(
276-
"`oldMsg` must be non-empty here, or use `generateNewMsg` instead."
276+
"`oldMsg` must be non-empty here, or use `generateNewMsg` instead.",
277277
);
278278
}
279279
const { typePrefix, description } = _msgFromChanges(lines);

0 commit comments

Comments
 (0)