svelte-meta-tags 2.2.0 → 2.3.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ ## [2.2.3](https://github.com/oekazuma/svelte-meta-tags/compare/v2.2.2...v2.2.3) (2022-01-14)
2
+
3
+ ### Bug Fixes
4
+
5
+ - fix path to type definitions ([7c49639](https://github.com/oekazuma/svelte-meta-tags/commit/7c49639c1f08fe6ee6ea3e036c9982b1c1979c77))
6
+
7
+ ## [2.2.2](https://github.com/oekazuma/svelte-meta-tags/compare/v2.2.1...v2.2.2) (2021-12-26)
8
+
9
+ ### Bug Fixes
10
+
11
+ - revert changes so that npm and yarn can also be used for installation ([f536977](https://github.com/oekazuma/svelte-meta-tags/commit/f536977550948f675f4207b80dc5aca96cc535a0))
12
+
13
+ ## [2.2.1](https://github.com/oekazuma/svelte-meta-tags/compare/v2.2.0...v2.2.1) (2021-12-21)
14
+
15
+ ### Bug Fixes
16
+
17
+ - make the schema property of jsonLdProps not mandatory ([15f00f9](https://github.com/oekazuma/svelte-meta-tags/commit/15f00f9940fdcb8ac9a8c8f6ed51782bd5789ebd))
18
+
19
+ # [2.2.0](https://github.com/oekazuma/svelte-meta-tags/compare/v2.1.0...v2.2.0) (2021-12-17)
20
+
21
+ ### Features
22
+
23
+ - improved Twitter's CardType type definition ([13b11fd](https://github.com/oekazuma/svelte-meta-tags/commit/13b11fd2e9f6625e1cd0802e825f312f37988666))
24
+
1
25
  # [2.1.0](https://github.com/oekazuma/svelte-meta-tags/compare/v2.0.0...v2.1.0) (2021-11-04)
2
26
 
3
27
  ### Features
@@ -1,4 +1,4 @@
1
1
  import { SvelteComponentTyped } from 'svelte';
2
- import { JsonLdProps } from 'types';
2
+ import { JsonLdProps } from './types';
3
3
 
4
4
  export default class JsonLd extends SvelteComponentTyped<JsonLdProps> {}
package/MetaTags.svelte CHANGED
@@ -78,6 +78,18 @@
78
78
  {#if twitter.handle}
79
79
  <meta name="twitter:creator" content={twitter.handle} />
80
80
  {/if}
81
+ {#if twitter.title}
82
+ <meta name="twitter:title" content={twitter.title} />
83
+ {/if}
84
+ {#if twitter.description}
85
+ <meta name="twitter:description" content={twitter.description} />
86
+ {/if}
87
+ {#if twitter.image}
88
+ <meta name="twitter:image" content={twitter.image} />
89
+ {/if}
90
+ {#if twitter.imageAlt}
91
+ <meta name="twitter:image:alt" content={twitter.imageAlt} />
92
+ {/if}
81
93
  {/if}
82
94
 
83
95
  {#if facebook}
package/README.md CHANGED
@@ -11,6 +11,10 @@ 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
+
14
18
  **Table of Contents**
15
19
 
16
20
  - [Installing](#-installing)
@@ -53,6 +57,12 @@ or
53
57
  yarn add svelte-meta-tags
54
58
  ```
55
59
 
60
+ or
61
+
62
+ ```shell
63
+ pnpm add svelte-meta-tags
64
+ ```
65
+
56
66
  ### 🚀 Usage
57
67
 
58
68
  **Example with just title and description:**
package/package.json CHANGED
@@ -1,13 +1,9 @@
1
1
  {
2
2
  "name": "svelte-meta-tags",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
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",
7
- "svelte": "index.js",
8
- "main": "index.js",
9
- "module": "index.js",
10
- "types": "index.d.ts",
11
7
  "keywords": [
12
8
  "svelte",
13
9
  "svelteKit",
@@ -25,29 +21,29 @@
25
21
  "schema-dts": "1.0.0"
26
22
  },
27
23
  "devDependencies": {
28
- "@commitlint/cli": "15.0.0",
29
- "@commitlint/config-conventional": "15.0.0",
24
+ "@commitlint/cli": "16.1.0",
25
+ "@commitlint/config-conventional": "16.0.0",
30
26
  "@semantic-release/changelog": "6.0.1",
31
27
  "@semantic-release/git": "10.0.1",
32
- "@sveltejs/kit": "1.0.0-next.202",
33
- "@typescript-eslint/eslint-plugin": "5.7.0",
34
- "@typescript-eslint/parser": "5.7.0",
35
- "cypress": "9.1.1",
36
- "eslint": "8.4.1",
28
+ "@sveltejs/kit": "1.0.0-next.247",
29
+ "@typescript-eslint/eslint-plugin": "5.10.1",
30
+ "@typescript-eslint/parser": "5.10.1",
31
+ "cypress": "9.3.1",
32
+ "eslint": "8.7.0",
37
33
  "eslint-config-prettier": "8.3.0",
38
34
  "eslint-plugin-cypress": "2.12.1",
39
- "eslint-plugin-svelte3": "3.2.1",
35
+ "eslint-plugin-svelte3": "3.4.0",
40
36
  "husky": "7.0.4",
41
- "lint-staged": "12.1.2",
37
+ "lint-staged": "12.3.2",
42
38
  "prettier": "2.5.1",
43
- "prettier-plugin-svelte": "2.5.1",
44
- "semantic-release": "18.0.1",
45
- "svelte": "3.44.3",
46
- "svelte-check": "2.2.10",
47
- "svelte-preprocess": "4.10.0",
48
- "svelte2tsx": "0.4.11",
39
+ "prettier-plugin-svelte": "2.6.0",
40
+ "semantic-release": "19.0.2",
41
+ "svelte": "3.46.3",
42
+ "svelte-check": "2.3.0",
43
+ "svelte-preprocess": "4.10.2",
44
+ "svelte2tsx": "0.4.14",
49
45
  "tslib": "2.3.1",
50
- "typescript": "4.5.4"
46
+ "typescript": "4.5.5"
51
47
  },
52
48
  "peerDependencies": {
53
49
  "svelte": "^3.39.0"
@@ -94,5 +90,6 @@
94
90
  "./JsonLd.svelte": "./JsonLd.svelte",
95
91
  "./MetaTags.svelte": "./MetaTags.svelte",
96
92
  ".": "./index.js"
97
- }
93
+ },
94
+ "svelte": "./index.js"
98
95
  }
package/types.d.ts CHANGED
@@ -24,6 +24,10 @@ export interface Twitter {
24
24
  cardType?: 'summary' | 'summary_large_image' | 'app' | 'player';
25
25
  site?: string;
26
26
  handle?: string;
27
+ title?: string;
28
+ description?: string;
29
+ image?: string;
30
+ imageAlt?: string;
27
31
  }
28
32
 
29
33
  export interface Facebook {
@@ -149,5 +153,5 @@ export interface MetaTagsProps {
149
153
  }
150
154
 
151
155
  export interface JsonLdProps {
152
- schema: Thing | WithContext<Thing>;
156
+ schema?: Thing | WithContext<Thing>;
153
157
  }