Skip to content

fix(utoopack): publish 0.2 dev HTML from client build callbacks - #157

Merged
fireairforce merged 2 commits into
xusd320/maintenance-0.2from
zoomdong/02-client-build-callback
Nov 2, 2026
Merged

fireairforce merged 2 commits into
xusd320/maintenance-0.2from
zoomdong/02-client-build-callback

Conversation

@fireairforce

Copy link
Copy Markdown
Member

Replace stats file watching with Utoopack's awaited onClientBuild callback so development HTML and manifests stay in sync when client chunk names change.

Requires an @utoo/pack release containing utooland/utoo#3432.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T07:40:35.312421Z 27d2083 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 27d20837dd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +113 to +118
if (
!clientBuildReceived &&
plan.entries.some((entry) => entry.environment === "client")
) {
throw new Error(
"[evjs] Utoopack dev requires @utoo/pack with onClientBuild support. Upgrade @utoo/pack before starting ev dev.",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Upgrade the Utoopack dependency before requiring its new callback

For installations using the committed lockfile, the adapter still resolves @utoo/pack to 1.4.27, while this change requires the newer onClientBuild support identified in the commit message. Removing the stats watcher and throwing when that callback has not run makes ordinary client apps fail to start with the dependency this repository installs. Update the adapter's minimum dependency version and lockfile to a release containing the callback, or retain a compatible fallback until that release is available; the mocked compatibility test does not validate the locked package.

Useful? React with 👍 / 👎.

@fireairforce
fireairforce requested a review from xusd320 October 30, 2026 17:42
@fireairforce
fireairforce merged commit 2d98f7f into xusd320/maintenance-0.2 Nov 2, 2026
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.

1 participant