Skip to content

deps: bump @cldmv/vitest-runner from 1.6.1 to 1.8.0 in the minor group - #132

Merged
cldmv-bot[bot] merged 1 commit into
nextfrom
dependabot/npm_and_yarn/next/minor-24b0b6f64f
Nov 25, 2026
Merged

cldmv-bot[bot] merged 1 commit into
nextfrom
dependabot/npm_and_yarn/next/minor-24b0b6f64f

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 25, 2026

Copy link
Copy Markdown
Contributor

Bumps the minor group with 1 update: @cldmv/vitest-runner.

Updates @cldmv/vitest-runner from 1.6.1 to 1.8.0

Release notes

Sourced from @​cldmv/vitest-runner's releases.

v1.8.0

vitest-runner v1.8.0 Changelog

Release Date: November 2026 Release Type: Minor Branch: next → master


Overview

v1.7.0's isolation skips itself when the runner is already in a PID namespace, which is right for normal use but means the isolated path can't be tested in a container or k3s pod. This release adds a forced mode that re-runs under unshare anyway. It also adds the one test v1.7.0 was missing for full function coverage.

Nothing changes unless you ask for the forced mode.


✨ Features

Forced isolation (#135)

  • isolate: "force", --isolate=force or CLDMV_TEST_ISOLATE=force re-run the suite in a new PID namespace even when the runner is already in one. true / --isolate / CLDMV_TEST_ISOLATE=1 keep skipping there, as before.
  • The same rule applies as for plain isolation: if unshare isn't permitted, the run fails before it starts and never runs unsandboxed.
  • The re-run process gets VITEST_RUNNER_ISOLATED=1. The runner removes it from its environment on its first run() call, so it doesn't re-run itself again and the test processes it starts don't inherit it. A test that runs the runner again with force still gets its own nested namespace.

🧪 Tests

  • Covers release() in createRunScratchRoot when closing the liveness socket fails, which brings function coverage back to 100% (#133).
  • A real-unshare integration test for the forced mode. It runs wherever unprivileged unshare works, namespaced or not, and is skipped elsewhere (#135).

📚 Documentation

  • NEW: docs/changelog/v1/v1.8.0.md, this changelog.
  • README: the forced mode in the Isolation section, the --isolate=force flag, the isolate option and CLDMV_TEST_ISOLATE=force (#135).

🔧 Dependencies

No dependency updates


Upgrade notes

  • No breaking changes. The isolate option's type widens from boolean to boolean | "force".

... (truncated)

Commits
  • c144d00 release: v1.8.2 - bump the minor group across 1 directory with 4 updates
  • 2849097 release: v1.8.1 - merge coverage blobs in bounded-memory batches
  • 3882d36 release: v1.8.0 - add isolate "force" to isolate even inside a PID…
  • ea3b91f release: v1.7.0 - run the suite in its own PID namespace, and sweep…
  • See full diff 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 <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the minor group with 1 update: [@cldmv/vitest-runner](https://github.com/CLDMV/vitest-runner).


Updates `@cldmv/vitest-runner` from 1.6.1 to 1.8.0
- [Release notes](https://github.com/CLDMV/vitest-runner/releases)
- [Commits](CLDMV/vitest-runner@v1.6.1...v1.8)

---
updated-dependencies:
- dependency-name: "@cldmv/vitest-runner"
  dependency-version: 1.8.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor
...

Signed-off-by: dependabot[bot] <[email protected]>

@cldmv-bot cldmv-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved by CLDMV-bot: minor bump from 1.6.1 to 1.8.0.

@cldmv-bot
cldmv-bot Bot enabled auto-merge November 25, 2026 12:06
@cldmv-bot cldmv-bot Bot added the type: dependencies Relates to dependency updates, version bumps, or package management label Nov 25, 2026
@cldmv-bot
cldmv-bot Bot merged commit a89aac3 into next Nov 25, 2026
34 checks passed
@cldmv-bot
cldmv-bot Bot deleted the dependabot/npm_and_yarn/next/minor-24b0b6f64f branch November 25, 2026 12:08
cldmv-bot Bot added a commit that referenced this pull request Nov 25, 2026
# `@cldmv/uuid` v2.1.0 Changelog

**Release Date**: November 2026
**Release Type**: Minor
**Branch**: `release/2.1.0`

---

## Overview

v2.1.0 publishes the entropy helpers as `@cldmv/uuid/entropy` and adds `sha256` to `@cldmv/uuid/hash`.

`EntropySource` has been in the repository since the first release but was never reachable from the package. It is now its own subpath, kept out of the main bundle, and runs in browsers as well as Node. Before going public, its bit-balance check was reworked so it scales with input length, and one method name was corrected.

Nothing in the main entry changed: TA, TB, IA and RFC ids, their timestamps and every existing export behave as in v2.0.1.

---

## ✨ Features

### `@cldmv/uuid/entropy` ([#136](#136), resolves [#135](#135))

```javascript
import { EntropySource } from "@cldmv/uuid/entropy";

EntropySource.calculateRequiredEntropy(1e-9, 1_000_000); // => 69 random bits for a one-in-a-billion collision chance
const bytes = EntropySource.generateSecureBytes(16);
EntropySource.validateEntropyQuality(bytes).passed; // => true for a healthy source
```

`EntropySource` is a set of static helpers:

- `generateSecureBytes(byteCount)` and `generateEntropy(bits)`: random bytes from the platform CSPRNG.
- `calculateRequiredEntropy(probability, count)`: the birthday-bound number of random bits that keeps the collision chance across `count` ids at or below `probability`.
- `validateEntropyQuality(bytes)` and `generateValidatedEntropy(byteCount, [maxAttempts])`: sanity checks for a broken or stuck source (all zeros, all ones, bit balance, long runs), and a generator that retries until a draw passes.
- `mixEntropySources(sources)`: XOR of several byte arrays.
- `createTimestampIndependentEntropy(timestamp, [additionalBytes])`: SHA-256 of a timestamp plus fresh random bytes.
- `estimateShannonEntropy(bytes)` and `analyzeEntropySource(generator, [sampleCount])`: frequency-based entropy estimate, and repeated-output and timing warnings for a generator.

Every method works on `Uint8Array` and returns `Uint8Array` (Node `Buffer`s work as inputs). Bytes come from `@cldmv/uuid/rng`, hex from `@cldmv/uuid/bytes` and SHA-256 from `@cldmv/uuid/hash`, so one build serves Node and browsers. Changes made while preparing it for release:

- **Bit balance scales with length.** The check used a fixed 40-60% window for the share of set bits. That rejected about 2.7% of good 16-byte draws and was far too loose for large inputs. It now allows 4 standard deviations either side of half, so a fair source fails about once in 16,000 checks at any length. The result reports the window as `min` and `max`.
- **`estimateShannnonEntropy` is `estimateShannonEntropy`.** The old spelling was never published.

### `sha256` in `@cldmv/uuid/hash` ([#136](#136))

`sha256(bytes)` returns the 32-byte digest. The Node build uses `node:crypto`; the browser build is a synchronous pure-JS implementation, tested against the FIPS 180-4 vectors and `node:crypto` across block-boundary lengths.

---

## 🐛 Bug Fixes

### Flaky `generateValidatedEntropy` test ([#134](#134), fixes [#133](#133))

The test ran the validator on real random bytes with two attempts, so about one run in 1,400 failed although nothing was wrong. It now uses fixed bytes, and a second test covers the retry path.

---

## 🧪 Tests & cleanup

- **Unused modules removed** ([#129](#129)): `src/lib/versions/index.mjs`, `src/lib/versions/issuer/index.mjs` and `src/lib/versions/issuer/v1.mjs` were never imported by the library or exported by the package (`UUID.IA()` builds issuer ids itself), along with the stale `scripts/test-version-files.mjs` that used them.
- **Coverage is 100%** on lines, statements, functions and branches ([#129](#129)): new tests for the RFC `version()` helper, `gregorianTicks()` defaults, dates outside the range a `Date` can hold, and pre-1970 sub-millisecond timestamps.

## 🔧 CI & tooling

- The UUID detail reference deploys to GitHub Pages through the shared `reusable-docs-publish` workflow ([#126](#126)).
- `ci.yml` synced with the CLDMV/.github v4.43.0 template ([#128](#128)).

## 📚 Documentation

- **NEW:** [docs/changelog/v2/v2.1.0.md](https://github.com/CLDMV/uuid/blob/v2.1.0/docs/changelog/v2/v2.1.0.md): this changelog.
- README: an "Entropy helpers (`@cldmv/uuid/entropy`)" section with a method table, and the source layout lists the new subpath.
- README What's New promoted to v2.1.0.

## 🔧 Dependencies

Development only; no runtime dependencies changed.

- `vitest` 5.1.0 → 5.1.1 ([#130](#130))
- `@vitest/coverage-v8` 5.1.0 → 5.1.1 ([#131](#131))
- `@cldmv/vitest-runner` 1.6.1 → 1.8.0 ([#132](#132))

---

## Upgrade notes

- No breaking changes; drop-in for v2.0.1.
- `@cldmv/uuid/entropy` is ESM-only, like the other subpaths (`import`, not `require`).



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>

---

<!-- coverage-start -->

![coverage](https://img.shields.io/badge/coverage-100.0%25-brightgreen?style=for-the-badge&logo=vitest&logoColor=white)

| Metric | Coverage |
|--------|----------|
| Statements | 100.0% |
| Branches   | 100.0% |
| Functions  | 100.0% |
| Lines      | 100.0% |

*Avg: **100.0%** · `c6ffe7d` · Node lts/**

<!-- coverage-end -->

<!-- co-authors -->

Co-authored-by: Shinrai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: dependencies Relates to dependency updates, version bumps, or package management

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants