Uh oh!
There was an error while loading. Please reload this page.
fix(deps): bump @objectstack/client 到 ^11.5.0,修复 console 产物打包旧 client 导致异步导入不可用 - #2146
Merged
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
The published @objectstack/console@11.5.0 bundle shipped the new import UI but bundled @objectstack/client@11.2.0 (locked by our ^11.2.0 pin), which lacks the async import-job API (data.createImportJob et al.). The adapter's feature detection then throws "The connected @objectstack/client does not support async import jobs." at runtime. Bump client to ^11.5.0 in data-objectstack and console, and align all @objectstack/spec / formula pins to ^11.5.0 so the lockfile resolves a single 11.5.0 set. Rebuilt console dist now contains the import/jobs client routes (previously zero occurrences). Fixes#2145
The console bundle changes when this override is set (framework's build-console.sh now injects its own client), so turbo must not serve a cached dist across different values.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes#2145
问题
@objectstack/console@11.5.0(vendored objectui1432efe81)带了新导入 UI,但 bundle 里的@objectstack/client是 11.2.0(被^11.2.0pin 锁死),没有data.createImportJob等异步导入 API。前端探测失败,运行时报:实际项目 os-tianshun-ehr(依赖全部 11.5.0)复现。已验证证据链:直接运行 ehr 里 CLI 的
resolveConsolePath定位到实际 serve 的 console 目录,其 dist 中import/jobs出现 0 次;而 client 11.5.0 npm 包中该 API 存在(11.2–11.4 均不存在)。改动
packages/data-objectstack、apps/console:@objectstack/client^11.2.0→^11.5.0@objectstack/spec/@objectstack/formula统一^11.2.0→^11.5.0(避免 lockfile 冻结出双份 spec)@objectstack/client@11.2.0全部清除,解析为 11.5.0验证
pnpm build44/44 成功;新 console dist 的vendor-objectstack-*.js中出现import/jobs路由字符串(修复前 0 次)@object-ui/data-objectstack测试 227/227 通过后续(framework 仓库)
console 重新 vendor 本次 objectui SHA 并发布
@objectstack/console@11.5.1,ehr 升级后生效。