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

feat: warn on element redefinitions, point to resolution docs #3136

Closed
wants to merge 22 commits into from

Conversation

hunterloftis
Copy link
Contributor

@hunterloftis hunterloftis commented Apr 20, 2023

Description

This is a working example of one path towards addressing versioning challenges for consumers.

Currently, SWC packages that are imported twice (either pre-built and included on the same page, or via different dependency versions in a single build) will fail at runtime with a custom element registration error.

This change converts that runtime error to a development-time warning, with the ability to direct consumers to documentation about resolving transitive dependency versions etc.

It also demonstrates how we can verify correct behavior in tests, via an example in sp-button (the tests are currently passing, but failing code coverage requirements since this adds a few lines of currently-uncovered code to each package).

The changes are a quick grep, so there may be extra packages to cover in a similar manner. Icons?

Related issue(s)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (minor updates related to the tooling or maintenance of the repository, does not impact compiled assets)

Checklist

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • If my change required a change to the documentation, I have updated the documentation in this pull request.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have reviewed at the Accessibility Practices for this feature, see: Aria Practices

Best practices

This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against main.

@hunterloftis
Copy link
Contributor Author

@Westbrook what do you think re: this approach?

Copy link
Contributor

@Westbrook Westbrook left a comment

Choose a reason for hiding this comment

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

I really like the idea of leveraging the Dev Mode Messging System to support educating users about this situation. It makes we think we should add a build type and move this message to the highest level. Pairing it with content around possible fixes/workarounds in the link will be great.

I really DON'T like that this prevents the error. Without the error, it's hard to beleive any of our consumers does anything about this issue. Particularly, the team I've see (anecdotally) encounter this situation the most is specifically developing in a way that they should get this error until they actually get their architecture right.

Structurally, for Dev Mode messages, the if (window.__swc?.DEBUG) { must be the outter most condition so that it can tree shake the largest amount of the work being done when built for production.

@benjamind
Copy link
Contributor

I agree with not suprressing the error, you only way you get folks to reliably fix things is to put roadblocks in their path to doing it the 'wrong' way.

Would welcome this dev message though, can't land soon enough in my opinion! :-)

@hunterloftis
Copy link
Contributor Author

@Westbrook @benjamind updated to still fail, but to inject a dev mode warning before failure

Also added a testing helper so we can be sure this is actually working in each component. I've converted all the "A" components so far.

@github-actions
Copy link

github-actions bot commented Apr 21, 2023

Tachometer results

Chrome

accordion permalink

Version Bytes Avg Time vs remote vs branch
npm latest 378 kB 354.95ms - 361.01ms - unsure 🔍
-1% - +1%
-4.59ms - +3.04ms
branch 376 kB 356.45ms - 361.08ms unsure 🔍
-1% - +1%
-3.04ms - +4.59ms
-

action-bar permalink

Version Bytes Avg Time vs remote vs branch
npm latest 344 kB 52.85ms - 54.26ms - unsure 🔍
-2% - +2%
-0.97ms - +0.98ms
branch 342 kB 52.88ms - 54.23ms unsure 🔍
-2% - +2%
-0.98ms - +0.97ms
-

action-button permalink

Version Bytes Avg Time vs remote vs branch
npm latest 500 kB 329.70ms - 333.82ms - faster ✔
3% - 5%
8.55ms - 15.58ms
branch 500 kB 340.97ms - 346.67ms slower ❌
3% - 5%
8.55ms - 15.58ms
-

action-group permalink

Version Bytes Avg Time vs remote vs branch
npm latest 520 kB 225.46ms - 229.17ms - slower ❌
7% - 9%
14.74ms - 19.31ms
branch 520 kB 208.96ms - 211.63ms faster ✔
7% - 8%
14.74ms - 19.31ms
-

action-menu permalink

Version Bytes Avg Time vs remote vs branch
npm latest 705 kB 306.59ms - 311.02ms - unsure 🔍
-1% - +1%
-3.18ms - +2.68ms
branch 705 kB 307.14ms - 310.98ms unsure 🔍
-1% - +1%
-2.68ms - +3.18ms
-

asset permalink

Version Bytes Avg Time vs remote vs branch
npm latest 337 kB 25.49ms - 25.90ms - faster ✔
1% - 4%
0.23ms - 1.05ms
branch 336 kB 25.97ms - 26.69ms slower ❌
1% - 4%
0.23ms - 1.05ms
-

avatar permalink

Version Bytes Avg Time vs remote vs branch
npm latest 375 kB 53.52ms - 54.83ms - unsure 🔍
-3% - +2%
-1.43ms - +0.98ms
branch 374 kB 53.39ms - 55.40ms unsure 🔍
-2% - +3%
-0.98ms - +1.43ms
-

badge permalink

Version Bytes Avg Time vs remote vs branch
npm latest 371 kB 80.83ms - 82.22ms - unsure 🔍
-3% - +0%
-2.74ms - +0.08ms
branch 370 kB 81.63ms - 84.08ms unsure 🔍
-0% - +3%
-0.08ms - +2.74ms
-

banner permalink

Version Bytes Avg Time vs remote vs branch
npm latest 336 kB 45.16ms - 46.93ms - unsure 🔍
-2% - +3%
-0.92ms - +1.30ms
branch 335 kB 45.19ms - 46.53ms unsure 🔍
-3% - +2%
-1.30ms - +0.92ms
-

button-group permalink

Version Bytes Avg Time vs remote vs branch
npm latest 417 kB 184.82ms - 190.41ms - unsure 🔍
-1% - +3%
-1.12ms - +5.24ms
branch 416 kB 184.04ms - 187.07ms unsure 🔍
-3% - +1%
-5.24ms - +1.12ms
-

button permalink

Version Bytes Avg Time vs remote vs branch
npm latest 422 kB 211.00ms - 214.67ms - unsure 🔍
-2% - +1%
-3.43ms - +2.15ms
branch 421 kB 211.38ms - 215.57ms unsure 🔍
-1% - +2%
-2.15ms - +3.43ms
-

card permalink

Version Bytes Avg Time vs remote vs branch
npm latest 482 kB 150.57ms - 152.87ms - unsure 🔍
-3% - +0%
-4.90ms - +0.10ms
branch 481 kB 151.91ms - 156.34ms unsure 🔍
-0% - +3%
-0.10ms - +4.90ms
-

checkbox permalink

Version Bytes Avg Time vs remote vs branch
npm latest 398 kB 116.17ms - 117.89ms - faster ✔
0% - 3%
0.25ms - 3.80ms
branch 397 kB 117.51ms - 120.61ms slower ❌
0% - 3%
0.25ms - 3.80ms
-

coachmark permalink

Version Bytes Avg Time vs remote vs branch
npm latest 340 kB 67.49ms - 68.71ms - unsure 🔍
-3% - +0%
-2.17ms - +0.05ms
branch 338 kB 68.23ms - 70.08ms unsure 🔍
-0% - +3%
-0.05ms - +2.17ms
-

color-area permalink

Version Bytes Avg Time vs remote vs branch
npm latest 427 kB 256.02ms - 258.79ms - unsure 🔍
-0% - +1%
-0.28ms - +3.67ms
branch 425 kB 254.30ms - 257.12ms unsure 🔍
-1% - +0%
-3.67ms - +0.28ms
-

color-handle permalink

Version Bytes Avg Time vs remote vs branch
npm latest 349 kB 113.16ms - 115.02ms - unsure 🔍
-2% - +1%
-1.96ms - +0.86ms
branch 348 kB 113.58ms - 115.70ms unsure 🔍
-1% - +2%
-0.86ms - +1.96ms
-

color-loupe permalink

Version Bytes Avg Time vs remote vs branch
npm latest 341 kB 75.98ms - 77.59ms - unsure 🔍
-3% - +0%
-2.68ms - +0.25ms
branch 340 kB 76.77ms - 79.23ms unsure 🔍
-0% - +4%
-0.25ms - +2.68ms
-

color-slider permalink

Version Bytes Avg Time vs remote vs branch
npm latest 431 kB 228.29ms - 230.66ms - unsure 🔍
-2% - +0%
-3.57ms - +0.62ms
branch 429 kB 229.22ms - 232.68ms unsure 🔍
-0% - +2%
-0.62ms - +3.57ms
-

color-wheel permalink

Version Bytes Avg Time vs remote vs branch
npm latest 433 kB 234.03ms - 236.39ms - faster ✔
0% - 2%
0.96ms - 5.54ms
branch 430 kB 236.50ms - 240.43ms slower ❌
0% - 2%
0.96ms - 5.54ms
-

dialog permalink

Version Bytes Avg Time vs remote vs branch
npm latest 424 kB 112.97ms - 115.25ms - unsure 🔍
-2% - +1%
-2.77ms - +1.09ms
branch 423 kB 113.39ms - 116.52ms unsure 🔍
-1% - +2%
-1.09ms - +2.77ms
-

divider permalink

Version Bytes Avg Time vs remote vs branch
npm latest 339 kB 29.67ms - 30.40ms - unsure 🔍
-3% - +1%
-1.06ms - +0.32ms
branch 337 kB 29.82ms - 30.99ms unsure 🔍
-1% - +4%
-0.32ms - +1.06ms
-

dropzone permalink

Version Bytes Avg Time vs remote vs branch
npm latest 340 kB 76.69ms - 78.33ms - unsure 🔍
-1% - +1%
-0.95ms - +1.08ms
branch 339 kB 76.84ms - 78.05ms unsure 🔍
-1% - +1%
-1.08ms - +0.95ms
-

field-group permalink

Version Bytes Avg Time vs remote vs branch
npm latest 404 kB 480.68ms - 486.61ms - unsure 🔍
-1% - +1%
-3.98ms - +5.14ms
branch 403 kB 479.60ms - 486.52ms unsure 🔍
-1% - +1%
-5.14ms - +3.98ms
-

field-label permalink

Version Bytes Avg Time vs remote vs branch
npm latest 366 kB 70.48ms - 71.61ms - unsure 🔍
-3% - +0%
-1.90ms - +0.11ms
branch 365 kB 71.11ms - 72.77ms unsure 🔍
-0% - +3%
-0.11ms - +1.90ms
-

grid permalink

Version Bytes Avg Time vs remote vs branch
npm latest 417 kB 59.98ms - 61.33ms - unsure 🔍
-1% - +3%
-0.50ms - +1.52ms
branch 415 kB 59.40ms - 60.89ms unsure 🔍
-2% - +1%
-1.52ms - +0.50ms
-

help-text permalink

Version Bytes Avg Time vs remote vs branch
npm latest 361 kB 33.61ms - 34.79ms - unsure 🔍
-3% - +3%
-0.86ms - +0.90ms
branch 360 kB 33.53ms - 34.83ms unsure 🔍
-3% - +3%
-0.90ms - +0.86ms
-

icon permalink

Version Bytes Avg Time vs remote vs branch
npm latest 368 kB 40.66ms - 41.70ms - unsure 🔍
-2% - +3%
-0.72ms - +1.26ms
branch 367 kB 40.07ms - 41.76ms unsure 🔍
-3% - +2%
-1.26ms - +0.72ms
-

icons permalink

Version Bytes Avg Time vs remote vs branch
npm latest 350 kB 71.75ms - 73.19ms - unsure 🔍
-2% - +1%
-1.62ms - +0.53ms
branch 349 kB 72.22ms - 73.81ms unsure 🔍
-1% - +2%
-0.53ms - +1.62ms
-

illustrated-message permalink

Version Bytes Avg Time vs remote vs branch
npm latest 381 kB 69.56ms - 71.08ms - unsure 🔍
-2% - +1%
-1.27ms - +0.87ms
branch 380 kB 69.76ms - 71.28ms unsure 🔍
-1% - +2%
-0.87ms - +1.27ms
-

link permalink

Version Bytes Avg Time vs remote vs branch
npm latest 360 kB 42.24ms - 43.40ms - unsure 🔍
-1% - +2%
-0.49ms - +0.98ms
branch 359 kB 42.12ms - 43.03ms unsure 🔍
-2% - +1%
-0.98ms - +0.49ms
-

menu permalink

Version Bytes Avg Time vs remote vs branch
npm latest 412 kB 389.04ms - 393.77ms - unsure 🔍
-1% - +1%
-2.34ms - +5.04ms
branch 411 kB 387.23ms - 392.88ms unsure 🔍
-1% - +1%
-5.04ms - +2.34ms
-

meter permalink

Version Bytes Avg Time vs remote vs branch
npm latest 379 kB 104.76ms - 107.32ms - unsure 🔍
-0% - +3%
-0.45ms - +2.73ms
branch 378 kB 103.96ms - 105.84ms unsure 🔍
-3% - +0%
-2.73ms - +0.45ms
-

number-field permalink

Version Bytes Avg Time vs remote vs branch
npm latest 593 kB 286.28ms - 289.50ms - unsure 🔍
-1% - +0%
-3.72ms - +1.06ms
branch 593 kB 287.45ms - 290.98ms unsure 🔍
-0% - +1%
-1.06ms - +3.72ms
-

overlay permalink

Version Bytes Avg Time vs remote vs branch
npm latest 430 kB 117.40ms - 120.31ms - unsure 🔍
-2% - +1%
-2.88ms - +1.16ms
branch 430 kB 118.31ms - 121.12ms unsure 🔍
-1% - +2%
-1.16ms - +2.88ms
-

picker-button permalink

Version Bytes Avg Time vs remote vs branch
npm latest 409 kB 93.04ms - 95.28ms - unsure 🔍
-2% - +1%
-2.35ms - +1.20ms
branch 408 kB 93.36ms - 96.12ms unsure 🔍
-1% - +3%
-1.20ms - +2.35ms
-

picker permalink

Version Bytes Avg Time vs remote vs branch
npm latest 562 kB 1006.11ms - 1015.85ms - unsure 🔍
-0% - +1%
-4.82ms - +8.46ms
branch 561 kB 1004.64ms - 1013.68ms unsure 🔍
-1% - +0%
-8.46ms - +4.82ms
-

popover permalink

Version Bytes Avg Time vs remote vs branch
npm latest 341 kB 50.22ms - 51.68ms - unsure 🔍
-2% - +1%
-0.98ms - +0.76ms
branch 339 kB 50.58ms - 51.53ms unsure 🔍
-2% - +2%
-0.76ms - +0.98ms
-

progress-bar permalink

Version Bytes Avg Time vs remote vs branch
npm latest 377 kB 89.30ms - 91.11ms - unsure 🔍
-3% - +1%
-2.38ms - +0.48ms
branch 376 kB 90.04ms - 92.26ms unsure 🔍
-1% - +3%
-0.48ms - +2.38ms
-

progress-circle permalink

Version Bytes Avg Time vs remote vs branch
npm latest 358 kB 106.42ms - 108.42ms - unsure 🔍
-2% - +1%
-2.49ms - +1.05ms
branch 357 kB 106.69ms - 109.60ms unsure 🔍
-1% - +2%
-1.05ms - +2.49ms
-

quick-actions permalink

Version Bytes Avg Time vs remote vs branch
npm latest 337 kB 32.08ms - 33.15ms - unsure 🔍
-2% - +3%
-0.53ms - +0.83ms
branch 336 kB 32.04ms - 32.89ms unsure 🔍
-3% - +2%
-0.83ms - +0.53ms
-

radio permalink

Version Bytes Avg Time vs remote vs branch
npm latest 384 kB 176.10ms - 179.68ms - unsure 🔍
-2% - +1%
-2.95ms - +2.55ms
branch 383 kB 176.00ms - 180.17ms unsure 🔍
-1% - +2%
-2.55ms - +2.95ms
-

search permalink

Version Bytes Avg Time vs remote vs branch
npm latest 441 kB 154.82ms - 157.35ms - unsure 🔍
-2% - +1%
-3.03ms - +1.41ms
branch 440 kB 155.07ms - 158.73ms unsure 🔍
-1% - +2%
-1.41ms - +3.03ms
-

sidenav permalink

Version Bytes Avg Time vs remote vs branch
npm latest 386 kB 632.85ms - 639.07ms - unsure 🔍
-1% - +0%
-6.30ms - +2.86ms
branch 385 kB 634.32ms - 641.04ms unsure 🔍
-0% - +1%
-2.86ms - +6.30ms
-

slider permalink

Version Bytes Avg Time vs remote vs branch
npm latest 445 kB 240.26ms - 243.77ms - unsure 🔍
-1% - +2%
-1.34ms - +3.80ms
branch 444 kB 238.91ms - 242.67ms unsure 🔍
-2% - +1%
-3.80ms - +1.34ms
-

split-button permalink

Version Bytes Avg Time vs remote vs branch
npm latest 638 kB 2053.44ms - 2058.48ms - unsure 🔍
-0% - +0%
-4.63ms - +2.50ms
branch 639 kB 2054.50ms - 2059.55ms unsure 🔍
-0% - +0%
-2.50ms - +4.63ms
-

split-view permalink

Version Bytes Avg Time vs remote vs branch
npm latest 369 kB 74.20ms - 76.10ms - unsure 🔍
-3% - +1%
-2.13ms - +0.56ms
branch 368 kB 74.98ms - 76.89ms unsure 🔍
-1% - +3%
-0.56ms - +2.13ms
-

swatch permalink

Version Bytes Avg Time vs remote vs branch
npm latest 381 kB 57.98ms - 59.83ms - unsure 🔍
-1% - +3%
-0.76ms - +1.57ms
branch 380 kB 57.79ms - 59.21ms unsure 🔍
-3% - +1%
-1.57ms - +0.76ms
-

switch permalink

Version Bytes Avg Time vs remote vs branch
npm latest 363 kB 70.18ms - 71.89ms - unsure 🔍
-2% - +2%
-1.21ms - +1.15ms
branch 362 kB 70.26ms - 71.87ms unsure 🔍
-2% - +2%
-1.15ms - +1.21ms
-

table permalink

Version Bytes Avg Time vs remote vs branch
npm latest 490 kB 784.71ms - 792.58ms - unsure 🔍
-1% - +1%
-4.24ms - +5.89ms
branch 490 kB 784.62ms - 791.02ms unsure 🔍
-1% - +1%
-5.89ms - +4.24ms
-

tabs permalink

Version Bytes Avg Time vs remote vs branch
npm latest 424 kB 269.82ms - 272.78ms - unsure 🔍
-1% - +0%
-3.25ms - +0.91ms
branch 422 kB 271.01ms - 273.94ms unsure 🔍
-0% - +1%
-0.91ms - +3.25ms
-

tags permalink

Version Bytes Avg Time vs remote vs branch
npm latest 443 kB 44.91ms - 46.56ms - unsure 🔍
-1% - +3%
-0.49ms - +1.53ms
branch 442 kB 44.64ms - 45.80ms unsure 🔍
-3% - +1%
-1.53ms - +0.49ms
-

textfield permalink

Version Bytes Avg Time vs remote vs branch
npm latest 399 kB 98.60ms - 101.39ms - slower ❌
0% - 4%
0.05ms - 3.93ms
branch 398 kB 96.65ms - 99.36ms faster ✔
0% - 4%
0.05ms - 3.93ms
-

thumbnail permalink

Version Bytes Avg Time vs remote vs branch
npm latest 740 kB 65.52ms - 66.42ms - unsure 🔍
-2% - +0%
-1.27ms - +0.32ms
branch 738 kB 65.79ms - 67.11ms unsure 🔍
-0% - +2%
-0.32ms - +1.27ms
-

toast permalink

Version Bytes Avg Time vs remote vs branch
npm latest 411 kB 73.84ms - 75.23ms - unsure 🔍
-2% - +1%
-1.42ms - +0.82ms
branch 410 kB 73.96ms - 75.71ms unsure 🔍
-1% - +2%
-0.82ms - +1.42ms
-

tooltip permalink

Version Bytes Avg Time vs remote vs branch
npm latest 353 kB 54.93ms - 56.63ms - unsure 🔍
-2% - +2%
-1.24ms - +1.06ms
branch 352 kB 55.10ms - 56.65ms unsure 🔍
-2% - +2%
-1.06ms - +1.24ms
-

top-nav permalink

Version Bytes Avg Time vs remote vs branch
npm latest 428 kB 187.85ms - 190.28ms - unsure 🔍
-1% - +1%
-1.69ms - +2.23ms
branch 427 kB 187.26ms - 190.33ms unsure 🔍
-1% - +1%
-2.23ms - +1.69ms
-

tray permalink

Version Bytes Avg Time vs remote vs branch
npm latest 435 kB 147.05ms - 150.38ms - unsure 🔍
-1% - +2%
-1.53ms - +2.84ms
branch 434 kB 146.64ms - 149.47ms unsure 🔍
-2% - +1%
-2.84ms - +1.53ms
-

underlay permalink

Version Bytes Avg Time vs remote vs branch
npm latest 337 kB 28.68ms - 29.71ms - unsure 🔍
-3% - +2%
-0.99ms - +0.50ms
branch 335 kB 28.90ms - 29.97ms unsure 🔍
-2% - +3%
-0.50ms - +0.99ms
-
Firefox

accordion permalink

Version Bytes Avg Time vs remote vs branch
npm latest 378 kB 755.44ms - 770.00ms - unsure 🔍
-1% - +2%
-11.17ms - +11.77ms
branch 376 kB 753.56ms - 771.28ms unsure 🔍
-2% - +1%
-11.77ms - +11.17ms
-

action-bar permalink

Version Bytes Avg Time vs remote vs branch
npm latest 344 kB 139.19ms - 153.85ms - unsure 🔍
-10% - +6%
-14.56ms - +9.72ms
branch 342 kB 139.27ms - 158.61ms unsure 🔍
-7% - +10%
-9.72ms - +14.56ms
-

action-button permalink

Version Bytes Avg Time vs remote vs branch
npm latest 500 kB 682.47ms - 699.33ms - unsure 🔍
-2% - +2%
-11.84ms - +11.12ms
branch 500 kB 683.47ms - 699.05ms unsure 🔍
-2% - +2%
-11.12ms - +11.84ms
-

action-group permalink

Version Bytes Avg Time vs remote vs branch
npm latest 520 kB 465.45ms - 483.55ms - slower ❌
3% - 8%
13.90ms - 35.22ms
branch 520 kB 444.30ms - 455.58ms faster ✔
3% - 7%
13.90ms - 35.22ms
-

action-menu permalink

Version Bytes Avg Time vs remote vs branch
npm latest 705 kB 585.02ms - 598.42ms - unsure 🔍
-1% - +2%
-8.68ms - +9.40ms
branch 705 kB 585.30ms - 597.42ms unsure 🔍
-2% - +1%
-9.40ms - +8.68ms
-

asset permalink

Version Bytes Avg Time vs remote vs branch
npm latest 337 kB 77.41ms - 85.71ms - unsure 🔍
-5% - +10%
-4.12ms - +8.24ms
branch 336 kB 74.92ms - 84.08ms unsure 🔍
-10% - +5%
-8.24ms - +4.12ms
-

avatar permalink

Version Bytes Avg Time vs remote vs branch
npm latest 375 kB 131.55ms - 140.37ms - unsure 🔍
-4% - +5%
-5.19ms - +7.15ms
branch 374 kB 130.66ms - 139.30ms unsure 🔍
-5% - +4%
-7.15ms - +5.19ms
-

badge permalink

Version Bytes Avg Time vs remote vs branch
npm latest 371 kB 212.05ms - 226.03ms - unsure 🔍
-5% - +3%
-11.97ms - +6.13ms
branch 370 kB 216.21ms - 227.71ms unsure 🔍
-3% - +5%
-6.13ms - +11.97ms
-

banner permalink

Version Bytes Avg Time vs remote vs branch
npm latest 336 kB 96.27ms - 111.17ms - unsure 🔍
-5% - +15%
-4.93ms - +14.73ms
branch 335 kB 92.40ms - 105.24ms unsure 🔍
-14% - +4%
-14.73ms - +4.93ms
-

button-group permalink

Version Bytes Avg Time vs remote vs branch
npm latest 417 kB 420.00ms - 434.92ms - unsure 🔍
-2% - +2%
-10.35ms - +10.11ms
branch 416 kB 420.58ms - 434.58ms unsure 🔍
-2% - +2%
-10.11ms - +10.35ms
-

button permalink

Version Bytes Avg Time vs remote vs branch
npm latest 422 kB 435.93ms - 460.15ms - unsure 🔍
-1% - +6%
-2.65ms - +25.97ms
branch 421 kB 428.75ms - 444.01ms unsure 🔍
-6% - +1%
-25.97ms - +2.65ms
-

card permalink

Version Bytes Avg Time vs remote vs branch
npm latest 482 kB 285.16ms - 301.04ms - unsure 🔍
-5% - +2%
-16.12ms - +6.40ms
branch 481 kB 289.98ms - 305.94ms unsure 🔍
-2% - +6%
-6.40ms - +16.12ms
-

checkbox permalink

Version Bytes Avg Time vs remote vs branch
npm latest 398 kB 285.44ms - 296.68ms - unsure 🔍
-2% - +4%
-7.17ms - +10.61ms
branch 397 kB 282.45ms - 296.23ms unsure 🔍
-4% - +2%
-10.61ms - +7.17ms
-

coachmark permalink

Version Bytes Avg Time vs remote vs branch
npm latest 340 kB 153.98ms - 165.14ms - unsure 🔍
-1% - +8%
-1.63ms - +11.95ms
branch 338 kB 150.53ms - 158.27ms unsure 🔍
-7% - +1%
-11.95ms - +1.63ms
-

color-area permalink

Version Bytes Avg Time vs remote vs branch
npm latest 427 kB 419.33ms - 439.91ms - faster ✔
0% - 7%
1.08ms - 32.52ms
branch 425 kB 434.53ms - 458.31ms slower ❌
0% - 8%
1.08ms - 32.52ms
-

color-handle permalink

Version Bytes Avg Time vs remote vs branch
npm latest 349 kB 225.39ms - 238.57ms - unsure 🔍
-5% - +2%
-11.68ms - +5.80ms
branch 348 kB 229.18ms - 240.66ms unsure 🔍
-3% - +5%
-5.80ms - +11.68ms
-

color-loupe permalink

Version Bytes Avg Time vs remote vs branch
npm latest 341 kB 153.01ms - 166.71ms - unsure 🔍
-3% - +8%
-4.91ms - +12.51ms
branch 340 kB 150.68ms - 161.44ms unsure 🔍
-8% - +3%
-12.51ms - +4.91ms
-

color-slider permalink

Version Bytes Avg Time vs remote vs branch
npm latest 431 kB 405.45ms - 422.15ms - unsure 🔍
-3% - +3%
-12.94ms - +10.46ms
branch 429 kB 406.85ms - 423.23ms unsure 🔍
-3% - +3%
-10.46ms - +12.94ms
-

color-wheel permalink

Version Bytes Avg Time vs remote vs branch
npm latest 433 kB 387.38ms - 401.42ms - faster ✔
5% - 10%
19.10ms - 42.98ms
branch 430 kB 415.78ms - 435.10ms slower ❌
5% - 11%
19.10ms - 42.98ms
-

dialog permalink

Version Bytes Avg Time vs remote vs branch
npm latest 424 kB 216.62ms - 227.42ms - unsure 🔍
-7% - +0%
-16.62ms - +0.70ms
branch 423 kB 223.21ms - 236.75ms unsure 🔍
-0% - +8%
-0.70ms - +16.62ms
-

divider permalink

Version Bytes Avg Time vs remote vs branch
npm latest 339 kB 101.34ms - 113.82ms - unsure 🔍
-8% - +9%
-8.07ms - +9.43ms
branch 337 kB 100.77ms - 113.03ms unsure 🔍
-9% - +7%
-9.43ms - +8.07ms
-

dropzone permalink

Version Bytes Avg Time vs remote vs branch
npm latest 340 kB 131.40ms - 148.84ms - unsure 🔍
-4% - +12%
-5.61ms - +16.41ms
branch 339 kB 127.99ms - 141.45ms unsure 🔍
-12% - +4%
-16.41ms - +5.61ms
-

field-group permalink

Version Bytes Avg Time vs remote vs branch
npm latest 404 kB 1118.22ms - 1162.82ms - unsure 🔍
-3% - +2%
-29.12ms - +28.44ms
branch 403 kB 1122.66ms - 1159.06ms unsure 🔍
-2% - +3%
-28.44ms - +29.12ms
-

field-label permalink

Version Bytes Avg Time vs remote vs branch
npm latest 366 kB 181.85ms - 194.83ms - unsure 🔍
-3% - +7%
-4.90ms - +12.78ms
branch 365 kB 178.41ms - 190.39ms unsure 🔍
-7% - +3%
-12.78ms - +4.90ms
-

grid permalink

Version Bytes Avg Time vs remote vs branch
npm latest 417 kB 137.40ms - 147.56ms - unsure 🔍
-5% - +5%
-6.54ms - +7.66ms
branch 415 kB 136.96ms - 146.88ms unsure 🔍
-5% - +5%
-7.66ms - +6.54ms
-

help-text permalink

Version Bytes Avg Time vs remote vs branch
npm latest 361 kB 93.44ms - 104.64ms - unsure 🔍
-1% - +13%
-1.00ms - +11.80ms
branch 360 kB 90.54ms - 96.74ms unsure 🔍
-12% - +1%
-11.80ms - +1.00ms
-

icon permalink

Version Bytes Avg Time vs remote vs branch
npm latest 368 kB 95.66ms - 105.98ms - unsure 🔍
-3% - +9%
-3.01ms - +8.41ms
branch 367 kB 95.66ms - 100.58ms unsure 🔍
-8% - +3%
-8.41ms - +3.01ms
-

icons permalink

Version Bytes Avg Time vs remote vs branch
npm latest 350 kB 139.46ms - 159.14ms - unsure 🔍
-3% - +15%
-4.48ms - +20.88ms
branch 349 kB 133.10ms - 149.10ms unsure 🔍
-14% - +3%
-20.88ms - +4.48ms
-

illustrated-message permalink

Version Bytes Avg Time vs remote vs branch
npm latest 381 kB 162.71ms - 172.33ms - unsure 🔍
-3% - +5%
-4.49ms - +7.73ms
branch 380 kB 162.14ms - 169.66ms unsure 🔍
-5% - +3%
-7.73ms - +4.49ms
-

link permalink

Version Bytes Avg Time vs remote vs branch
npm latest 360 kB 101.37ms - 111.83ms - unsure 🔍
-5% - +8%
-4.92ms - +8.56ms
branch 359 kB 100.54ms - 109.02ms unsure 🔍
-8% - +5%
-8.56ms - +4.92ms
-

menu permalink

Version Bytes Avg Time vs remote vs branch
npm latest 412 kB 757.08ms - 773.72ms - unsure 🔍
-3% - +0%
-21.57ms - +1.25ms
branch 411 kB 767.75ms - 783.37ms unsure 🔍
-0% - +3%
-1.25ms - +21.57ms
-

meter permalink

Version Bytes Avg Time vs remote vs branch
npm latest 379 kB 254.92ms - 273.16ms - unsure 🔍
-5% - +4%
-12.62ms - +10.10ms
branch 378 kB 258.53ms - 272.07ms unsure 🔍
-4% - +5%
-10.10ms - +12.62ms
-

number-field permalink

Version Bytes Avg Time vs remote vs branch
npm latest 593 kB 614.92ms - 628.96ms - unsure 🔍
-1% - +2%
-7.74ms - +12.30ms
branch 593 kB 612.50ms - 626.82ms unsure 🔍
-2% - +1%
-12.30ms - +7.74ms
-

overlay permalink

Version Bytes Avg Time vs remote vs branch
npm latest 430 kB 262.50ms - 277.10ms - unsure 🔍
-4% - +3%
-10.56ms - +8.44ms
branch 430 kB 264.79ms - 276.93ms unsure 🔍
-3% - +4%
-8.44ms - +10.56ms
-

picker-button permalink

Version Bytes Avg Time vs remote vs branch
npm latest 409 kB 245.27ms - 253.53ms - unsure 🔍
-3% - +2%
-8.03ms - +4.55ms
branch 408 kB 246.39ms - 255.89ms unsure 🔍
-2% - +3%
-4.55ms - +8.03ms
-

picker permalink

Version Bytes Avg Time vs remote vs branch
npm latest 562 kB 1667.27ms - 1708.53ms - unsure 🔍
-3% - +1%
-51.25ms - +25.69ms
branch 561 kB 1668.20ms - 1733.16ms unsure 🔍
-2% - +3%
-25.69ms - +51.25ms
-

popover permalink

Version Bytes Avg Time vs remote vs branch
npm latest 341 kB 118.83ms - 142.81ms - unsure 🔍
-0% - +26%
+0.56ms - +29.68ms
branch 339 kB 107.44ms - 123.96ms faster ✔
1% - 22%
0.56ms - 29.68ms
-

progress-bar permalink

Version Bytes Avg Time vs remote vs branch
npm latest 377 kB 212.48ms - 222.40ms - unsure 🔍
-6% - +2%
-13.44ms - +3.68ms
branch 376 kB 215.34ms - 229.30ms unsure 🔍
-2% - +6%
-3.68ms - +13.44ms
-

progress-circle permalink

Version Bytes Avg Time vs remote vs branch
npm latest 358 kB 290.23ms - 304.33ms - unsure 🔍
-4% - +2%
-13.44ms - +7.32ms
branch 357 kB 292.72ms - 307.96ms unsure 🔍
-2% - +5%
-7.32ms - +13.44ms
-

quick-actions permalink

Version Bytes Avg Time vs remote vs branch
npm latest 337 kB 92.41ms - 102.63ms - unsure 🔍
-10% - +5%
-10.37ms - +4.73ms
branch 336 kB 94.78ms - 105.90ms unsure 🔍
-5% - +11%
-4.73ms - +10.37ms
-

radio permalink

Version Bytes Avg Time vs remote vs branch
npm latest 384 kB 359.87ms - 371.05ms - unsure 🔍
-4% - +0%
-16.26ms - +1.02ms
branch 383 kB 366.50ms - 379.66ms unsure 🔍
-0% - +4%
-1.02ms - +16.26ms
-

search permalink

Version Bytes Avg Time vs remote vs branch
npm latest 441 kB 276.09ms - 288.99ms - unsure 🔍
-3% - +4%
-8.35ms - +10.23ms
branch 440 kB 274.92ms - 288.28ms unsure 🔍
-4% - +3%
-10.23ms - +8.35ms
-

sidenav permalink

Version Bytes Avg Time vs remote vs branch
npm latest 386 kB 1235.18ms - 1285.10ms - unsure 🔍
-4% - +3%
-47.57ms - +33.81ms
branch 385 kB 1234.89ms - 1299.15ms unsure 🔍
-3% - +4%
-33.81ms - +47.57ms
-

slider permalink

Version Bytes Avg Time vs remote vs branch
npm latest 445 kB 471.90ms - 491.50ms - unsure 🔍
-4% - +2%
-18.14ms - +10.70ms
branch 444 kB 474.84ms - 496.00ms unsure 🔍
-2% - +4%
-10.70ms - +18.14ms
-

split-button permalink

Version Bytes Avg Time vs remote vs branch
npm latest 638 kB 2232.32ms - 2257.68ms - unsure 🔍
-0% - +1%
-10.06ms - +22.02ms
branch 639 kB 2229.19ms - 2248.85ms unsure 🔍
-1% - +0%
-22.02ms - +10.06ms
-

split-view permalink

Version Bytes Avg Time vs remote vs branch
npm latest 369 kB 213.74ms - 227.46ms - unsure 🔍
-4% - +5%
-7.78ms - +11.22ms
branch 368 kB 212.31ms - 225.45ms unsure 🔍
-5% - +4%
-11.22ms - +7.78ms
-

swatch permalink

Version Bytes Avg Time vs remote vs branch
npm latest 381 kB 167.12ms - 180.68ms - unsure 🔍
-2% - +8%
-3.12ms - +13.72ms
branch 380 kB 163.60ms - 173.60ms unsure 🔍
-8% - +2%
-13.72ms - +3.12ms
-

switch permalink

Version Bytes Avg Time vs remote vs branch
npm latest 363 kB 150.95ms - 163.57ms - unsure 🔍
-2% - +8%
-2.97ms - +11.93ms
branch 362 kB 148.82ms - 156.74ms unsure 🔍
-7% - +2%
-11.93ms - +2.97ms
-

table permalink

Version Bytes Avg Time vs remote vs branch
npm latest 490 kB 1620.20ms - 1659.84ms - unsure 🔍
-3% - +2%
-49.13ms - +36.61ms
branch 490 kB 1608.27ms - 1684.29ms unsure 🔍
-2% - +3%
-36.61ms - +49.13ms
-

tabs permalink

Version Bytes Avg Time vs remote vs branch
npm latest 424 kB 446.10ms - 468.94ms - faster ✔
2% - 10%
10.79ms - 47.37ms
branch 422 kB 472.32ms - 500.88ms slower ❌
2% - 10%
10.79ms - 47.37ms
-

tags permalink

Version Bytes Avg Time vs remote vs branch
npm latest 443 kB 118.39ms - 128.25ms - unsure 🔍
-1% - +10%
-0.61ms - +12.09ms
branch 442 kB 113.58ms - 121.58ms unsure 🔍
-10% - +0%
-12.09ms - +0.61ms
-

textfield permalink

Version Bytes Avg Time vs remote vs branch
npm latest 399 kB 213.73ms - 228.67ms - unsure 🔍
-4% - +4%
-8.77ms - +9.73ms
branch 398 kB 215.27ms - 226.17ms unsure 🔍
-4% - +4%
-9.73ms - +8.77ms
-

thumbnail permalink

Version Bytes Avg Time vs remote vs branch
npm latest 740 kB 169.18ms - 186.06ms - unsure 🔍
-3% - +8%
-4.86ms - +14.30ms
branch 738 kB 168.38ms - 177.42ms unsure 🔍
-8% - +3%
-14.30ms - +4.86ms
-

toast permalink

Version Bytes Avg Time vs remote vs branch
npm latest 411 kB 194.16ms - 205.04ms - unsure 🔍
-7% - +2%
-15.10ms - +4.10ms
branch 410 kB 197.19ms - 213.01ms unsure 🔍
-2% - +8%
-4.10ms - +15.10ms
-

tooltip permalink

Version Bytes Avg Time vs remote vs branch
npm latest 353 kB 120.18ms - 141.10ms - unsure 🔍
-9% - +13%
-11.27ms - +16.47ms
branch 352 kB 118.93ms - 137.15ms unsure 🔍
-12% - +9%
-16.47ms - +11.27ms
-

top-nav permalink

Version Bytes Avg Time vs remote vs branch
npm latest 428 kB 357.05ms - 371.31ms - unsure 🔍
-3% - +2%
-11.62ms - +7.38ms
branch 427 kB 360.02ms - 372.58ms unsure 🔍
-2% - +3%
-7.38ms - +11.62ms
-

tray permalink

Version Bytes Avg Time vs remote vs branch
npm latest 435 kB 318.42ms - 341.98ms - slower ❌
1% - 11%
3.39ms - 32.73ms
branch 434 kB 303.40ms - 320.88ms faster ✔
1% - 10%
3.39ms - 32.73ms
-

underlay permalink

Version Bytes Avg Time vs remote vs branch
npm latest 337 kB 89.22ms - 104.42ms - unsure 🔍
-11% - +13%
-10.34ms - +11.98ms
branch 335 kB 87.83ms - 104.17ms unsure 🔍
-12% - +11%
-11.98ms - +10.34ms
-

@hunterloftis hunterloftis changed the title feat: warn on element redefinitions and fail gracefully feat: warn on element redefinitions, point to resolution docs Apr 26, 2023
@hunterloftis hunterloftis force-pushed the dev-mode-define-element branch 2 times, most recently from ae57006 to 73f79ab Compare April 27, 2023 20:01
window.__swc.warn(
undefined,
`Attempted to redefine <${name}>. This usually indicates that multiple versions of the same web component were loaded onto a single page.`,
'https://TODO'
Copy link
Contributor

Choose a reason for hiding this comment

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

How is the actual documentation for this coming along?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

First draft: https://dev-mode-define-element--spectrum-web-components.netlify.app/registry-conflicts/

Thoughts on what should go into yarn & pnpm?

@hunterloftis
Copy link
Contributor Author

Closing to retain work history, shifting PR to #3171

@Westbrook Westbrook deleted the dev-mode-define-element branch August 28, 2023 23:53
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