@danielsimonjr/mathts-ast 0.1.19 → 0.1.20

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.
Files changed (2) hide show
  1. package/README.md +28 -28
  2. package/package.json +61 -61
package/README.md CHANGED
@@ -1,28 +1,28 @@
1
- # @danielsimonjr/mathts-ast
2
-
3
- Standalone AST node constructors for [MathTS](https://github.com/danielsimonjr/mathts) expressions.
4
-
5
- A focused entry point over the AST nodes in
6
- [`@danielsimonjr/mathts-expression`](https://www.npmjs.com/package/@danielsimonjr/mathts-expression).
7
- The implementation is re-exported, not duplicated. Useful for tooling that builds,
8
- walks, transforms, or pretty-prints expression trees without pulling in the evaluator.
9
-
10
- ## Install
11
-
12
- ```sh
13
- npm install @danielsimonjr/mathts-ast
14
- ```
15
-
16
- ## What it exports
17
-
18
- The 16 AST node constructor factories: `createNode`, `createConstantNode`,
19
- `createOperatorNode`, `createSymbolNode`, `createFunctionNode`, `createIndexNode`,
20
- `createAccessorNode`, `createArrayNode`, `createAssignmentNode`, `createBlockNode`,
21
- `createConditionalNode`, `createFunctionAssignmentNode`, `createObjectNode`,
22
- `createParenthesisNode`, `createRangeNode`, `createRelationalNode` -- plus the
23
- associated TypeScript types. These are MathTS factory functions; wire them via
24
- `create()` / `typed-function` as from `@danielsimonjr/mathts-expression`.
25
-
26
- ## License
27
-
28
- MIT (c) Daniel Simon Jr.
1
+ # @danielsimonjr/mathts-ast
2
+
3
+ Standalone AST node constructors for [MathTS](https://github.com/danielsimonjr/mathts) expressions.
4
+
5
+ A focused entry point over the AST nodes in
6
+ [`@danielsimonjr/mathts-expression`](https://www.npmjs.com/package/@danielsimonjr/mathts-expression).
7
+ The implementation is re-exported, not duplicated. Useful for tooling that builds,
8
+ walks, transforms, or pretty-prints expression trees without pulling in the evaluator.
9
+
10
+ ## Install
11
+
12
+ ```sh
13
+ npm install @danielsimonjr/mathts-ast
14
+ ```
15
+
16
+ ## What it exports
17
+
18
+ The 16 AST node constructor factories: `createNode`, `createConstantNode`,
19
+ `createOperatorNode`, `createSymbolNode`, `createFunctionNode`, `createIndexNode`,
20
+ `createAccessorNode`, `createArrayNode`, `createAssignmentNode`, `createBlockNode`,
21
+ `createConditionalNode`, `createFunctionAssignmentNode`, `createObjectNode`,
22
+ `createParenthesisNode`, `createRangeNode`, `createRelationalNode` -- plus the
23
+ associated TypeScript types. These are MathTS factory functions; wire them via
24
+ `create()` / `typed-function` as from `@danielsimonjr/mathts-expression`.
25
+
26
+ ## License
27
+
28
+ MIT (c) Daniel Simon Jr.
package/package.json CHANGED
@@ -1,61 +1,61 @@
1
- {
2
- "name": "@danielsimonjr/mathts-ast",
3
- "version": "0.1.19",
4
- "description": "Standalone AST node constructors for MathTS expressions, re-exported as a focused package",
5
- "author": "Daniel Simon Jr.",
6
- "license": "MIT",
7
- "type": "module",
8
- "main": "./dist/index.js",
9
- "module": "./dist/index.js",
10
- "types": "./dist/index.d.ts",
11
- "exports": {
12
- ".": {
13
- "import": "./dist/index.js",
14
- "types": "./dist/index.d.ts"
15
- }
16
- },
17
- "files": [
18
- "dist",
19
- "README.md"
20
- ],
21
- "scripts": {
22
- "build": "tsup src/index.ts --format esm --clean && tsc -p tsconfig.dts.json",
23
- "dev": "tsup src/index.ts --format esm --dts --watch",
24
- "test": "bun test",
25
- "test:watch": "vitest",
26
- "test:coverage": "bun test --coverage",
27
- "typecheck": "tsc --noEmit",
28
- "lint": "oxlint src",
29
- "lint:fix": "oxlint src --fix",
30
- "clean": "rm -rf dist",
31
- "build:prod": "tsup src/index.ts --format esm --dts --clean --minify --treeshake"
32
- },
33
- "dependencies": {
34
- "@danielsimonjr/mathts-core": "^0.15.0",
35
- "@danielsimonjr/mathts-expression": "^0.8.0",
36
- "typed-function": "^4.0.0"
37
- },
38
- "devDependencies": {
39
- "@types/node": "^26.4.0",
40
- "tsup": "^8.0.0",
41
- "typescript": "^7.0.2",
42
- "vitest": "^5.0.0"
43
- },
44
- "publishConfig": {
45
- "access": "public"
46
- },
47
- "repository": {
48
- "type": "git",
49
- "url": "git+https://github.com/danielsimonjr/MathTS.git",
50
- "directory": "ast"
51
- },
52
- "keywords": [
53
- "math",
54
- "typescript",
55
- "ast",
56
- "parser",
57
- "nodes",
58
- "expression",
59
- "tree"
60
- ]
61
- }
1
+ {
2
+ "name": "@danielsimonjr/mathts-ast",
3
+ "version": "0.1.20",
4
+ "description": "Standalone AST node constructors for MathTS expressions, re-exported as a focused package",
5
+ "author": "Daniel Simon Jr.",
6
+ "license": "MIT",
7
+ "type": "module",
8
+ "main": "./dist/index.js",
9
+ "module": "./dist/index.js",
10
+ "types": "./dist/index.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/index.js",
14
+ "types": "./dist/index.d.ts"
15
+ }
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "README.md"
20
+ ],
21
+ "scripts": {
22
+ "build": "tsup src/index.ts --format esm --clean && tsc -p tsconfig.dts.json",
23
+ "dev": "tsup src/index.ts --format esm --dts --watch",
24
+ "test": "bun test",
25
+ "test:watch": "vitest",
26
+ "test:coverage": "bun test --coverage",
27
+ "typecheck": "tsc --noEmit",
28
+ "lint": "oxlint src",
29
+ "lint:fix": "oxlint src --fix",
30
+ "clean": "rm -rf dist",
31
+ "build:prod": "tsup src/index.ts --format esm --dts --clean --minify --treeshake"
32
+ },
33
+ "dependencies": {
34
+ "@danielsimonjr/mathts-core": "^0.15.4",
35
+ "@danielsimonjr/mathts-expression": "^0.8.1",
36
+ "typed-function": "^4.0.0"
37
+ },
38
+ "devDependencies": {
39
+ "@types/node": "^26.4.0",
40
+ "tsup": "^8.0.0",
41
+ "typescript": "^7.0.2",
42
+ "vitest": "^5.0.0"
43
+ },
44
+ "publishConfig": {
45
+ "access": "public"
46
+ },
47
+ "repository": {
48
+ "type": "git",
49
+ "url": "git+https://github.com/danielsimonjr/MathTS.git",
50
+ "directory": "ast"
51
+ },
52
+ "keywords": [
53
+ "math",
54
+ "typescript",
55
+ "ast",
56
+ "parser",
57
+ "nodes",
58
+ "expression",
59
+ "tree"
60
+ ]
61
+ }