gscan 4.31.0 → 4.32.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/lib/specs/canary.js +7 -7
- package/package.json +7 -7
package/lib/specs/canary.js
CHANGED
|
@@ -15,7 +15,7 @@ const authorHelperDocs = `Find more information about the <code>{{authors}}</cod
|
|
|
15
15
|
const tierDesc = `Ghost now supports multiple tiers and subscriptions. All product and price related helpers have been reworked to account for this.`;
|
|
16
16
|
|
|
17
17
|
// assign new or overwrite existing knownHelpers, templates, or rules here:
|
|
18
|
-
let knownHelpers = [];
|
|
18
|
+
let knownHelpers = ['total_members', 'total_paid_members'];
|
|
19
19
|
let templates = [];
|
|
20
20
|
let rules = {
|
|
21
21
|
// New rules
|
|
@@ -27,8 +27,8 @@ let rules = {
|
|
|
27
27
|
},
|
|
28
28
|
'GS010-PJ-GHOST-CARD-ASSETS-NOT-PRESENT': {
|
|
29
29
|
level: 'warning',
|
|
30
|
-
rule: '<code>"card_assets"</code> will default
|
|
31
|
-
details: oneLineTrim`The <code>"card_assets"</code> property is enabled by default if not explicitly set.<br>
|
|
30
|
+
rule: '<code>"card_assets"</code> will now be included by default, including bookmark and gallery cards.',
|
|
31
|
+
details: oneLineTrim`The <code>"card_assets"</code> property is enabled by default and set to <code>true</code> (include all) if not explicitly set.<br>
|
|
32
32
|
Find more information about the <code>card_assets</code> property <a href="${docsBaseUrl}content/#editor-cards" target=_blank>here</a>.`
|
|
33
33
|
},
|
|
34
34
|
'GS090-NO-AUTHOR-HELPER-IN-POST-CONTEXT': {
|
|
@@ -81,7 +81,7 @@ let rules = {
|
|
|
81
81
|
rule: 'Replace <code>{{@price.currency}}</code> with <code>{{#get "tiers"}}</code> and <code>{{currency}}</code> or <code>{{#foreach @member.subscriptions}}</code> and <code>{{plan.currency}}</code>',
|
|
82
82
|
details: oneLineTrim`There is no longer a global <code>@price</code> object. You need to use either <code>{{#get "tiers"}}</code> to fetch all tiers and use the <code>{{currency}}</code> property of a tier<br>
|
|
83
83
|
or use <code>{{#foreach @member.subscriptions}}</code> to fetch an individual member's subscriptions, and use the <code>{{plan.currency}}</code> property from the subscription.<br>
|
|
84
|
-
Find more information about the <code>{{price}}</code> helper <a href="${docsBaseUrl}
|
|
84
|
+
Find more information about the <code>{{price}}</code> helper <a href="${docsBaseUrl}helpers/price/" target=_blank>here</a>.`
|
|
85
85
|
},
|
|
86
86
|
'GS090-NO-PRICE-DATA-CURRENCY-CONTEXT': {
|
|
87
87
|
level: 'error',
|
|
@@ -89,13 +89,13 @@ let rules = {
|
|
|
89
89
|
rule: 'Replace <code>{{@price.currency}}</code> with <code>{{currency}}</code> or <code>{{plan.currency}}</code>',
|
|
90
90
|
details: oneLineTrim`There is no longer a global <code>@price</code> object. Instead the <code>{{currency}}</code> property can be used inside <code>{{#get "tiers"}}</code><br>
|
|
91
91
|
or <code>{{plan.currency}}</code> can be used inside <code>{{#foreach @member.subscriptions}}</code><br>
|
|
92
|
-
Find more information about the <code>{{price}}</code> helper <a href="${docsBaseUrl}
|
|
92
|
+
Find more information about the <code>{{price}}</code> helper <a href="${docsBaseUrl}helpers/price/" target=_blank>here</a>.`
|
|
93
93
|
},
|
|
94
94
|
'GS090-NO-PRICE-DATA-MONTHLY-YEARLY': {
|
|
95
95
|
level: 'error',
|
|
96
96
|
fatal: true,
|
|
97
|
-
rule: 'Replace <code>{{@price.monthly}}</code> and <code>{{@price.yearly}}</code> with <code>{{
|
|
98
|
-
details: oneLineTrim`There is no longer a global <code>@price</code> object. You need to use <code>{{#get "tiers"}}</code> to fetch all the tiers and get access to the <code>{{monthly_price}}</code> or <code>{{yearly_price}}</code> for each tier<br>
|
|
97
|
+
rule: 'Replace <code>{{@price.monthly}}</code> and <code>{{@price.yearly}}</code> with <code>{{price monthly_price currency=currency}}</code> and <code>{{price yearly_price currency=currency}}</code> after fetching tier data with <code>{{#get "tiers"}}</code>',
|
|
98
|
+
details: oneLineTrim`There is no longer a global <code>@price</code> object. You need to use <code>{{#get "tiers"}}</code> to fetch all the tiers and get access to the <code>{{price monthly_price currency=currency}}</code> or <code>{{price yearly_price currency=currency}}</code> for each tier<br>
|
|
99
99
|
Find more information about the <code>{{price}}</code> helper <a href="${docsBaseUrl}helpers/price/" target=_blank>here</a>.`
|
|
100
100
|
},
|
|
101
101
|
'GS090-NO-TIER-PRICE-AS-OBJECT': {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gscan",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.32.0",
|
|
4
4
|
"description": "Scans Ghost themes looking for errors, deprecations, features and compatibility",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ghost",
|
|
@@ -34,19 +34,19 @@
|
|
|
34
34
|
"posttest": "yarn lint",
|
|
35
35
|
"coverage": "NODE_ENV=testing istanbul cover --dir test/coverage _mocha -- $(find test -name '*.test.js')",
|
|
36
36
|
"preship": "yarn test",
|
|
37
|
-
"ship": "STATUS=$(git status --porcelain); echo $STATUS; if [ -z \"$STATUS\" ]; then yarn publish && git push ${GHOST_UPSTREAM:-
|
|
37
|
+
"ship": "STATUS=$(git status --porcelain); echo $STATUS; if [ -z \"$STATUS\" ]; then yarn publish && git push ${GHOST_UPSTREAM:-origin} main --follow-tags; fi"
|
|
38
38
|
},
|
|
39
39
|
"bin": {
|
|
40
40
|
"gscan": "./bin/cli.js"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@sentry/node": "6.19.7",
|
|
44
|
-
"@tryghost/config": "0.2.
|
|
45
|
-
"@tryghost/debug": "0.1.
|
|
46
|
-
"@tryghost/errors": "1.2.
|
|
47
|
-
"@tryghost/logging": "2.2.
|
|
44
|
+
"@tryghost/config": "0.2.9",
|
|
45
|
+
"@tryghost/debug": "0.1.17",
|
|
46
|
+
"@tryghost/errors": "1.2.14",
|
|
47
|
+
"@tryghost/logging": "2.2.3",
|
|
48
48
|
"@tryghost/pretty-cli": "1.2.28",
|
|
49
|
-
"@tryghost/server": "0.1.
|
|
49
|
+
"@tryghost/server": "0.1.21",
|
|
50
50
|
"@tryghost/zip": "1.1.26",
|
|
51
51
|
"bluebird": "3.7.2",
|
|
52
52
|
"chalk": "4.1.2",
|