• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Unleash / unleash / 25908143808
87%
master: 91%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 15 May 2026 08:36AM UTC
Jobs 1
Files 1178
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 May 2026 08:27AM UTC coverage: 87.114% (+0.3%) from 86.854%
25908143808

push

github

web-flow
chore: replace crypto.randomUUID() with uuid package (#12040)

## About the changes

This brings UUID generation in the frontend back behind the `uuid`
package instead of calling `crypto.randomUUID()` directly. The direct
browser API looked safe from a browser support perspective, but we
missed one important constraint: `crypto.randomUUID()` is only exposed
in secure contexts. That means it can be unavailable when the frontend
is served over plain HTTP, which can still happen in self-hosted or
local-network deployments.

The Node 20 migration replaced `uuid` with native `crypto.randomUUID()`
after confirming supported browsers implemented it, but that
compatibility check did not account for the HTTPS-only requirement. This
PR restores a browser-safe abstraction with `createUuid()`, using `uuid`
v4 generation underneath, and replaces the direct frontend call sites.

This is related to the deployment/runtime issue discussed in
https://github.com/orgs/Unleash/discussions/11863.

## Details

- Adds `uuid` as a direct frontend dependency.
- Adds `createUuid()` as the shared frontend UUID helper.
- Replaces direct `crypto.randomUUID()` usage in frontend UI state/id
generation paths.
- Keeps the config button accessibility description id stable across
re-renders.

## Verification

- `pnpm run lint:check`
- `pnpm run ts:check`
- `rg "crypto\.randomUUID\(\)" frontend/src` returns no direct frontend
usages.

1845 of 2040 branches covered (90.44%)

15075 of 17305 relevant lines covered (87.11%)

898.77 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
89.58
-2.08% src/lib/features/frontend-api/client-feature-toggle-read-model.ts
1
86.05
-0.78% src/lib/services/api-token-service.ts
Jobs
ID Job ID Ran Files Coverage
1 25908143808.1 15 May 2026 08:36AM UTC 1178
87.11
GitHub Action Run
Source Files on build 25908143808
  • Tree
  • List 1178
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25908143808
  • 32fbbe05 on github
  • Prev Build on main (#25905458284)
  • Next Build on main (#25911842192)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc