Skip to content

fix(miniapp): preserve package version on install - #1964

Merged
bobleer merged 1 commit into
GCWing:mainfrom
bobleer:bob/preserve-miniapp-package-version
Aug 2, 2026
Merged

fix(miniapp): preserve package version on install#1964
bobleer merged 1 commit into
GCWing:mainfrom
bobleer:bob/preserve-miniapp-package-version

Conversation

@bobleer

@bobleer bobleer commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • preserve the version declared in validated MiniApp packages during first install
  • rebuild runtime revision state after applying the package version so UI metadata and runtime invalidation stay consistent
  • cover both direct .bfminiapp imports and marketplace installs with regression tests

Root cause

The strict package installer discarded MarketPackageMeta.version and delegated to the normal create path, which always initializes a MiniApp at version 1. The installed gallery then correctly rendered that incorrect persisted value.

Testing

  • cargo test -p bitfun-product-domains --features miniapp miniapp::runtime_facade::tests -- --nocapture
  • cargo test -p bitfun-product-domains --features product-full
  • node scripts/check-core-boundaries.mjs
  • git diff --check

AI-assisted change; fully tested at the product-domain contract boundary.

@bobleer
bobleer merged commit 7ae1aa4 into GCWing:main Aug 2, 2026
4 checks passed
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