postcss-custom-properties
Advanced tools
Comparing version 12.1.4 to 12.1.5
# Changes to PostCSS Custom Properties | ||
### 12.1.5 (March 19, 2022) | ||
- Add deprecation notice for `importFrom` and `exportTo` | ||
[see the discussion](https://github.com/csstools/postcss-plugins/discussions/192) | ||
### 12.1.4 (January 31, 2022) | ||
@@ -4,0 +10,0 @@ |
import type { PluginCreator } from 'postcss'; | ||
import type { ImportOptions, ExportOptions } from './lib/options'; | ||
export interface PluginOptions { | ||
/** Do not emit warnings about "importFrom" and "exportTo" deprecations */ | ||
disableDeprecationNotice?: boolean; | ||
/** Determines whether Custom Properties and properties using custom properties should be preserved in their original form. */ | ||
@@ -5,0 +7,0 @@ preserve?: boolean; |
146
package.json
{ | ||
"name": "postcss-custom-properties", | ||
"version": "12.1.4", | ||
"description": "Use Custom Properties Queries in CSS", | ||
"author": "Jonathan Neal <jonathantneal@hotmail.com>", | ||
"contributors": [ | ||
"Maxime Thirouin" | ||
], | ||
"license": "MIT", | ||
"homepage": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-custom-properties#readme", | ||
"bugs": "https://github.com/csstools/postcss-plugins/issues", | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.cjs", | ||
"default": "./dist/index.mjs" | ||
} | ||
}, | ||
"files": [ | ||
"CHANGELOG.md", | ||
"LICENSE.md", | ||
"README.md", | ||
"dist", | ||
"index.d.ts" | ||
], | ||
"scripts": { | ||
"build": "rollup -c ../../rollup/default.js", | ||
"clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"", | ||
"lint": "eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern", | ||
"prepublishOnly": "npm run clean && npm run build && npm run test", | ||
"stryker": "stryker run --logLevel error", | ||
"test": "node .tape.mjs && node .tape.cjs && npm run test:exports", | ||
"test:rewrite-expects": "REWRITE_EXPECTS=true node .tape.mjs", | ||
"test:exports": "node ./test/_import.mjs && node ./test/_require.cjs" | ||
}, | ||
"engines": { | ||
"node": "^12 || ^14 || >=16" | ||
}, | ||
"dependencies": { | ||
"postcss-value-parser": "^4.2.0" | ||
}, | ||
"devDependencies": { | ||
"postcss-import": "^14.0.2" | ||
}, | ||
"peerDependencies": { | ||
"postcss": "^8.4" | ||
}, | ||
"keywords": [ | ||
"postcss", | ||
"css", | ||
"postcss-plugin", | ||
"custom", | ||
"properties", | ||
"declarations", | ||
"variables", | ||
"vars", | ||
"w3c", | ||
"csswg", | ||
"specification" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/csstools/postcss-plugins.git", | ||
"directory": "plugins/postcss-custom-properties" | ||
}, | ||
"volta": { | ||
"extends": "../../package.json" | ||
} | ||
"name": "postcss-custom-properties", | ||
"description": "Use Custom Properties Queries in CSS", | ||
"version": "12.1.5", | ||
"author": "Jonathan Neal <jonathantneal@hotmail.com>", | ||
"contributors": [ | ||
"Maxime Thirouin" | ||
], | ||
"license": "MIT", | ||
"engines": { | ||
"node": "^12 || ^14 || >=16" | ||
}, | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.cjs", | ||
"default": "./dist/index.mjs" | ||
} | ||
}, | ||
"files": [ | ||
"CHANGELOG.md", | ||
"LICENSE.md", | ||
"README.md", | ||
"dist", | ||
"index.d.ts" | ||
], | ||
"dependencies": { | ||
"postcss-value-parser": "^4.2.0" | ||
}, | ||
"peerDependencies": { | ||
"postcss": "^8.4" | ||
}, | ||
"devDependencies": { | ||
"postcss-import": "^14.0.2" | ||
}, | ||
"scripts": { | ||
"build": "rollup -c ../../rollup/default.js", | ||
"clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"", | ||
"docs": "node ../../.github/bin/generate-docs/install.mjs", | ||
"lint": "npm run lint:eslint && npm run lint:package-json", | ||
"lint:eslint": "eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern", | ||
"lint:package-json": "node ../../.github/bin/format-package-json.mjs", | ||
"prepublishOnly": "npm run clean && npm run build && npm run test", | ||
"test": "node .tape.mjs && node .tape.cjs && npm run test:exports", | ||
"test:exports": "node ./test/_import.mjs && node ./test/_require.cjs", | ||
"test:rewrite-expects": "REWRITE_EXPECTS=true node .tape.mjs" | ||
}, | ||
"homepage": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-custom-properties#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/csstools/postcss-plugins.git", | ||
"directory": "plugins/postcss-custom-properties" | ||
}, | ||
"bugs": "https://github.com/csstools/postcss-plugins/issues", | ||
"keywords": [ | ||
"css", | ||
"csswg", | ||
"custom", | ||
"declarations", | ||
"postcss", | ||
"postcss-plugin", | ||
"properties", | ||
"specification", | ||
"variables", | ||
"vars", | ||
"w3c" | ||
], | ||
"csstools": { | ||
"exportName": "postcssCustomProperties", | ||
"humanReadableName": "PostCSS Custom Properties" | ||
}, | ||
"volta": { | ||
"extends": "../../package.json" | ||
} | ||
} |
@@ -190,2 +190,9 @@ # PostCSS Custom Properties [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS" width="90" height="90" align="right">][postcss] | ||
### disableDeprecationNotice | ||
Silence the deprecation notice that is printed to the console when using `importFrom` or `exportTo`. | ||
> "importFrom" and "exportTo" will be removed in a future version of postcss-custom-properties. | ||
> Check the discussion on github for more details. https://github.com/csstools/postcss-plugins/discussions/192 | ||
[cli-img]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml/badge.svg | ||
@@ -192,0 +199,0 @@ [cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
36376
109
208