postcss-focus-visible
Advanced tools
Comparing version 7.1.0 to 8.0.0
# Changes to PostCSS Focus Visible | ||
### 8.0.0 (January 24, 2023) | ||
- Updated: Support for Node v14+ (major). | ||
- Fix: Do not throw when a selector is invalid, show a warning instead. | ||
### 7.1.0 (July 30, 2022) | ||
@@ -4,0 +9,0 @@ |
import type { PluginCreator } from 'postcss'; | ||
declare type pluginOptions = { | ||
/** postcss-focus-visible plugin options */ | ||
export type pluginOptions = { | ||
/** Preserve the original notation. default: true */ | ||
preserve?: boolean; | ||
/** The replacement class to be used in the polyfill. default: ".focus-visible" */ | ||
replaceWith?: string; | ||
/** Disable the selector prefix that is used to prevent a flash of incorrectly styled content. default: false */ | ||
disablePolyfillReadyClass?: boolean; | ||
@@ -6,0 +10,0 @@ }; |
{ | ||
"name": "postcss-focus-visible", | ||
"description": "Use the :focus-visible pseudo-selector in CSS", | ||
"version": "7.1.0", | ||
"version": "8.0.0", | ||
"contributors": [ | ||
@@ -22,3 +22,3 @@ { | ||
"engines": { | ||
"node": "^12 || ^14 || >=16" | ||
"node": "^14 || ^16 || >=18" | ||
}, | ||
@@ -45,10 +45,11 @@ "main": "dist/index.cjs", | ||
"peerDependencies": { | ||
"postcss": "^8.2" | ||
"postcss": "^8.4" | ||
}, | ||
"devDependencies": { | ||
"puppeteer": "^15.5.0" | ||
"puppeteer": "^19.5.2" | ||
}, | ||
"scripts": { | ||
"build": "rollup -c ../../rollup/default.js", | ||
"clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"", | ||
"prebuild": "npm run clean", | ||
"build": "rollup -c ../../rollup/default.mjs", | ||
"clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true }); fs.mkdirSync('./dist');\"", | ||
"docs": "node ../../.github/bin/generate-docs/install.mjs && node ../../.github/bin/generate-docs/readme.mjs", | ||
@@ -77,3 +78,2 @@ "lint": "npm run lint:eslint && npm run lint:package-json", | ||
"css", | ||
"css", | ||
"cursor", | ||
@@ -80,0 +80,0 @@ "focus", |
@@ -1,2 +0,2 @@ | ||
# PostCSS Focus Visible [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][postcss] | ||
# PostCSS Focus Visible [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][PostCSS] | ||
@@ -57,4 +57,9 @@ [<img alt="npm version" src="https://img.shields.io/npm/v/postcss-focus-visible.svg" height="20">][npm-url] [<img alt="CSS Standard Status" src="https://cssdb.org/images/badges/focus-visible-pseudo-class.svg" height="20">][css-url] [<img alt="Build Status" src="https://github.com/csstools/postcss-plugins/workflows/test/badge.svg" height="20">][cli-url] [<img alt="Discord" src="https://shields.io/badge/Discord-5865F2?logo=discord&logoColor=white">][discord] | ||
| [Node](INSTALL.md#node) | [PostCSS CLI](INSTALL.md#postcss-cli) | [Webpack](INSTALL.md#webpack) | [Create React App](INSTALL.md#create-react-app) | [Gulp](INSTALL.md#gulp) | [Grunt](INSTALL.md#grunt) | | ||
| --- | --- | --- | --- | --- | --- | | ||
- [Node](INSTALL.md#node) | ||
- [PostCSS CLI](INSTALL.md#postcss-cli) | ||
- [PostCSS Load Config](INSTALL.md#postcss-load-config) | ||
- [Webpack](INSTALL.md#webpack) | ||
- [Next.js](INSTALL.md#nextjs) | ||
- [Gulp](INSTALL.md#gulp) | ||
- [Grunt](INSTALL.md#grunt) | ||
@@ -139,8 +144,5 @@ ## Options | ||
[Gulp PostCSS]: https://github.com/postcss/gulp-postcss | ||
[Grunt PostCSS]: https://github.com/nDmitry/grunt-postcss | ||
[PostCSS]: https://github.com/postcss/postcss | ||
[PostCSS Loader]: https://github.com/postcss/postcss-loader | ||
[PostCSS Focus Visible]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-focus-visible | ||
[Selectors Level 4 specification]: https://www.w3.org/TR/selectors-4/#the-focus-visible-pseudo | ||
[focus-visible polyfill]: https://github.com/WICG/focus-visible |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
18818
24
147