svelte-meta-tags 4.1.0 → 4.2.0

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.
Files changed (2) hide show
  1. package/dist/MetaTags.svelte +14 -14
  2. package/package.json +11 -12
@@ -73,7 +73,7 @@
73
73
  {/if}
74
74
 
75
75
  {#if languageAlternates && languageAlternates.length > 0}
76
- {#each languageAlternates as languageAlternate}
76
+ {#each languageAlternates as languageAlternate (languageAlternate)}
77
77
  <link rel="alternate" hrefLang={languageAlternate.hrefLang} href={languageAlternate.href} />
78
78
  {/each}
79
79
  {/if}
@@ -173,7 +173,7 @@
173
173
  {/if}
174
174
  {:else if openGraph.type.toLowerCase() === 'book' && openGraph.book}
175
175
  {#if openGraph.book.authors && openGraph.book.authors.length}
176
- {#each openGraph.book.authors as author}
176
+ {#each openGraph.book.authors as author (author)}
177
177
  <meta property="book:author" content={author} />
178
178
  {/each}
179
179
  {/if}
@@ -187,7 +187,7 @@
187
187
  {/if}
188
188
 
189
189
  {#if openGraph.book.tags && openGraph.book.tags.length}
190
- {#each openGraph.book.tags as tag}
190
+ {#each openGraph.book.tags as tag (tag)}
191
191
  <meta property="book:tag" content={tag} />
192
192
  {/each}
193
193
  {/if}
@@ -205,7 +205,7 @@
205
205
  {/if}
206
206
 
207
207
  {#if openGraph.article.authors && openGraph.article.authors.length}
208
- {#each openGraph.article.authors as author}
208
+ {#each openGraph.article.authors as author (author)}
209
209
  <meta property="article:author" content={author} />
210
210
  {/each}
211
211
  {/if}
@@ -215,13 +215,13 @@
215
215
  {/if}
216
216
 
217
217
  {#if openGraph.article.tags && openGraph.article.tags.length}
218
- {#each openGraph.article.tags as tag}
218
+ {#each openGraph.article.tags as tag (tag)}
219
219
  <meta property="article:tag" content={tag} />
220
220
  {/each}
221
221
  {/if}
222
222
  {:else if openGraph.type.toLowerCase() === 'video.movie' || openGraph.type.toLowerCase() === 'video.episode' || openGraph.type.toLowerCase() === 'video.tv_show' || (openGraph.type.toLowerCase() === 'video.other' && openGraph.video)}
223
223
  {#if openGraph.video?.actors && openGraph.video.actors.length}
224
- {#each openGraph.video.actors as actor}
224
+ {#each openGraph.video.actors as actor (actor)}
225
225
  {#if actor.profile}
226
226
  <meta property="video:actor" content={actor.profile} />
227
227
  {/if}
@@ -232,13 +232,13 @@
232
232
  {/if}
233
233
 
234
234
  {#if openGraph.video?.directors && openGraph.video.directors.length}
235
- {#each openGraph.video.directors as director}
235
+ {#each openGraph.video.directors as director (director)}
236
236
  <meta property="video:director" content={director} />
237
237
  {/each}
238
238
  {/if}
239
239
 
240
240
  {#if openGraph.video?.writers && openGraph.video.writers.length}
241
- {#each openGraph.video.writers as writer}
241
+ {#each openGraph.video.writers as writer (writer)}
242
242
  <meta property="video:writer" content={writer} />
243
243
  {/each}
244
244
  {/if}
@@ -252,7 +252,7 @@
252
252
  {/if}
253
253
 
254
254
  {#if openGraph.video?.tags && openGraph.video.tags.length}
255
- {#each openGraph.video.tags as tag}
255
+ {#each openGraph.video.tags as tag (tag)}
256
256
  <meta property="video:tag" content={tag} />
257
257
  {/each}
258
258
  {/if}
@@ -272,7 +272,7 @@
272
272
  {/if}
273
273
 
274
274
  {#if openGraph.images && openGraph.images.length}
275
- {#each openGraph.images as image}
275
+ {#each openGraph.images as image (image)}
276
276
  <meta property="og:image" content={image.url} />
277
277
  {#if image.alt}
278
278
  <meta property="og:image:alt" content={image.alt} />
@@ -293,7 +293,7 @@
293
293
  {/if}
294
294
 
295
295
  {#if openGraph.videos && openGraph.videos.length}
296
- {#each openGraph.videos as video}
296
+ {#each openGraph.videos as video (video)}
297
297
  <meta property="og:video" content={video.url} />
298
298
  {#if video.width}
299
299
  <meta property="og:video:width" content={video.width.toString()} />
@@ -311,7 +311,7 @@
311
311
  {/if}
312
312
 
313
313
  {#if openGraph.audio && openGraph.audio.length}
314
- {#each openGraph.audio as audio}
314
+ {#each openGraph.audio as audio (audio)}
315
315
  <meta property="og:audio" content={audio.url} />
316
316
  {#if audio.secureUrl}
317
317
  <meta property="og:audio:secure_url" content={audio.secureUrl.toString()} />
@@ -332,13 +332,13 @@
332
332
  {/if}
333
333
 
334
334
  {#if additionalMetaTags && Array.isArray(additionalMetaTags)}
335
- {#each additionalMetaTags as tag}
335
+ {#each additionalMetaTags as tag (tag)}
336
336
  <meta {...tag.httpEquiv ? { ...tag, 'http-equiv': tag.httpEquiv } : tag} />
337
337
  {/each}
338
338
  {/if}
339
339
 
340
340
  {#if additionalLinkTags?.length}
341
- {#each additionalLinkTags as tag}
341
+ {#each additionalLinkTags as tag (tag)}
342
342
  <link {...tag} />
343
343
  {/each}
344
344
  {/if}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-meta-tags",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
4
4
  "description": "Svelte Meta Tags provides components designed to help you manage SEO for Svelte projects",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -19,20 +19,19 @@
19
19
  "directory": "packages/svelte-meta-tags"
20
20
  },
21
21
  "dependencies": {
22
- "schema-dts": "^1.1.2"
22
+ "schema-dts": "^1.1.5"
23
23
  },
24
24
  "devDependencies": {
25
- "@sveltejs/adapter-auto": "^3.3.1",
26
- "@sveltejs/kit": "^2.15.2",
27
- "@sveltejs/package": "^2.3.7",
25
+ "@sveltejs/adapter-auto": "^4.0.0",
26
+ "@sveltejs/kit": "^2.17.3",
27
+ "@sveltejs/package": "^2.3.10",
28
28
  "@sveltejs/vite-plugin-svelte": "^5.0.3",
29
- "publint": "^0.3.0",
30
- "svelte": "^5.17.1",
31
- "svelte-check": "^4.1.3",
32
- "tslib": "^2.8.1",
33
- "typescript": "^5.7.3",
34
- "vite": "^6.0.1",
35
- "vitest": "2.1.6"
29
+ "publint": "^0.3.7",
30
+ "svelte": "^5.20.5",
31
+ "svelte-check": "^4.1.4",
32
+ "typescript": "^5.8.2",
33
+ "vite": "^6.2.0",
34
+ "vitest": "^3.0.7"
36
35
  },
37
36
  "peerDependencies": {
38
37
  "svelte": "^5.0.0"