svelte-meta-tags 2.1.0 → 2.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # [2.1.0](https://github.com/oekazuma/svelte-meta-tags/compare/v2.0.0...v2.1.0) (2021-11-04)
2
+
3
+ ### Features
4
+
5
+ - allow title to be dynamically changed ([b9acefb](https://github.com/oekazuma/svelte-meta-tags/commit/b9acefbea7c64b5434837ffecc17423dcf0ce2d3))
6
+
1
7
  # [2.0.0](https://github.com/oekazuma/svelte-meta-tags/compare/v1.2.2...v2.0.0) (2021-09-18)
2
8
 
3
9
  ### chore
package/README.md CHANGED
@@ -16,6 +16,8 @@ This library is inspired by [next-seo](https://github.com/garmeeh/next-seo)
16
16
  - [Installing](#-installing)
17
17
  - [Usage](#-usage)
18
18
  - [Properties](#properties)
19
+ - [Twitter](#twitter)
20
+ - [Facebook](#facebook)
19
21
  - [robotsProps](#robotsprops)
20
22
  - [Alternate](#alternate)
21
23
  - [Additional Meta Tags](#additional-meta-tags)
@@ -149,6 +151,20 @@ yarn add svelte-meta-tags
149
151
  | `openGraph.article.section` | string | A high-level section name. E.g. Technology |
150
152
  | `openGraph.article.tags` | string[] | Tag words associated with this article. |
151
153
 
154
+ #### Twitter
155
+
156
+ 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.
157
+
158
+ #### Facebook
159
+
160
+ ```js
161
+ facebook={{
162
+ appId: '1234567890',
163
+ }}
164
+ ```
165
+
166
+ 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/)
167
+
152
168
  #### robotsProps
153
169
 
154
170
  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,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-meta-tags",
3
- "version": "2.1.0",
3
+ "version": "2.2.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",
@@ -25,29 +25,29 @@
25
25
  "schema-dts": "1.0.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@commitlint/cli": "14.1.0",
29
- "@commitlint/config-conventional": "14.1.0",
28
+ "@commitlint/cli": "15.0.0",
29
+ "@commitlint/config-conventional": "15.0.0",
30
30
  "@semantic-release/changelog": "6.0.1",
31
31
  "@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",
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",
37
37
  "eslint-config-prettier": "8.3.0",
38
38
  "eslint-plugin-cypress": "2.12.1",
39
39
  "eslint-plugin-svelte3": "3.2.1",
40
40
  "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",
41
+ "lint-staged": "12.1.2",
42
+ "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",
49
49
  "tslib": "2.3.1",
50
- "typescript": "4.4.4"
50
+ "typescript": "4.5.4"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "svelte": "^3.39.0"
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
  }