postcss-prefixwrap
Advanced tools
Comparing version 1.29.1 to 1.30.1
@@ -49,3 +49,3 @@ "use strict"; | ||
// extract their styles. | ||
return cleanSelector.replace(/^(body|html)/, this.prefixSelector); | ||
return cleanSelector.replace(/^(body|html|:root)/, this.prefixSelector); | ||
} | ||
@@ -52,0 +52,0 @@ cssRuleMatchesPrefixSelector(cssRule) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const ANY_WHITESPACE_AT_BEGINNING_OR_END = /(^\s*|\s*$)/g; | ||
const IS_ROOT_TAG = /^(body|html).*$/; | ||
const IS_ROOT_TAG = /^(body|html|:root).*$/; | ||
class Selector { | ||
@@ -6,0 +6,0 @@ static isValid(cssSelector) { |
@@ -7,2 +7,14 @@ # [PostCSS Prefix Wrap](./README.md) // Changelog | ||
## [1.30.1](https://github.com/dbtedman/postcss-prefixwrap/releases/tag/1.30.1) | ||
### 💡 Features and Improvements | ||
- Snyk + CodeQL SAST | ||
- Switch to PNPM from Yarn | ||
- Introduce Makefile for common commands | ||
### 🐛 Bug Fixes | ||
- `:root` missing from list of root tags | ||
## [1.29.1](https://github.com/dbtedman/postcss-prefixwrap/releases/tag/1.29.1) | ||
@@ -9,0 +21,0 @@ |
@@ -29,3 +29,3 @@ # [PostCSS Prefix Wrap](./README.md) // Contributing | ||
```shell | ||
yarn format | ||
make format | ||
``` | ||
@@ -36,3 +36,3 @@ | ||
```shell | ||
yarn lint | ||
make lint | ||
``` | ||
@@ -45,3 +45,3 @@ | ||
```shell | ||
yarn test | ||
make test | ||
``` | ||
@@ -48,0 +48,0 @@ |
MIT License | ||
Copyright © 2021 [Daniel Tedman](https://danieltedman.com) | ||
Copyright © 2022 [Daniel Tedman](https://danieltedman.com) | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
{ | ||
"name": "postcss-prefixwrap", | ||
"version": "1.29.1", | ||
"version": "1.30.1", | ||
"description": "A PostCSS plugin that is used to wrap css styles with a css selector to constrain their affect on parent elements in a page.", | ||
@@ -9,6 +9,7 @@ "keywords": [ | ||
"nodejs", | ||
"yarn", | ||
"pnpm", | ||
"postcss", | ||
"postcss-plugin", | ||
"typescript" | ||
"typescript", | ||
"yarn" | ||
], | ||
@@ -29,34 +30,36 @@ "homepage": "https://github.com/dbtedman/postcss-prefixwrap#readme", | ||
], | ||
"scripts": { | ||
"build": "tsc --build ./tsconfig.json && rm -rf ./build/{**/*,*}.spec.js && rm -rf ./build/acceptance && rm -rf ./build/integration", | ||
"clean": "rm -rf ./build/", | ||
"format": "sort-package-json && prettier './**/*.{md,yml,yaml,json,ts,js}' --write && yarn eslint --fix . --ext .js,.ts", | ||
"lint": "sort-package-json --check && prettier './**/*.{md,yml,yaml,json,ts,js}' --check && yarn eslint . --ext .js,.ts", | ||
"test": "jest --coverage" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.17.9", | ||
"@types/jest": "27.4.1", | ||
"@types/node": "17.0.25", | ||
"@typescript-eslint/eslint-plugin": "5.20.0", | ||
"@typescript-eslint/parser": "5.20.0", | ||
"eslint": "8.14.0", | ||
"@babel/core": "7.18.2", | ||
"@types/jest": "28.1.0", | ||
"@types/node": "17.0.39", | ||
"@typescript-eslint/eslint-plugin": "5.27.0", | ||
"@typescript-eslint/parser": "5.27.0", | ||
"eslint": "8.17.0", | ||
"eslint-config-prettier": "8.5.0", | ||
"eslint-plugin-import": "2.26.0", | ||
"eslint-plugin-jest": "26.1.5", | ||
"eslint-plugin-jest": "26.4.6", | ||
"eslint-plugin-promise": "6.0.0", | ||
"eslint-plugin-security-node": "1.1.1", | ||
"jest": "27.5.1", | ||
"postcss": "8.4.12", | ||
"jest": "28.1.0", | ||
"postcss": "8.4.14", | ||
"postcss-nested": "5.0.6", | ||
"postcss7": "npm:postcss@7.0.34", | ||
"prettier": "2.6.2", | ||
"sort-package-json": "1.55.0", | ||
"ts-jest": "27.1.4", | ||
"ts-node": "10.7.0", | ||
"typescript": "4.6.3" | ||
"sort-package-json": "1.57.0", | ||
"source-map": "0.7.3", | ||
"source-map-js": "1.0.2", | ||
"ts-jest": "28.0.4", | ||
"ts-node": "10.8.1", | ||
"typescript": "4.7.3" | ||
}, | ||
"peerDependencies": { | ||
"postcss": "*" | ||
}, | ||
"scripts": { | ||
"build": "tsc --build ./tsconfig.json && rm -rf ./build/{**/*,*}.spec.js && rm -rf ./build/acceptance && rm -rf ./build/integration", | ||
"clean": "rm -rf ./build/", | ||
"format": "sort-package-json && prettier './**/*.{md,yml,yaml,json,ts,js}' --write && pnpm eslint --fix . --ext .js,.ts", | ||
"lint": "sort-package-json --check && prettier './**/*.{md,yml,yaml,json,ts,js}' --check && pnpm eslint . --ext .js,.ts", | ||
"test": "jest" | ||
} | ||
} | ||
} |
# [PostCSS Prefix Wrap](https://danieltedman.com/my-work/postcss-prefixwrap) | ||
[![CI GitHub Pipeline](https://img.shields.io/github/workflow/status/dbtedman/postcss-prefixwrap/ci?style=for-the-badge&logo=github&label=ci)](https://github.com/dbtedman/postcss-prefixwrap/actions/workflows/ci.yml?query=branch%3Amain) | ||
[![Release GitHub Pipeline](https://img.shields.io/github/workflow/status/dbtedman/postcss-prefixwrap/ci?style=for-the-badge&logo=github&label=release)](https://github.com/dbtedman/postcss-prefixwrap/actions/workflows/release.yml) | ||
[![SAST GitHub Pipeline](https://img.shields.io/github/workflow/status/dbtedman/postcss-prefixwrap/sast?style=for-the-badge&logo=github&label=sast)](https://github.com/dbtedman/postcss-prefixwrap/actions/workflows/sast.yml) | ||
[![Release GitHub Pipeline](https://img.shields.io/github/workflow/status/dbtedman/postcss-prefixwrap/release?style=for-the-badge&logo=github&label=release)](https://github.com/dbtedman/postcss-prefixwrap/actions/workflows/release.yml) | ||
[![NPM Downloads Per Week](https://img.shields.io/npm/dw/postcss-prefixwrap?color=blue&logo=npm&style=for-the-badge)](https://www.npmjs.com/package/postcss-prefixwrap) | ||
@@ -10,6 +11,6 @@ | ||
| Supports | Versions | | ||
| :------- | :------------------------- | | ||
| NodeJS | `v12`, `v14`, `v16`, `v17` | | ||
| PostCSS | `v7`, `v8` | | ||
| Supports | Versions | | ||
| :------- | :------------------ | | ||
| NodeJS | `v14`, `v16`, `v17` | | ||
| PostCSS | `v7`, `v8` | | ||
@@ -16,0 +17,0 @@ - [How to use this plugin?](#how-to-use-this-plugin) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
194
32356
22
19
245