Files
heroui-vue/tests/package
maoyingjie c8d54abefb feat(collections): auto incremental async loading, shared filtering and submenu delay
HD-10 scope, against heroui ce90ea3 collection sources and their
react-aria/react-stately dependencies:

- the ComboBox async demo now auto-loads on scroll-to-bottom
  (IntersectionObserver sentinel + fill chain mirroring the pinned
  ListBoxLoadMoreItem re-observe semantics), never duplicates requests
  (loading guards + monotonic sequence token), drops stale responses on
  query switches, keeps a retry path for failures (injectable mock
  failure) and documents its differences from the pinned SWAPI source;
  the Select demo's observer stays untouched (real-network scroll
  triggering verified in browser)
- the Autocomplete virtualization demo and the default filter share one
  locale-sensitive matcher: createBaseContains (Intl.Collator base
  sensitivity, cafe matches Cafe with accent folding) is now exported
  from the package root
- Autocomplete trigger semantics verified complete (single tab stop,
  Enter/Space/Escape/Delete/IME, single and multiple selection) and the
  scoped slots gained composition data instead of child copying:
  AutocompleteValue exposes selectedItem and per-entry source item,
  the ComboBox root exposes selectedItem
- DropdownSubmenuTrigger exposes the pinned delay contract (default
  200ms): the controlled open gate retimes Reka's fixed 100ms hover,
  keyboard opens stay immediate and cancel the pending hover, pointer
  leave cancels; the dead side/align forwarding is gone (Reka fixes the
  submenu side per direction); Button/Avatar trigger layout
  compensation kept after browser proof it is what wins the cascade
- tests/fixtures/collections-rtl.vue drives the real-browser delay and
  RTL geometry checks; b02-pickers contract pins the new export and
  slot typing

Full suite 111 files / 1666 tests, typecheck, build:docs and the
b02-pickers + api-root-aliases tarball contracts pass.
2026-10-29 13:46:34 +08:00
..

独立客户端产物验收

统一入口,参数只选受影响的契约:

node scripts/check-package.mjs b02-pickers
node scripts/check-package.mjs calendar date-field select --offline

入口先构建库/样式,在工作区外新建临时消费者,打包并安装最终tarball,检查所选公共导出/CSS/变体,再运行相应*-contract.ts的strict NodeNext/bundler正反例。不会启动服务或执行SSR/水合。NodeNext只是类型解析模式。支持的ID见client-checks.json;无效ID会在构建前失败。

一次选择多个受影响ID,共享同次构建/安装;不要为每组件手动复制一套安装流程。默认消费者保留供检查,路径打印在日志中,不是新项目或长期工作目录。--offline仅在所需依赖已缓存时使用,安装失败不是验收通过。

契约与浏览器

  • client-checks.json:导出、CSS标记、暂不公开组件的边界;check-client.mjs:共用检查和少数变体断言。
  • *-contract.ts:公开Props/事件/插槽类型正反例;@ts-expect-error出现unused必须修复,不能删反例。源码typecheck不能替代发布类型。
  • B02浏览器夹具和B01浏览器夹具保留。选择b02-pickers时,入口会把浏览器文件放入独立消费者;按输出命令显式启动,验可见/点击/焦点等核心路径。未启动时不能声称已验浏览器。
  • 新公共组件在已有数据与契约上增量扩展,不再新增consume-某批次.mjs脚本或手写另一套消费者流程。

旧15份consume脚本已移除;客户端导出/CSS/变体检查统一保留,服务端HTML/无document运行等断言不再维护。SSR/水合/Nuxt集成不支持。逐像素自动对比、完整读屏矩阵、真机矩阵暂不投入;基础键盘/可访问性与重点浏览器交互仍验证。