svelte-meta-tags 2.1.0 → 2.2.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,27 @@
1
+ ## [2.2.2](https://github.com/oekazuma/svelte-meta-tags/compare/v2.2.1...v2.2.2) (2021-12-26)
2
+
3
+ ### Bug Fixes
4
+
5
+ - revert changes so that npm and yarn can also be used for installation ([f536977](https://github.com/oekazuma/svelte-meta-tags/commit/f536977550948f675f4207b80dc5aca96cc535a0))
6
+
7
+ ## [2.2.1](https://github.com/oekazuma/svelte-meta-tags/compare/v2.2.0...v2.2.1) (2021-12-21)
8
+
9
+ ### Bug Fixes
10
+
11
+ - make the schema property of jsonLdProps not mandatory ([15f00f9](https://github.com/oekazuma/svelte-meta-tags/commit/15f00f9940fdcb8ac9a8c8f6ed51782bd5789ebd))
12
+
13
+ # [2.2.0](https://github.com/oekazuma/svelte-meta-tags/compare/v2.1.0...v2.2.0) (2021-12-17)
14
+
15
+ ### Features
16
+
17
+ - improved Twitter's CardType type definition ([13b11fd](https://github.com/oekazuma/svelte-meta-tags/commit/13b11fd2e9f6625e1cd0802e825f312f37988666))
18
+
19
+ # [2.1.0](https://github.com/oekazuma/svelte-meta-tags/compare/v2.0.0...v2.1.0) (2021-11-04)
20
+
21
+ ### Features
22
+
23
+ - allow title to be dynamically changed ([b9acefb](https://github.com/oekazuma/svelte-meta-tags/commit/b9acefbea7c64b5434837ffecc17423dcf0ce2d3))
24
+
1
25
  # [2.0.0](https://github.com/oekazuma/svelte-meta-tags/compare/v1.2.2...v2.0.0) (2021-09-18)
2
26
 
3
27
  ### chore
@@ -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/README.md CHANGED
@@ -11,11 +11,17 @@ 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)
17
21
  - [Usage](#-usage)
18
22
  - [Properties](#properties)
23
+ - [Twitter](#twitter)
24
+ - [Facebook](#facebook)
19
25
  - [robotsProps](#robotsprops)
20
26
  - [Alternate](#alternate)
21
27
  - [Additional Meta Tags](#additional-meta-tags)
@@ -51,6 +57,12 @@ or
51
57
  yarn add svelte-meta-tags
52
58
  ```
53
59
 
60
+ or
61
+
62
+ ```shell
63
+ pnpm add svelte-meta-tags
64
+ ```
65
+
54
66
  ### 🚀 Usage
55
67
 
56
68
  **Example with just title and description:**
@@ -149,6 +161,20 @@ yarn add svelte-meta-tags
149
161
  | `openGraph.article.section` | string | A high-level section name. E.g. Technology |
150
162
  | `openGraph.article.tags` | string[] | Tag words associated with this article. |
151
163
 
164
+ #### Twitter
165
+
166
+ Twitter will read the `og:title`, `og:image` and `og:description` tags for their card, this is why `svelte-meta-tags` omits `twitter:title`, `twitter:image` and `twitter:description` so not to duplicate.
167
+
168
+ #### Facebook
169
+
170
+ ```js
171
+ facebook={{
172
+ appId: '1234567890',
173
+ }}
174
+ ```
175
+
176
+ Add this to your SEO config to include the fb:app_id meta if you need to enable Facebook insights for your site. Information regarding this can be found in facebook's [documentation](https://developers.facebook.com/docs/sharing/webmasters/)
177
+
152
178
  #### robotsProps
153
179
 
154
180
  In addition to `index, follow` the `robots` meta tag accepts more properties to archive a more accurate crawling and serve better snippets for SEO bots that crawl your page.
package/package.json CHANGED
@@ -1,13 +1,9 @@
1
1
  {
2
2
  "name": "svelte-meta-tags",
3
- "version": "2.1.0",
3
+ "version": "2.2.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",
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": "14.1.0",
29
- "@commitlint/config-conventional": "14.1.0",
24
+ "@commitlint/cli": "16.0.2",
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.193",
33
- "@typescript-eslint/eslint-plugin": "5.3.0",
34
- "@typescript-eslint/parser": "5.3.0",
35
- "cypress": "8.7.0",
36
- "eslint": "8.1.0",
28
+ "@sveltejs/kit": "1.0.0-next.229",
29
+ "@typescript-eslint/eslint-plugin": "5.9.1",
30
+ "@typescript-eslint/parser": "5.9.1",
31
+ "cypress": "9.2.1",
32
+ "eslint": "8.6.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": "11.2.6",
42
- "prettier": "2.4.1",
43
- "prettier-plugin-svelte": "2.4.0",
44
- "semantic-release": "18.0.0",
45
- "svelte": "3.44.1",
46
- "svelte-check": "2.2.7",
47
- "svelte-preprocess": "4.9.8",
48
- "svelte2tsx": "0.4.8",
37
+ "lint-staged": "12.1.7",
38
+ "prettier": "2.5.1",
39
+ "prettier-plugin-svelte": "2.6.0",
40
+ "semantic-release": "18.0.1",
41
+ "svelte": "3.46.1",
42
+ "svelte-check": "2.3.0",
43
+ "svelte-preprocess": "4.10.1",
44
+ "svelte2tsx": "0.4.14",
49
45
  "tslib": "2.3.1",
50
- "typescript": "4.4.4"
46
+ "typescript": "4.5.4"
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
@@ -21,7 +21,7 @@ export interface AdditionalRobotsProps {
21
21
  notranslate?: boolean;
22
22
  }
23
23
  export interface Twitter {
24
- cardType?: string;
24
+ cardType?: 'summary' | 'summary_large_image' | 'app' | 'player';
25
25
  site?: string;
26
26
  handle?: string;
27
27
  }
@@ -149,5 +149,5 @@ export interface MetaTagsProps {
149
149
  }
150
150
 
151
151
  export interface JsonLdProps {
152
- schema: Thing | WithContext<Thing>;
152
+ schema?: Thing | WithContext<Thing>;
153
153
  }