@sheetxl/formulas 0.8.0-beta.10 → 0.8.0-beta.11

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 (60) hide show
  1. package/browser/esm/{CXvEGkvOOLo4v17T.mjs → BAu7VttBhgl5A9Ux.mjs} +1 -1
  2. package/{node/esm/B-Ig6HWcV53g7Zy0.mjs → browser/esm/BL3CLO1ngbZPNUSj.mjs} +1 -1
  3. package/browser/esm/{C1TlAj8cFI90ziZT.mjs → BL5O9xv74605fjZ0.mjs} +1 -1
  4. package/{node/esm/C2nw0NszguSU0idO.mjs → browser/esm/BTOiKBFUYxECGgpN.mjs} +1 -1
  5. package/browser/esm/Bjdqhk-JMohE4sBN.mjs +5722 -0
  6. package/browser/esm/{BTygNwyrCzzpikEl.mjs → CCTNn0CmYTRTR9uu.mjs} +1 -1
  7. package/browser/esm/{-sN4SmS9cUOrcjVR.mjs → CJVp8EBHRn_OMdXr.mjs} +1 -1
  8. package/browser/esm/{KekfJtUQq6sPOmPq.mjs → CS2YxGzDK80pF1TP.mjs} +1 -1
  9. package/browser/esm/{CpGJ_hA0h7CW4Jwu.mjs → CkvBF6_lFpJ8lzWn.mjs} +1 -1
  10. package/browser/esm/{B3LvTqivuAJYZW9O.mjs → Cm5b94jC90pgvgEQ.mjs} +1 -1
  11. package/{node/esm/DG5YNbA9Ya6Uu3DG.mjs → browser/esm/CpKG2VMt7bLP4_Az.mjs} +1 -1
  12. package/browser/esm/{B52kG70ukWJKrVHl.mjs → CpyKqbMxs8fgNUrm.mjs} +1 -1
  13. package/browser/esm/{D_PYZQxUASNNORTU.mjs → D0PDit-Emky4tG76.mjs} +1 -1
  14. package/browser/esm/{CXDwT-uLbi_ZUF6Q.mjs → D5lfhEj0O0vGXGIU.mjs} +1 -1
  15. package/browser/esm/{BCRhRyTDe0QO3_TF.mjs → DE0FWfy3dgRhUs6j.mjs} +1 -1
  16. package/{node/esm/DYoyWWN86dEdpzVg.mjs → browser/esm/DY3Yp4g7FpjDC4Ux.mjs} +1 -1
  17. package/{node/esm/DO9cbfqY2roOBQQi.mjs → browser/esm/DatkcV-D0mA7WYmb.mjs} +1 -1
  18. package/browser/esm/{PDRj7r-fmSBrQgPS.mjs → Dz2Vh5VXT4u2caUb.mjs} +1 -1
  19. package/{node/esm/B9GCCzx3ZtHrtgsZ.mjs → browser/esm/LWIfDqgl4BWsGN40.mjs} +1 -1
  20. package/{node/esm/C2WtsJFzD2GtwSHc.mjs → browser/esm/TdOBTLcfAEs2lvw1.mjs} +1 -1
  21. package/browser/esm/{D-w_d2PrWN8kwM-Z.mjs → _haW8KO4uxcUjPNq.mjs} +1 -1
  22. package/browser/esm/declarations.mjs +106 -0
  23. package/browser/esm/index.mjs +3571 -9249
  24. package/{node/esm/CYtUFqOZCtbGw6Sa.mjs → browser/esm/nW1VYp24XfapwOYa.mjs} +1 -1
  25. package/{node/esm/0Q46gxHg8afOLJ7K.mjs → browser/esm/qzngIvn0BfOU7J6v.mjs} +1 -1
  26. package/browser/esm/{CrfZkfvKRkK2qzpP.mjs → zNQMTF4Mftkd8m3i.mjs} +1 -1
  27. package/node/esm/515xLSpvB54fgWJI.mjs +5722 -0
  28. package/node/esm/{C-jlV3objhN9hpyt.mjs → BBP--4zd6B0_Rt4G.mjs} +1 -1
  29. package/{browser/esm/B-Ig6HWcV53g7Zy0.mjs → node/esm/BL3CLO1ngbZPNUSj.mjs} +1 -1
  30. package/{browser/esm/C2nw0NszguSU0idO.mjs → node/esm/BTOiKBFUYxECGgpN.mjs} +1 -1
  31. package/node/esm/{BN0QCtL-dZU8U-hd.mjs → BjhGKO4xoRsWtL_b.mjs} +1 -1
  32. package/node/esm/{C1Qq-yVzO0uZUnVb.mjs → CI_lC0jwf_Z5jdqc.mjs} +1 -1
  33. package/node/esm/{-sN4SmS9cUOrcjVR.mjs → CJVp8EBHRn_OMdXr.mjs} +1 -1
  34. package/node/esm/{KekfJtUQq6sPOmPq.mjs → CS2YxGzDK80pF1TP.mjs} +1 -1
  35. package/{browser/esm/DG5YNbA9Ya6Uu3DG.mjs → node/esm/CpKG2VMt7bLP4_Az.mjs} +1 -1
  36. package/node/esm/{B52kG70ukWJKrVHl.mjs → CpyKqbMxs8fgNUrm.mjs} +1 -1
  37. package/node/esm/{CkO4Hx9aLq7m3emI.mjs → D0jAK0A5JwzRhV5i.mjs} +1 -1
  38. package/node/esm/{BCRhRyTDe0QO3_TF.mjs → DE0FWfy3dgRhUs6j.mjs} +1 -1
  39. package/{browser/esm/DYoyWWN86dEdpzVg.mjs → node/esm/DY3Yp4g7FpjDC4Ux.mjs} +1 -1
  40. package/{browser/esm/DO9cbfqY2roOBQQi.mjs → node/esm/DatkcV-D0mA7WYmb.mjs} +1 -1
  41. package/node/esm/{Bp4XujtHH5z4dKlz.mjs → DgrvMX5JkTolu68g.mjs} +1 -1
  42. package/node/esm/{PDRj7r-fmSBrQgPS.mjs → Dz2Vh5VXT4u2caUb.mjs} +1 -1
  43. package/{browser/esm/B9GCCzx3ZtHrtgsZ.mjs → node/esm/LWIfDqgl4BWsGN40.mjs} +1 -1
  44. package/{browser/esm/C2WtsJFzD2GtwSHc.mjs → node/esm/TdOBTLcfAEs2lvw1.mjs} +1 -1
  45. package/node/esm/{D-w_d2PrWN8kwM-Z.mjs → _haW8KO4uxcUjPNq.mjs} +1 -1
  46. package/node/esm/declarations.mjs +106 -0
  47. package/node/esm/{Cf28UVIhJr5Y-_24.mjs → euzKAV6QFwFyMtRz.mjs} +1 -1
  48. package/node/esm/index.mjs +4254 -9930
  49. package/{browser/esm/CYtUFqOZCtbGw6Sa.mjs → node/esm/nW1VYp24XfapwOYa.mjs} +1 -1
  50. package/node/esm/{C--VBbIp253pJfw9.mjs → qFHh9pVgQa0ZMumi.mjs} +1 -1
  51. package/{browser/esm/0Q46gxHg8afOLJ7K.mjs → node/esm/qzngIvn0BfOU7J6v.mjs} +1 -1
  52. package/node/esm/{CrfZkfvKRkK2qzpP.mjs → zNQMTF4Mftkd8m3i.mjs} +1 -1
  53. package/package.json +9 -3
  54. package/types/declarations.d.ts +4 -0
  55. package/types/src/.generated/declarations.d.ts +7 -0
  56. package/types/src/_utils/Distributions.d.ts +3 -4
  57. package/types/src/_utils/Matrix.d.ts +2 -2
  58. package/types/src/_utils/SpecialFunctions.d.ts +2 -2
  59. package/types/src/lookupReference/Reference.d.ts +5 -5
  60. package/types/src/mathTrig/Math.d.ts +4 -4
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/formulas - Formulas - TypeScript formulas compatible with Excel built-ins. - v0.8.0-beta.10
2
+ * @license @sheetxl/formulas - Formulas - TypeScript formulas compatible with Excel built-ins. - v0.8.0-beta.11
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/formulas - Formulas - TypeScript formulas compatible with Excel built-ins. - v0.8.0-beta.10
2
+ * @license @sheetxl/formulas - Formulas - TypeScript formulas compatible with Excel built-ins. - v0.8.0-beta.11
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/formulas - Formulas - TypeScript formulas compatible with Excel built-ins. - v0.8.0-beta.10
2
+ * @license @sheetxl/formulas - Formulas - TypeScript formulas compatible with Excel built-ins. - v0.8.0-beta.11
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/formulas - Formulas - TypeScript formulas compatible with Excel built-ins. - v0.8.0-beta.10
2
+ * @license @sheetxl/formulas - Formulas - TypeScript formulas compatible with Excel built-ins. - v0.8.0-beta.11
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sheetxl/formulas",
3
3
  "description": "Formulas - TypeScript formulas compatible with Excel built-ins.",
4
- "version": "0.8.0-beta.10",
4
+ "version": "0.8.0-beta.11",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "exports": {
@@ -10,6 +10,12 @@
10
10
  "browser": "./browser/esm/index.mjs",
11
11
  "node": "./node/esm/index.mjs",
12
12
  "default": "./browser/esm/index.mjs"
13
+ },
14
+ "./declarations": {
15
+ "types": "./types/declarations.d.ts",
16
+ "browser": "./browser/esm/declarations.mjs",
17
+ "node": "./node/esm/declarations.mjs",
18
+ "default": "./browser/esm/declarations.mjs"
13
19
  }
14
20
  },
15
21
  "types": "./types/index.d.ts",
@@ -36,8 +42,8 @@
36
42
  "formulas"
37
43
  ],
38
44
  "dependencies": {
39
- "@sheetxl/primitives": "^0.8.0-beta.10",
40
- "@sheetxl/scripting": "^0.8.0-beta.10",
45
+ "@sheetxl/primitives": "^0.8.0-beta.11",
46
+ "@sheetxl/scripting": "^0.8.0-beta.11",
41
47
  "bahttext": "^2.4.0",
42
48
  "bessel": "^1.0.2"
43
49
  }
@@ -0,0 +1,4 @@
1
+ export {}
2
+ import Formulas from './src/.generated/declarations'
3
+ export default Formulas
4
+ export {}
@@ -0,0 +1,7 @@
1
+ import { FunctionDeclarationModule } from '@sheetxl/scripting';
2
+ /**
3
+ * This package's declarations, one entry per source module, in binding order.
4
+ */
5
+ declare const declarations: readonly FunctionDeclarationModule[];
6
+ export default declarations;
7
+ //# sourceMappingURL=declarations.d.ts.map
@@ -62,8 +62,8 @@ export declare const binomialPdf: (k: number, n: number, p: number) => number;
62
62
  * The CDF is the complement of a `1e-10` incomplete beta, ROUNDED to that same tolerance.
63
63
  *
64
64
  * The rounding is EXCEL'S, not a leftover: it is why a cumulative binomial in the bulk carries
65
- * ten decimal places and no more. Taking it out moves answers AWAY from Excel — it costs sixty
66
- * of BINOM.DIST's rows on its own — so it is not a cleanup to make.
65
+ * ten decimal places and no more. Taking it out moves answers AWAY from Excel, so it is not a
66
+ * cleanup to make.
67
67
  */
68
68
  export declare function binomialCdf(x: number, n: number, p: number): number;
69
69
  export declare function negbinPdf(k: number, r: number, p: number): number;
@@ -85,8 +85,7 @@ export declare const betaInv: (p: number, alpha: number, beta: number) => number
85
85
  * Half-width of the confidence interval around a mean, from the normal quantile.
86
86
  *
87
87
  * The `(1 + h) - 1` round trip is not redundant: it rounds the half-width against a unit
88
- * magnitude, which moves the answer on most shapes. Whether Excel rounds there too is not
89
- * established, so the round trip stays.
88
+ * magnitude, which moves the answer on most shapes.
90
89
  */
91
90
  export declare function normalConfidence(alpha: number, standardDev: number, size: number): number;
92
91
  /** The same half-width from Student's t on `size - 1` degrees of freedom. */
@@ -9,8 +9,8 @@
9
9
  * them, and one without pivoting produces a different residue again.
10
10
  *
11
11
  * The inverse is this same decomposition followed by a forward and back SUBSTITUTION per unit
12
- * column. Gauss-Jordan over `[A | I]` — the textbook alternative, and in five spellings — lands
13
- * further from Excel on the same matrices.
12
+ * column. Gauss-Jordan over `[A | I]` — the textbook alternative — gives different answers on
13
+ * the same matrices.
14
14
  */
15
15
  /**
16
16
  * The determinant, as the signed product of the pivots.
@@ -57,8 +57,8 @@ export declare const upRegGamma: (a: number, x: number) => number;
57
57
  * -a (u - ln(1+u)) - ln(1+u) - ln(a)/2 - ln(2 pi)/2 - stirlerr(a), u = x/a - 1
58
58
  * ```
59
59
  *
60
- * whose every term is the size of the answer. Excel's own `GAMMA.DIST(1E7,1E7,1,FALSE)` is bit
61
- * for bit the value this returns, so it is what Excel computes too.
60
+ * whose every term is the size of the answer. It is Excel's form: `GAMMA.DIST(1E7,1E7,1,FALSE)`
61
+ * is exactly the value this returns.
62
62
  */
63
63
  export declare function gammaLogPdf(a: number, x: number): number;
64
64
  /** The inverse of {@link lowRegGamma} in its second argument. */
@@ -74,7 +74,7 @@ export declare function EXPAND(array: IRange | Scalar, row: Omittable<number>, c
74
74
  * @param value The record from which you want to extract the field.
75
75
  * @param fieldName The names of the field or fields that you want to extract.
76
76
  */
77
- export declare function FIELDVALUE(value: IRichData, fieldName: string): Scalar[][];
77
+ export declare function FIELDVALUE(value: AcceptError<IRichData>, fieldName: string): Scalar[][];
78
78
  /**
79
79
  * Filter a range or array.
80
80
  * @param array the range or array to filter.
@@ -156,7 +156,7 @@ export declare function LOOKUP(lookupValue: Scalar, lookupVector: Flatten<IRange
156
156
  *
157
157
  * @remarks
158
158
  * Declared `ReportType`, as every numeric built-in enum is: the body keeps the verdict. It reads the
159
- * argument by its SIGN; what Excel does with a value outside the set is not measured.
159
+ * argument by its SIGN.
160
160
  */
161
161
  declare enum MatchType {
162
162
  /**
@@ -258,7 +258,7 @@ export declare function TAKE(array: IRange, rows: Omittable<number>, columns?: O
258
258
  *
259
259
  * @remarks
260
260
  * Declared `ReportType`: Excel TRUNCATES this argument on the way in (`TOCOL(a,1.9)` reads 1 and
261
- * `3.9` reads 3, measured), which an enum's gate does not, so the body keeps the verdict.
261
+ * `3.9` reads 3), which an enum's gate does not, so the body keeps the verdict.
262
262
  */
263
263
  declare enum IgnoreValues {
264
264
  /**
@@ -347,7 +347,7 @@ export declare function WRAPROWS(vector: IRange | Scalar, wrapCount: number, pad
347
347
  *
348
348
  * @remarks
349
349
  * Declared `ReportType`, as every numeric built-in enum is: the body keeps the verdict (anything
350
- * else is #VALUE!). Excel's out-of-set behavior is not measured.
350
+ * else is #VALUE!).
351
351
  */
352
352
  declare enum MatchMode {
353
353
  /**
@@ -376,7 +376,7 @@ declare enum MatchMode {
376
376
  *
377
377
  * @remarks
378
378
  * Declared `ReportType`, as every numeric built-in enum is: the body keeps the verdict (anything
379
- * else is #VALUE!). Excel's out-of-set behavior is not measured.
379
+ * else is #VALUE!).
380
380
  */
381
381
  declare enum SearchMode {
382
382
  /**
@@ -9,8 +9,8 @@ export declare function ABS(number: number): number;
9
9
  *
10
10
  * @remarks
11
11
  * Declared `ReportType`, as every numeric built-in enum is: Excel TRUNCATES this argument (`9.9`
12
- * is SUM, measured), which an enum's gate does not, so the body keeps the verdict. Also the
13
- * overload discriminant of DESIGN-REPEATING §6: 14-19 take a trailing `k`.
12
+ * is SUM), which an enum's gate does not, so the body keeps the verdict. Also the
13
+ * overload discriminant: 14-19 take a trailing `k`.
14
14
  */
15
15
  declare enum AggregateFunction {
16
16
  /**
@@ -114,7 +114,7 @@ declare enum AggregateFunction {
114
114
  *
115
115
  * @remarks
116
116
  * Declared `ReportType`, as every numeric built-in enum is: Excel TRUNCATES this argument (`6.9`
117
- * is 6, measured), which an enum's gate does not, so the body keeps the verdict.
117
+ * is 6), which an enum's gate does not, so the body keeps the verdict.
118
118
  */
119
119
  declare enum AggregateOptions {
120
120
  /**
@@ -597,7 +597,7 @@ export declare function SQRTPI(number: NoLift<Omittable<AcceptError<Scalar>>>):
597
597
  *
598
598
  * @remarks
599
599
  * Declared `ReportType`, as every numeric built-in enum is: Excel TRUNCATES this argument (`9.9`
600
- * is SUM, measured), which an enum's gate does not, so the body keeps the verdict. Excel labels
600
+ * is SUM), which an enum's gate does not, so the body keeps the verdict. Excel labels
601
601
  * 101-111 with the bare function name, as 1-11; a member name keys the descriptor and the
602
602
  * language packs, so each must be unique.
603
603
  */