Skip to content

chore: release 5.16.0 - #347

Open
dcd-release-please[bot] wants to merge 19 commits into
productionfrom
promote/cli-next
Open

dcd-release-please[bot] wants to merge 19 commits into
productionfrom
promote/cli-next

Conversation

@dcd-release-please

@dcd-release-please dcd-release-please Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Releases 5.16.0 to npm latest (minor bump from 5.15.0, derived from the PR titles).

5.16.0 (2026-11-25)

Features

  • e2e: link each test's video to its part of the session recording (#362) (924181e)
  • e2e: run e2e tests on DeviceCloud devices with @devicecloud.dev/dcd/e2e (#346) (d772c53)
  • e2e: set the device's locale from the e2e provider (#355) (ba43df4)
  • upload: upload straight to the final storage path with a signed token (#360) (00b2807)

Bug Fixes

  • keep chalk's colour output in nested and multi-line text (#353) (bb273f0)
  • artifacts: save into a folder given as the artifacts path, and d… (#354) (9d9adc2)
  • device: drop iOS 17 from the help text (#356) (c3e0fdf)
  • download: show a manifest 400/403/404 instead of re-requesting the inline route (#357) (03c01df)
  • upload: refresh the upload token when Storage reports it expired (#361) (161c428)
  • upload: send resumable uploads to the configured Supabase URL (#358) (edf10a7)
  • upload: send Storage uploads with fetch in the standalone binary (#359) (e03a78e)

Dependencies

  • bump the minor-and-patch group with 3 updates (#348) (64f0942)

Code Refactoring

  • replace chalk with node:util styleText (#352) (2e2377b)

Kept current by the Promote to stable workflow, which rebuilds this branch on every push to dev: dev at 924181e, with production merged in, plus a commit that sets the version in package.json and server.json and adds the CHANGELOG.md section above.

  • Merge with Create a merge commit, the only method production allows, when you want to release.
  • Merging is the release: the Release workflow tags v5.16.0, creates the GitHub Release from the section above, publishes npm latest and the binaries, and opens the back-merge PR into dev.
  • Leave it open until then; closing it only means the next push to dev opens a new one.

finalerock44 and others added 4 commits November 23, 2026 13:10
#346)

feat(e2e): run e2e tests on DeviceCloud devices with @devicecloud.dev/dcd/e2e

A device provider for e2e (github.com/e2e-inc/e2e), published as a new
entry point of this package. Each e2e worker gets its own DeviceCloud device
session: the provider starts it, waits until the device is up and the build
is installed, then hands e2e the address of the session's own agent-device
daemon. e2e drives the device directly; the session is an ordinary one, in
the console, recorded and billed as any other. Early access: the
organization needs it turned on.

- Credentials as the CLI takes them: DEVICE_CLOUD_API_KEY from the run's
  environment (or an apiKey option), DCD_API_URL checked by the same rules
  as --api-url before the key is sent anywhere.
- The target's app.appPath is uploaded the way `dcd upload` does, once per
  run however many workers ask, and the lease reports installedApp so e2e
  installs nothing itself. appBinaryId uses a build already uploaded.
- Polls and the engine request are sent again when the network loses one,
  as `dcd device` waits are; a session start never is. A failed acquire
  stops the session it started.
- The e2e types are described by shape, so the package gains no
  dependency. Importing the entry point has no side effects.
- package.json gains an exports map: ".", "./e2e", "./package.json", and
  "./dist/*" so every path that could be imported before still can.

Checked with the packed package in a project of its own: the config type-
checks against e2e 0.23.1 / @e2e-dev/mobile 0.12.7 and 0.24.0 / 0.12.8, and a
deterministic test passed on a real device with both, uploading the APK from
a local path.
* chore: pin the 5.12.0 promotion

Release-As: 5.12.0

* chore(production): release 5.12.0

* chore: release 5.13.0

* ci: Replace release-please with a custom version that handles our dev -> prod flow (#305)

* ci: cut a stable release with one workflow run and one PR

A stable release used to take a hand-built promotion branch (dev, a merge
of production, and an empty Release-As pin commit), a promotion PR, then
release-please's own Release PR, then the back-merge PR.

A new "Promote to stable" workflow (promote.yml) now builds the release
branch: dev, with production merged in, plus one commit that sets the
version in package.json and server.json and adds the CHANGELOG.md
section. It opens that as the only PR into production. Merging it is the
release: the Release workflow tags the untagged version, creates the
GitHub Release from the changelog section, and publishes npm, the
binaries and the back-merge as before.

scripts/stable-release.mjs derives the version from the Conventional
Commit PR titles since the last release, as release-please did, but
never derives a major: a breaking marker stops the run until the version
is given explicitly. Its changelog lists each PR once, using the full
title when GitHub cut it short, where release-please listed such PRs
twice.

Production is merged in on every run because dev only allows squash
merges, so the back-merge can never make production an ancestor of dev.

release-please, its config and manifest, and the Release-As
promotion-pin check are removed. A release-check job verifies every PR
into production instead. Release PRs skip claude-review, like back-merge
PRs, because the review action rejects bot actors. The Release workflow
keeps the release-please.yml filename, because npm's trusted publisher
is registered against it.

* ci: keep the stable release PR open and current on every push to dev

Promote to stable now also runs on every push to dev. It rebuilds one
fixed branch, promote/cli-next, and opens the release PR into production
or updates the open one, so the PR always carries all of dev with the
version and changelog to match. Nothing ships until someone merges it.

- A push with nothing releasable since the last release (docs, the
  back-merge) does nothing.
- A version set by hand is kept on later runs (plan --keep) whenever it
  is above the derived one, so a major has to be given only once, and a
  breaking marker still never derives one.
- If production moved during the run, nothing is pushed; the back-merge
  push rebuilds the PR. The force-push is leased against the branch tip
  the run saw, and skipped when the content is unchanged.
- A PR into production from any other branch is left alone: push runs
  warn and stop.

(cherry picked from commit 6bebbef)

* ci: lint PR titles on pull_request instead of pull_request_target (#308)

GitHub blocks pull_request_target by default in public repositories from
2026-12-02. The PR title check only reads the event payload, so it runs on
pull_request, which also fires for fork PRs with a read-only token.

The CLA workflow has to write to fork PRs, so it stays on
pull_request_target. A repository Actions policy allows that trigger for
cla.yml only. Its header now says so.

(cherry picked from commit 02d99b9)

* fix: treat dev-api.devicecloud.dev as the dev environment (#314)

The dev API is now at dev-api.devicecloud.dev. Make it the dev apiUrl and
keep api.dev.devicecloud.dev as a legacy URL, so saved configs and CI
flags that name it still resolve to dev.

inferEnvFromApiUrl only recognised 'api.dev.', so a dev-api URL fell
through to prod and the Supabase copy of an upload would target the prod
project. Both hostnames now map to dev.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 25d09ca)

* deps: raise the hono override to 4.13.16 for new moderate advisories

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 2476581)

* chore: release 5.12.1

* chore: release 5.13.0

* chore: release 5.14.0

* chore: release 5.14.1

* chore: release 5.15.0

---------

Co-authored-by: finalerock44 <ethan@devicecloud.dev>
Co-authored-by: finalerock44 <77282157+finalerock44@users.noreply.github.com>
Co-authored-by: dcd-release-please[bot] <296541543+dcd-release-please[bot]@users.noreply.github.com>
Co-authored-by: Tom Riglar <tom.riglar@moropo.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Bumps the minor-and-patch group with 3 updates: [@supabase/supabase-js](https://github.com/supabase/supabase-js/tree/HEAD/packages/core/supabase-js), [bplist-parser](https://github.com/joeferner/node-bplist-parser) and [plist](https://github.com/TooTallNate/plist.js).


Updates `@supabase/supabase-js` from 2.119.0 to 2.119.2
- [Release notes](https://github.com/supabase/supabase-js/releases)
- [Changelog](https://github.com/supabase/supabase-js/blob/master/packages/core/supabase-js/CHANGELOG.md)
- [Commits](https://github.com/supabase/supabase-js/commits/v2.119.2/packages/core/supabase-js)

Updates `bplist-parser` from 0.5.0 to 0.6.0
- [Release notes](https://github.com/joeferner/node-bplist-parser/releases)
- [Commits](joeferner/node-bplist-parser@v0.5.0...v0.6.0)

Updates `plist` from 5.1.1 to 5.1.2
- [Release notes](https://github.com/TooTallNate/plist.js/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TooTallNate/plist.js/compare/plist@5.1.1...plist@5.1.2)

---
updated-dependencies:
- dependency-name: "@supabase/supabase-js"
  dependency-version: 2.119.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: bplist-parser
  dependency-version: 0.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: plist
  dependency-version: 5.1.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 79.0.0 to 80.0.0.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases)
- [Commits](sindresorhus/eslint-plugin-unicorn@v79.0.0...v80.0.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-unicorn
  dependency-version: 80.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@dcd-release-please
dcd-release-please Bot force-pushed the promote/cli-next branch 2 times, most recently from 13a992f to b6387ae Compare November 23, 2026 16:08
None of the three pnpm.auditConfig.ignoreGhsas entries suppresses
anything any more:

- GHSA-frvp-7c67-39w9 (@hono/node-server): the lock holds 2.1.8,
  outside the affected ranges (>= 2.0.0 < 2.0.5, and < 1.19.15).
- GHSA-vfj7-8cjw-p6xm (braces): the advisory was withdrawn on
  2026-10-23, and braces is no longer in the lock.
- GHSA-fc5q-39xc-vjpf (picomatch): the advisory was withdrawn on
  2026-11-18.

`pnpm audit --audit-level moderate` passes without them. With the
list gone, a later move back to an affected version is reported
instead of staying muted.

Closes #344
* chore(lint): drop eslint-disable directives for rules that are off

ESLint reported 24 "Unused eslint-disable directive" warnings. Each
directive names a rule this config doesn't enable (no-console,
complexity, new-cap, camelcase, unicorn/no-array-reduce, and
@typescript-eslint/no-explicit-any, which is turned off), plus
no-constant-condition, which allows `while (true)`. They are left over
from the old .eslintrc setup and suppress nothing.

* chore(lint): remove eslint-plugin-unicorn

The plugin was only registered so that `unicorn/...` disable comments
would resolve, and it enabled no rules. The previous commit removed the
last of those comments, so the plugin no longer does anything. Removing
it also drops about 30 transitive dev dependencies from the lock file.
chalk was imported in one file, src/utils/styling.ts. Node's built-in
util.styleText does the same job, so the dependency goes.

styling.ts decides whether a stream takes colour itself, by the rule
Node's styleText applies (FORCE_COLOR when set, otherwise a TTY with a
colour depth above monochrome), and only then calls styleText. Not every
runtime makes that check: bun 1.3, which compiles the standalone
binaries, colours unconditionally.

Colour is still decided by stdout, as chalk did. Text written to stderr
now goes through forStderr(), which strips the codes when stderr does
not take colour, so `dcd cloud 2> err.log` from a terminal no longer
writes escape codes into the file. NO_COLOR is now honoured too.

A colours call with a non-string prints it rather than throwing, as
chalk did. The Node floor moves to 22.8.0.

Closes #330
util.styleText's output differs across the runtimes the CLI ships on.
bun 1.3, which compiles the standalone binaries, and Node before 22.20
drop the outer colour after a nested span, so in `dcd live` the text
after a highlighted command lost its dim. No runtime closes and
re-opens colour around line breaks, as chalk did, and an empty string
came back as a pair of escape codes.

style() now builds the escape codes from util.inspect.colors, the table
styleText reads, and applies chalk's rules itself: an inner span that
ends the colour re-opens it, each line break is closed and re-opened,
and an empty string stays empty. Output is now byte-identical to the
chalk-based CLI on every supported runtime.
#354)

* fix(artifacts): save into a folder given as the artifacts path, and don't fall back on local file errors

A folder passed as --artifacts-path (or the MCP tool's artifactsPath)
failed with EISDIR once the download had started. The CLI took that for
a broken stream and fell back to the inline download, which made the API
build the whole ZIP and then failed the same way (dcd#2138).

- A folder (one that exists, or a path ending in a separator) now gets
  artifacts.zip inside it. The success message, the command's result
  and the MCP tool name the file. The MCP tool resolves the folder before
  its write checks, so they run on the file.
- A local file-system error while saving a bundle (EACCES, ENOSPC...) is
  reported as it is instead of triggering the inline fallback, which
  could only fail the same way.
- Telemetry follows --api-url before a login's stored API URL. A
  logged-in run aimed at another API sent its events to the login's API.

* Update test/unit/report-download.service.test.ts

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>

* Update src/gateways/api-gateway.ts

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>

---------

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
`deviceCloud({ locale: 'en_US' })` starts each session's device in that
language and region, set before the build is installed or opened. Device
sessions already take a locale (`dcd device start --locale`); the provider
never passed one, so a device came up in its own default.

Written as `en_US` or `en-US` and sent as `en_US`. Anything that is not a
language and a region is refused when the config is read, before a session
is started or billed. Without the option nothing changes.
The API removes iOS 17 on 24 Nov 2026 (dcd feat/removals-2026-11-24):
iPhone 14 offers iOS 18 only. EiOSVersions only feeds the --ios-version
help text; validation already follows the live compatibility data.

The unit fixtures mirror the new matrix. schema.types.ts is deliberately
not regenerated, as on 2 Nov.
#357)

fix(download): show a manifest 400/403/404 instead of re-requesting the inline route

When the bundle manifest request for artifacts or the HTML report answered
400, 403 or 404, the CLI fell back to the inline download route. That route
gives the same answer, so the fallback only cost a second request before the
same error. The error is now thrown from the manifest answer, using each
caller's existing inline error handling, so the message stays the same.

A manifest 413, 501 or 5xx, a network error, and any failure on the bundle
leg still fall back to the inline route. A thrown 400/403/404 is not a
fallback and records no fallback event.
)

The resumable upload built its own storage hostname instead of using the
Supabase URL in ENVIRONMENTS. For prod that URL is a devicecloud.dev custom
domain, so customer networks only need to reach devicecloud.dev.

Also removes the unused signed-URL upload path, which was the only user of
@supabase/supabase-js, and drops that dependency.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…#359)

The standalone binary runs on Bun. tus-js-client's default Node HTTP stack
pipes each chunk into a node:http request, and under Bun the upload-creating
POST fails with "The socket connection was closed unexpectedly". So every
binary uploaded from the standalone CLI was stored without its Storage copy.
The B2 upload still succeeded, so the command exited 0 and only --debug
showed the error.

Under Bun, tus now uses a small fetch-based HTTP stack that reads each chunk
into memory (one chunk, 6 MB, at a time) and sends it with fetch. Node keeps
tus's default stack unchanged.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
… token (#360)

Ask the API for a signed upload token when getting an upload URL. When one
comes back, upload the Supabase copy with TUS straight to the final path
through /storage/v1/upload/resumable/sign, sending the token as
x-signature, so the API has nothing to copy when it finalises.

The token is refreshed before a request when it is close to expiry, and
when Storage refuses it, so a long upload carries on. If the signed upload
fails, or the API offers none, the CLI uploads to the temp path as before.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…#361)

Storage checks a signed upload token with a JWT library that rejects an
expired token with `"exp" claim timestamp check failed`, before Storage's
own expiry message. The check for a refused token looked only for "jwt",
"signature" or "expired", so it missed that message. A request refused for
an expired token then failed the signed upload instead of getting a fresh
token and carrying on. Also match "Invalid Compact JWS", which Storage
sends for a token that is not a JWT.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
finalerock44 and others added 3 commits November 25, 2026 12:15
#362)

With e2e's video option on, the provider's record() gives e2e a link for
each test attempt: the session's console page with the test's start and
end times (?from=&to=), which plays that part of the session's one
recording. A per-test file can't exist when the test ends, since the
session records one video, finished when the session ends.

The session is read once per lease in each worker process, for its
console link; stopping a recording makes no request.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants