@burdenoff/microfe-ggnomad

中文文档
2026.1109.5发布于 2026/11/10TypeScriptES Module零依赖近 30 天下载 4792

Burdenoff GGNomad Microfrontend

原始使用文档
文档目录5 节
  1. Getting Started
  2. Storybook
  3. Travel planner
  4. Dependency compatibility and interaction tests
  5. License

microfe-ggnomad

Part of the Burdenoff platform by AlgoShred.

Getting Started

See AGENTS.md for development commands and architecture details.

Storybook

Component stories live under src/stories/*.stories.tsx. Every story that renders a component driving a GraphQL mutation (BookingPanel, ListingEditDialog) wraps itself with @apollo/client/testing's MockedProvider — never a live ApolloClient — plus MemoryRouter and GGNomadProvider where the component needs routing/context.

bun run storybook          # Dev server at http://localhost:6006
bun run build-storybook    # Static build -> storybook-static/ (gitignored; CI uploads it as an artifact)
bun run test:storybook     # Run interaction (play function) tests against an already-running Storybook
bun run test:storybook:ci  # Build, serve, and test in one shot (what CI runs)

test:storybook is powered by @storybook/test-runner, which drives each story's play function in a real (Playwright-controlled) browser — this is how interactive components (quantity steppers, form saves, dialog cancel) get regression coverage without a full app-shell E2E run. bun run sanity includes build-storybook (catches story build breakage); CI (pr-check.yml) additionally runs the interaction-test pass via test:storybook:ci and uploads the static build as a workflow artifact.

Travel planner

The /planner page supports an explicitly reviewed trip brief and personalized recommendations through GGNomad's existing metered, read-only shared Ask transport. Unknown brief facts remain unspecified. Recommendations can use only the loaded, bounded inventory snapshot; model-supplied IDs, prices, checkout fields and malformed responses are rejected. The traveler can apply reviewed suggestions, prioritize a real listing, generate a grounded proposal, select its items and explicitly save a trip plan. Saving uses the existing server-side inventory, capacity, time and budget rules and re-prices live listings. It does not book or pay for travel. A lost save response is reconciled with the actor-owned proposal rather than automatically replaying the write. Manual field entry and planning remain available when AI is unavailable. Draft and request state is discarded across actor, tenant, organization, workspace, project and API context changes; cancellation ignores late replies.

Dependency compatibility and interaction tests

The previous blanket glob override replaced NYC's declared glob 7 callback API with an incompatible modern module. Blanket minimatch and brace-expansion overrides also crossed their importers' supported major versions. The lockfile now respects those declared ranges. Committed Bun patches backport the upstream modern glob abort-return and minimatch preprocessing-budget fixes, including glob 13's bundled CommonJS entry. Legacy minimatch 3 does not have the affected preprocessing implementation. Existing deepmerge prototype-poisoning protection remains patched.

tests/globCompat.test.ts executes real Node package imports. It checks the legacy callback API, complete non-aborted traversal, no further directory I/O after cancellation, bounded pattern expansion, ordinary matching and avoidance of quadratic comparisons for large expansions in both CommonJS and ESM. Sources: glob advisory and minimatch upstream fix.

All 10 Chromium Storybook suites / 45 interactions passed after restoring compatible imports; the interaction step now fails the required sanity job on failure. The previous blanket claim that every story necessarily fails is superseded by this actual execution. Browser verification of the deployed product remains a separate release requirement. Package audits still identify patched package versions by their registry numbers; retain the audit findings and functional patch evidence rather than suppressing those advisories.

License

Proprietary — Copyright Burdenoff Consultancy Services Pvt. Ltd.

Package publication enables MFE_DTS=1 for both alpha and stable builds. The required PR build and both publication workflows run bun scripts/check-package-exports.mjs to verify every declared runtime and TypeScript entry before publication. The guard rejects missing or empty declarations and exports outside the packaged dist tree. Its offline tests include the JavaScript-only stable failure shape.

版本与发布记录

@burdenoff/microfe-ggnomad 共发布 80 个版本,首次发布于 2026/05/11;过去 12 个月发布了 80 个版本。

版本发布日期距今
2026.1109.5latest2026/11/10今天
2026.1109.4alpha2026/11/10今天
2026.1109.32026/11/10今天
2026.1109.22026/11/09今天
2026.1109.12026/11/09今天
2026.1107.12026/11/082 天前

关于 @burdenoff/microfe-ggnomad 的常见问题

@burdenoff/microfe-ggnomad 是什么?

Burdenoff GGNomad Microfrontend

如何安装 @burdenoff/microfe-ggnomad?

在项目目录运行 npm install @burdenoff/microfe-ggnomad,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:clsx(^2.1.1)、react(^19.3.1)、sonner(^2.0.8)、graphql(^16.15.0)、zustand(^5.1.0)、recharts(^2.15.4)、react-dom(^19.3.1)、lucide-react(^0.468.0)、react-router(^8.5.1)、framer-motion(^12.43.0)、@apollo/client(^4.3.7)、tailwind-merge(^3.7.0)、@burdenoff/fe-libs(2026.801.1)、@tanstack/react-query(^5.106.1)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@burdenoff/microfe-ggnomad 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@burdenoff/microfe-ggnomad 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@burdenoff/microfe-ggnomad 可以商用吗?

@burdenoff/microfe-ggnomad 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@burdenoff/microfe-ggnomad 的下载量有多少?

根据 npm 官方下载统计,@burdenoff/microfe-ggnomad 在 2026/10/09 – 2026/11/07 这 30 天内被下载 4,792 次,日均约 160 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@burdenoff/microfe-ggnomad 还在维护吗?

最新版本 2026.1109.5 发布于 2026/11/10(今天);至今共发布 80 个版本,其中过去 12 个月发布了 80 个;首次发布于 2026/05/11。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。