From c5c8a40aae0c0d40e76d496818f83f96f26c1af6 Mon Sep 17 00:00:00 2001 From: Stukova Olya Date: Tue, 27 Jan 2026 12:03:52 +0500 Subject: [PATCH 1/4] fix: prevent potential crash in link hover detection Signed-off-by: Stukova Olya --- src/modules/Lines/index.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/modules/Lines/index.ts b/src/modules/Lines/index.ts index 961bff4f..7951d324 100644 --- a/src/modules/Lines/index.ts +++ b/src/modules/Lines/index.ts @@ -259,7 +259,16 @@ export class Lines extends CoreModule { public findHoveredLine (): void { if (!this.data.linksNumber || !this.store.isLinkHoveringEnabled) return - if (!this.linkIndexFbo) this.updateLinkIndexFbo() + + // Ensure all required buffers are initialized before hover detection + if (!this.pointsBuffer) return + if (!this.linkIndexFbo) return + if (!this.linkIndexBuffer) return + if (!this.colorBuffer) return + if (!this.widthBuffer) return + if (!this.arrowBuffer) return + if (!this.curveLineGeometry || !this.curveLineBuffer) return + this.reglInstance.clear({ framebuffer: this.linkIndexFbo as regl.Framebuffer2D, color: [0, 0, 0, 0], From 8e989b98f80740e932ccfa0f217a0f844f6c9fa5 Mon Sep 17 00:00:00 2001 From: Stukova Olya Date: Tue, 27 Jan 2026 12:12:25 +0500 Subject: [PATCH 2/4] Release 2.6.3 Signed-off-by: Stukova Olya --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index c678cb3d..33d0b35b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@cosmos.gl/graph", - "version": "2.6.2", + "version": "2.6.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@cosmos.gl/graph", - "version": "2.6.2", + "version": "2.6.3", "license": "MIT", "dependencies": { "d3-array": "^3.2.0", diff --git a/package.json b/package.json index 8c665316..b71d248e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cosmos.gl/graph", - "version": "2.6.2", + "version": "2.6.3", "description": "GPU-based force graph layout and rendering", "jsdelivr": "dist/index.min.js", "main": "dist/index.js", From 158363250fc2efdcb13ba4ee68b3ff1bbe9aa10e Mon Sep 17 00:00:00 2001 From: Stukova Olya Date: Wed, 28 Jan 2026 00:34:09 +0500 Subject: [PATCH 3/4] Add prepublish script to build Vite before publishing Signed-off-by: Stukova Olya --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b71d248e..f0db10b9 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "lint": "eslint --cache ./src --ext .ts --ignore-path .gitignore", "lint:staged": "npx lint-staged", "storybook": "storybook dev -p 6006", - "build:storybook": "storybook build" + "build:storybook": "storybook build", + "prepublishOnly": "npm run build:vite" }, "engines": { "node": ">=12.2.0", From e4043a27817695eff9060c0afbd801c82a6f915a Mon Sep 17 00:00:00 2001 From: Stukova Olya Date: Wed, 28 Jan 2026 11:27:31 +0500 Subject: [PATCH 4/4] 2.6.4 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 33d0b35b..4fc9b634 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@cosmos.gl/graph", - "version": "2.6.3", + "version": "2.6.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@cosmos.gl/graph", - "version": "2.6.3", + "version": "2.6.4", "license": "MIT", "dependencies": { "d3-array": "^3.2.0", diff --git a/package.json b/package.json index f0db10b9..f7443c38 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cosmos.gl/graph", - "version": "2.6.3", + "version": "2.6.4", "description": "GPU-based force graph layout and rendering", "jsdelivr": "dist/index.min.js", "main": "dist/index.js",