Skip to content

Move the backoffice clients to configureClient - #1186

Merged
KevinJump merged 2 commits into
v17/mainfrom
v17/chore/configure-client
Nov 2, 2026
Merged

KevinJump merged 2 commits into
v17/mainfrom
v17/chore/configure-client

Conversation

@KevinJump

Copy link
Copy Markdown
Member

For Jumoo/jumoo-context#141. Moves usync-assets and history-client to authContext.configureClient(client), following "Steps for each client" in Jumoo/jumoo-context#136.

Change

  • src/index.ts: onInit is async and calls configureClient after registering manifests, the same shape as v18/main.
  • openapi-ts.config.ts and scripts/generate-openapi.js: runtimeConfigPath removed. src/hey-api.ts deleted.
  • src/api: both regenerated. client.gen.ts no longer imports hey-api, and every operation has security: (18 and 3).
  • throwOnError was already set, and both clients are registered as backofficeEntryPoint (uSyncManifestReader.cs, uSyncHistoryComposer.cs).

One change the brief didn't list

@umbraco-cms/backoffice moves to ^17.6.2 and locks at 17.6.2 in both clients, the same as Jumoo/uSync.Complete#202. It's a dev dependency for types only, so the Umbraco floor doesn't change.

The history lock also needed its @tiptap/* entries resolving again, because npm ci rejected the mix of versions left after the bump.

Tested

  • npm ci && npm run build passes on both clients.
  • On Umbraco 17.4.2, a fetch hook recorded Authorization: Bearer and a 200 on every uSync call from the dashboard, a settings Report and the History view.

Not verified

  • History's types were built against backoffice 17.8.0 for the site test, then locked at 17.6.2. That lock passes npm ci && npm run build, but wasn't run on a site.
  • SignalR: negotiate sent a Bearer token, but on that first boot the hub isn't mapped, so it returned 404. After a restart the hub answered an anonymous request with 401 and a reload showed no new negotiate error, but I didn't see progress messages arrive.
  • The 401 retry from Umbraco's default interceptors.
  • Import and Export. Only Report was run.

🤖 Generated with Claude Code

KevinJump and others added 2 commits November 2, 2026 16:06
Authenticate usync-assets and history-client through
authContext.configureClient() in onInit, in place of the hey-api.ts
runtime config. That route only copied the config, so these clients
missed Umbraco's default interceptors.

@umbraco-cms/backoffice moves to ^17.6.2 as a dev dependency, because
configureClient doesn't accept a hey-api 0.99 client against older
types.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The lock kept @tiptap/extension-image at 3.31.0 beside @tiptap/core
3.32.2, which npm ci rejects. Resolve the tiptap packages again, and
lock backoffice at 17.6.2 to match usync-assets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@KevinJump
KevinJump merged commit b142820 into v17/main Nov 2, 2026
8 checks passed
@KevinJump
KevinJump deleted the v17/chore/configure-client branch November 2, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant