@hy-bricks/core 0.6.3 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @hy-bricks/core
2
2
 
3
+ ## [0.6.4] - 2026-06-25
4
+
5
+ 随 @hy-bricks fixed 组同步升 0.6.4;本包**无功能改动**(本版含 `@hy-bricks/canvas` 修运行态布局黄框误报 + `@hy-bricks/editor` 把 `tailwindcss` / `tailwindcss-animate` peerDependencies 改为 optional)。
6
+
3
7
  ## [0.6.3] - 2026-06-24 · 组件运行态快照持久化
4
8
 
5
9
  非破坏 patch。@hy-bricks 4 包同步升 0.6.3。本版实际代码改动在 core(快照 store + compileComponent 还原/拍照 + watcher diff + RuntimeBox prop + instanceRegistry disposeCanvas 清快照)。修 portal 反馈「看板组件滚出视口 / 重渲染后,用户运行时选值(如维度=年)变回默认(日)、查询条件丢」。
@@ -30,7 +34,7 @@
30
34
  ### spec
31
35
  - core test +3:1 aliasing(watcher diff)+ 2 sync/async known-limitation;core test → 243。
32
36
 
33
- > 状态:本条目对应改动已收口、全验证绿,但**尚未 publish npm**(pre-1.0 手动 bump,待 `pnpm release`)。
37
+ > 已于 **2026-06-24** 发布 npm(`@hy-bricks/{core,canvas,editor,devtools}@0.6.3`,fixed 组同步,`latest` 已指向 0.6.3)。
34
38
 
35
39
  ## [0.6.2] - 2026-06-23
36
40
 
package/README.md CHANGED
@@ -6,9 +6,7 @@
6
6
  [![license](https://img.shields.io/badge/license-MIT-green.svg)](./LICENSE)
7
7
  [![vue](https://img.shields.io/badge/vue-%5E3.5-42b883)](https://vuejs.org/)
8
8
 
9
- > ⚠️ **0.4.0 BREAKING** ── `onInstanceLifecycle('instance:ready')` 回调被调时,子组件 DOM 还没渲染。回调内访问 `vm.$el` 会拿 `null`,需改 `nextTick(() => vm.$el...)`。详 [CHANGELOG](./CHANGELOG.md)。
10
- >
11
- > ✨ **0.4.0 新特性** ── 组件作者可在 `mounted` 里直接调 `__HYPERCARD__.runtime.on(this.hcInstanceId, ...)` 立即订阅。新增 3 个实例 prop:`hcInstanceId` / `hcCanvasId` / `hcComponentId`。
9
+ > 📦 **当前发布版 0.6.3** ── 逐版变更(含历史 BREAKING)以 [CHANGELOG](./CHANGELOG.md) 为准。需要留意的 BREAKING:**0.6.0** 移除 test-only / 内部导出 + `beginBatch`/`endBatch` 改深度计数 + `removeInstance` 默认级联删除(新增 `getRemoveImpact`);**0.4.0** `instance:ready` 提前到 `created` 后,回调内访问 `vm.$el` `nextTick(() => vm.$el...)`。
12
10
 
13
11
  ---
14
12
 
@@ -110,7 +108,7 @@ pnpm add @hy-bricks/core
110
108
  | `createHyperCard(config)` | 主入口,返回 Vue plugin | `app.use(createHyperCard({ libs }))` |
111
109
  | `isVuePlugin(v)` | 检测是不是 `{ install: fn }` 对象 / `[plugin, opts]` 元组 | `if (isVuePlugin(x)) ...` |
112
110
  | `HC_INJECT_KEY` | provide/inject 的 key,值是字符串 `'__HYPERCARD__'` | `inject(HC_INJECT_KEY)` |
113
- | `VERSION` | SDK 包版本字符串 | `'0.1.0'` |
111
+ | `VERSION` | SDK 包版本字符串(随发布更新,以 `package.json` 为准) | `import { VERSION } from '@hy-bricks/core'` |
114
112
  | `HyperCardConfig` `HyperCardInstance` `LibsRegistry` | TS 类型 | 见下文 |
115
113
 
116
114
  ### 编译用户源码
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hy-bricks/core",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "HyperCard 运行时核心 — 编译用户源码 / CSS scope / 实例注册表 / 跨实例 SDK / JS 静态解析",
5
5
  "keywords": [
6
6
  "hypercard",