@danielsimonjr/mathts-units 0.2.0 → 0.4.0

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 CHANGED
@@ -9,6 +9,6 @@
9
9
  *
10
10
  * @packageDocumentation
11
11
  */
12
- export { Unit, isUnit, isUnitValue, DimensionMismatchError, UnitParseError, DIMENSIONLESS, dim, UNIT_DIMENSION_LENGTH, SI_DIMENSION_LENGTH, toSiDimensions, toSiDimensionVector, fromSiDimensions, fromSiDimensionVector, BASE_UNITS, DERIVED_UNITS, ALL_UNITS, UNIT_ALIASES, getUnitDef, SI_PREFIXES, BEST_PREFIXES, getPrefix, } from '@danielsimonjr/mathts-core';
13
- export type { Dimensions, UnitDef, SiDimensionVector, SiDimensionOptions, } from '@danielsimonjr/mathts-core';
12
+ export { Unit, isUnit, isUnitValue, DimensionMismatchError, UnitParseError, DIMENSIONLESS, dim, UNIT_DIMENSION_LENGTH, SI_DIMENSION_LENGTH, toSiDimensions, toSiDimensionVector, fromSiDimensions, fromSiDimensionVector, BASE_UNITS, DERIVED_UNITS, ALL_UNITS, UNIT_ALIASES, getUnitDef, SI_PREFIXES, BEST_PREFIXES, getPrefix, UNIT_EXACT_SCALE, PI_EXACT_SCALE, LN2_EXACT_SCALE, NAMED_IRRATIONALS, namedIrrationalScale, irrationalPower, isRationalScale, decimalExactScale, exactScaleOf, binaryExactScale, ratioExactScale, multiplyExactScales, divideExactScales, powerExactScale, addExactScales, exactScalesEqual, exactScaleToNumber, clearExactScaleNumberCache, exactScaleNumberCacheSize, formatExactScale, readScaleExpression, NAMED_SCALES, UNIT_ROWS, UNIT_ROW_ALIASES, namedExactScale, readUnitScale, getUnitRow, unitRowExactScale, unitRowValue, unitRowExactOffset, UNIT_PREFIX_SETS, unitPrefixExactScale, getUnitPrefix, } from '@danielsimonjr/mathts-core';
13
+ export type { Dimensions, UnitDef, SiDimensionVector, SiDimensionOptions, ExactScale, IrrationalName, IrrationalPowers, UnitRow, UnitBaseKey, UnitPrefixSetKey, UnitPrefix, } from '@danielsimonjr/mathts-core';
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,IAAI,EACJ,MAAM,EACN,WAAW,EACX,sBAAsB,EACtB,cAAc,EACd,aAAa,EACb,GAAG,EACH,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,qBAAqB,EACrB,UAAU,EACV,aAAa,EACb,SAAS,EACT,YAAY,EACZ,UAAU,EACV,WAAW,EACX,aAAa,EACb,SAAS,GACV,MAAM,4BAA4B,CAAC;AAEpC,YAAY,EACV,UAAU,EACV,OAAO,EACP,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,IAAI,EACJ,MAAM,EACN,WAAW,EACX,sBAAsB,EACtB,cAAc,EACd,aAAa,EACb,GAAG,EACH,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,qBAAqB,EACrB,UAAU,EACV,aAAa,EACb,SAAS,EACT,YAAY,EACZ,UAAU,EACV,WAAW,EACX,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,0BAA0B,EAC1B,yBAAyB,EACzB,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,GACd,MAAM,4BAA4B,CAAC;AAEpC,YAAY,EACV,UAAU,EACV,OAAO,EACP,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,OAAO,EACP,WAAW,EACX,gBAAgB,EAChB,UAAU,GACX,MAAM,4BAA4B,CAAC"}
package/dist/index.js CHANGED
@@ -20,7 +20,40 @@ import {
20
20
  getUnitDef,
21
21
  SI_PREFIXES,
22
22
  BEST_PREFIXES,
23
- getPrefix
23
+ getPrefix,
24
+ UNIT_EXACT_SCALE,
25
+ PI_EXACT_SCALE,
26
+ LN2_EXACT_SCALE,
27
+ NAMED_IRRATIONALS,
28
+ namedIrrationalScale,
29
+ irrationalPower,
30
+ isRationalScale,
31
+ decimalExactScale,
32
+ exactScaleOf,
33
+ binaryExactScale,
34
+ ratioExactScale,
35
+ multiplyExactScales,
36
+ divideExactScales,
37
+ powerExactScale,
38
+ addExactScales,
39
+ exactScalesEqual,
40
+ exactScaleToNumber,
41
+ clearExactScaleNumberCache,
42
+ exactScaleNumberCacheSize,
43
+ formatExactScale,
44
+ readScaleExpression,
45
+ NAMED_SCALES,
46
+ UNIT_ROWS,
47
+ UNIT_ROW_ALIASES,
48
+ namedExactScale,
49
+ readUnitScale,
50
+ getUnitRow,
51
+ unitRowExactScale,
52
+ unitRowValue,
53
+ unitRowExactOffset,
54
+ UNIT_PREFIX_SETS,
55
+ unitPrefixExactScale,
56
+ getUnitPrefix
24
57
  } from "@danielsimonjr/mathts-core";
25
58
  export {
26
59
  ALL_UNITS,
@@ -29,19 +62,52 @@ export {
29
62
  DERIVED_UNITS,
30
63
  DIMENSIONLESS,
31
64
  DimensionMismatchError,
65
+ LN2_EXACT_SCALE,
66
+ NAMED_IRRATIONALS,
67
+ NAMED_SCALES,
68
+ PI_EXACT_SCALE,
32
69
  SI_DIMENSION_LENGTH,
33
70
  SI_PREFIXES,
34
71
  UNIT_ALIASES,
35
72
  UNIT_DIMENSION_LENGTH,
73
+ UNIT_EXACT_SCALE,
74
+ UNIT_PREFIX_SETS,
75
+ UNIT_ROWS,
76
+ UNIT_ROW_ALIASES,
36
77
  Unit,
37
78
  UnitParseError,
79
+ addExactScales,
80
+ binaryExactScale,
81
+ clearExactScaleNumberCache,
82
+ decimalExactScale,
38
83
  dim,
84
+ divideExactScales,
85
+ exactScaleNumberCacheSize,
86
+ exactScaleOf,
87
+ exactScaleToNumber,
88
+ exactScalesEqual,
89
+ formatExactScale,
39
90
  fromSiDimensionVector,
40
91
  fromSiDimensions,
41
92
  getPrefix,
42
93
  getUnitDef,
94
+ getUnitPrefix,
95
+ getUnitRow,
96
+ irrationalPower,
97
+ isRationalScale,
43
98
  isUnit,
44
99
  isUnitValue,
100
+ multiplyExactScales,
101
+ namedExactScale,
102
+ namedIrrationalScale,
103
+ powerExactScale,
104
+ ratioExactScale,
105
+ readScaleExpression,
106
+ readUnitScale,
45
107
  toSiDimensionVector,
46
- toSiDimensions
108
+ toSiDimensions,
109
+ unitPrefixExactScale,
110
+ unitRowExactOffset,
111
+ unitRowExactScale,
112
+ unitRowValue
47
113
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielsimonjr/mathts-units",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "Standalone units & dimensional-analysis for MathTS -- the Unit class, unit registry, and SI prefixes, re-exported as a focused package",
5
5
  "author": "Daniel Simon Jr.",
6
6
  "license": "MIT",
@@ -31,7 +31,7 @@
31
31
  "build:prod": "tsup src/index.ts --format esm --clean --minify --treeshake && tsc -p tsconfig.dts.json"
32
32
  },
33
33
  "dependencies": {
34
- "@danielsimonjr/mathts-core": "^0.16.0",
34
+ "@danielsimonjr/mathts-core": "^0.18.0",
35
35
  "typed-function": "^4.0.0"
36
36
  },
37
37
  "devDependencies": {