Socket
Socket
Sign inDemoInstall

postcss-focus-within

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-focus-within - npm Package Compare versions

Comparing version 8.0.0 to 8.0.1

103

CHANGELOG.md
# Changes to PostCSS Focus Within
### 8.0.1
_December 15, 2023_
- Fix type definitions
### 8.0.0

@@ -15,97 +21,2 @@

### 7.0.1
_January 28, 2023_
- Improve `types` declaration in `package.json`
### 7.0.0
_January 24, 2023_
- Updated: Support for Node v14+ (major).
- Fix: Do not throw when a selector is invalid, show a warning instead.
### 6.1.1
_August 23, 2022_
- Fix: assign global browser polyfill to `window`, `self` or a blank object.
### 6.1.0
_July 30, 2022_
- Added: `disablePolyfillReadyClass` plugin option to prevent `.js-focus-within` from being added.
### 6.0.0
_July 8, 2022_
- Breaking: Changed generated classes so it prepends `.js-focus-within` to the
generated class so CSS is applied when the polyfill is known to be running.
- Added: Now bundling browser polyfill.
### 5.0.4
_February 5, 2022_
- Improved `es module` and `commonjs` compatibility
### 5.0.3
_January 2, 2022_
- Removed Sourcemaps from package tarball.
- Moved CLI to CLI Package. See [announcement](https://github.com/csstools/postcss-plugins/discussions/121).
### 5.0.2
_December 13, 2021_
- Changed: now uses `postcss-selector-parser` for parsing.
- Updated: documentation
### 5.0.1
_September 22, 2021_
- Added missing `dist` to bundle.
- Added missing `exports` to `package.json`
- Added missing `types` to `package.json`
- Added bundling & testing as prepublish step.
### 5.0.0
_September 17, 2021_
- Updated: Support for PostCS 8+ (major).
- Updated: Support for Node 12+ (major).
### 4.0.0
_April 20, 2020_
- Fixed: Allow `:focus-within` to appear escaped in a selector
- Updated: Support for Node 10+
- Updated: Ownership moved to CSS Tools
### 3.0.0
_September 17, 2018_
- Updated: Support for PostCSS v7+
- Updated: Support for Node v6+
### 2.0.0
_April 7, 2018_
- Changed: default functionality to preserve the original rule
- Added: `preserve` option to preserve the original rule using `:focus-within`
### 1.0.0
_February 17, 2018_
- Initial version
[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-focus-within/CHANGELOG.md)

10

dist/index.d.ts
import type { PluginCreator } from 'postcss';
declare const creator: PluginCreator<pluginOptions>;
export default creator;
/** postcss-focus-within plugin options */
export type pluginOptions = {
export declare type pluginOptions = {
/** Preserve the original notation. default: true */

@@ -11,3 +15,3 @@ preserve?: boolean;

};
declare const creator: PluginCreator<pluginOptions>;
export default creator;
export { }
{
"name": "postcss-focus-within",
"description": "Use the :focus-within pseudo-selector in CSS",
"version": "8.0.0",
"version": "8.0.1",
"contributors": [

@@ -34,11 +34,14 @@ {

},
"type": "module",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"default": "./dist/index.mjs"
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"default": "./dist/index.cjs"
}
},

@@ -66,14 +69,2 @@ "./browser": {

},
"devDependencies": {
"@csstools/postcss-tape": "*"
},
"scripts": {
"build": "rollup -c ../../rollup/default.mjs",
"docs": "node ../../.github/bin/generate-docs/install.mjs && node ../../.github/bin/generate-docs/readme.mjs",
"lint": "node ../../.github/bin/format-package-json.mjs",
"prepublishOnly": "npm run build && npm run test",
"test": "node .tape.mjs && node ./test/_import.mjs && node ./test/_require.cjs",
"test:browser": "node ./test/_browser.mjs",
"test:rewrite-expects": "REWRITE_EXPECTS=true node .tape.mjs"
},
"homepage": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-focus-within#readme",

@@ -99,12 +90,3 @@ "repository": {

"within"
],
"csstools": {
"cssdbId": "focus-within-pseudo-class",
"exportName": "postcssFocusWithin",
"humanReadableName": "PostCSS Focus Within",
"specUrl": "https://www.w3.org/TR/selectors-4/#the-focus-within-pseudo"
},
"volta": {
"extends": "../../package.json"
}
]
}

@@ -5,2 +5,6 @@ # PostCSS Focus Within [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][PostCSS]

```bash
npm install postcss-focus-within --save-dev
```
[PostCSS Focus Within] lets you use the `:focus-within` pseudo-class in CSS,

@@ -156,3 +160,3 @@ following the [Selectors Level 4 specification].

<!-- When using a CDN url you will have to manually update the version number -->
<script src="https://unpkg.com/postcss-focus-within@8.0.0/dist/browser-global.js"></script>
<script src="https://unpkg.com/postcss-focus-within@8.0.1/dist/browser-global.js"></script>
<script>focusWithinInit()</script>

@@ -159,0 +163,0 @@ ```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc