dir-analysis-tool 3.5.7 → 3.6.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dir-analysis-tool",
3
- "version": "3.5.7",
3
+ "version": "3.6.0",
4
4
  "description": "Fast, zero-dependency directory analysis for your terminal and CI: largest folders and files, type and extension breakdowns, staged duplicate detection, size budgets, directory diffs, and self-contained HTML, Markdown, JSON, and CSV reports.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -91,18 +91,18 @@
91
91
  "@semantic-release/npm": "^13.2.0",
92
92
  "@semantic-release/release-notes-generator": "^14.1.1",
93
93
  "@types/node": "^22.20.5",
94
- "@vitest/coverage-v8": "^5.0.5",
94
+ "@vitest/coverage-v8": "^5.1.1",
95
95
  "ajv": "^8.20.0",
96
96
  "conventional-changelog-conventionalcommits": "^9.3.1",
97
97
  "husky": "^9.1.7",
98
- "oxlint": "^1.88.0",
99
- "oxlint-tsgolint": "^7.0.2004",
98
+ "oxlint": "^1.94.0",
99
+ "oxlint-tsgolint": "^7.0.2008",
100
100
  "prettier": "^3.9.10",
101
101
  "publint": "^0.3.25",
102
102
  "semantic-release": "^26.0.1",
103
103
  "tsdown": "^0.23.1",
104
104
  "typescript": "^7.0.2",
105
- "vitest": "^5.0.5"
105
+ "vitest": "^5.1.1"
106
106
  },
107
107
  "engines": {
108
108
  "node": ">=22.12.0"
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://unpkg.com/dir-analysis-tool@3/report.schema.json",
4
4
  "title": "dir-analysis-tool JSON reports",
5
- "description": "Output of dat --json (schemaVersion 3), dat compare --json (schemaVersion 3) and dat explain --json (explainVersion 1). The library returns the same shapes. Within 3.x, fields are only added, never removed, renamed or retyped.",
5
+ "description": "Output of dat --json and dat --compact (schemaVersion 3), dat compare --json and --compact (schemaVersion 3) and dat explain --json (explainVersion 1). The library returns the same shapes. Within 3.x, fields are only added, never removed, renamed or retyped.",
6
6
  "anyOf": [
7
7
  {
8
8
  "$ref": "#/$defs/analysis"
@@ -677,6 +677,41 @@
677
677
  }
678
678
  }
679
679
  },
680
+ "comparisonCompact": {
681
+ "type": "object",
682
+ "description": "Present only in compact comparison output (compare --compact): what was cut.",
683
+ "required": ["limit", "truncated", "omitted"],
684
+ "properties": {
685
+ "limit": {
686
+ "type": "integer",
687
+ "minimum": 0,
688
+ "description": "Maximum number of items kept in each list."
689
+ },
690
+ "truncated": {
691
+ "type": "boolean",
692
+ "description": "Whether any list was cut."
693
+ },
694
+ "omitted": {
695
+ "type": "object",
696
+ "description": "Items not listed, per cut list. A list that is absent here was not cut.",
697
+ "required": [],
698
+ "properties": {
699
+ "added.items": {
700
+ "type": "integer",
701
+ "minimum": 0
702
+ },
703
+ "removed.items": {
704
+ "type": "integer",
705
+ "minimum": 0
706
+ },
707
+ "changed.items": {
708
+ "type": "integer",
709
+ "minimum": 0
710
+ }
711
+ }
712
+ }
713
+ }
714
+ },
680
715
  "comparison": {
681
716
  "type": "object",
682
717
  "description": "dat compare --json.",
@@ -739,15 +774,15 @@
739
774
  }
740
775
  },
741
776
  "added": {
742
- "description": "Every added file, whatever --top is.",
777
+ "description": "Every added file, whatever --top is; compact output cuts the items to the limit.",
743
778
  "$ref": "#/$defs/fileList"
744
779
  },
745
780
  "removed": {
746
- "description": "Every removed file, whatever --top is.",
781
+ "description": "Every removed file, whatever --top is; compact output cuts the items to the limit.",
747
782
  "$ref": "#/$defs/fileList"
748
783
  },
749
784
  "changed": {
750
- "description": "Every changed file, whatever --top is.",
785
+ "description": "Every changed file, whatever --top is; compact output cuts the items to the limit.",
751
786
  "type": "object",
752
787
  "required": ["count", "delta", "items"],
753
788
  "properties": {
@@ -811,6 +846,9 @@
811
846
  }
812
847
  },
813
848
  "description": "Directories with the largest size change, largest absolute change first."
849
+ },
850
+ "compact": {
851
+ "$ref": "#/$defs/comparisonCompact"
814
852
  }
815
853
  }
816
854
  },