lintpage 0.5.2 → 0.5.3
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/README.md +15 -2
- package/dist/cli.cjs +10 -10
- package/dist/cli.mjs +3 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -123,6 +123,19 @@ Exit codes:
|
|
|
123
123
|
- `1` — critical issues found (or warnings with `--fail-on-warning`)
|
|
124
124
|
- `2` — runtime error
|
|
125
125
|
|
|
126
|
+
## Upgrading from 0.5.2
|
|
127
|
+
|
|
128
|
+
- `tracking` reports a page with no visible analytics as INFO instead of
|
|
129
|
+
WARNING: analytics loaded from a JavaScript bundle leave no trace in the
|
|
130
|
+
HTML, so their absence cannot be shown. An analytics host named in a
|
|
131
|
+
`preconnect`, `dns-prefetch` or `preload` link, or in the
|
|
132
|
+
Content-Security-Policy, now counts as found. With `--fail-on-warning`, a
|
|
133
|
+
page that failed only on this rule now passes; to keep the warning, set
|
|
134
|
+
`"tracking": { "enabled": true, "severity": "WARNING" }` under `rules` in
|
|
135
|
+
your config.
|
|
136
|
+
- `meta-render-blocking` no longer counts a `<script nomodule>`, such as the
|
|
137
|
+
Next.js polyfills, as blocking: browsers that run modules never load it.
|
|
138
|
+
|
|
126
139
|
## Upgrading from 0.5.1
|
|
127
140
|
|
|
128
141
|
- A page that redirects to another host now fails with `redirected-off-site`
|
|
@@ -161,11 +174,11 @@ LintPage checks **60 rules** out of the box across five categories:
|
|
|
161
174
|
| `x-robots-tag` | CRITICAL | X-Robots-Tag HTTP header noindex/nofollow |
|
|
162
175
|
| `robots-txt-check` | WARNING | robots.txt presence and validity |
|
|
163
176
|
| `sitemap-presence` | WARNING | sitemap.xml presence and validity |
|
|
164
|
-
| `tracking` | WARNING | Google Analytics, GTM, or Facebook Pixel |
|
|
165
177
|
| `mixed-content` | WARNING | HTTP resources loaded on HTTPS page |
|
|
166
178
|
| `https-links` | WARNING | Internal links use HTTPS instead of HTTP |
|
|
167
179
|
| `cors-policy` | WARNING | Overly permissive CORS configuration |
|
|
168
180
|
| `security-headers` | INFO | CSP, HSTS, X-Content-Type-Options, Permissions-Policy |
|
|
181
|
+
| `tracking` | INFO | Analytics in scripts, resource hints or the CSP (bundled analytics cannot be seen) |
|
|
169
182
|
|
|
170
183
|
### SEO
|
|
171
184
|
|
|
@@ -216,7 +229,7 @@ LintPage checks **60 rules** out of the box across five categories:
|
|
|
216
229
|
| Rule | Severity | What it checks |
|
|
217
230
|
| ---------------------- | -------- | --------------------------------------------------------- |
|
|
218
231
|
| `ttfb` | WARNING | Server response time (Time to First Byte) |
|
|
219
|
-
| `meta-render-blocking` | WARNING | Render-blocking stylesheets and synchronous scripts
|
|
232
|
+
| `meta-render-blocking` | WARNING | Render-blocking stylesheets and synchronous scripts (`nomodule` ones excepted) |
|
|
220
233
|
| `lazy-load-lcp` | WARNING | Above-the-fold images not lazy-loaded |
|
|
221
234
|
| `performance` | INFO | Lazy loading, inline styles, and script count |
|
|
222
235
|
| `image-dimensions` | INFO | Images have explicit width/height to prevent layout shift |
|