Skip to content

build(deps-dev): bump simple-statistics from 7.8.9 to 7.10.2 - #3019

Open
dependabot[bot] wants to merge 1 commit into
developmentfrom
dependabot/npm_and_yarn/development/simple-statistics-7.10.2
Open

build(deps-dev): bump simple-statistics from 7.8.9 to 7.10.2#3019
dependabot[bot] wants to merge 1 commit into
developmentfrom
dependabot/npm_and_yarn/development/simple-statistics-7.10.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 31, 2026

Copy link
Copy Markdown
Contributor

Bumps simple-statistics from 7.8.9 to 7.10.2.

Release notes

Sourced from simple-statistics's releases.

v7.10.2

Patch Changes

  • 7063073: Make approxEqual's tolerance parameter optional in its type declaration. The implementation defaults it to the library's epsilon (0.0001), but the declaration required all three arguments, so TypeScript rejected the two-argument call the runtime supports. Runtime behavior is unchanged.
  • 62d100a: Correct two JSDoc example values that the implementation does not produce: interquartileRange([0, 1, 2, 3]) returns 1.5 under the type-7 quantile interpolation the library switched to, not the documented 2, and weightedQuantile([1, 2, 3], [1, 1, 2], 0.5) returns 2 — the value its own tests assert — not the documented 3. Documentation-only; runtime behavior is untouched.
  • 08369c8: Declare that jenks can return null. The implementation returns null whenever nClasses is greater than the number of data points — since the function's introduction — but the type declaration promised a plain number[], so TypeScript consumers under strictNullChecks got no warning before dereferencing the result. Runtime behavior is unchanged; only the declaration and docstring now state the null case.
  • f25c2ba: Repair JSDoc that misrenders on the documentation site: quantileRank and quantileRankSorted now document their value parameter (it was missing, and the @returns description read "value value"), jenks's example is tagged @example so it renders as an example instead of leaking into the @returns description, and kMeansCluster's documented example output gets the missing comma that made it invalid JavaScript. Documentation-only; runtime behavior is untouched.
  • 32096eb: Correct the third parameter of the permutationTest type declaration. It was named string and typed string, so TypeScript consumers saw permutationTest(sampleX, sampleY, string?: string, ...) with no indication of which values are accepted. It is now alternative?: "two_side" | "greater" | "less", matching the JSDoc and the three values the implementation accepts before it throws. Runtime behavior is unchanged. The rename is not breaking, since TypeScript binds parameters positionally, but the narrowed type will newly reject a call that passes an arbitrary string — such a call already threw at runtime.
  • f59d6d2: Correct permutationTest's JSDoc to name the alternative value the implementation accepts. The docs described the two-sided test as two_tail and 'two_sided' (default), but passing either throws `alternative` must be either 'two_side', 'greater', or 'less'. — only 'two_side' is accepted. Documentation-only change; runtime behavior is untouched.

v7.10.1

Patch Changes

  • 894958a: Fix chiSquaredGoodnessOfFit() reporting a fit it never measured. Collapsing a sparse class dropped the last class instead of the one that had just been merged, so observations were discarded and others double counted; an observation past the end of the hypothesized distribution had no expected frequency at all, which made the statistic NaN; and criticalValue < NaN is false, the same answer the function gives for a good fit. Degrees of freedom and significance levels the table does not cover now raise a descriptive error instead of a TypeError or a silent false.
  • a078231: Declare that PerceptronModel#predict and PerceptronModel#train can return null. predict returns null when the feature array's length differs from what the model was trained on, and train returns null when the label is not 0 or 1 — both since their introduction — but the type declarations promised plain number and PerceptronModel, so TypeScript consumers under strictNullChecks got no warning before dereferencing the result. Runtime behavior is unchanged; only the declarations and docstrings now state the null cases.

v7.10.0

Minor Changes

  • 2149cff: Fix poissonDistribution() and binomialDistribution() returning a truncated table ending in Infinity or NaN. Both built each cell from a power and a factorial (or a binomial coefficient) that leave floating-point range long before their product does, so the cumulative-probability stopping rule was satisfied by a non-finite sum instead of by the distribution: poissonDistribution(200) returned 135 cells covering 0.000045% of the distribution, and binomialDistribution(10000, 0.5) returned 135 cells covering none of it. Cells are now taken through gammaln, and a table that cannot be completed returns undefined rather than a partial one.

    NOTE: this is tagged as a minor change but you should be aware that it does change behavior for binomialDistribution. For most users this won't be a big deal.

    1. Both functions now return undefined in cases where they used to return an array of non-finite cells. binomialDistribution(5, NaN) returned [NaN] and now returns undefined. Their TypeScript declarations widen to number[] | undefined.
    2. Evaluating cells through logarithms costs a precision where the old product form was exact: binomialDistribution(2, 0.5) returns [0.25000000000000006, 0.5000000000000006, 0.25000000000000006] rather than [0.25, 0.5, 0.25]. This precision loss is small but if you're comparing exact results, it may require updates or rounding.

Patch Changes

  • 13530b2: Fix wilcoxon rank-sum test behavior

    This fixes a bug in which the tie averaging in wilcoxonRankSum was incorrect and would return an unrelated position.

  • 0779f22: Fix sampleRankCorrelation returning different results for the same data depending on the order the pairs are listed in. Tied values were given distinct consecutive ranks broken by original array position, rather than sharing the average of the ranks they span as Spearman's rho requires. Reordering rows could change the magnitude and even the sign of the result. Tied values now receive midranks, so the correlation depends only on the paired data. As a consequence an input with no rank variance — every value tied — now correctly returns NaN instead of reporting near-perfect correlation. Results for inputs with no ties are unchanged.

v7.9.3

Patch Changes

  • 2a98671: Mark the package as "type": "module" and rename the CommonJS bundle to dist/simple-statistics.cjs. Consumers resolve through the exports map, so both import "simple-statistics" and require("simple-statistics") keep working unchanged — only the internal CJS bundle path moved. (Code that hard-coded the deep path simple-statistics/dist/simple-statistics.js, bypassing the package entry points, should switch to the package name or the .cjs path.)

v7.9.2

Patch Changes

  • d571a60: Fix quantile() bug when an array was provided as the second argument

    Thanks Alexander Kireyev for the identification and fix.

v7.9.1

... (truncated)

Changelog

Sourced from simple-statistics's changelog.

7.10.2

Patch Changes

  • 7063073: Make approxEqual's tolerance parameter optional in its type declaration. The implementation defaults it to the library's epsilon (0.0001), but the declaration required all three arguments, so TypeScript rejected the two-argument call the runtime supports. Runtime behavior is unchanged.
  • 62d100a: Correct two JSDoc example values that the implementation does not produce: interquartileRange([0, 1, 2, 3]) returns 1.5 under the type-7 quantile interpolation the library switched to, not the documented 2, and weightedQuantile([1, 2, 3], [1, 1, 2], 0.5) returns 2 — the value its own tests assert — not the documented 3. Documentation-only; runtime behavior is untouched.
  • 08369c8: Declare that jenks can return null. The implementation returns null whenever nClasses is greater than the number of data points — since the function's introduction — but the type declaration promised a plain number[], so TypeScript consumers under strictNullChecks got no warning before dereferencing the result. Runtime behavior is unchanged; only the declaration and docstring now state the null case.
  • f25c2ba: Repair JSDoc that misrenders on the documentation site: quantileRank and quantileRankSorted now document their value parameter (it was missing, and the @returns description read "value value"), jenks's example is tagged @example so it renders as an example instead of leaking into the @returns description, and kMeansCluster's documented example output gets the missing comma that made it invalid JavaScript. Documentation-only; runtime behavior is untouched.
  • 32096eb: Correct the third parameter of the permutationTest type declaration. It was named string and typed string, so TypeScript consumers saw permutationTest(sampleX, sampleY, string?: string, ...) with no indication of which values are accepted. It is now alternative?: "two_side" | "greater" | "less", matching the JSDoc and the three values the implementation accepts before it throws. Runtime behavior is unchanged. The rename is not breaking, since TypeScript binds parameters positionally, but the narrowed type will newly reject a call that passes an arbitrary string — such a call already threw at runtime.
  • f59d6d2: Correct permutationTest's JSDoc to name the alternative value the implementation accepts. The docs described the two-sided test as two_tail and 'two_sided' (default), but passing either throws `alternative` must be either 'two_side', 'greater', or 'less'. — only 'two_side' is accepted. Documentation-only change; runtime behavior is untouched.

7.10.1

Patch Changes

  • 894958a: Fix chiSquaredGoodnessOfFit() reporting a fit it never measured. Collapsing a sparse class dropped the last class instead of the one that had just been merged, so observations were discarded and others double counted; an observation past the end of the hypothesized distribution had no expected frequency at all, which made the statistic NaN; and criticalValue < NaN is false, the same answer the function gives for a good fit. Degrees of freedom and significance levels the table does not cover now raise a descriptive error instead of a TypeError or a silent false.
  • a078231: Declare that PerceptronModel#predict and PerceptronModel#train can return null. predict returns null when the feature array's length differs from what the model was trained on, and train returns null when the label is not 0 or 1 — both since their introduction — but the type declarations promised plain number and PerceptronModel, so TypeScript consumers under strictNullChecks got no warning before dereferencing the result. Runtime behavior is unchanged; only the declarations and docstrings now state the null cases.

7.10.0

Minor Changes

  • 2149cff: Fix poissonDistribution() and binomialDistribution() returning a truncated table ending in Infinity or NaN. Both built each cell from a power and a factorial (or a binomial coefficient) that leave floating-point range long before their product does, so the cumulative-probability stopping rule was satisfied by a non-finite sum instead of by the distribution: poissonDistribution(200) returned 135 cells covering 0.000045% of the distribution, and binomialDistribution(10000, 0.5) returned 135 cells covering none of it. Cells are now taken through gammaln, and a table that cannot be completed returns undefined rather than a partial one.

    NOTE: this is tagged as a minor change but you should be aware that it does change behavior for binomialDistribution. For most users this won't be a big deal.

    1. Both functions now return undefined in cases where they used to return an array of non-finite cells. binomialDistribution(5, NaN) returned [NaN] and now returns undefined. Their TypeScript declarations widen to number[] | undefined.
    2. Evaluating cells through logarithms costs a precision where the old product form was exact: binomialDistribution(2, 0.5) returns [0.25000000000000006, 0.5000000000000006, 0.25000000000000006] rather than [0.25, 0.5, 0.25]. This precision loss is small but if you're comparing exact results, it may require updates or rounding.

Patch Changes

  • 13530b2: Fix wilcoxon rank-sum test behavior

    This fixes a bug in which the tie averaging in wilcoxonRankSum was incorrect and would return an unrelated position.

  • 0779f22: Fix sampleRankCorrelation returning different results for the same data depending on the order the pairs are listed in. Tied values were given distinct consecutive ranks broken by original array position, rather than sharing the average of the ranks they span as Spearman's rho requires. Reordering rows could change the magnitude and even the sign of the result. Tied values now receive midranks, so the correlation depends only on the paired data. As a consequence an input with no rank variance — every value tied — now correctly returns NaN instead of reporting near-perfect correlation. Results for inputs with no ties are unchanged.

7.9.3

Patch Changes

  • 2a98671: Mark the package as "type": "module" and rename the CommonJS bundle to dist/simple-statistics.cjs. Consumers resolve through the exports map, so both import "simple-statistics" and require("simple-statistics") keep working unchanged — only the internal CJS bundle path moved. (Code that hard-coded the deep path simple-statistics/dist/simple-statistics.js, bypassing the package entry points, should switch to the package name or the .cjs path.)

7.9.2

Patch Changes

  • d571a60: Fix quantile() bug when an array was provided as the second argument

... (truncated)

Commits
  • 7643ea9 Version Packages (#834)
  • 32096eb fix(types): correct the alternative parameter in the permutationTest declarat...
  • f25c2ba docs(jsdoc): repair quantileRank, jenks, and kMeansCluster rendering (#831)
  • 62d100a docs(jsdoc): correct interquartileRange and weightedQuantile example values (...
  • f59d6d2 docs(permutation-test): correct alternative values to 'two_side' (#828)
  • 08369c8 fix(types): declare jenks return type as number[] | null (#832)
  • 7063073 fix(types): make approxEqual tolerance parameter optional (#833)
  • 0c33928 Use pnpm 11, not 10 (#827)
  • 7b3a609 Update workflow inputs (#826)
  • 6bec231 Update changesets to v3 across flow, update github workflows (#825)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [simple-statistics](https://github.com/simple-statistics/simple-statistics) from 7.8.9 to 7.10.2.
- [Release notes](https://github.com/simple-statistics/simple-statistics/releases)
- [Changelog](https://github.com/simple-statistics/simple-statistics/blob/main/CHANGELOG.md)
- [Commits](simple-statistics/simple-statistics@v7.8.9...v7.10.2)

---
updated-dependencies:
- dependency-name: simple-statistics
  dependency-version: 7.10.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Aug 31, 2026
@pirate-bot

Copy link
Copy Markdown
Contributor

Plugin build for 41ad167 is ready 🛎️!

@pirate-bot

Copy link
Copy Markdown
Contributor

Bundle Size Diff

Package Old Size New Size Diff
Animations 178.33 KB 178.33 KB 0 B (0.00%)
Blocks 1.65 MB 1.65 MB 0 B (0.00%)
CSS 7.83 KB 7.83 KB 0 B (0.00%)
Dashboard 172.49 KB 172.49 KB 0 B (0.00%)
Onboarding 68.14 KB 68.14 KB 0 B (0.00%)
Export Import 4.73 KB 4.73 KB 0 B (0.00%)
Pro 439.82 KB 439.82 KB 0 B (0.00%)

@pirate-bot

Copy link
Copy Markdown
Contributor

E2E Tests

Playwright Test Status: See serial and parallel matrix jobs

Performance Results serverResponse: {"q25":408.9,"q50":430.31,"q75":440.05,"cnt":10}, firstPaint: {"q25":1486.97,"q50":1582.04,"q75":1811.11,"cnt":10}, domContentLoaded: {"q25":3731.38,"q50":3781.17,"q75":3796.14,"cnt":10}, loaded: {"q25":3734.86,"q50":3784.53,"q75":3799.51,"cnt":10}, firstContentfulPaint: {"q25":2808.33,"q50":2840.73,"q75":2871.36,"cnt":10}, firstBlock: {"q25":17841.61,"q50":17899.76,"q75":17987.04,"cnt":10}, type: {"q25":27.01,"q50":28.91,"q75":37.08,"cnt":10}, typeWithoutInspector: {"q25":27.09,"q50":28.75,"q75":31.43,"cnt":10}, typeWithTopToolbar: {"q25":35.99,"q50":40.25,"q75":46.23,"cnt":10}, typeContainer: {"q25":15.39,"q50":16.4,"q75":18.66,"cnt":10}, focus: {"q25":140.22,"q50":147.51,"q75":158.66,"cnt":10}, inserterOpen: {"q25":43.64,"q50":46.19,"q75":49.09,"cnt":10}, inserterSearch: {"q25":29.45,"q50":31,"q75":32.69,"cnt":10}, inserterHover: {"q25":4.71,"q50":4.89,"q75":5.44,"cnt":20}, loadPatterns: {"q25":1861.35,"q50":1902.75,"q75":1963.66,"cnt":10}, listViewOpen: {"q25":225.9,"q50":243.17,"q75":258.1,"cnt":10}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant