You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today I used patch-package to patch fontawesome-svelte@2.0.1 for the project I'm working on. The recent updates in the Svelte framework deprecated the tag option in svelte:options, replacing it with customElement to better align with web standards for defining custom elements. This change was necessary to resolve compilation errors caused by the deprecated usage in the FontAwesome Svelte components. Here's how I adapted the FontAwesome package to be compatible with the latest Svelte API:
-<svelte:options tag={null} />
+<svelte:options customElement={null} />
{@html renderedText}
This patch resolves the deprecation warning and ensures that our FontAwesome Svelte components are up-to-date with the latest Svelte framework requirements.
The text was updated successfully, but these errors were encountered:
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch fontawesome-svelte@2.0.1 for the project I'm working on. The recent updates in the Svelte framework deprecated the tag option in svelte:options, replacing it with customElement to better align with web standards for defining custom elements. This change was necessary to resolve compilation errors caused by the deprecated usage in the FontAwesome Svelte components. Here's how I adapted the FontAwesome package to be compatible with the latest Svelte API:
diff
Copiar código
diff --git a/node_modules/fontawesome-svelte/src/FontAwesomeIcon.svelte b/node_modules/fontawesome-svelte/src/FontAwesomeIcon.svelte
index 366be9e..4a4be67 100644
--- a/node_modules/fontawesome-svelte/src/FontAwesomeIcon.svelte
+++ b/node_modules/fontawesome-svelte/src/FontAwesomeIcon.svelte
@@ -84,5 +84,5 @@
});
</script>
-<svelte:options tag={null} />
+<svelte:options customElement={null} />
{@html html}
diff --git a/node_modules/fontawesome-svelte/src/FontAwesomeLayers.svelte b/node_modules/fontawesome-svelte/src/FontAwesomeLayers.svelte
index 739296e..7f57758 100644
--- a/node_modules/fontawesome-svelte/src/FontAwesomeLayers.svelte
+++ b/node_modules/fontawesome-svelte/src/FontAwesomeLayers.svelte
@@ -10,7 +10,7 @@
].join(" ");
</script>
-<svelte:options tag={null} />
+<svelte:options customElement={null} />
-<svelte:options tag={null} />
+<svelte:options customElement={null} />
{@html renderedText}
This patch resolves the deprecation warning and ensures that our FontAwesome Svelte components are up-to-date with the latest Svelte framework requirements.
The text was updated successfully, but these errors were encountered: