Skip to content

Commit f7e9e75

Browse files
krisnyeclaude
andauthored
fix(data): break equals/typed-buffer, aabb, and math/aabb circular imports (#111)
* fix(data): break three circular import cycles flagged by bundlers - `equals.ts` and `typed-buffer/typed-buffer-equals.ts` are mutually recursive (each calls the other for deep equality). Inline the typed-buffer fast path into `equals.ts` and switch detection to a duck-typed `__brand` check + `import type` of `ReadonlyTypedBuffer`, so `equals.ts` has no runtime edge into `typed-buffer/`. The static `TypedBuffer.equals` (public surface) keeps pointing at `typedBufferEquals` unchanged. - `math/aabb/face/from-position.ts` imported the `Aabb` namespace value from the aabb barrel to reach `Aabb.center` / `Aabb.unit`, closing the cycle `aabb/index → public → face/face → face/public → from-position → aabb/index`. Switch to `import type { Aabb }` and pull `center` / `unit` from their source files, per the namespace rule. - `math/aabb/schema.ts` imported `Vec3` from the math barrel, closing the cycle `math/index → aabb/index → public → schema → math/index`. Switch to `../vec3/index.js` directly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * bumped --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8d6045d commit f7e9e75

16 files changed

Lines changed: 41 additions & 23 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "data-monorepo",
3-
"version": "0.9.59",
3+
"version": "0.9.60",
44
"private": true,
55
"scripts": {
66
"build": "pnpm -r run build",

packages/data-lit-tictactoe/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "data-lit-tictactoe",
3-
"version": "0.9.59",
3+
"version": "0.9.60",
44
"description": "Tic-Tac-Toe sample - Lit web components with @adobe/data-lit and AgenticService",
55
"type": "module",
66
"private": true,

packages/data-lit-todo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "data-lit-todo",
3-
"version": "0.9.59",
3+
"version": "0.9.60",
44
"description": "Todo sample app demonstrating @adobe/data with Lit",
55
"type": "module",
66
"private": true,

packages/data-lit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@adobe/data-lit",
3-
"version": "0.9.59",
3+
"version": "0.9.60",
44
"description": "Adobe data Lit bindings - hooks, elements, decorators",
55
"type": "module",
66
"private": false,

packages/data-p2p-tictactoe/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "data-p2p-tictactoe",
3-
"version": "0.9.59",
3+
"version": "0.9.60",
44
"description": "Serverless P2P tic-tac-toe — WebRTC DataChannel + @adobe/data-sync",
55
"type": "module",
66
"private": true,

packages/data-persistence/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@adobe/data-persistence",
3-
"version": "0.9.59",
3+
"version": "0.9.60",
44
"description": "Worker-based incremental persistence layer for @adobe/data ECS over OPFS (browser) and node:fs (server).",
55
"type": "module",
66
"sideEffects": false,

packages/data-react-hello/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "data-react-hello",
3-
"version": "0.9.59",
3+
"version": "0.9.60",
44
"description": "Hello World sample - click counter using @adobe/data-react",
55
"type": "module",
66
"private": true,

packages/data-react-pixie/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "data-react-pixie",
3-
"version": "0.9.59",
3+
"version": "0.9.60",
44
"description": "PixiJS React sample - ECS sprites (bunny, fox) with @adobe/data-react",
55
"type": "module",
66
"private": true,

packages/data-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@adobe/data-react",
3-
"version": "0.9.59",
3+
"version": "0.9.60",
44
"description": "Adobe data React bindings — hooks and context for ECS database",
55
"type": "module",
66
"private": false,

packages/data-solid-dashboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "data-solid-dashboard",
3-
"version": "0.9.59",
3+
"version": "0.9.60",
44
"description": "Mini dashboard sample — multiple components sharing one @adobe/data ECS database with SolidJS",
55
"type": "module",
66
"private": true,

0 commit comments

Comments
 (0)