Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLEANUP beta] Drop export of built-ins, remove legacy components #19806

Merged
merged 1 commit into from
Nov 10, 2021

Conversation

mixonic
Copy link
Member

@mixonic mixonic commented Oct 27, 2021

Part of #19617

  • Remove the export of @ember/component/checkbox
  • Remove the export of @ember/component/text-field
  • Remove the export of @ember/component/text-area
  • Remove the export of @ember/component/link-component
  • Remove the assignment of Ember.Checkbox
  • Remove the assignment of Ember.TextField
  • Remove the assignment of Ember.TextArea
  • Remove the assignment of Ember.LinkComponent
  • Remove the assignment of Ember.TextSupport
  • Remove the assignment of Ember.TargetActionSupport
  • Remove the assignment of Ember._Input (what is this?) I brought _Input back as it is under test. I'm not familiar with its usage.
  • Hard-code EMBER_MODERNIZED_BUILT_IN_COMPONENTS to true path in most places. The remaining are a few spots where there are deprecations targeting 5.0.
  • Hard-code the built-in components (<Textarea>, <Input>, <LinkTo>) for the modernized path
  • Remove the query-params helper (it is only needed by the legacy LinkComponent and was deprecated).
  • Review Remove deprecated disabledWhen #19669 and ensure all disabledWhen is removed.
  • Review Remove LinkTo's tagName #19662 and ensure all @tagName support is removed
  • Review all ember.built-in-components.* deprecations and ensure their functionality is removed.
  • Remove code supporting ember-glimmer.link-to.positional-arguments, basically https://github.com/emberjs/ember.js/blob/master/packages/ember-template-compiler/lib/plugins/transform-link-to.ts

@mixonic mixonic force-pushed the mixonic/drop-export-of-built-ins branch 4 times, most recently from 7544d6b to 6c60515 Compare October 27, 2021 21:12
@mixonic mixonic force-pushed the mixonic/drop-export-of-built-ins branch 4 times, most recently from 561227a to 7639bc5 Compare November 3, 2021 21:51
packages/@ember/-internals/glimmer/index.ts Show resolved Hide resolved
@@ -47,27 +37,267 @@ function isQueryParams(value: unknown): value is QueryParams {
return typeof value === 'object' && value !== null && value['isQueryParams'] === true;
}

class LinkTo extends InternalComponent implements DeprecatingInternalComponent {
/**
The `LinkTo` component renders a link to the supplied `routeName` passing an optionally
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs moved here from the deleted -link-to.ts

packages/@ember/-internals/glimmer/lib/component.ts Outdated Show resolved Hide resolved
@mixonic mixonic force-pushed the mixonic/drop-export-of-built-ins branch 2 times, most recently from ece8f00 to 3d7d294 Compare November 3, 2021 22:12
@mixonic mixonic marked this pull request as ready for review November 4, 2021 00:13
@mixonic mixonic changed the title WIP: Drop export of built-ins, remove legacy components [CLEANUP beta] Drop export of built-ins, remove legacy components Nov 4, 2021
@mixonic mixonic mentioned this pull request Nov 4, 2021
58 tasks
@mixonic mixonic force-pushed the mixonic/drop-export-of-built-ins branch 5 times, most recently from 5b38e47 to e348f9b Compare November 4, 2021 01:50
@mixonic
Copy link
Member Author

mixonic commented Nov 4, 2021

@chancancode this is ready for a close read if you can spare the time. I'm going to work next on:

I'll leave a DO NOT MERGE flag until I've completed that validation.

@mixonic mixonic changed the title [CLEANUP beta] Drop export of built-ins, remove legacy components [DO NOT MERGE][CLEANUP beta] Drop export of built-ins, remove legacy components Nov 4, 2021
@mixonic mixonic force-pushed the mixonic/drop-export-of-built-ins branch 2 times, most recently from b6923c0 to f038bee Compare November 8, 2021 22:34
@mixonic mixonic force-pushed the mixonic/drop-export-of-built-ins branch from f038bee to 760c91d Compare November 9, 2021 21:15
* Remove the export of `@ember/component/checkbox`
* Remove the export of `@ember/component/text-field`
* Remove the export of `@ember/component/text-area`
* Remove the export of `@ember/component/link-component`
* Remove the assignment of `Ember.Checkbox`
* Remove the assignment of `Ember.TextField`
* Remove the assignment of `Ember.TextArea`
* Remove the assignment of `Ember.LinkComponent`
* Remove the assignment of `Ember.TextSupport`
* Remove the assignment of `Ember.TargetActionSupport`
* Hard-code `EMBER_MODERNIZED_BUILT_IN_COMPONENTS` to `true` path in
  most places. The remaining are a few spots where there are
  deprecations targeting *5.0*.
* Hard-code the built-in components (`<Textarea>`, `<Input>`,
  `<LinkTo>`) for the modernized path
* Remove the `query-params` helper (it is only needed by the legacy
  `LinkComponent` and was deprecated).
* Review emberjs#19669 and ensure all
  `disabledWhen` is removed.
* Review emberjs#19662 and ensure all
  `@tagName` support is removed
* Review all `ember.built-in-components.*` deprecations and ensure their
  functionality is removed.
* Remove code supporting `ember-glimmer.link-to.positional-arguments`,
  basically
  https://github.com/emberjs/ember.js/blob/master/packages/ember-template-compiler/lib/plugins/transform-link-to.ts
@mixonic mixonic force-pushed the mixonic/drop-export-of-built-ins branch from 760c91d to 5d24ae7 Compare November 9, 2021 21:26
mixonic added a commit to emberjs/ember-legacy-built-in-components that referenced this pull request Nov 9, 2021
Ember asset built with `node bin/build-for-publishing.js`
on the PR emberjs/ember.js#19806
@mixonic mixonic changed the title [DO NOT MERGE][CLEANUP beta] Drop export of built-ins, remove legacy components [CLEANUP beta] Drop export of built-ins, remove legacy components Nov 10, 2021
@rwjblue rwjblue merged commit 032bdc4 into emberjs:master Nov 10, 2021
@rwjblue rwjblue deleted the mixonic/drop-export-of-built-ins branch November 10, 2021 18:44
@ef4
Copy link
Contributor

ef4 commented Nov 10, 2021

Nice lookin' PR.

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.

4 participants