@danielsimonjr/mathts-expression 0.6.5 → 0.6.7
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/dist/index.d.ts +5 -19
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NumberTypeConfig } from '@danielsimonjr/mathts-core/internal';
|
|
1
|
+
import { FactoryMeta, NumberTypeConfig } from '@danielsimonjr/mathts-core/internal';
|
|
2
2
|
|
|
3
3
|
type TypedFunction$k = ((...args: unknown[]) => unknown) & {
|
|
4
4
|
signatures: Record<string, (...args: unknown[]) => unknown>;
|
|
@@ -77,7 +77,10 @@ declare function getOperator(fn: string): string | null;
|
|
|
77
77
|
* `DependencyName` are byte-for-byte equivalent to
|
|
78
78
|
* `@danielsimonjr/mathts-core/internal`'s copies (proven via a fast-check property
|
|
79
79
|
* harness — see `functions/tests/dedup-bucketB-equivalence.test.ts`) and are
|
|
80
|
-
* re-exported from there.
|
|
80
|
+
* re-exported from there. (`FactoryMeta` used to be re-declared locally here
|
|
81
|
+
* despite this comment already claiming it was consolidated — cross-package
|
|
82
|
+
* type-dedup pass, docs/Architecture/duplicate-symbols.json, fixed the
|
|
83
|
+
* comment to match reality.)
|
|
81
84
|
*
|
|
82
85
|
* `factory`/`FactoryFunction`/`CreateFunction` remain DELIBERATELY KEPT LOCAL — NOT
|
|
83
86
|
* safe to redirect: `factory()`'s generic `CreateFunction<TDeps extends
|
|
@@ -114,23 +117,6 @@ interface FactoryFunction<_TDeps = unknown, TResult = unknown> {
|
|
|
114
117
|
dependencies: string[];
|
|
115
118
|
meta?: FactoryMeta;
|
|
116
119
|
}
|
|
117
|
-
/**
|
|
118
|
-
* Meta information that can be attached to a factory
|
|
119
|
-
*/
|
|
120
|
-
interface FactoryMeta {
|
|
121
|
-
/**
|
|
122
|
-
* If true, the factory will be recreated when config changes
|
|
123
|
-
*/
|
|
124
|
-
recreateOnConfigChange?: boolean;
|
|
125
|
-
/**
|
|
126
|
-
* If true, this is a lazy factory that should only be created when needed
|
|
127
|
-
*/
|
|
128
|
-
lazy?: boolean;
|
|
129
|
-
/**
|
|
130
|
-
* Additional custom metadata
|
|
131
|
-
*/
|
|
132
|
-
[key: string]: unknown;
|
|
133
|
-
}
|
|
134
120
|
|
|
135
121
|
type Scope$1 = Map<string, unknown>;
|
|
136
122
|
interface CompiledExpression$9 {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danielsimonjr/mathts-expression",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7",
|
|
4
4
|
"description": "Expression parser and evaluator for MathTS",
|
|
5
5
|
"author": "Daniel Simon Jr.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"build:prod": "tsup src/index.ts --format esm --dts --clean --minify --treeshake"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@danielsimonjr/mathts-core": "^0.
|
|
34
|
+
"@danielsimonjr/mathts-core": "^0.13.0",
|
|
35
35
|
"typed-function": "^4.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|