svelte-meta-tags 2.0.0 → 2.2.2

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,34 @@
1
+ ## [2.2.1](https://github.com/oekazuma/svelte-meta-tags/compare/v2.2.0...v2.2.1) (2021-12-21)
2
+
3
+ ### Bug Fixes
4
+
5
+ - make the schema property of jsonLdProps not mandatory ([15f00f9](https://github.com/oekazuma/svelte-meta-tags/commit/15f00f9940fdcb8ac9a8c8f6ed51782bd5789ebd))
6
+
7
+ # [2.2.0](https://github.com/oekazuma/svelte-meta-tags/compare/v2.1.0...v2.2.0) (2021-12-17)
8
+
9
+ ### Features
10
+
11
+ - improved Twitter's CardType type definition ([13b11fd](https://github.com/oekazuma/svelte-meta-tags/commit/13b11fd2e9f6625e1cd0802e825f312f37988666))
12
+
13
+ # [2.1.0](https://github.com/oekazuma/svelte-meta-tags/compare/v2.0.0...v2.1.0) (2021-11-04)
14
+
15
+ ### Features
16
+
17
+ - allow title to be dynamically changed ([b9acefb](https://github.com/oekazuma/svelte-meta-tags/commit/b9acefbea7c64b5434837ffecc17423dcf0ce2d3))
18
+
19
+ # [2.0.0](https://github.com/oekazuma/svelte-meta-tags/compare/v1.2.2...v2.0.0) (2021-09-18)
20
+
21
+ ### chore
22
+
23
+ - change name the MetaTags export ([d40b535](https://github.com/oekazuma/svelte-meta-tags/commit/d40b535249be8b629ba1034358865aa08993927c))
24
+ - remove jsonLd property from MetaTags component ([a05ae2b](https://github.com/oekazuma/svelte-meta-tags/commit/a05ae2b72a8605253a50249e8f76ee76cbe1411d))
25
+
26
+ ### BREAKING CHANGES
27
+
28
+ - Change the way import is written.
29
+ - Remove jsonLd parameter from MetaTags component.
30
+ Please use the JsonLd component from now on.
31
+
1
32
  ## [1.2.2](https://github.com/oekazuma/svelte-meta-tags/compare/v1.2.1...v1.2.2) (2021-09-07)
2
33
 
3
34
  ### Bug Fixes
package/MetaTags.svelte CHANGED
@@ -1,5 +1,5 @@
1
1
  <script>
2
- export let title = undefined;
2
+ export let title = '';
3
3
  export let noindex = false;
4
4
  export let nofollow = false;
5
5
  export let robotsProps = undefined;
@@ -39,9 +39,7 @@
39
39
  </script>
40
40
 
41
41
  <svelte:head>
42
- {#if title}
43
- <title>{title}</title>
44
- {/if}
42
+ <title>{title}</title>
45
43
 
46
44
  <meta
47
45
  name="robots"
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.0.0",
3
+ "version": "2.2.2",
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": "13.1.0",
29
- "@commitlint/config-conventional": "13.1.0",
30
- "@semantic-release/changelog": "5.0.1",
31
- "@semantic-release/git": "9.0.1",
32
- "@sveltejs/kit": "1.0.0-next.169",
33
- "@typescript-eslint/eslint-plugin": "4.31.1",
34
- "@typescript-eslint/parser": "4.31.1",
35
- "cypress": "8.4.1",
36
- "eslint": "7.32.0",
28
+ "@commitlint/cli": "16.0.0",
29
+ "@commitlint/config-conventional": "16.0.0",
30
+ "@semantic-release/changelog": "6.0.1",
31
+ "@semantic-release/git": "10.0.1",
32
+ "@sveltejs/kit": "1.0.0-next.202",
33
+ "@typescript-eslint/eslint-plugin": "5.8.0",
34
+ "@typescript-eslint/parser": "5.8.0",
35
+ "cypress": "9.2.0",
36
+ "eslint": "8.5.0",
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
- "husky": "7.0.2",
41
- "lint-staged": "11.1.2",
42
- "prettier": "2.4.1",
43
- "prettier-plugin-svelte": "2.4.0",
44
- "semantic-release": "18.0.0",
45
- "svelte": "3.42.6",
46
- "svelte-check": "2.2.6",
47
- "svelte-preprocess": "4.9.4",
48
- "svelte2tsx": "0.4.6",
40
+ "husky": "7.0.4",
41
+ "lint-staged": "12.1.4",
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.11",
47
+ "svelte-preprocess": "4.10.1",
48
+ "svelte2tsx": "0.4.12",
49
49
  "tslib": "2.3.1",
50
- "typescript": "4.4.3"
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
  }
@@ -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
  }