Skip to content

docs(source): 补全兼容性说明与弃用提示,修正 en 文档 embed 引用 - #2883

Merged
lzxue merged 1 commit into
masterfrom
docs/source-post-merge
Jul 23, 2026
Merged

docs(source): 补全兼容性说明与弃用提示,修正 en 文档 embed 引用#2883
lzxue merged 1 commit into
masterfrom
docs/source-post-merge

Conversation

@lzxue

@lzxue lzxue commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

背景

接 PR #2882@antv/l7-source 渐进式重构阶段 0-6 已合并)后的文档收尾。用户确认「兼容原来写法」后,盘点发现若干文档需要同步更新。

改动

A. API 文档补兼容性 / 弃用说明

  • source.{zh,en}.md 新增「兼容性 / Compatibility」小节:明确旧 new Source(data, cfg) / cluster: true / ISourceCFG 旧字段 / 'update' 事件全部向后兼容,新 API(Source.create / createSource / ready / stats() / dataVersion)为可选迁移路径。
  • cluster 段补弃用提示:transforms: [{ type: 'cluster' }] 已弃用(阶段 4.4,运行时 warn 一次但仍工作),改用顶层 cluster: true

B. 修正 en 文档既有 embed 引用 bug

  • source.en.md / mvt.en.md / raster_tile.en.md 原嵌入 method.zh.md(中文)→ 改为 method.en.md(英文版早已存在)。
  • 该 bug 为既有问题(commit 1d5c5fa,非本次重构引入),本轮顺手修正,使英文文档不再混入中文瓦片方法说明。

C. 重构存档同步

验证

  • 纯文档改动,零代码 / 测试影响。
  • prettier + case-police + eslint(lint-staged)全过。
  • en 文档全仓 method.zh.md 残留已清零(grep 确认无残留)。

影响范围

仅文档,无 changeset 需要,无行为变化。

关联

source.{zh,en}.md 新增「兼容性 / Compatibility」小节:明确旧 new Source(data, cfg) /
cluster: true / ISourceCFG 旧字段 / 'update' 事件全部向后兼容,新 API 为可选迁移路径。
cluster 段补弃用提示:transforms: [{ type: 'cluster' }] 已弃用,改用 cluster: true。

修正 en 文档既有 embed 引用 bug:source.en.md / mvt.en.md / raster_tile.en.md 原嵌入
method.zh.md(中文)→ 改为 method.en.md(英文版早已存在)。该 bug 非 本次重构引入
(commit 1d5c5fa),本轮顺手修正。

重构存档同步:README「当前状态」更新为阶段 0-6 已合并;PROGRESS 追加 PR #2882 合并 /
文档补全 / 兼容性核查三条记录。
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@changeset-bot

changeset-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: ebbfd1b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@lzxue
lzxue merged commit 628ed21 into master Jul 23, 2026
3 checks passed
@lzxue
lzxue deleted the docs/source-post-merge branch July 23, 2026 09:22
lzxue added a commit that referenced this pull request Jul 23, 2026
Beta release of l7-source progressive refactor (PR #2882 + docs #2883 + maps #2884).

Includes test-utils peerDeps cleanup fixing the changeset 3.0.0 version coercion bug.

Published under beta dist-tag. latest remains 2.29.1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant