gscan 4.35.0 → 4.36.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 +39 -60
- package/package.json +3 -3
package/lib/specs/canary.js
CHANGED
|
@@ -33,7 +33,7 @@ let rules = {
|
|
|
33
33
|
},
|
|
34
34
|
'GS090-NO-AUTHOR-HELPER-IN-POST-CONTEXT': {
|
|
35
35
|
level: 'error',
|
|
36
|
-
fatal:
|
|
36
|
+
fatal: false,
|
|
37
37
|
rule: 'Replace <code>{{author}}</code> with <code>{{authors}}</code>',
|
|
38
38
|
details: oneLineTrim`The <code>{{author}}</code> helper was removed in favor of <code>{{<authors>}}</code><br>
|
|
39
39
|
${multiAuthorDesc}<br>
|
|
@@ -42,7 +42,7 @@ let rules = {
|
|
|
42
42
|
},
|
|
43
43
|
'GS090-NO-PRODUCTS-HELPER': {
|
|
44
44
|
level: 'error',
|
|
45
|
-
fatal:
|
|
45
|
+
fatal: false,
|
|
46
46
|
rule: 'Replace <code>{{products}}</code> with <code>{{tiers}}</code>',
|
|
47
47
|
details: oneLineTrim`The <code>{{products}}</code> helper was removed in favor of <code>{{tiers}}</code><br>
|
|
48
48
|
${tierDesc}<br>
|
|
@@ -51,7 +51,7 @@ let rules = {
|
|
|
51
51
|
},
|
|
52
52
|
'GS090-NO-PRODUCT-DATA-HELPER': {
|
|
53
53
|
level: 'error',
|
|
54
|
-
fatal:
|
|
54
|
+
fatal: false,
|
|
55
55
|
rule: 'Replace <code>{{@product}}</code> with <code>{{#get "tiers"}}</code>',
|
|
56
56
|
details: oneLineTrim`The <code>{{@product}}</code> data helper was removed in favor of <code>{{#get "tiers"}}</code><br>
|
|
57
57
|
${tierDesc}<br>
|
|
@@ -60,7 +60,7 @@ let rules = {
|
|
|
60
60
|
},
|
|
61
61
|
'GS090-NO-PRODUCTS-DATA-HELPER': {
|
|
62
62
|
level: 'error',
|
|
63
|
-
fatal:
|
|
63
|
+
fatal: false,
|
|
64
64
|
rule: 'Replace <code>{{@products}}</code> with <code>{{#get "tiers"}}</code>',
|
|
65
65
|
details: oneLineTrim`The <code>{{@products}}</code> data helper was removed in favor of <code>{{#get "tiers"}}</code><br>
|
|
66
66
|
${tierDesc}<br>
|
|
@@ -77,7 +77,7 @@ let rules = {
|
|
|
77
77
|
},
|
|
78
78
|
'GS090-NO-PRICE-DATA-CURRENCY-GLOBAL': {
|
|
79
79
|
level: 'error',
|
|
80
|
-
fatal:
|
|
80
|
+
fatal: false,
|
|
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>
|
|
@@ -85,7 +85,7 @@ let rules = {
|
|
|
85
85
|
},
|
|
86
86
|
'GS090-NO-PRICE-DATA-CURRENCY-CONTEXT': {
|
|
87
87
|
level: 'error',
|
|
88
|
-
fatal:
|
|
88
|
+
fatal: false,
|
|
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>
|
|
@@ -93,14 +93,14 @@ let rules = {
|
|
|
93
93
|
},
|
|
94
94
|
'GS090-NO-PRICE-DATA-MONTHLY-YEARLY': {
|
|
95
95
|
level: 'error',
|
|
96
|
-
fatal:
|
|
96
|
+
fatal: false,
|
|
97
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
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': {
|
|
102
102
|
level: 'error',
|
|
103
|
-
fatal:
|
|
103
|
+
fatal: false,
|
|
104
104
|
rule: 'Remove usage of <code>{{monthly_price.*}}</code> and <code>{{yearly_price.*}}.</code>',
|
|
105
105
|
details: oneLineTrim`The usage of <code>{{monthly_price.*}}</code> and <code>{{yearly_price.*}} is no longer supported.</code><br>
|
|
106
106
|
${tierDesc}<br>
|
|
@@ -117,19 +117,9 @@ let rules = {
|
|
|
117
117
|
helper: '{{#get "tiers"}}'
|
|
118
118
|
},
|
|
119
119
|
|
|
120
|
-
// Updated v1 & v2 rules
|
|
121
|
-
'GS001-DEPR-BLOG': {
|
|
122
|
-
level: 'error',
|
|
123
|
-
fatal: true,
|
|
124
|
-
rule: 'Replace <code>{{@blog}}</code> with <code>{{@site}}</code>',
|
|
125
|
-
details: oneLineTrim`The usage of <code>{{@blog}}</code> is no longer supported and should be replaced with<code>{{@site}}</code>.<br>
|
|
126
|
-
Find more information about the <code>@site</code> property <a href="${docsBaseUrl}helpers/site/" target=_blank>here</a>.`,
|
|
127
|
-
regex: /{{\s*?@blog\.[a-zA-Z0-9_]+\s*?}}/g,
|
|
128
|
-
helper: '{{@blog}}'
|
|
129
|
-
},
|
|
130
120
|
'GS001-DEPR-AUTH-ID': {
|
|
131
121
|
level: 'error',
|
|
132
|
-
fatal:
|
|
122
|
+
fatal: false,
|
|
133
123
|
rule: 'Replace <code>{{author.id}}</code> with <code>{{primary_author.id}}</code> or <code>{{authors.[#].id}}</code>',
|
|
134
124
|
details: oneLineTrim`The usage of <code>{{author.id}}</code> is no longer supported and should be replaced with either <code>{{primary_author.id}}</code>
|
|
135
125
|
or <code>{{authors.[#].id}}</code>.<br>
|
|
@@ -140,7 +130,7 @@ let rules = {
|
|
|
140
130
|
},
|
|
141
131
|
'GS001-DEPR-AUTH-SLUG': {
|
|
142
132
|
level: 'error',
|
|
143
|
-
fatal:
|
|
133
|
+
fatal: false,
|
|
144
134
|
rule: 'Replace <code>{{author.slug}}</code> with <code>{{primary_author.slug}}</code> or <code>{{authors.[#].slug}}</code>',
|
|
145
135
|
details: oneLineTrim`The usage of <code>{{author.slug}}</code> is no longer supported and should be replaced with either <code>{{primary_author.slug}}</code>
|
|
146
136
|
or <code>{{authors.[#].slug}}</code>.<br>
|
|
@@ -151,7 +141,7 @@ let rules = {
|
|
|
151
141
|
},
|
|
152
142
|
'GS001-DEPR-AUTH-MAIL': {
|
|
153
143
|
level: 'error',
|
|
154
|
-
fatal:
|
|
144
|
+
fatal: false,
|
|
155
145
|
rule: 'Replace <code>{{author.email}}</code> with <code>{{primary_author.email}}</code> or <code>{{authors.[#].email}}</code>',
|
|
156
146
|
details: oneLineTrim`The usage of <code>{{author.email}}</code> is no longer supported and should be replaced with either <code>{{primary_author.email}}</code>
|
|
157
147
|
or <code>{{authors.[#].email}}</code>.<br>
|
|
@@ -162,7 +152,7 @@ let rules = {
|
|
|
162
152
|
},
|
|
163
153
|
'GS001-DEPR-AUTH-MT': {
|
|
164
154
|
level: 'error',
|
|
165
|
-
fatal:
|
|
155
|
+
fatal: false,
|
|
166
156
|
rule: 'Replace <code>{{author.meta_title}}</code> with <code>{{primary_author.meta_title}}</code> or <code>{{authors.[#].meta_title}}</code>',
|
|
167
157
|
details: oneLineTrim`The usage of <code>{{author.meta_title}}</code> is no longer supported and should be replaced with either <code>{{primary_author.meta_title}}</code>
|
|
168
158
|
or <code>{{authors.[#].meta_title}}</code>.<br>
|
|
@@ -173,7 +163,7 @@ let rules = {
|
|
|
173
163
|
},
|
|
174
164
|
'GS001-DEPR-AUTH-MD': {
|
|
175
165
|
level: 'error',
|
|
176
|
-
fatal:
|
|
166
|
+
fatal: false,
|
|
177
167
|
rule: 'Replace <code>{{author.meta_description}}</code> with <code>{{primary_author.meta_description}}</code> or <code>{{authors.[#].meta_description}}</code>',
|
|
178
168
|
details: oneLineTrim`The usage of <code>{{author.meta_description}}</code> is no longer supported and should be replaced with either <code>{{primary_author.meta_description}}</code>
|
|
179
169
|
or <code>{{authors.[#].meta_description}}</code>.<br>
|
|
@@ -184,7 +174,7 @@ let rules = {
|
|
|
184
174
|
},
|
|
185
175
|
'GS001-DEPR-AUTH-NAME': {
|
|
186
176
|
level: 'error',
|
|
187
|
-
fatal:
|
|
177
|
+
fatal: false,
|
|
188
178
|
rule: 'Replace <code>{{author.name}}</code> with <code>{{primary_author.name}}</code> or <code>{{authors.[#].name}}</code>',
|
|
189
179
|
details: oneLineTrim`The usage of <code>{{author.name}}</code> is no longer supported and should be replaced with either <code>{{primary_author.name}}</code>
|
|
190
180
|
or <code>{{authors.[#].name}}</code>.<br>
|
|
@@ -195,7 +185,7 @@ let rules = {
|
|
|
195
185
|
},
|
|
196
186
|
'GS001-DEPR-AUTH-BIO': {
|
|
197
187
|
level: 'error',
|
|
198
|
-
fatal:
|
|
188
|
+
fatal: false,
|
|
199
189
|
rule: 'Replace <code>{{author.bio}}</code> with <code>{{primary_author.bio}}</code> or <code>{{authors.[#].bio}}</code>',
|
|
200
190
|
details: oneLineTrim`The usage of <code>{{author.bio}}</code> is no longer supported and should be replaced with either <code>{{primary_author.bio}}</code>
|
|
201
191
|
or <code>{{authors.[#].bio}}</code>.<br>
|
|
@@ -206,7 +196,7 @@ let rules = {
|
|
|
206
196
|
},
|
|
207
197
|
'GS001-DEPR-AUTH-LOC': {
|
|
208
198
|
level: 'error',
|
|
209
|
-
fatal:
|
|
199
|
+
fatal: false,
|
|
210
200
|
rule: 'Replace <code>{{author.location}}</code> with <code>{{primary_author.location}}</code> or <code>{{authors.[#].location}}</code>',
|
|
211
201
|
details: oneLineTrim`The usage of <code>{{author.location}}</code> is no longer supported and should be replaced with either <code>{{primary_author.location}}</code>
|
|
212
202
|
or <code>{{authors.[#].location}}</code>.<br>
|
|
@@ -217,7 +207,7 @@ let rules = {
|
|
|
217
207
|
},
|
|
218
208
|
'GS001-DEPR-AUTH-WEB': {
|
|
219
209
|
level: 'error',
|
|
220
|
-
fatal:
|
|
210
|
+
fatal: false,
|
|
221
211
|
rule: 'Replace <code>{{author.website}}</code> with <code>{{primary_author.website}}</code> or <code>{{authors.[#].website}}</code>',
|
|
222
212
|
details: oneLineTrim`The usage of <code>{{author.website}}</code> is no longer supported and should be replaced with either <code>{{primary_author.website}}</code>
|
|
223
213
|
or <code>{{authors.[#].website}}</code>.<br>
|
|
@@ -228,7 +218,7 @@ let rules = {
|
|
|
228
218
|
},
|
|
229
219
|
'GS001-DEPR-AUTH-TW': {
|
|
230
220
|
level: 'error',
|
|
231
|
-
fatal:
|
|
221
|
+
fatal: false,
|
|
232
222
|
rule: 'Replace <code>{{author.twitter}}</code> with <code>{{primary_author.twitter}}</code> or <code>{{authors.[#].twitter}}</code>',
|
|
233
223
|
details: oneLineTrim`The usage of <code>{{author.twitter}}</code> is no longer supported and should be replaced with either <code>{{primary_author.twitter}}</code>
|
|
234
224
|
or <code>{{authors.[#].twitter}}</code>.<br>
|
|
@@ -239,7 +229,7 @@ let rules = {
|
|
|
239
229
|
},
|
|
240
230
|
'GS001-DEPR-AUTH-FB': {
|
|
241
231
|
level: 'error',
|
|
242
|
-
fatal:
|
|
232
|
+
fatal: false,
|
|
243
233
|
rule: 'Replace <code>{{author.facebook}}</code> with <code>{{primary_author.facebook}}</code> or <code>{{authors.[#].facebook}}</code>',
|
|
244
234
|
details: oneLineTrim`The usage of <code>{{author.facebook}}</code> is no longer supported and should be replaced with either <code>{{primary_author.facebook}}</code>
|
|
245
235
|
or <code>{{authors.[#].facebook}}</code>.<br>
|
|
@@ -250,7 +240,7 @@ let rules = {
|
|
|
250
240
|
},
|
|
251
241
|
'GS001-DEPR-AUTH-PIMG': {
|
|
252
242
|
level: 'error',
|
|
253
|
-
fatal:
|
|
243
|
+
fatal: false,
|
|
254
244
|
rule: 'Replace <code>{{author.profile_image}}</code> with <code>{{primary_author.profile_image}}</code> or <code>{{authors.[#].profile_image}}</code>',
|
|
255
245
|
details: oneLineTrim`The usage of <code>{{author.profile_image}}</code> is no longer supported and should be replaced with either <code>{{primary_author.profile_image}}</code>
|
|
256
246
|
or <code>{{authors.[#].profile_image}}</code>.<br>
|
|
@@ -261,7 +251,7 @@ let rules = {
|
|
|
261
251
|
},
|
|
262
252
|
'GS001-DEPR-AUTH-CIMG': {
|
|
263
253
|
level: 'error',
|
|
264
|
-
fatal:
|
|
254
|
+
fatal: false,
|
|
265
255
|
rule: 'Replace <code>{{author.cover_image}}</code> with <code>{{primary_author.cover_image}}</code> or <code>{{authors.[#].cover_image}}</code>',
|
|
266
256
|
details: oneLineTrim`The usage of <code>{{author.cover_image}}</code> is no longer supported and should be replaced with either <code>{{primary_author.cover_image}}</code>
|
|
267
257
|
or <code>{{authors.[#].cover_image}}</code>.<br>
|
|
@@ -272,7 +262,7 @@ let rules = {
|
|
|
272
262
|
},
|
|
273
263
|
'GS001-DEPR-AUTH-URL': {
|
|
274
264
|
level: 'error',
|
|
275
|
-
fatal:
|
|
265
|
+
fatal: false,
|
|
276
266
|
rule: 'Replace <code>{{author.url}}</code> with <code>{{primary_author.url}}</code> or <code>{{authors.[#].url}}</code>',
|
|
277
267
|
details: oneLineTrim`The usage of <code>{{author.url}}</code> is no longer supported and should be replaced with either <code>{{primary_author.url}}</code>
|
|
278
268
|
or <code>{{authors.[#].url}}</code>.<br>
|
|
@@ -469,7 +459,7 @@ let rules = {
|
|
|
469
459
|
},
|
|
470
460
|
'GS001-DEPR-IUA': {
|
|
471
461
|
level: 'error',
|
|
472
|
-
fatal:
|
|
462
|
+
fatal: false,
|
|
473
463
|
rule: 'Replace <code>{{img_url author.*}}</code> with <code>{{img_url primary_author.*}}</code> or <code>.{img_url author.[#].*}}</code>',
|
|
474
464
|
details: oneLineTrim`The usage of <code>{{img_url author.*}}</code> is no longer supported and should be replaced with either <code>{{img_url primary_author.*}}</code>
|
|
475
465
|
or <code>{{img_url author.[#].*}}</code>.<br>
|
|
@@ -480,7 +470,7 @@ let rules = {
|
|
|
480
470
|
},
|
|
481
471
|
'GS001-DEPR-AC': {
|
|
482
472
|
level: 'error',
|
|
483
|
-
fatal:
|
|
473
|
+
fatal: false,
|
|
484
474
|
rule: 'Replace <code>{{author.cover}}</code> with <code>{{primary_author.cover_image}}</code>',
|
|
485
475
|
details: oneLineTrim`The <code>cover</code> attribute was replaced with <code>cover_image</code>.<br>
|
|
486
476
|
Instead of <code>{{author.cover}}</code> you need to use
|
|
@@ -491,7 +481,7 @@ let rules = {
|
|
|
491
481
|
},
|
|
492
482
|
'GS001-DEPR-AIMG': {
|
|
493
483
|
level: 'error',
|
|
494
|
-
fatal:
|
|
484
|
+
fatal: false,
|
|
495
485
|
rule: 'Replace <code>{{author.image}}</code> with <code>{{primary_author.profile_image}}</code> or <code>{{authors.[#].profile_image}}</code>',
|
|
496
486
|
details: oneLineTrim`The <code>image</code> attribute was replaced with <code>profile_image</code>.<br>
|
|
497
487
|
Instead of <code>{{author.image}}</code>, you need to use
|
|
@@ -502,7 +492,7 @@ let rules = {
|
|
|
502
492
|
},
|
|
503
493
|
'GS001-DEPR-PAC': {
|
|
504
494
|
level: 'error',
|
|
505
|
-
fatal:
|
|
495
|
+
fatal: false,
|
|
506
496
|
rule: 'Replace <code>{{post.author.cover}}</code> with <code>{{post.primary_author.cover_image}}</code> or <code>{{post.authors.[#].cover_image}}</code>',
|
|
507
497
|
details: oneLineTrim`The <code>cover</code> attribute was replaced with <code>cover_image</code>.<br>
|
|
508
498
|
Instead of <code>{{post.author.cover}}</code>, you need to use
|
|
@@ -513,7 +503,7 @@ let rules = {
|
|
|
513
503
|
},
|
|
514
504
|
'GS001-DEPR-AUTH-INCL': {
|
|
515
505
|
level: 'error',
|
|
516
|
-
fatal:
|
|
506
|
+
fatal: false,
|
|
517
507
|
rule: `Replace <code>include="author"</code> with <code>include="authors"</code>`,
|
|
518
508
|
details: oneLineTrim`The usage of <code>{{#get "posts" include="author"}}</code> is no longer supported and should be replaced with <code>{{#get "posts" include="authors"}}</code>.<br>
|
|
519
509
|
Find more information about the <code>{{get}}</code> helper <a href="${docsBaseUrl}helpers/get/" target=_blank>here</a>.`,
|
|
@@ -524,7 +514,7 @@ let rules = {
|
|
|
524
514
|
},
|
|
525
515
|
'GS001-DEPR-AUTH-FIELD': {
|
|
526
516
|
level: 'error',
|
|
527
|
-
fatal:
|
|
517
|
+
fatal: false,
|
|
528
518
|
rule: `<code>fields="author"</code> should be replaced with <code>fields="authors"</code>`,
|
|
529
519
|
details: oneLineTrim`The usage of <code>{{#get "posts" fields="author"}}</code> is no longer supported and should be replaced with
|
|
530
520
|
<code>{{#get "posts" fields="primary_author"}}</code> or <code>{{#get "posts" fields="authors.[#]"}}</code>.<br>
|
|
@@ -536,7 +526,7 @@ let rules = {
|
|
|
536
526
|
},
|
|
537
527
|
'GS001-DEPR-AUTH-FILT': {
|
|
538
528
|
level: 'error',
|
|
539
|
-
fatal:
|
|
529
|
+
fatal: false,
|
|
540
530
|
rule: `<code>filter="author:[...]"</code> should be replaced with <code>filter="authors:[...]"</code>`,
|
|
541
531
|
details: oneLineTrim`The usage of <code>{{#get "posts" filter="author:[...]"}}</code> is no longer supported and should be replaced with <code>{{#get "posts" filter="authors:[...]"}}</code>.<br>
|
|
542
532
|
Find more information about the <code>{{get}}</code> helper <a href="${docsBaseUrl}helpers/get/" target=_blank>here</a>.`,
|
|
@@ -547,7 +537,7 @@ let rules = {
|
|
|
547
537
|
},
|
|
548
538
|
'GS001-DEPR-AUTHBL': {
|
|
549
539
|
level: 'error',
|
|
550
|
-
fatal:
|
|
540
|
+
fatal: false,
|
|
551
541
|
rule: 'The <code>{{#author}}</code> block helper should be replaced with <code>{{#primary_author}}</code> or <code>{{#foreach authors}}...{{/foreach}}</code>',
|
|
552
542
|
details: oneLineTrim`The usage of <code>{{#author}}</code> block helper outside of <code>author.hbs</code> is no longer supported and
|
|
553
543
|
should be replaced with <code>{{#primary_author}}</code> or <code>{{#foreach authors}}...{{/foreach}}</code>.<br>
|
|
@@ -559,7 +549,7 @@ let rules = {
|
|
|
559
549
|
},
|
|
560
550
|
'GS001-DEPR-PAIMG': {
|
|
561
551
|
level: 'error',
|
|
562
|
-
fatal:
|
|
552
|
+
fatal: false,
|
|
563
553
|
rule: 'Replace <code>{{post.author.image}}</code> with <code>{{post.primary_author.profile_image}}</code> or <code>{{post.authors.[#].profile_image}}</code>',
|
|
564
554
|
details: oneLineTrim`The <code>image</code> attribute was replaced with <code>profile_image</code>.<br>
|
|
565
555
|
Instead of <code>{{post.author.image}}</code>, you need to use
|
|
@@ -570,7 +560,7 @@ let rules = {
|
|
|
570
560
|
},
|
|
571
561
|
'GS001-DEPR-CON-AUTH': {
|
|
572
562
|
level: 'error',
|
|
573
|
-
fatal:
|
|
563
|
+
fatal: false,
|
|
574
564
|
rule: `The <code>{{#if author.*}}</code> block helper should be replaced with <code>{{#if primary_author.*}}</code>
|
|
575
565
|
or <code>{{#if authors.[#].*}}</code>`,
|
|
576
566
|
details: oneLineTrim`The usage of <code>{{#if author.*}}</code> is no longer supported and should be replaced with <code>{{#if primary_author.*}}</code>
|
|
@@ -582,7 +572,7 @@ let rules = {
|
|
|
582
572
|
},
|
|
583
573
|
'GS001-DEPR-CON-PAUTH': {
|
|
584
574
|
level: 'error',
|
|
585
|
-
fatal:
|
|
575
|
+
fatal: false,
|
|
586
576
|
rule: `The <code>{{#if post.author.*}}</code> block helper should be replaced with <code>{{#if post.primary_author.*}}</code>
|
|
587
577
|
or <code>{{#if post.authors.[#].*}}</code>`,
|
|
588
578
|
details: oneLineTrim`The usage of <code>{{#if post.author.*}}</code> is no longer supported and should be replaced with <code>{{#if post.primary_author.*}}</code>
|
|
@@ -594,7 +584,7 @@ let rules = {
|
|
|
594
584
|
},
|
|
595
585
|
'GS001-DEPR-CON-AC': {
|
|
596
586
|
level: 'error',
|
|
597
|
-
fatal:
|
|
587
|
+
fatal: false,
|
|
598
588
|
rule: 'Replace <code>{{#if author.cover}}</code> with <code>{{#if primary_author.cover_image}}</code> or <code>{{#if authors.[#].cover_image}}</code>',
|
|
599
589
|
details: oneLineTrim`The <code>cover</code> attribute was replaced with <code>cover_image</code>.<br>
|
|
600
590
|
Instead of <code>{{#if author.cover}}</code>, you need to use
|
|
@@ -605,7 +595,7 @@ let rules = {
|
|
|
605
595
|
},
|
|
606
596
|
'GS001-DEPR-CON-AIMG': {
|
|
607
597
|
level: 'error',
|
|
608
|
-
fatal:
|
|
598
|
+
fatal: false,
|
|
609
599
|
rule: 'Replace <code>{{#if author.image}}</code> with <code>{{#if primary_author.profile_image}}</code> or <code>{{#if authors.[#].profile_image}}</code>',
|
|
610
600
|
details: oneLineTrim`The <code>image</code> attribute was replaced with <code>profile_image</code>.<br>
|
|
611
601
|
Instead of <code>{{#if author.image}}</code>, you need to use
|
|
@@ -616,7 +606,7 @@ let rules = {
|
|
|
616
606
|
},
|
|
617
607
|
'GS001-DEPR-CON-PAC': {
|
|
618
608
|
level: 'error',
|
|
619
|
-
fatal:
|
|
609
|
+
fatal: false,
|
|
620
610
|
rule: 'Replace <code>{{#if post.author.cover}}</code> with <code>{{#if post.primary_author.cover_image}}</code> or <code>{{#if post.authors.[#].cover_image}}</code>',
|
|
621
611
|
details: oneLineTrim`The <code>cover</code> attribute was replaced with <code>cover_image</code>.<br>
|
|
622
612
|
Instead of <code>{{#if post.author.cover}}</code>, you need to use
|
|
@@ -627,7 +617,7 @@ let rules = {
|
|
|
627
617
|
},
|
|
628
618
|
'GS001-DEPR-CON-PAIMG': {
|
|
629
619
|
level: 'error',
|
|
630
|
-
fatal:
|
|
620
|
+
fatal: false,
|
|
631
621
|
rule: 'Replace <code>{{#if post.author.image}}</code> with <code>{{#if post.primary_author.profile_image}}</code> or <code>{{#if post.authors.[#].profile_image}}</code>',
|
|
632
622
|
details: oneLineTrim`The <code>image</code> attribute was replaced with <code>profile_image</code>.<br>
|
|
633
623
|
Instead of <code>{{#if post.author.image}}</code>, you need to use
|
|
@@ -684,7 +674,6 @@ let rules = {
|
|
|
684
674
|
},
|
|
685
675
|
'GS001-DEPR-LANG': {
|
|
686
676
|
level: 'error',
|
|
687
|
-
fatal: true,
|
|
688
677
|
rule: 'Replace <code>{{lang}}</code> with <code>{{@site.locale}}</code>',
|
|
689
678
|
details: oneLineTrim`The usage of <code>{{lang}}</code> is no longer supported and should be replaced with <code>{{@site.locale}}</code>.<br>
|
|
690
679
|
Find more information about the <code>@site.locale</code> property <a href="${docsBaseUrl}helpers/site/" target=_blank>here</a>.`,
|
|
@@ -702,26 +691,16 @@ let rules = {
|
|
|
702
691
|
},
|
|
703
692
|
'GS001-DEPR-USER-GET': {
|
|
704
693
|
level: 'error',
|
|
705
|
-
fatal:
|
|
694
|
+
fatal: false,
|
|
706
695
|
rule: `Replace <code>{{#get "users"}}</code> with <code>{{#get "authors"}}</code>`,
|
|
707
696
|
details: oneLineTrim`The usage of <code>{{#get "users"}}</code> is no longer supported and should be replaced with <code>{{#get "authors"}}</code>.<br>
|
|
708
697
|
Find more information about the <code>{{get}}</code> helper <a href="${docsBaseUrl}helpers/get/" target=_blank>here</a>.`,
|
|
709
698
|
regex: /{{\s*?#get ("|')\s*users("|')\s*/g,
|
|
710
699
|
helper: '{{#get "users"}}'
|
|
711
700
|
},
|
|
712
|
-
'GS001-DEPR-ESC': {
|
|
713
|
-
level: 'error',
|
|
714
|
-
fatal: true,
|
|
715
|
-
rule: 'Replace <code>{{error.code}}</code> with <code>{{error.statusCode}}</code>',
|
|
716
|
-
details: oneLineTrim`The usage of <code>{{error.code}}</code> is no longer supported and should be replaced with <code>{{error.statusCode}}</code>.<br>
|
|
717
|
-
When in <code>error</code> context, e. g. in the <code>error.hbs</code> template, replace <code>{{code}}</code> with <code>{{statusCode}}</code>.<br>
|
|
718
|
-
Find more information about the <code>error.hbs</code> template <a href="${docsBaseUrl}structure/#errorhbs" target=_blank>here</a>.`,
|
|
719
|
-
regex: /{{\s*?(?:error\.)?(code)\s*?}}/g,
|
|
720
|
-
helper: '{{error.code}}'
|
|
721
|
-
},
|
|
722
701
|
'GS001-DEPR-CURR-SYM': {
|
|
723
702
|
level: 'error',
|
|
724
|
-
fatal:
|
|
703
|
+
fatal: false,
|
|
725
704
|
rule: 'Replace <code>{{[#].currency_symbol}}</code> with <code>{{price currency=currency}}</code>.',
|
|
726
705
|
details: oneLineTrim`The <code>currency_symbol</code> attribute is no longer supported in favour of passing the currency to updated <code>{{price}}</code> helper.<br>
|
|
727
706
|
Find more information about the updated <code>{{price}}</code> helper <a href="${docsBaseUrl}helpers/price/" target=_blank>here</a>.`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gscan",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.36.0",
|
|
4
4
|
"description": "Scans Ghost themes looking for errors, deprecations, features and compatibility",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ghost",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"url": "git@github.com:TryGhost/gscan.git"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
|
-
"node": "^14.
|
|
17
|
+
"node": "^14.18.0 || ^16.13.0 || ^18.12.1"
|
|
18
18
|
},
|
|
19
19
|
"bugs": {
|
|
20
20
|
"url": "https://github.com/TryGhost/gscan/issues"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"gscan": "./bin/cli.js"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@sentry/node": "7.
|
|
43
|
+
"@sentry/node": "7.29.0",
|
|
44
44
|
"@tryghost/config": "0.2.13",
|
|
45
45
|
"@tryghost/debug": "0.1.21",
|
|
46
46
|
"@tryghost/errors": "1.2.20",
|