svelte-meta-tags 2.6.0 → 2.6.1
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 +10 -0
- package/JsonLd.svelte +10 -6
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
# [2.6.1](https://github.com/oekazuma/svelte-meta-tags/compare/v2.6.0...v2.6.1) (2022-05-27)
|
|
2
|
+
|
|
3
|
+
- clean up JSON-LD([6d107c0](https://github.com/oekazuma/svelte-meta-tags/commit/16d107c09546ffd6b2f8312a6851d46bd0da6ae1)
|
|
4
|
+
|
|
5
|
+
# [2.6.0](https://github.com/oekazuma/svelte-meta-tags/compare/v2.5.5...v2.6.0) (2022-05-16)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- allow all public type definitions to be retrieved ([3e04e2f](https://github.com/oekazuma/svelte-meta-tags/commit/3e04e2fd8ff8446709a7d015b5819971cb42765d))
|
|
10
|
+
|
|
1
11
|
## [2.5.5](https://github.com/oekazuma/svelte-meta-tags/compare/v2.5.4...v2.5.5) (2022-05-06)
|
|
2
12
|
|
|
3
13
|
### Bug Fixes
|
package/JsonLd.svelte
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
export let output = 'head';
|
|
3
|
-
export let schema =
|
|
3
|
+
export let schema = {};
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
$: isValid = schema && typeof schema === 'object';
|
|
6
|
+
$: json = `${'<scri' + 'pt type="application/ld+json">'}${JSON.stringify({
|
|
7
|
+
'@context': 'https://schema.org',
|
|
8
|
+
...schema
|
|
9
|
+
})}${'</scri' + 'pt>'}`;
|
|
6
10
|
</script>
|
|
7
11
|
|
|
8
12
|
<svelte:head>
|
|
9
|
-
{#if
|
|
10
|
-
{@html
|
|
13
|
+
{#if isValid && output === 'head'}
|
|
14
|
+
{@html json}
|
|
11
15
|
{/if}
|
|
12
16
|
</svelte:head>
|
|
13
17
|
|
|
14
|
-
{#if
|
|
15
|
-
{@html
|
|
18
|
+
{#if isValid && output === 'body'}
|
|
19
|
+
{@html json}
|
|
16
20
|
{/if}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-meta-tags",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.1",
|
|
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",
|
|
@@ -21,21 +21,21 @@
|
|
|
21
21
|
"schema-dts": "1.1.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@commitlint/cli": "
|
|
25
|
-
"@commitlint/config-conventional": "
|
|
24
|
+
"@commitlint/cli": "17.0.1",
|
|
25
|
+
"@commitlint/config-conventional": "17.0.0",
|
|
26
26
|
"@semantic-release/changelog": "6.0.1",
|
|
27
27
|
"@semantic-release/git": "10.0.1",
|
|
28
|
-
"@sveltejs/adapter-auto": "1.0.0-next.
|
|
29
|
-
"@sveltejs/kit": "1.0.0-next.
|
|
30
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
31
|
-
"@typescript-eslint/parser": "5.
|
|
32
|
-
"cypress": "9.
|
|
33
|
-
"eslint": "8.
|
|
28
|
+
"@sveltejs/adapter-auto": "1.0.0-next.48",
|
|
29
|
+
"@sveltejs/kit": "1.0.0-next.345",
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "5.26.0",
|
|
31
|
+
"@typescript-eslint/parser": "5.26.0",
|
|
32
|
+
"cypress": "9.7.0",
|
|
33
|
+
"eslint": "8.16.0",
|
|
34
34
|
"eslint-config-prettier": "8.5.0",
|
|
35
35
|
"eslint-plugin-cypress": "2.12.1",
|
|
36
36
|
"eslint-plugin-svelte3": "4.0.0",
|
|
37
37
|
"husky": "8.0.1",
|
|
38
|
-
"lint-staged": "12.4.
|
|
38
|
+
"lint-staged": "12.4.2",
|
|
39
39
|
"prettier": "2.6.2",
|
|
40
40
|
"prettier-plugin-svelte": "2.7.0",
|
|
41
41
|
"semantic-release": "19.0.2",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"svelte-preprocess": "4.10.6",
|
|
45
45
|
"svelte2tsx": "0.5.10",
|
|
46
46
|
"tslib": "2.4.0",
|
|
47
|
-
"typescript": "4.
|
|
47
|
+
"typescript": "4.7.2"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"svelte": "^3.39.0"
|
|
@@ -56,4 +56,4 @@
|
|
|
56
56
|
".": "./index.js"
|
|
57
57
|
},
|
|
58
58
|
"svelte": "./index.js"
|
|
59
|
-
}
|
|
59
|
+
}
|