svelte-meta-tags 2.3.2 → 2.4.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 +18 -0
- package/JsonLd.svelte +8 -1
- package/README.md +10 -2
- package/package.json +11 -10
- package/types.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## [2.3.4](https://github.com/oekazuma/svelte-meta-tags/compare/v2.3.3...v2.3.4) (2022-03-03)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- add pnpm build to release command ([1c01f61](https://github.com/oekazuma/svelte-meta-tags/commit/1c01f619c5cd1dee51c58f4067fd315907fb4753))
|
|
6
|
+
|
|
7
|
+
## [2.3.3](https://github.com/oekazuma/svelte-meta-tags/compare/v2.3.2...v2.3.3) (2022-03-03)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix tsconfig.json ([bd54216](https://github.com/oekazuma/svelte-meta-tags/commit/bd542167bc0f377157d7337b9eb2e9b58d63a625))
|
|
12
|
+
|
|
13
|
+
## [2.3.2](https://github.com/oekazuma/svelte-meta-tags/compare/v2.3.1...v2.3.2) (2022-02-28)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
- **deps:** update dependency schema-dts to v1.1.0 ([d57c99d](https://github.com/oekazuma/svelte-meta-tags/commit/d57c99d89b5071e1e2045892ee2814a7105251ce))
|
|
18
|
+
|
|
1
19
|
## [2.3.1](https://github.com/oekazuma/svelte-meta-tags/compare/v2.3.0...v2.3.1) (2022-02-25)
|
|
2
20
|
|
|
3
21
|
### Bug Fixes
|
package/JsonLd.svelte
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
export let output = 'head';
|
|
2
3
|
export let schema = undefined;
|
|
3
4
|
</script>
|
|
4
5
|
|
|
5
6
|
<svelte:head>
|
|
6
|
-
{#if schema}
|
|
7
|
+
{#if schema && output === 'head'}
|
|
7
8
|
{@html `<script type="application/ld+json">${
|
|
8
9
|
JSON.stringify({ '@context': 'https://schema.org', ...schema }) + '<'
|
|
9
10
|
}/script>`}
|
|
10
11
|
{/if}
|
|
11
12
|
</svelte:head>
|
|
13
|
+
|
|
14
|
+
{#if schema && output === 'body'}
|
|
15
|
+
{@html `<script type="application/ld+json">${
|
|
16
|
+
JSON.stringify({ '@context': 'https://schema.org', ...schema }) + '<'
|
|
17
|
+
}/script>`}
|
|
18
|
+
{/if}
|
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ This library is inspired by [next-seo](https://github.com/garmeeh/next-seo)
|
|
|
19
19
|
|
|
20
20
|
- [Installing](#-installing)
|
|
21
21
|
- [Usage](#-usage)
|
|
22
|
-
- [Properties](#properties)
|
|
22
|
+
- [MetaTags Properties](#metatags-properties)
|
|
23
23
|
- [Twitter](#twitter)
|
|
24
24
|
- [Facebook](#facebook)
|
|
25
25
|
- [robotsProps](#robotsprops)
|
|
@@ -35,6 +35,7 @@ This library is inspired by [next-seo](https://github.com/garmeeh/next-seo)
|
|
|
35
35
|
- [Profile](#profile)
|
|
36
36
|
- [JSON-LD](#json-ld)
|
|
37
37
|
- [Using schema-dts](#using-schema-dts)
|
|
38
|
+
- [JSON-LD Properties](#json-ld-properties)
|
|
38
39
|
- [JSON-LD Examples](#json-ld-examples)
|
|
39
40
|
- [Article](#article)
|
|
40
41
|
- [Breadcrumb](#breadcrumb)
|
|
@@ -123,7 +124,7 @@ pnpm add -D svelte-meta-tags
|
|
|
123
124
|
/>
|
|
124
125
|
```
|
|
125
126
|
|
|
126
|
-
### Properties
|
|
127
|
+
### MetaTags Properties
|
|
127
128
|
|
|
128
129
|
| Property | Type | Description |
|
|
129
130
|
| ---------------------------------- | ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
@@ -564,6 +565,13 @@ It is also possible to use multiple `<JsonLd />` components in a single page.
|
|
|
564
565
|
|
|
565
566
|
This plugin uses [schema-dts](https://github.com/google/schema-dts), so it also provides types other than the usage examples below.
|
|
566
567
|
|
|
568
|
+
### JSON-LD Properties
|
|
569
|
+
|
|
570
|
+
| Property | Type | Description |
|
|
571
|
+
| -------- | --------------------- | ---------------------------------------------------------------------------------------------------- |
|
|
572
|
+
| `output` | string (default head) | Sets whether json-ld is output to `<head>` or `<body>`. Possible values are either `head` or `body`. |
|
|
573
|
+
| `schema` | Object | Data in `ld+json` format. [See Examples](#json-ld-examples) |
|
|
574
|
+
|
|
567
575
|
### JSON-LD Examples
|
|
568
576
|
|
|
569
577
|
#### Article
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-meta-tags",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.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,16 +25,17 @@
|
|
|
25
25
|
"@commitlint/config-conventional": "16.2.1",
|
|
26
26
|
"@semantic-release/changelog": "6.0.1",
|
|
27
27
|
"@semantic-release/git": "10.0.1",
|
|
28
|
-
"@sveltejs/
|
|
29
|
-
"@
|
|
30
|
-
"@typescript-eslint/
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"eslint
|
|
28
|
+
"@sveltejs/adapter-auto": "1.0.0-next.31",
|
|
29
|
+
"@sveltejs/kit": "1.0.0-next.295",
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "5.14.0",
|
|
31
|
+
"@typescript-eslint/parser": "5.14.0",
|
|
32
|
+
"cypress": "9.5.1",
|
|
33
|
+
"eslint": "8.11.0",
|
|
34
|
+
"eslint-config-prettier": "8.5.0",
|
|
34
35
|
"eslint-plugin-cypress": "2.12.1",
|
|
35
36
|
"eslint-plugin-svelte3": "3.4.1",
|
|
36
37
|
"husky": "7.0.4",
|
|
37
|
-
"lint-staged": "12.3.
|
|
38
|
+
"lint-staged": "12.3.5",
|
|
38
39
|
"prettier": "2.5.1",
|
|
39
40
|
"prettier-plugin-svelte": "2.6.0",
|
|
40
41
|
"semantic-release": "19.0.2",
|
|
@@ -43,13 +44,13 @@
|
|
|
43
44
|
"svelte-preprocess": "4.10.4",
|
|
44
45
|
"svelte2tsx": "0.5.5",
|
|
45
46
|
"tslib": "2.3.1",
|
|
46
|
-
"typescript": "4.
|
|
47
|
+
"typescript": "4.6.2"
|
|
47
48
|
},
|
|
48
49
|
"peerDependencies": {
|
|
49
50
|
"svelte": "^3.39.0"
|
|
50
51
|
},
|
|
51
52
|
"lint-staged": {
|
|
52
|
-
"*.{js,ts,svelte,md,html,css,json}": "pnpm format",
|
|
53
|
+
"*.{js,ts,cjs,svelte,md,html,css,json,yml,yaml}": "pnpm format",
|
|
53
54
|
"*.{js,ts,svelte}": [
|
|
54
55
|
"pnpm lint",
|
|
55
56
|
"pnpm check"
|