@teachinglab/omd 0.5.1 → 0.5.3

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/index.js CHANGED
@@ -11,30 +11,7 @@
11
11
  * const { omdTable } = await import('@teachinglab/omd')
12
12
  */
13
13
 
14
- // Force side-effect imports in strict dependency order to ensure proper class inheritance
15
- // Level 1: Base node class
16
- import './omd/nodes/omdNode.js';
17
-
18
- // Level 2: Classes extending omdNode
19
- import './omd/nodes/omdLeafNode.js';
20
- import './omd/nodes/omdBinaryExpressionNode.js';
21
- import './omd/nodes/omdUnaryExpressionNode.js';
22
- import './omd/nodes/omdParenthesisNode.js';
23
- import './omd/nodes/omdPowerNode.js';
24
- import './omd/nodes/omdRationalNode.js';
25
- import './omd/nodes/omdSqrtNode.js';
26
- import './omd/nodes/omdFunctionNode.js';
27
- import './omd/nodes/omdEquationNode.js';
28
- import './omd/nodes/omdEquationSequenceNode.js';
29
- import './omd/nodes/omdOperationDisplayNode.js';
30
-
31
- // Level 3: Classes extending omdLeafNode
32
- import './omd/nodes/omdConstantNode.js';
33
- import './omd/nodes/omdOperatorNode.js';
34
- import './omd/nodes/omdVariableNode.js';
35
- import './omd/nodes/omdGroupNode.js';
36
-
37
- // Import everything to ensure proper loading order
14
+ // Import everything first to ensure proper loading order
38
15
  import * as omdCore from './omd/core/index.js';
39
16
  import * as omdCanvas from './canvas/index.js';
40
17
  import * as omdVisualizations from './src/index.js';
package/omd/core/index.js CHANGED
@@ -1,28 +1,20 @@
1
- // Core node classes - imported in dependency order
2
- // Level 1: Base class
1
+ // Core node classes
3
2
  import { omdNode } from '../nodes/omdNode.js';
4
-
5
- // Level 2: First-level descendants of omdNode
6
- import { omdLeafNode } from '../nodes/omdLeafNode.js';
7
-
8
- // Level 3: Classes that extend omdLeafNode - MUST come after omdLeafNode
3
+ import { omdBinaryExpressionNode } from '../nodes/omdBinaryExpressionNode.js';
9
4
  import { omdConstantNode } from '../nodes/omdConstantNode.js';
10
- import { omdOperatorNode } from '../nodes/omdOperatorNode.js';
11
- import { omdVariableNode } from '../nodes/omdVariableNode.js';
5
+ import { omdEquationNode } from '../nodes/omdEquationNode.js';
6
+ import { omdFunctionNode } from '../nodes/omdFunctionNode.js';
12
7
  import { omdGroupNode } from '../nodes/omdGroupNode.js';
13
-
14
- // Level 2: Other classes that extend omdNode directly
15
- import { omdBinaryExpressionNode } from '../nodes/omdBinaryExpressionNode.js';
16
- import { omdUnaryExpressionNode } from '../nodes/omdUnaryExpressionNode.js';
8
+ import { omdLeafNode } from '../nodes/omdLeafNode.js';
9
+ import { omdOperationDisplayNode } from '../nodes/omdOperationDisplayNode.js';
10
+ import { omdOperatorNode } from '../nodes/omdOperatorNode.js';
17
11
  import { omdParenthesisNode } from '../nodes/omdParenthesisNode.js';
18
12
  import { omdPowerNode } from '../nodes/omdPowerNode.js';
19
13
  import { omdRationalNode } from '../nodes/omdRationalNode.js';
20
- import { omdSqrtNode } from '../nodes/omdSqrtNode.js';
21
- import { omdFunctionNode } from '../nodes/omdFunctionNode.js';
22
- import { omdOperationDisplayNode } from '../nodes/omdOperationDisplayNode.js';
23
- import { omdEquationNode } from '../nodes/omdEquationNode.js';
24
14
  import { omdEquationSequenceNode } from '../nodes/omdEquationSequenceNode.js';
25
-
15
+ import { omdSqrtNode } from '../nodes/omdSqrtNode.js';
16
+ import { omdUnaryExpressionNode } from '../nodes/omdUnaryExpressionNode.js';
17
+ import { omdVariableNode } from '../nodes/omdVariableNode.js';
26
18
  import { omdEquationStack } from './omdEquationStack.js';
27
19
 
28
20
  // Visualization components
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teachinglab/omd",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "description": "omd",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",