From 9f094c7f96c8450341721800dd564fa617049f9d Mon Sep 17 00:00:00 2001 From: Jonathan Neal Date: Sun, 12 Apr 2020 17:21:29 -0400 Subject: [PATCH] 9.0.0 --- .appveyor.yml | 18 ------ .gitignore | 2 +- .rollup.js | 37 ++++-------- .travis.yml | 2 +- CHANGELOG.md | 9 ++- README.md | 6 +- package.json | 87 ++++++++++++++++----------- test/force-sanitize-all.expect.css | 7 ++- test/import-normalize.expect.css | 2 + test/import-sanitize-all.expect.css | 7 ++- test/import-sanitize-forms.expect.css | 7 ++- 11 files changed, 99 insertions(+), 85 deletions(-) delete mode 100644 .appveyor.yml diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index 8e87d1d..0000000 --- a/.appveyor.yml +++ /dev/null @@ -1,18 +0,0 @@ -# https://www.appveyor.com/docs/appveyor-yml - -environment: - matrix: - - nodejs_version: 6.0 - -version: "{build}" -build: off -deploy: off - -install: - - ps: Install-Product node $env:nodejs_version - - npm install --ignore-scripts - -test_script: - - node --version - - npm --version - - cmd: "npm test" diff --git a/.gitignore b/.gitignore index 9ebd781..5bd3ef6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ +dist node_modules -/index.* package-lock.json *.log* *.result.css diff --git a/.rollup.js b/.rollup.js index b1a7aa5..3f3b227 100644 --- a/.rollup.js +++ b/.rollup.js @@ -1,39 +1,28 @@ -import babel from 'rollup-plugin-babel'; +import pkg from './package.json' export default { - input: 'src/index.js', - output: [ - { file: 'index.cjs.js', format: 'cjs', sourcemap: true, strict: false }, - { file: 'index.esm.mjs', format: 'esm', sourcemap: true, strict: false } - ], - plugins: [ - patchBabelPluginSyntaxImportMeta(), - babel({ - plugins: [ - ['@babel/plugin-syntax-import-meta'] - ], - presets: [ - ['@babel/preset-env', { modules: false, targets: { node: 8 } }] - ] - }) - ] -}; + ...pkg.rollup, + plugins: [patchBabelPluginSyntaxImportMeta(), ...pkg.rollup.plugins.map(plugin => require(plugin)())], + onwarn(warning, warn) { + if (warning.code !== 'UNRESOLVED_IMPORT') warn(warning) + } +} function patchBabelPluginSyntaxImportMeta () { return { name: 'patch-babel-plugin-syntax-import-meta', renderChunk (code, chunk, options) { - const currentUrlMatch = /var url = require\('url'\);([\W\w]+)const currentURL[^\n]+\nconst currentFilename[^\n]+/; + const currentUrlMatch = /var url = require\('url'\);([\W\w]+)const currentURL[^\n]+\n(const currentFilename)[^\n]+/ - const shouldTransformImportMeta = options.format === 'cjs' && currentUrlMatch.test(code); + const shouldTransformImportMeta = options.format === 'cjs' && currentUrlMatch.test(code) if (shouldTransformImportMeta) { - const updatedCode = code.replace(currentUrlMatch, '$1const currentFilename = __filename;'); + const updatedCode = code.replace(currentUrlMatch, '$1$2 = __filename;') - return updatedCode; + return updatedCode } - return null; + return null } - }; + } } diff --git a/.travis.yml b/.travis.yml index 45f9f4f..c3e7765 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ os: - osx node_js: - - 8 + - 10 install: - npm install --ignore-scripts diff --git a/CHANGELOG.md b/CHANGELOG.md index abfac40..d6dba73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changes to PostCSS Normalize +### 9.0.0 (April 12, 2020) + +- Updated: `normalize.css` to support any version (major) +- Updated: `sanitize.css` to support any version (major) +- Updated: Node support to 10.0.0 (major). +- Removed: Unused `browserslist` dependency + ### 8.0.1 (June 10, 2019) - Fixed: Issue with Windows failing to resolve normalize @@ -44,7 +51,7 @@ versions of PostCSS to use PostCSS Normalize. This update resolves that. ### 3.0.0 (May 26, 2017) -- Use jonathantneal/normalize.css v7 +- Use csstools/normalize.css v7 - Change the insertion point to `@import-normalize` to avoid confusion or collision with standard import behavior diff --git a/README.md b/README.md index b15ee50..fd97477 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # PostCSS Normalize [PostCSS][postcss] -[![NPM Version][npm-img]][npm-url] -[![Build Status][cli-img]][cli-url] -[![Support Chat][git-img]][git-url] +[npm version][npm-url] +[build status][cli-url] +[support chat][git-url] [PostCSS Normalize] lets you use the parts of [normalize.css] or [sanitize.css] that you need from your [browserslist]. diff --git a/package.json b/package.json index 6f38948..6951464 100644 --- a/package.json +++ b/package.json @@ -1,64 +1,83 @@ { "name": "postcss-normalize", - "version": "8.0.1", + "version": "9.0.0", "description": "Use the parts of normalize.css or sanitize.css you need from your browserslist", "author": "Jonathan Neal ", "license": "CC0-1.0", "repository": "csstools/postcss-normalize", "homepage": "https://github.com/csstools/postcss-normalize#readme", "bugs": "https://github.com/csstools/postcss-normalize/issues", - "main": "index.cjs.js", - "module": "index.esm.mjs", + "main": "dist/index.cjs.js", + "module": "dist/index.esm.mjs", "files": [ - "index.cjs.js", - "index.cjs.js.map", - "index.esm.mjs", - "index.esm.mjs.map" + "dist" ], "scripts": { - "build": "rollup --config .rollup.js --silent", - "prepublishOnly": "npm test", - "pretest:tape": "npm run build", - "test": "npm run test:js && npm run test:tape", - "test:js": "eslint src/{*,**/*}.js --cache --ignore-path .gitignore --quiet", - "test:tape": "postcss-tape" + "build": "npx rollup -c .rollup.js", + "build:watch": "npx rollup -c .rollup.js --watch", + "lint": "npx eslint --cache src", + "lint:fix": "npx eslint --cache --fix", + "pretest": "npm install && npm run build", + "test": "npm run lint && npm run tape", + "tape": "npx postcss-tape" }, "engines": { - "node": ">=8.0.0" + "node": ">=10.0.0" }, "dependencies": { - "@csstools/normalize.css": "^10.1.0", - "browserslist": "^4.6.2", - "postcss": "^7.0.17", + "@csstools/normalize.css": "*", + "postcss": "^7.0.27", "postcss-browser-comments": "^3.0.0", - "sanitize.css": "^10.0.0" + "sanitize.css": "*" }, "devDependencies": { - "@babel/core": "^7.4.5", - "@babel/plugin-syntax-import-meta": "^7.2.0", - "@babel/preset-env": "^7.4.5", - "babel-eslint": "^10.0.1", - "eslint": "^5.16.0", + "@babel/core": "^7.9.0", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/preset-env": "^7.9.5", + "babel-eslint": "^10.1.0", + "eslint": "^6.8.0", "postcss-import": "^12.0.1", - "postcss-tape": "^5.0.0", + "postcss-tape": "^5.0.2", "pre-commit": "^1.2.2", - "rollup": "^1.14.6", - "rollup-plugin-babel": "^4.3.2" + "rollup": "^2.6.0", + "rollup-plugin-babel": "^4.4.0" + }, + "babel": { + "plugins": [ + "@babel/plugin-syntax-import-meta" + ], + "presets": [ + [ + "@babel/env", + { + "targets": "maintained node versions" + } + ] + ] }, "eslintConfig": { "env": { - "browser": true, "es6": true, "node": true }, "extends": "eslint:recommended", - "parser": "babel-eslint", - "parserOptions": { - "ecmaVersion": 2018, - "impliedStrict": true, - "sourceType": "module" - }, - "root": true + "parser": "babel-eslint" + }, + "rollup": { + "input": "src/index.js", + "plugins": [ + "rollup-plugin-babel" + ], + "output": [ + { + "file": "dist/index.cjs.js", + "format": "cjs" + }, + { + "file": "dist/index.esm.js", + "format": "esm" + } + ] }, "keywords": [ "postcss", diff --git a/test/force-sanitize-all.expect.css b/test/force-sanitize-all.expect.css index 6f5de01..6478cc5 100644 --- a/test/force-sanitize-all.expect.css +++ b/test/force-sanitize-all.expect.css @@ -364,9 +364,14 @@ textarea { select { -moz-appearance: none; -webkit-appearance: none; - background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='4'%3E%3Cpath d='M4 0h6L7 4'/%3E%3C/svg%3E") no-repeat right center / 1em; + background: no-repeat right center / 1em; border-radius: 0; padding-right: 1em; +}/** + * Change the inconsistent appearance in all browsers (opinionated). + */ +select:not([multiple]):not([size]) { + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='4'%3E%3Cpath d='M4 0h6L7 4'/%3E%3C/svg%3E"); }/** * Change the inconsistent appearance in IE (opinionated). */ diff --git a/test/import-normalize.expect.css b/test/import-normalize.expect.css index 8356120..6a44ed4 100644 --- a/test/import-normalize.expect.css +++ b/test/import-normalize.expect.css @@ -357,3 +357,5 @@ template { body { font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XRlbTtcbn1cblxuLyogU2NyaXB0aW5nXG4gKiA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PSAqL1xuXG4vKipcbiAqIEFkZCB0aGUgY29ycmVjdCBkaXNwbGF5IGluIElFIDktLlxuICovXG5cbmNhbnZhcyB7XG4gIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbn1cblxuLyoqXG4gKiBBZGQgdGhlIGNvcnJlY3QgZGlzcGxheSBpbiBJRS5cbiAqL1xuXG50ZW1wbGF0ZSB7XG4gIGRpc3BsYXk6IG5vbmU7XG59XG5cbi8qIFVzZXIgaW50ZXJhY3Rpb25cbiAqID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ICovXG5cbi8qKlxuICogQWRkIHRoZSBjb3JyZWN0IGRpc3BsYXkgaW4gSUUgMTAtLlxuICovXG5cbltoaWRkZW5dIHtcbiAgZGlzcGxheTogbm9uZTtcbn1cbiIsIkBpbXBvcnQgXCJub3JtYWxpemVcIjtcblxuYm9keSB7XG5cdGZvbnQtZmFtaWx5OiBzYW5zLXNlcmlmO1xufVxuIl19 */ \ No newline at end of file diff --git a/test/import-sanitize-all.expect.css b/test/import-sanitize-all.expect.css index c15bfa1..280503f 100644 --- a/test/import-sanitize-all.expect.css +++ b/test/import-sanitize-all.expect.css @@ -364,9 +364,14 @@ textarea { select { -moz-appearance: none; -webkit-appearance: none; - background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='4'%3E%3Cpath d='M4 0h6L7 4'/%3E%3C/svg%3E") no-repeat right center / 1em; + background: no-repeat right center / 1em; border-radius: 0; padding-right: 1em; +}/** + * Change the inconsistent appearance in all browsers (opinionated). + */ +select:not([multiple]):not([size]) { + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='4'%3E%3Cpath d='M4 0h6L7 4'/%3E%3C/svg%3E"); }/** * Change the inconsistent appearance in IE (opinionated). */ diff --git a/test/import-sanitize-forms.expect.css b/test/import-sanitize-forms.expect.css index ed0ffb1..18da611 100644 --- a/test/import-sanitize-forms.expect.css +++ b/test/import-sanitize-forms.expect.css @@ -364,9 +364,14 @@ textarea { select { -moz-appearance: none; -webkit-appearance: none; - background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='4'%3E%3Cpath d='M4 0h6L7 4'/%3E%3C/svg%3E") no-repeat right center / 1em; + background: no-repeat right center / 1em; border-radius: 0; padding-right: 1em; +}/** + * Change the inconsistent appearance in all browsers (opinionated). + */ +select:not([multiple]):not([size]) { + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='4'%3E%3Cpath d='M4 0h6L7 4'/%3E%3C/svg%3E"); }/** * Change the inconsistent appearance in IE (opinionated). */