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

Several elements fixes and improvements #43975

Closed
wants to merge 5 commits into from

Conversation

@alan-agius4
Copy link
Contributor

@alan-agius4 alan-agius4 commented Oct 28, 2021

test: remove ng_elements_schematics integration test
This test has been removed as since the elements schematic has been removed in a previous commit.

fix(elements): remove incorrect @angular/platform-browser peer dependency
The elements package doesn't use @angular/platform-browser therefore this is not needed.

fix(elements): remove ng-add schematic
This schematic is no longer needed since all the browsers that Angular supports CustomElementRegistry APIs.

Side note: document-register-element has been deprecated in favor of @ungap/custom-element

docs: update elements page
This section was outdated since now all CLI projects are es2015+ and don't require the polyfill since legacy browsers are no longer supported.

test: remove document-register-element from elements tests
All the browsers that Angular supports CustomElementRegistry APIs

@google-cla google-cla bot added the cla: yes label Oct 28, 2021
@ngbot ngbot bot added this to the Backlog milestone Oct 28, 2021
@ngbot ngbot bot added this to the Backlog milestone Oct 28, 2021
@ngbot ngbot bot added this to the Backlog milestone Oct 28, 2021
@alan-agius4 alan-agius4 force-pushed the schematics-elements branch from 2a416be to 3f2e8b9 Oct 28, 2021
aio/content/guide/elements.md Outdated Show resolved Hide resolved
@alan-agius4 alan-agius4 marked this pull request as ready for review Oct 28, 2021
@alan-agius4 alan-agius4 force-pushed the schematics-elements branch from 3f2e8b9 to 7a28caf Oct 28, 2021
@pullapprove pullapprove bot requested review from gkalpak and josephperrott Oct 28, 2021
@alan-agius4 alan-agius4 force-pushed the schematics-elements branch from 7a28caf to bd53f10 Oct 28, 2021
Copy link
Member

@josephperrott josephperrott left a comment

LGTM

aio/content/guide/elements.md Outdated Show resolved Hide resolved
context.logger.info('Added "document-register-element" to polyfills.');
};
}
export default noop;
Copy link
Member

@josephperrott josephperrott Oct 28, 2021

Choose a reason for hiding this comment

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

Does it make sense to have this schematic at least output that its a noop and no longer necessary to run?

Copy link
Contributor Author

@alan-agius4 alan-agius4 Oct 28, 2021

Choose a reason for hiding this comment

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

That’s a good idea.

Copy link
Contributor Author

@alan-agius4 alan-agius4 Oct 29, 2021

Choose a reason for hiding this comment

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

Thinking about it, maybe it's better to just drop the schematic and update the doc to use npm install @angular/elements --save

@alan-agius4 alan-agius4 force-pushed the schematics-elements branch from bd53f10 to ffa3b39 Oct 29, 2021
@alan-agius4 alan-agius4 changed the title Noop elements schematic Several elements fixes and improvements Oct 29, 2021
@alan-agius4 alan-agius4 force-pushed the schematics-elements branch from ffa3b39 to d763430 Oct 29, 2021
Copy link
Member

@gkalpak gkalpak left a comment

🎉
Thx, @alan-agius4 🚀

Commit message typos:

  • the browsers that Angular supports supports --> the browsers that Angular supports support (in a couple of commits)
  • @@ungap/custom-element --> @ungap/custom-elements

alan-agius4 added 5 commits Oct 29, 2021
All the [browsers](https://angular.io/guide/browser-support) that Angular supports `CustomElementRegistry` APIs
This section was outdated since now all CLI projects are es2015+ and don't require the polyfill since legacy browsers are no longer supported.
This schematic is no longer needed since all the [browsers](https://angular.io/guide/browser-support) that Angular supports `CustomElementRegistry` APIs.

Side note: `document-register-element` has been deprecated in favor of `@ungap/custom-element`
…ndency

The elements package doesn't use `@angular/platform-browser` therefore this is not needed.
This test has been removed as since the elements schematic has been removed in a previous commit.
@alxhub
Copy link
Contributor

@alxhub alxhub commented Oct 29, 2021

This PR was merged into the repository by commit 6247efa.

alxhub added a commit that referenced this issue Oct 29, 2021
All the [browsers](https://angular.io/guide/browser-support) that Angular supports `CustomElementRegistry` APIs

PR Close #43975
alxhub added a commit that referenced this issue Oct 29, 2021
This section was outdated since now all CLI projects are es2015+ and don't require the polyfill since legacy browsers are no longer supported.

PR Close #43975
alxhub added a commit that referenced this issue Oct 29, 2021
This schematic is no longer needed since all the [browsers](https://angular.io/guide/browser-support) that Angular supports `CustomElementRegistry` APIs.

Side note: `document-register-element` has been deprecated in favor of `@ungap/custom-element`

PR Close #43975
alxhub added a commit that referenced this issue Oct 29, 2021
…ndency (#43975)

The elements package doesn't use `@angular/platform-browser` therefore this is not needed.

PR Close #43975
alxhub added a commit that referenced this issue Oct 29, 2021
This test has been removed as since the elements schematic has been removed in a previous commit.

PR Close #43975
@alxhub alxhub closed this in b322585 Oct 29, 2021
alxhub added a commit that referenced this issue Oct 29, 2021
This section was outdated since now all CLI projects are es2015+ and don't require the polyfill since legacy browsers are no longer supported.

PR Close #43975
alxhub added a commit that referenced this issue Oct 29, 2021
This schematic is no longer needed since all the [browsers](https://angular.io/guide/browser-support) that Angular supports `CustomElementRegistry` APIs.

Side note: `document-register-element` has been deprecated in favor of `@ungap/custom-element`

PR Close #43975
alxhub added a commit that referenced this issue Oct 29, 2021
…ndency (#43975)

The elements package doesn't use `@angular/platform-browser` therefore this is not needed.

PR Close #43975
alxhub added a commit that referenced this issue Oct 29, 2021
This test has been removed as since the elements schematic has been removed in a previous commit.

PR Close #43975
@alan-agius4 alan-agius4 deleted the schematics-elements branch Oct 30, 2021
gkalpak added a commit to gkalpak/angular that referenced this issue Nov 18, 2021
…s examples

In PR angular#43975, the `Angular Elements` guide was updated to remove
mentions of the Custom Elements-related polyfills, since they are no
longer necessary in v13+ (due to all CLI projects being ES2015+ and all
supported browsers natively supporting Custom Elements).

This commit updates the related docs example boilerplate to not include
the unneeded `@webcomponents/custom-elements` polyfill.
jessicajaniuk added a commit that referenced this issue Nov 19, 2021
…s examples (#44214)

In PR #43975, the `Angular Elements` guide was updated to remove
mentions of the Custom Elements-related polyfills, since they are no
longer necessary in v13+ (due to all CLI projects being ES2015+ and all
supported browsers natively supporting Custom Elements).

This commit updates the related docs example boilerplate to not include
the unneeded `@webcomponents/custom-elements` polyfill.

PR Close #44214
gkalpak added a commit to gkalpak/angular that referenced this issue Nov 19, 2021
…s examples (angular#44214)

In PR angular#43975, the `Angular Elements` guide was updated to remove
mentions of the Custom Elements-related polyfills, since they are no
longer necessary in v13+ (due to all CLI projects being ES2015+ and all
supported browsers natively supporting Custom Elements).

This commit updates the related docs example boilerplate to not include
the unneeded `@webcomponents/custom-elements` polyfill.

PR Close angular#44214
jessicajaniuk added a commit that referenced this issue Nov 22, 2021
…s examples (#44214) (#44233)

In PR #43975, the `Angular Elements` guide was updated to remove
mentions of the Custom Elements-related polyfills, since they are no
longer necessary in v13+ (due to all CLI projects being ES2015+ and all
supported browsers natively supporting Custom Elements).

This commit updates the related docs example boilerplate to not include
the unneeded `@webcomponents/custom-elements` polyfill.

PR Close #44214

PR Close #44233
@angular-automatic-lock-bot
Copy link

@angular-automatic-lock-bot angular-automatic-lock-bot bot commented Nov 30, 2021

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants