svelte-meta-tags 2.6.2 → 2.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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # [2.6.3](https://github.com/oekazuma/svelte-meta-tags/compare/v2.6.2...v2.6.3) (2022-08-31)
2
+
3
+ - add schema-dts to dependencies([9824e38](https://github.com/oekazuma/svelte-meta-tags/commit/9824e388728e37009aa06f56642ec4a2b9520921))
4
+
1
5
  # [2.6.2](https://github.com/oekazuma/svelte-meta-tags/compare/v2.6.1...v2.6.2) (2022-08-11)
2
6
 
3
7
  - trim production dependencies([2008183](https://github.com/oekazuma/svelte-meta-tags/commit/2008183b0a712cc6288e188cabdb14c85f93b0ee))
package/JsonLd.svelte CHANGED
@@ -5,7 +5,7 @@
5
5
  $: isValid = schema && typeof schema === 'object';
6
6
  $: json = `${'<scri' + 'pt type="application/ld+json">'}${JSON.stringify({
7
7
  '@context': 'https://schema.org',
8
- ...schema,
8
+ ...schema
9
9
  })}${'</scri' + 'pt>'}`;
10
10
  </script>
11
11
 
package/MetaTags.svelte CHANGED
@@ -26,7 +26,7 @@
26
26
  noarchive,
27
27
  noimageindex,
28
28
  notranslate,
29
- unavailableAfter,
29
+ unavailableAfter
30
30
  } = robotsProps;
31
31
 
32
32
  robotsParams = `${nosnippet ? ',nosnippet' : ''}${maxSnippet ? `,max-snippet:${maxSnippet}` : ''}${
package/README.md CHANGED
@@ -11,10 +11,6 @@ Svelte Meta Tags is a plugin that makes managing your SEO easier in Svelte proje
11
11
 
12
12
  This library is inspired by [next-seo](https://github.com/garmeeh/next-seo)
13
13
 
14
- **Would you like to support this project?**
15
-
16
- <a href="https://www.buymeacoffee.com/oekazuma" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-orange.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
17
-
18
14
  **Table of Contents**
19
15
 
20
16
  - [Installing](#-installing)
@@ -98,18 +94,18 @@ pnpm add -D svelte-meta-tags
98
94
  url: 'https://www.example.ie/og-image-01.jpg',
99
95
  width: 800,
100
96
  height: 600,
101
- alt: 'Og Image Alt',
97
+ alt: 'Og Image Alt'
102
98
  },
103
99
  {
104
100
  url: 'https://www.example.ie/og-image-02.jpg',
105
101
  width: 900,
106
102
  height: 800,
107
- alt: 'Og Image Alt Second',
103
+ alt: 'Og Image Alt Second'
108
104
  },
109
105
  { url: 'https://www.example.ie/og-image-03.jpg' },
110
- { url: 'https://www.example.ie/og-image-04.jpg' },
106
+ { url: 'https://www.example.ie/og-image-04.jpg' }
111
107
  ],
112
- site_name: 'SiteName',
108
+ site_name: 'SiteName'
113
109
  }}
114
110
  twitter={{
115
111
  handle: '@handle',
@@ -118,10 +114,10 @@ pnpm add -D svelte-meta-tags
118
114
  title: 'Using More of Config',
119
115
  description: 'This example uses more of the available config options.',
120
116
  image: 'https://www.example.ie/twitter-image.jpg',
121
- imageAlt: 'Twitter image alt',
117
+ imageAlt: 'Twitter image alt'
122
118
  }}
123
119
  facebook={{
124
- appId: '1234567890',
120
+ appId: '1234567890'
125
121
  }}
126
122
  />
127
123
  ```
@@ -235,7 +231,7 @@ Example:
235
231
  maxVideoPreview: -1,
236
232
  notranslate: true,
237
233
  noimageindex: true,
238
- unavailableAfter: '25 Jun 2010 15:00:00 PST',
234
+ unavailableAfter: '25 Jun 2010 15:00:00 PST'
239
235
  }}
240
236
  />
241
237
  ```
@@ -413,15 +409,15 @@ Svelte Meta Tags currently supports:
413
409
  url: 'https://www.example.ie/og-image.jpg',
414
410
  width: 800,
415
411
  height: 600,
416
- alt: 'Og Image Alt',
412
+ alt: 'Og Image Alt'
417
413
  },
418
414
  {
419
415
  url: 'https://www.example.ie/og-image-2.jpg',
420
416
  width: 800,
421
417
  height: 600,
422
- alt: 'Og Image Alt 2',
423
- },
424
- ],
418
+ alt: 'Og Image Alt 2'
419
+ }
420
+ ]
425
421
  }}
426
422
  />
427
423
  ```
@@ -447,26 +443,26 @@ Full info on [http://ogp.me/](http://ogp.me/#type_video)
447
443
  actors: [
448
444
  {
449
445
  profile: 'https://www.example.com/actors/@firstnameA-lastnameA',
450
- role: 'Protagonist',
446
+ role: 'Protagonist'
451
447
  },
452
448
  {
453
449
  profile: 'https://www.example.com/actors/@firstnameB-lastnameB',
454
- role: 'Antagonist',
455
- },
450
+ role: 'Antagonist'
451
+ }
456
452
  ],
457
453
  directors: [
458
454
  'https://www.example.com/directors/@firstnameA-lastnameA',
459
- 'https://www.example.com/directors/@firstnameB-lastnameB',
455
+ 'https://www.example.com/directors/@firstnameB-lastnameB'
460
456
  ],
461
457
  writers: [
462
458
  'https://www.example.com/writers/@firstnameA-lastnameA',
463
- 'https://www.example.com/writers/@firstnameB-lastnameB',
459
+ 'https://www.example.com/writers/@firstnameB-lastnameB'
464
460
  ],
465
461
  duration: 680000,
466
462
  releaseDate: '2022-12-21T22:04:11Z',
467
- tags: ['Tag A', 'Tag B', 'Tag C'],
463
+ tags: ['Tag A', 'Tag B', 'Tag C']
468
464
  },
469
- site_name: 'SiteName',
465
+ site_name: 'SiteName'
470
466
  }}
471
467
  />
472
468
  ```
@@ -491,18 +487,18 @@ Full info on [http://ogp.me/](http://ogp.me/#type_video)
491
487
  section: 'Section II',
492
488
  authors: [
493
489
  'https://www.example.com/authors/@firstnameA-lastnameA',
494
- 'https://www.example.com/authors/@firstnameB-lastnameB',
490
+ 'https://www.example.com/authors/@firstnameB-lastnameB'
495
491
  ],
496
- tags: ['Tag A', 'Tag B', 'Tag C'],
492
+ tags: ['Tag A', 'Tag B', 'Tag C']
497
493
  },
498
494
  images: [
499
495
  {
500
496
  url: 'https://www.test.ie/images/cover.jpg',
501
497
  width: 850,
502
498
  height: 650,
503
- alt: 'Photo of text',
504
- },
505
- ],
499
+ alt: 'Photo of text'
500
+ }
501
+ ]
506
502
  }}
507
503
  />
508
504
  ```
@@ -525,18 +521,18 @@ Full info on [http://ogp.me/](http://ogp.me/#type_video)
525
521
  isbn: '978-3-16-148410-0',
526
522
  authors: [
527
523
  'https://www.example.com/authors/@firstnameA-lastnameA',
528
- 'https://www.example.com/authors/@firstnameB-lastnameB',
524
+ 'https://www.example.com/authors/@firstnameB-lastnameB'
529
525
  ],
530
- tags: ['Tag A', 'Tag B', 'Tag C'],
526
+ tags: ['Tag A', 'Tag B', 'Tag C']
531
527
  },
532
528
  images: [
533
529
  {
534
530
  url: 'https://www.test.ie/images/book.jpg',
535
531
  width: 850,
536
532
  height: 650,
537
- alt: 'Cover of the book',
538
- },
539
- ],
533
+ alt: 'Cover of the book'
534
+ }
535
+ ]
540
536
  }}
541
537
  />
542
538
  ```
@@ -558,16 +554,16 @@ Full info on [http://ogp.me/](http://ogp.me/#type_video)
558
554
  firstName: 'First',
559
555
  lastName: 'Last',
560
556
  username: 'firstlast123',
561
- gender: 'female',
557
+ gender: 'female'
562
558
  },
563
559
  images: [
564
560
  {
565
561
  url: 'https://www.test.ie/images/profile.jpg',
566
562
  width: 850,
567
563
  height: 650,
568
- alt: 'Profile Photo',
569
- },
570
- ],
564
+ alt: 'Profile Photo'
565
+ }
566
+ ]
571
567
  }}
572
568
  />
573
569
  ```
@@ -605,28 +601,28 @@ This plugin uses [schema-dts](https://github.com/google/schema-dts), so it also
605
601
  '@type': 'Article',
606
602
  mainEntityOfPage: {
607
603
  '@type': 'WebPage',
608
- '@id': 'https://example.com/article',
604
+ '@id': 'https://example.com/article'
609
605
  },
610
606
  headline: 'Article headline',
611
607
  image: [
612
608
  'https://example.com/photos/1x1/photo.jpg',
613
609
  'https://example.com/photos/4x3/photo.jpg',
614
- 'https://example.com/photos/16x9/photo.jpg',
610
+ 'https://example.com/photos/16x9/photo.jpg'
615
611
  ],
616
612
  datePublished: '2015-02-05T08:00:00+08:00',
617
613
  dateModified: '2015-02-05T09:20:00+08:00',
618
614
  author: {
619
615
  '@type': 'Person',
620
- name: 'John Doe',
616
+ name: 'John Doe'
621
617
  },
622
618
  publisher: {
623
619
  '@type': 'Organization',
624
620
  name: 'Google',
625
621
  logo: {
626
622
  '@type': 'ImageObject',
627
- url: 'https://example.com/logo.jpg',
628
- },
629
- },
623
+ url: 'https://example.com/logo.jpg'
624
+ }
625
+ }
630
626
  }}
631
627
  />
632
628
  ```
@@ -646,20 +642,20 @@ This plugin uses [schema-dts](https://github.com/google/schema-dts), so it also
646
642
  '@type': 'ListItem',
647
643
  position: 1,
648
644
  name: 'Books',
649
- item: 'https://example.com/books',
645
+ item: 'https://example.com/books'
650
646
  },
651
647
  {
652
648
  '@type': 'ListItem',
653
649
  position: 2,
654
650
  name: 'Science Fiction',
655
- item: 'https://example.com/books/sciencefiction',
651
+ item: 'https://example.com/books/sciencefiction'
656
652
  },
657
653
  {
658
654
  '@type': 'ListItem',
659
655
  position: 3,
660
- name: 'Award Winners',
661
- },
662
- ],
656
+ name: 'Award Winners'
657
+ }
658
+ ]
663
659
  }}
664
660
  />
665
661
  ```
@@ -678,7 +674,7 @@ This plugin uses [schema-dts](https://github.com/google/schema-dts), so it also
678
674
  image: [
679
675
  'https://example.com/photos/1x1/photo.jpg',
680
676
  'https://example.com/photos/4x3/photo.jpg',
681
- 'https://example.com/photos/16x9/photo.jpg',
677
+ 'https://example.com/photos/16x9/photo.jpg'
682
678
  ],
683
679
  description:
684
680
  "Sleeker than ACME's Classic Anvil, the Executive Anvil is perfect for the business traveler looking for something to drop from a height.",
@@ -686,24 +682,24 @@ This plugin uses [schema-dts](https://github.com/google/schema-dts), so it also
686
682
  mpn: '925872',
687
683
  brand: {
688
684
  '@type': 'Brand',
689
- name: 'ACME',
685
+ name: 'ACME'
690
686
  },
691
687
  review: {
692
688
  '@type': 'Review',
693
689
  reviewRating: {
694
690
  '@type': 'Rating',
695
691
  ratingValue: '4',
696
- bestRating: '5',
692
+ bestRating: '5'
697
693
  },
698
694
  author: {
699
695
  '@type': 'Person',
700
- name: 'Fred Benson',
701
- },
696
+ name: 'Fred Benson'
697
+ }
702
698
  },
703
699
  aggregateRating: {
704
700
  '@type': 'AggregateRating',
705
701
  ratingValue: '4.4',
706
- reviewCount: '89',
702
+ reviewCount: '89'
707
703
  },
708
704
  offers: {
709
705
  '@type': 'Offer',
@@ -712,8 +708,8 @@ This plugin uses [schema-dts](https://github.com/google/schema-dts), so it also
712
708
  price: '119.99',
713
709
  priceValidUntil: '2020-11-20',
714
710
  itemCondition: 'https://schema.org/UsedCondition',
715
- availability: 'https://schema.org/InStock',
716
- },
711
+ availability: 'https://schema.org/InStock'
712
+ }
717
713
  }}
718
714
  />
719
715
  ```
@@ -733,8 +729,8 @@ This plugin uses [schema-dts](https://github.com/google/schema-dts), so it also
733
729
  provider: {
734
730
  '@type': 'Organization',
735
731
  name: 'University of Technology - Eureka',
736
- sameAs: 'http://www.ut-eureka.edu',
737
- },
732
+ sameAs: 'http://www.ut-eureka.edu'
733
+ }
738
734
  }}
739
735
  />
740
736
  ```
@@ -751,7 +747,7 @@ This plugin uses [schema-dts](https://github.com/google/schema-dts), so it also
751
747
  '@type': 'Dataset',
752
748
  name: 'name of the dataset',
753
749
  description: 'The description needs to be at least 50 characters long',
754
- license: 'https//www.example.com',
750
+ license: 'https//www.example.com'
755
751
  }}
756
752
  />
757
753
  ```
@@ -772,18 +768,18 @@ This plugin uses [schema-dts](https://github.com/google/schema-dts), so it also
772
768
  name: 'How long is the delivery time?',
773
769
  acceptedAnswer: {
774
770
  '@type': 'Answer',
775
- text: '3-5 business days.',
776
- },
771
+ text: '3-5 business days.'
772
+ }
777
773
  },
778
774
  {
779
775
  '@type': 'Question',
780
776
  name: 'Where can I find information about product recalls?',
781
777
  acceptedAnswer: {
782
778
  '@type': 'Answer',
783
- text: 'Read more on under information.',
784
- },
785
- },
786
- ],
779
+ text: 'Read more on under information.'
780
+ }
781
+ }
782
+ ]
787
783
  }}
788
784
  />
789
785
  ```
package/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { default as MetaTags } from './MetaTags.svelte';
2
2
  export { default as JsonLd } from './JsonLd.svelte';
3
- export type { MetaTagsProps, JsonLdProps, AdditionalRobotsProps, MobileAlternate, LanguageAlternate, Twitter, Facebook, OpenGraph, MetaTag, LinkTag, } from './types';
3
+ export type { MetaTagsProps, JsonLdProps, AdditionalRobotsProps, MobileAlternate, LanguageAlternate, Twitter, Facebook, OpenGraph, MetaTag, LinkTag } from './types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-meta-tags",
3
- "version": "2.6.2",
3
+ "version": "2.6.3",
4
4
  "description": "Svelte Meta Tags is a plugin that makes managing your SEO easier in Svelte projects.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -17,33 +17,30 @@
17
17
  "type": "git",
18
18
  "url": "https://github.com/oekazuma/svelte-meta-tags"
19
19
  },
20
+ "dependencies": {
21
+ "schema-dts": "^1.1.0"
22
+ },
20
23
  "devDependencies": {
21
- "@commitlint/cli": "^17.0.3",
22
- "@commitlint/config-conventional": "^17.0.3",
23
- "@semantic-release/changelog": "^6.0.1",
24
- "@semantic-release/git": "^10.0.1",
25
- "@sveltejs/adapter-auto": "^1.0.0-next.64",
26
- "@sveltejs/kit": "^1.0.0-next.405",
27
- "@typescript-eslint/eslint-plugin": "^5.33.0",
28
- "@typescript-eslint/parser": "^5.33.0",
29
- "cypress": "^10.4.0",
30
- "eslint": "^8.21.0",
24
+ "@playwright/test": "^1.25.1",
25
+ "@sveltejs/adapter-auto": "^1.0.0-next.71",
26
+ "@sveltejs/kit": "^1.0.0-next.460",
27
+ "@sveltejs/package": "^1.0.0-next.3",
28
+ "@typescript-eslint/eslint-plugin": "^5.36.1",
29
+ "@typescript-eslint/parser": "^5.36.1",
30
+ "eslint": "^8.23.0",
31
31
  "eslint-config-prettier": "^8.5.0",
32
- "eslint-plugin-cypress": "^2.12.1",
33
32
  "eslint-plugin-svelte3": "^4.0.0",
34
33
  "husky": "^8.0.1",
35
34
  "lint-staged": "^13.0.3",
36
35
  "prettier": "^2.7.1",
37
36
  "prettier-plugin-svelte": "^2.7.0",
38
- "schema-dts": "^1.1.0",
39
- "semantic-release": "^19.0.3",
40
37
  "svelte": "^3.49.0",
41
- "svelte-check": "^2.8.0",
38
+ "svelte-check": "^2.9.0",
42
39
  "svelte-preprocess": "^4.10.7",
43
- "svelte2tsx": "^0.5.13",
40
+ "svelte2tsx": "^0.5.16",
44
41
  "tslib": "^2.4.0",
45
- "typescript": "^4.7.4",
46
- "vite": "^3.0.5"
42
+ "typescript": "^4.8.2",
43
+ "vite": "^3.1.0-beta.1"
47
44
  },
48
45
  "exports": {
49
46
  "./package.json": "./package.json",