diffstalker 0.2.4 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,6 +10,6 @@ while read local_ref local_sha remote_ref remote_sha; do
10
10
  done
11
11
 
12
12
  if [ "$pushing_tag" = true ]; then
13
- echo "Tag push detected — running tests..."
14
- bun test
13
+ echo "Tag push detected — dry-running CI workflow..."
14
+ act push --env ACT=true --workflows .github/workflows/release.yml
15
15
  fi
@@ -28,6 +28,7 @@ jobs:
28
28
  - run: bun test
29
29
  - run: bun run metrics:snapshot
30
30
  - name: Commit metrics snapshot
31
+ if: ${{ !env.ACT }}
31
32
  run: |
32
33
  git config user.name "github-actions[bot]"
33
34
  git config user.email "github-actions[bot]@users.noreply.github.com"
@@ -35,8 +36,10 @@ jobs:
35
36
  git commit -m "Add metrics snapshot for ${{ github.ref_name }}" || true
36
37
  git push origin HEAD:main
37
38
  - run: npm publish --access public
39
+ if: ${{ !env.ACT }}
38
40
 
39
41
  - name: Create GitHub Release
42
+ if: ${{ !env.ACT }}
40
43
  uses: softprops/action-gh-release@v2
41
44
  with:
42
45
  generate_release_notes: true
package/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.2.5] - 2026-03-06
9
+
10
+ ### Added
11
+
12
+ - Show application version in hotkeys modal footer
13
+
8
14
  ## [0.2.0] - 2026-01-27
9
15
 
10
16
  ### Changed
@@ -28,6 +28,7 @@ export class ExplorerStateManager extends EventEmitter {
28
28
  expandedPaths = new Set();
29
29
  gitStatusMap = { files: new Map(), directories: new Set() };
30
30
  _cachedFilePaths = null;
31
+ _isGitRepo;
31
32
  _state = {
32
33
  currentPath: '',
33
34
  tree: null,
@@ -40,6 +41,7 @@ export class ExplorerStateManager extends EventEmitter {
40
41
  constructor(repoPath, options) {
41
42
  super();
42
43
  this.repoPath = repoPath;
44
+ this._isGitRepo = fs.existsSync(path.join(repoPath, '.git'));
43
45
  this.options = {
44
46
  hideHidden: options.hideHidden ?? true,
45
47
  hideGitignored: options.hideGitignored ?? true,
@@ -175,8 +177,8 @@ export class ExplorerStateManager extends EventEmitter {
175
177
  const entries = await fs.promises.readdir(fullPath, { withFileTypes: true });
176
178
  // Build list of paths for gitignore check
177
179
  const pathsToCheck = entries.map((e) => (node.path ? path.join(node.path, e.name) : e.name));
178
- // Get ignored files
179
- const ignoredFiles = this.options.hideGitignored
180
+ // Get ignored files (skip git check if not a git repo)
181
+ const ignoredFiles = this.options.hideGitignored && this._isGitRepo
180
182
  ? await getIgnoredFiles(this.repoPath, pathsToCheck)
181
183
  : new Set();
182
184
  const children = [];
@@ -550,6 +552,10 @@ export class ExplorerStateManager extends EventEmitter {
550
552
  * Stores result in cache for instant access by FileFinder.
551
553
  */
552
554
  async loadFilePaths() {
555
+ if (!this._isGitRepo) {
556
+ this._cachedFilePaths = [];
557
+ return;
558
+ }
553
559
  try {
554
560
  this._cachedFilePaths = await listAllFiles(this.repoPath);
555
561
  }