diff --git a/packages/core/package.json b/packages/core/package.json index 5695bc1..b07307a 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -45,7 +45,7 @@ "empathic": "^1.0.0", "jiti": "2.0.0-beta.3", "neotraverse": "^0.6.18", - "path-to-regexp": "6.2.2", + "path-to-regexp": "6.3.0", "picomatch": "^4.0.2", "simple-git": "^3.26.0", "tinyglobby": "^0.2.6", diff --git a/packages/core/src/status/git.ts b/packages/core/src/status/git.ts index 0aaf0a9..804f7e7 100644 --- a/packages/core/src/status/git.ts +++ b/packages/core/src/status/git.ts @@ -19,6 +19,7 @@ export class LunariaGitInstance { this.#config = config; } + // TODO: Try to cache the latest changes hash for each file so that you don't have to fetch the entire history every run, only new ones. async #getFileHistory(path: string) { try { const log = await this.#git.log({ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9511ee8..bb736b8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -131,8 +131,8 @@ importers: specifier: ^0.6.18 version: 0.6.18 path-to-regexp: - specifier: 6.2.2 - version: 6.2.2 + specifier: 6.3.0 + version: 6.3.0 picomatch: specifier: ^4.0.2 version: 4.0.2 @@ -4097,6 +4097,9 @@ packages: path-to-regexp@6.2.2: resolution: {integrity: sha512-GQX3SSMokngb36+whdpRXE+3f9V8UzyAorlYvOGx87ufGHehNTn5lCxrKtLyZ4Yl/wEKnNnr98ZzOwwDZV5ogw==} + path-to-regexp@6.3.0: + resolution: {integrity: sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==} + path-type@4.0.0: resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} engines: {node: '>=8'} @@ -10302,6 +10305,8 @@ snapshots: path-to-regexp@6.2.2: {} + path-to-regexp@6.3.0: {} + path-type@4.0.0: {} pathe@1.1.2: {}