thunderous 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1387,9 +1387,12 @@ You must set an initial value before calling a property signal's getter.
1387
1387
  root.innerHTML = fragmentContent;
1388
1388
  if (registry !== void 0 && registry.__tagNames !== void 0) {
1389
1389
  for (const tagName of registry.__tagNames) {
1390
- const upgradedElement = root.querySelector(tagName);
1391
- const nonUpgradedElement = fragment.querySelector(tagName);
1392
- nonUpgradedElement.replaceWith(upgradedElement);
1390
+ const upgradedElements = root.querySelectorAll(tagName);
1391
+ const nonUpgradedElements = fragment.querySelectorAll(tagName);
1392
+ upgradedElements.forEach((upgradedElement, index) => {
1393
+ const nonUpgradedElement = nonUpgradedElements[index];
1394
+ nonUpgradedElement.replaceWith(upgradedElement);
1395
+ });
1393
1396
  }
1394
1397
  }
1395
1398
  setInnerHTML(root, fragment);
package/dist/index.js CHANGED
@@ -1355,9 +1355,12 @@ You must set an initial value before calling a property signal's getter.
1355
1355
  root.innerHTML = fragmentContent;
1356
1356
  if (registry !== void 0 && registry.__tagNames !== void 0) {
1357
1357
  for (const tagName of registry.__tagNames) {
1358
- const upgradedElement = root.querySelector(tagName);
1359
- const nonUpgradedElement = fragment.querySelector(tagName);
1360
- nonUpgradedElement.replaceWith(upgradedElement);
1358
+ const upgradedElements = root.querySelectorAll(tagName);
1359
+ const nonUpgradedElements = fragment.querySelectorAll(tagName);
1360
+ upgradedElements.forEach((upgradedElement, index) => {
1361
+ const nonUpgradedElement = nonUpgradedElements[index];
1362
+ nonUpgradedElement.replaceWith(upgradedElement);
1363
+ });
1361
1364
  }
1362
1365
  }
1363
1366
  setInnerHTML(root, fragment);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thunderous",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",