@rayburst/cli 0.4.7 → 0.4.9

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.
@@ -2028,6 +2028,13 @@ function rayburstPlugin(options = {}) {
2028
2028
  const projectPath = config.root;
2029
2029
  const previousAnalysis = await readLocalAnalysis(projectPath);
2030
2030
  const newAnalysis = await analyzeProject(projectPath);
2031
+ const branches = Object.keys(newAnalysis.planData);
2032
+ if (!newAnalysis.changeHistory && branches.length > 0) {
2033
+ newAnalysis.changeHistory = {};
2034
+ for (const branchId of branches) {
2035
+ newAnalysis.changeHistory[branchId] = [];
2036
+ }
2037
+ }
2031
2038
  if (previousAnalysis) {
2032
2039
  const diff = generateDiff(previousAnalysis, newAnalysis);
2033
2040
  if (diff.added.nodes.length > 0 || diff.removed.nodeIds.length > 0 || diff.modified.nodes.length > 0) {
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  readLocalMeta,
10
10
  writeLocalAnalysis,
11
11
  writeLocalMeta
12
- } from "./chunk-YHYRJJS4.js";
12
+ } from "./chunk-PZV3B4QV.js";
13
13
  export {
14
14
  addGitignoreEntry,
15
15
  analyzeProject,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  rayburstPlugin
3
- } from "./chunk-YHYRJJS4.js";
3
+ } from "./chunk-PZV3B4QV.js";
4
4
  export {
5
5
  rayburstPlugin
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rayburst/cli",
3
- "version": "0.4.7",
3
+ "version": "0.4.9",
4
4
  "description": "Rayburst - Automatic code analysis for TypeScript/JavaScript projects via Vite plugin",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -42,7 +42,7 @@
42
42
  }
43
43
  },
44
44
  "dependencies": {
45
- "@rayburst/cli": "^0.4.6",
45
+ "@rayburst/cli": "^0.4.8",
46
46
  "chalk": "^5.3.0",
47
47
  "ts-morph": "^21.0.1",
48
48
  "zod": "^4.2.0"