Comparing version 0.1.0 to 0.2.0
@@ -50,3 +50,3 @@ /** | ||
additionalStylesheets?: string[] | ||
preload?: 'body' | 'media' | 'swap' | 'js' | 'js-lazy' | ||
preload?: 'body' | 'media' | 'swap' | 'swap-high' | 'js' | 'js-lazy' | ||
noscriptFallback?: boolean | ||
@@ -53,0 +53,0 @@ inlineFonts?: boolean |
{ | ||
"name": "beasties", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Inline critical CSS and lazy-load the rest.", | ||
@@ -44,2 +44,5 @@ "author": "The Chromium Authors", | ||
], | ||
"engines": { | ||
"node": ">=14.0.0" | ||
}, | ||
"dependencies": { | ||
@@ -50,5 +53,5 @@ "css-select": "^5.1.0", | ||
"domhandler": "^5.0.3", | ||
"htmlparser2": "^9.0.0", | ||
"htmlparser2": "^9.1.0", | ||
"picocolors": "^1.1.1", | ||
"postcss": "^8.4.47", | ||
"postcss": "^8.4.49", | ||
"postcss-media-query-parser": "^0.2.3" | ||
@@ -62,6 +65,6 @@ }, | ||
"scripts": { | ||
"build": "unbuild && cp src/index.d.ts dist/index.d.ts", | ||
"build:stub": "unbuild --stub && cp src/index.d.ts dist/index.d.ts", | ||
"build": "unbuild && node -e \"require('fs/promises').cp('src/index.d.ts', 'dist/index.d.ts')\"", | ||
"build:stub": "unbuild --stub && node -e \"require('fs/promises').cp('src/index.d.ts', 'dist/index.d.ts')\"", | ||
"docs": "documentation readme src -q --no-markdown-toc -a public -s Usage --sort-order alpha" | ||
} | ||
} |
@@ -74,3 +74,2 @@ <p align="center"> | ||
+ preload: 'swap', | ||
+ includeSelectors: [/^\.btn/, '.banner'], | ||
+ }) | ||
@@ -120,3 +119,2 @@ ] | ||
- `logger` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** Provide a custom logger interface [logger](#logger) | ||
- `includeSelectors` **[RegExp](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp)** | **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** Provide a list of selectors that should be included in the critical CSS. Accepts both RegExp and string. | ||
@@ -123,0 +121,0 @@ ### Include/exclude rules |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
92228
1995
0
269
Updatedhtmlparser2@^9.1.0
Updatedpostcss@^8.4.49