Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: postcss/autoprefixer
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 10.0.1
Choose a base ref
...
head repository: postcss/autoprefixer
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 10.0.2
Choose a head ref
  • 8 commits
  • 9 files changed
  • 1 contributor

Commits on Nov 4, 2020

  1. Update dependencies

    ai committed Nov 4, 2020
    Copy the full SHA
    215d315 View commit details
  2. Fix warning

    ai committed Nov 4, 2020
    Copy the full SHA
    9c9107d View commit details

Commits on Nov 8, 2020

  1. Update dependencies

    ai committed Nov 8, 2020
    Copy the full SHA
    ff54aac View commit details
  2. Copy the full SHA
    68c305a View commit details
  3. Add Node.js 10 to CI

    ai committed Nov 8, 2020
    Copy the full SHA
    244657f View commit details

Commits on Nov 9, 2020

  1. Avoid -ms-user-select: all

    ai committed Nov 9, 2020
    Copy the full SHA
    e47d5db View commit details
  2. Update Browserslist

    ai committed Nov 9, 2020
    Copy the full SHA
    427af5a View commit details
  3. Release 10.0.2 version

    ai committed Nov 9, 2020
    4
    Copy the full SHA
    7614321 View commit details
Showing with 947 additions and 854 deletions.
  1. +41 −0 .github/workflows/test.yml
  2. +0 −6 .travis.yml
  3. +4 −0 CHANGELOG.md
  4. +5 −1 lib/hacks/grid-utils.js
  5. +11 −0 lib/hacks/user-select.js
  6. +16 −19 package.json
  7. +4 −0 test/cases/user-select.css
  8. +5 −0 test/cases/user-select.out.css
  9. +861 −828 yarn.lock
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test
on:
push:
pull_request:
env:
FORCE_COLOR: 2
jobs:
full:
name: Node.js 15 Full
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v2-beta
with:
node-version: 15
- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Run tests
run: yarn test
short:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 14
- 12
- 10
name: Node.js ${{ matrix.node-version }} Quick
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2-beta
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Run unit tests
run: npx jest
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).

## 10.0.2
* Removed `-ms-user-select: all` because IE and old Edge don’t support it.
* Fixed Grid Layout warning.

## 10.0.1
* Fix PostCSS 8.1 compatability.
* Add our OpenCollective to `package.json`.
6 changes: 5 additions & 1 deletion lib/hacks/grid-utils.js
Original file line number Diff line number Diff line change
@@ -759,7 +759,11 @@ function warnIfGridRowColumnExists (decl, result) {
let rule = decl.parent
let decls = []
rule.walkDecls(/^grid-(row|column)/, d => {
if (!d.prop.endsWith('-end') && !d.value.startsWith('span')) {
if (
!d.prop.endsWith('-end') &&
!d.value.startsWith('span') &&
!d.prop.endsWith('-gap')
) {
decls.push(d)
}
})
11 changes: 11 additions & 0 deletions lib/hacks/user-select.js
Original file line number Diff line number Diff line change
@@ -10,6 +10,17 @@ class UserSelect extends Declaration {
}
return super.set(decl, prefix)
}

/**
* Avoid prefixing all in IE
*/
insert (decl, prefix, prefixes) {
if (decl.value === 'all' && prefix === '-ms-') {
return undefined
} else {
return super.insert(decl, prefix, prefixes)
}
}
}

UserSelect.names = ['user-select']
35 changes: 16 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "autoprefixer",
"version": "10.0.1",
"version": "10.0.2",
"description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website",
"engines": {
"node": "^10 || ^12 || >=14"
@@ -13,8 +13,7 @@
"postcss-plugin"
],
"scripts": {
"lint": "eslint-ci . bin/*",
"test": "jest-ci --coverage && npm run lint && size-limit"
"test": "jest --coverage && eslint . bin/* && size-limit"
},
"main": "lib/autoprefixer.js",
"bin": "bin/autoprefixer",
@@ -29,8 +28,8 @@
"postcss": "^8.1.0"
},
"dependencies": {
"browserslist": "^4.14.5",
"caniuse-lite": "^1.0.30001137",
"browserslist": "^4.14.7",
"caniuse-lite": "^1.0.30001157",
"colorette": "^1.2.1",
"normalize-range": "^0.1.2",
"num2fraction": "^1.2.2",
@@ -41,28 +40,26 @@
"chalk": false
},
"devDependencies": {
"@logux/eslint-config": "^40.0.5",
"@size-limit/preset-small-lib": "4.6.0",
"@logux/eslint-config": "^42.2.0",
"@size-limit/preset-small-lib": "4.7.0",
"clean-publish": "^1.1.8",
"eslint": "^7.10.0",
"eslint-ci": "^1.0.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jest": "^24.0.2",
"eslint": "^7.13.0",
"eslint-config-standard": "^16.0.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.1.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prefer-let": "^1.1.0",
"eslint-plugin-prettierx": "^0.14.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-standard": "^4.0.1",
"eslint-plugin-unicorn": "^22.0.0",
"eslint-plugin-standard": "^4.0.2",
"eslint-plugin-unicorn": "^23.0.0",
"fs-extra": "^9.0.1",
"husky": "^4.3.0",
"jest": "^26.4.2",
"jest-ci": "^0.1.1",
"lint-staged": "^10.4.0",
"postcss": "^8.1.0",
"size-limit": "^4.6.0"
"jest": "^26.6.3",
"lint-staged": "^10.5.1",
"postcss": "^8.1.6",
"size-limit": "^4.7.0"
},
"lint-staged": {
"*.js": "eslint --fix"
4 changes: 4 additions & 0 deletions test/cases/user-select.css
Original file line number Diff line number Diff line change
@@ -5,3 +5,7 @@ a {
b {
user-select: contain;
}

.all {
user-select: all;
}
5 changes: 5 additions & 0 deletions test/cases/user-select.out.css
Original file line number Diff line number Diff line change
@@ -9,3 +9,8 @@ b {
-ms-user-select: element;
user-select: contain;
}

.all {
-webkit-user-select: all;
user-select: all;
}
Loading