Skip to content

[DOC] Remove the classic Component from API docs of non-deprecated APIs - #21790

Merged
NullVoxPopuli merged 2 commits into
emberjs:mainfrom
NullVoxPopuli-ai-agent:nvp/api-docs-no-classic-component
Nov 17, 2026
Merged

NullVoxPopuli merged 2 commits into
emberjs:mainfrom
NullVoxPopuli-ai-agent:nvp/api-docs-no-classic-component

Conversation

@NullVoxPopuli-ai-agent

@NullVoxPopuli-ai-agent NullVoxPopuli-ai-agent commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

API doc examples on APIs that are not deprecated no longer use the classic Component from @ember/component, which #21630 deprecated (RFC 1216).

  • runInDebug, bind, next, RouterService#recognize: examples rewritten as Glimmer components.
  • ApplicationInstance boot options: "does not run didInsertElement" now says "does not install element modifiers".
  • concatenatedProperties: uses Controller#queryParams as the example, not classNames.
  • EmberObject.extend: drops the Component.extend example.
  • @glimmer/component: the lifecycle docs no longer show didInsertElement with jQuery, and the module intro says classic components are deprecated.
  • destroyable and yield examples: add the missing @glimmer/component import.

Left for a decision: the readonly helper docs. The helper only matters for classic components, so it needs its own deprecation or a rewrite.

Checks: pnpm lint:docs, pnpm type-check:internals, eslint and prettier pass.

🤖 Generated with Claude Code

NullVoxPopuli and others added 2 commits November 11, 2026 15:18
RFC emberjs#1216 deprecates the classic `Component` from `@ember/component`.
API docs for APIs that are not deprecated still used it in examples.
They now use `@glimmer/component` in gjs style, or drop the reference.

- runInDebug, bind, next/scheduleOnce, RouterService#recognize:
  examples rewritten to Glimmer components.
- Glimmer Component class docs: no more didInsertElement or this.element.
- ApplicationInstance isBrowser: mention modifiers, not didInsertElement.
- concatenatedProperties and extend: use Controller queryParams,
  remove the Component.extend example.
- Textarea: remove the classic layout/layoutName section.
- associateDestroyableChild and the yield Banner example: import
  Component from @glimmer/component.
- @glimmer/component module intro: say classic components are deprecated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@NullVoxPopuli NullVoxPopuli reopened this Nov 16, 2026
@NullVoxPopuli
NullVoxPopuli merged commit 7dfe893 into emberjs:main Nov 17, 2026
68 checks passed
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.

3 participants