Skip to content

docs: add a 0.10.x to v11 migration guide - #3309

Draft
interactivellama wants to merge 6 commits into
feat/v11-llm-1-llm-docsfrom
feat/v11-llm-2-migration-guide
Draft

interactivellama wants to merge 6 commits into
feat/v11-llm-1-llm-docsfrom
feat/v11-llm-2-migration-guide

Conversation

@interactivellama

@interactivellama interactivellama commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Part of the v11 docs stack (3 of 3, stack #3316). Base: #3308. Merge last: this stack merges after the clean CI and GA requirements stacks, so it documents the final API.

Additional description

Adds docs/migration-v11.md, a 0.10.x → v11 migration guide written for agents (and people) moving code forward:

  • Platform changes (React, entry points, ESM/CJS, types) and the cross-cutting patterns: className placement, focusing through a ref, slots instead of render functions, events, and controlled/uncontrolled isOpen.
  • A per-component table: old API → new API → Breaking or Deprecated. Deprecated props that still work in 11.x get rows too, because an agent trained on 0.10.x writes those names and the types still accept them.
  • docs/__tests__/migration-v11.type-test.tsx type-checks the guide's snippets, including @ts-expect-error for removed APIs. tsconfig.type-tests.json and tsconfig.eslint.json now include docs/.
  • Links from the README and CONTRIBUTING, and a CHANGELOG line.

Inventory sources: the CHANGELOG [Unreleased] and alpha sections, every BREAKING CHANGE: footer since v0.10.65, and the components/index.js export diff. Reverted changes (Alert autoFocus), bug fixes with no API change, and items that were deferred or cut from scope are left out.

Matched to the 11.0 base (#3303). The guide was first drafted on a base that still contained the closed root-and-refs (#3301) and slots/children work. The last commit removes the rows for changes #3303 doesn't have (e.g. Badge/MediaObject children, Input ref, the className moves other than the ones listed) and marks requestFocus as deprecated, not removed. If any of that work lands later, it needs rows again.

Findings, not fixed here:

  • Three breaking footers have no CHANGELOG line: Combobox events.onSelectActionItem, Badge style/styleIcon, and the Combobox option category. The guide covers all three.
  • SimpleDataTableItem and TreeNodeId aren't exported from any public entry point, so consumers typing selection/selectedIds state have to restate the shape.

CONTRIBUTOR checklist (do not remove)

Please complete for every pull request.

Green gate — all of these must pass locally (CI runs the same):

  • npm run lint passes with 0 errors (npm run lint:fix to auto-fix). Warnings are the tracked gradual-migration backlog; do not add new errors.
  • npm run typecheck is clean (tsc --noEmit).
  • npm test -- --run passes — this runs both Vitest projects (jsdom unit + real-browser browser) and the story HTML snapshots. If you changed rendered markup on purpose, update snapshots with npm test -- --run -u and review the diff.
  • npm run build succeeds (type-check + Vite library build + .d.ts + entry shims).

Behavior & docs:

  • First-time contributors: sign the CLA (a bot will comment with instructions).
  • Added/updated Vitest + React Testing Library tests for the change (template: components/button/__tests__). New props and bug fixes should get a regression test. Tests that genuinely need a real browser (focus traversal, layout/measurement, canvas) go in a *.browser.test.jsx file (the browser project); everything else is jsdom.
  • Reviewed the component's Storybook stories: npm run storybook → http://localhost:6007/. Confirm the story actually renders and behaves (deprecated Storyshots/Karma are gone; there is no separate browser-tests server).
  • Story/example code uses the component's real prop API (e.g. slots like content / visualPickerFigure, render props like renderItem, icon props, events), not assumptions — a common source of "component looks broken" reports has been stories authored against the wrong API. Cross-check against components/<name>/__examples__.
  • Storybook Accessibility (a11y) panel shows no new violations for the affected stories.
  • If you added or changed a type, remember runtime PropTypes were removed in the TS migration — types are the contract. Ship accurate .d.ts (they're generated by the build); JS consumers rely on them via editor type-acquisition.

REVIEWER checklist (do not remove)

  • CI is green (GitHub Actions CI workflow: lint, typecheck, test, build). Chromatic visual review, if configured, has been checked.
  • Change has adequate test coverage; bug fixes include a regression test.
  • Reviewed the affected Storybook stories and their a11y panels.
  • Rendered markup still conforms to SLDS — check the story HTML snapshot diff (components/__tests__/__snapshots__/story-snapshots.test.jsx.snap).
  • Public API / package surface: if exports changed, the deep-import contract still holds (@salesforce/design-system-react/components/<name> and nested paths resolve for ESM, CJS, and types). Removing/renaming a public component or export is a breaking change → feat!:/BREAKING CHANGE: and a major version bump.

@interactivellama interactivellama changed the title feat/v11 llm 2 migration guide docs: add a 0.10.x to v11 migration guide Nov 13, 2026
@interactivellama
interactivellama force-pushed the feat/v11-llm-2-migration-guide branch from 632b973 to 9bd09c5 Compare November 15, 2026 21:48
@interactivellama
interactivellama removed this pull request from stack #3312 November 15, 2026 21:48
@interactivellama
interactivellama removed this pull request from stack #3315 November 16, 2026 05:53
@interactivellama
interactivellama force-pushed the feat/v11-llm-2-migration-guide branch from 9bd09c5 to adc0e23 Compare November 16, 2026 07:58
@interactivellama interactivellama added this to the 11.0.0-rc.1 milestone Nov 18, 2026
@interactivellama
interactivellama force-pushed the feat/v11-llm-2-migration-guide branch from adc0e23 to 7f82947 Compare November 18, 2026 23:29
@interactivellama
interactivellama removed this pull request from stack #3316 November 18, 2026 23:30
@interactivellama
interactivellama force-pushed the feat/v11-llm-2-migration-guide branch from 7f82947 to a9cc629 Compare November 19, 2026 04:42
@interactivellama
interactivellama removed this pull request from stack #3344 November 19, 2026 04:42
@interactivellama
interactivellama removed this pull request from stack #3346 November 19, 2026 22:05
@interactivellama
interactivellama force-pushed the feat/v11-llm-2-migration-guide branch from a9cc629 to 7bc5f00 Compare November 19, 2026 22:07
@interactivellama
interactivellama force-pushed the feat/v11-llm-2-migration-guide branch from 7bc5f00 to 9b87a92 Compare November 20, 2026 00:14
@interactivellama
interactivellama removed this pull request from stack #3348 November 20, 2026 00:23
@interactivellama
interactivellama force-pushed the feat/v11-llm-2-migration-guide branch 2 times, most recently from 61662be to 100ca1e Compare November 20, 2026 23:37
@interactivellama
interactivellama force-pushed the feat/v11-llm-2-migration-guide branch 2 times, most recently from 6737222 to 3d78367 Compare November 20, 2026 23:51
@interactivellama
interactivellama removed this pull request from stack #3359 November 23, 2026 07:57
@interactivellama
interactivellama force-pushed the feat/v11-llm-2-migration-guide branch from 3d78367 to 4aa378a Compare November 23, 2026 07:59
@interactivellama
interactivellama removed this pull request from stack #3361 November 23, 2026 08:13
Platform changes (React 19, module format, peer dependencies, the
DataTable rename, removed components and deep paths) and the
cross-cutting patterns, each with a before and after snippet.
One row per changed prop, in alphabetical order, marked breaking,
breaking at runtime, or deprecated and still working in 11.x.
Each v11 snippet in docs/migration-v11.md compiles, and each 0.10.x
snippet the guide marks as rejected sits under @ts-expect-error, so the
guide fails typecheck if it drifts from the types. The type-tests and
lint tsconfigs include docs/.
Link the migration guide from the README and CONTRIBUTING, add the
CHANGELOG Added line, and mark the ROADMAP item done.
The guide was written against the root-and-refs and slots changes
(#3301, closed) that are not in feat/v11-p1-7-typing. Drop the rows and
snippets for them: Badge and MediaObject children, the className* parts
on Combobox, DatePicker, Input, ProgressBar, RadioGroup and
SimpleDataTable, Tooltip className/style, Popover aria-labelledby, and
the other renames that did not land. requestFocus is deprecated, not
removed, on Button, Checkbox and Radio.
No snippet uses Icon. Lint now runs with --max-warnings=0, so the
unused import fails it.
@interactivellama
interactivellama force-pushed the feat/v11-llm-2-migration-guide branch from 4aa378a to 819bf45 Compare November 24, 2026 00:04

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant