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

Support custom element unique naming and version control #151

Closed
jason-capsule42 opened this issue Jan 13, 2023 · 0 comments · Fixed by #152 or #154
Closed

Support custom element unique naming and version control #151

jason-capsule42 opened this issue Jan 13, 2023 · 0 comments · Fixed by #152 or #154
Assignees

Comments

@jason-capsule42
Copy link
Member

jason-capsule42 commented Jan 13, 2023

Is your feature request related to a problem? Please describe.

Refactor the component so the CE define is not part of the default export. This will allow for custom CE definitions that will improve the versioning issues we currently face.

Describe the solution you'd like

Separate the define(name) method out of the default export.

Create a new registerComponent(name) method in index.js for easy registration of uniquely named components.

Cleanup the build commands and tests to account for new usage.

Additional context

This article gives a fantastic explanation of the issue: https://dev.to/florianrappl/versioning-web-components-3bda

@jason-capsule42 jason-capsule42 added Type: Feature New Feature auro-hyperlink not-reviewed Issue has not been reviewed by Auro team members labels Jan 13, 2023
@jason-capsule42 jason-capsule42 self-assigned this Jan 13, 2023
jason-capsule42 added a commit that referenced this issue Jan 16, 2023
BREAKING CHANGE: The import and usage has changed.
jason-capsule42 added a commit that referenced this issue Jan 16, 2023
BREAKING CHANGE: The import and usage has changed.
@jason-capsule42 jason-capsule42 linked a pull request Jan 16, 2023 that will close this issue
6 tasks
@blackfalcon blackfalcon linked a pull request Jan 18, 2023 that will close this issue
6 tasks
@blackfalcon blackfalcon removed the not-reviewed Issue has not been reviewed by Auro team members label Jan 24, 2023
blackfalcon pushed a commit that referenced this issue Jan 25, 2023
This commit dramatically refactors how custom elements
are registered with the browser upon user install.

Changes to be committed:
modified:   demo/index.html
modified:   index.html
renamed:    src/define.js -> src/index.js
modified:   test/auro-hyperlink.test.js
blackfalcon pushed a commit that referenced this issue Jan 25, 2023


Changes to be committed:
modified:   demo/index.html
modified:   src/define.js
deleted:    src/defineCustom.js
modified:   test/auro-hyperlink.test.js
blackfalcon pushed a commit that referenced this issue Jan 25, 2023
This commit dramatically refactors how custom elements
are registered with the browser upon user install.

Changes to be committed:
modified:   demo/index.html
modified:   index.html
renamed:    src/define.js -> src/index.js
modified:   test/auro-hyperlink.test.js
jason-capsule42 added a commit that referenced this issue Jan 25, 2023


Changes to be committed:
modified:   demo/index.html
modified:   src/define.js
deleted:    src/defineCustom.js
modified:   test/auro-hyperlink.test.js
jason-capsule42 added a commit that referenced this issue Jan 25, 2023
This commit dramatically refactors how custom elements
are registered with the browser upon user install.

Changes to be committed:
modified:   demo/index.html
modified:   index.html
renamed:    src/define.js -> src/index.js
modified:   test/auro-hyperlink.test.js
blackfalcon pushed a commit that referenced this issue Jan 25, 2023
# [3.3.0](v3.2.2...v3.3.0) (2023-01-25)

### Features

* **customization:** allow for CE class extension and customization [#151](#151) ([6b6a3f9](6b6a3f9))
* **define:** custom CE definitions ([94de68b](94de68b))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants