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.4.0
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.4.1
Choose a head ref
  • 10 commits
  • 28 files changed
  • 3 contributors

Commits on Dec 17, 2021

  1. Fix CLI dependency installation instructions (#1439)

    Without `postcss` fails with error:
    `Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'postcss' `
    vkentta authored Dec 17, 2021
    Copy the full SHA
    c35cb71 View commit details

Commits on Dec 29, 2021

  1. Update dependencies

    ai committed Dec 29, 2021
    Copy the full SHA
    d3469a8 View commit details
  2. Copy the full SHA
    c2fd84e View commit details
  3. Move from yarn to pnpm

    ai committed Dec 29, 2021
    Copy the full SHA
    0d47b91 View commit details
  4. Fix CI

    ai committed Dec 29, 2021
    Copy the full SHA
    48ecb06 View commit details
  5. Remove Windows test on CI

    ai committed Dec 29, 2021
    Copy the full SHA
    1db514c View commit details
  6. Remove TS from project

    ai committed Dec 29, 2021
    Copy the full SHA
    e3e8c08 View commit details
  7. Move from Jest to uvu

    ai committed Dec 29, 2021
    Copy the full SHA
    748ef8e View commit details
  8. Clean up npm ignore

    ai committed Dec 29, 2021
    Copy the full SHA
    c942166 View commit details
  9. Release 10.4.1 version

    ai committed Dec 29, 2021
    Copy the full SHA
    7bba67a View commit details
48 changes: 39 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -4,42 +4,72 @@ on:
pull_request:
jobs:
full:
name: Node.js 16 Full
name: Node.js 17 Full
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 16
cache: yarn
node-version: 17
cache: pnpm
- name: Install dependencies
run: yarn install --frozen-lockfile
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Run tests
run: yarn test
run: pnpm test
env:
FORCE_COLOR: 2
short:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 16
- 14
- 12
- 10
name: Node.js ${{ matrix.node-version }} Quick
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: yarn
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Run unit tests
run: pnpm unit
env:
FORCE_COLOR: 2
old:
runs-on: ubuntu-latest
name: Node.js 10 Quick
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v1
with:
version: 3
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- name: Install Node.js 10
uses: actions/setup-node@v2
with:
node-version: 10
- name: Install dependencies
run: yarn install --frozen-lockfile --ignore-engines
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Run unit tests
run: npx jest
run: pnpm unit
env:
FORCE_COLOR: 2
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node_modules/
yarn-error.log

coverage/
6 changes: 1 addition & 5 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
yarn-error.log
yarn.lock
pnpm-lock.yaml

.editorconfig
test/
coverage/
.travis.yml

.github/
logo.svg
AUTHORS
tsconfig.json
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).

## 10.4.1
* Fixed `::file-selector-button` data (by Luke Warlow).

## 10.4 “ǃke e꞉ ǀxarra ǁke”
* Added `:autofill` support (by Luke Warlow).

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -355,7 +355,7 @@ module.exports = {
You can use the [postcss-cli] to run Autoprefixer from CLI:

```sh
npm install postcss-cli autoprefixer
npm install postcss postcss-cli autoprefixer
npx postcss *.css --use autoprefixer -d build/
```

26 changes: 9 additions & 17 deletions data/prefixes.js
Original file line number Diff line number Diff line change
@@ -522,23 +522,15 @@ f(prefixFullscreen, { match: /x(\s#2|$)/ }, browsers =>
)

// File selector button
prefix(['::file-selector-button'], {
selector: true,
feature: 'file-selector-button',
browsers: [
'chrome 89',
'edge 89',
'firefox 82',
'opera 75',
'safari 14.1',
'android 89',
'and_chr 89',
'op_mob 63',
'and_ff 82',
'ios_saf 14.5',
'samsung 15.0'
]
})
let prefixFileSelectorButton = require('caniuse-lite/data/features/css-file-selector-button')

f(prefixFileSelectorButton, browsers =>
prefix(['::file-selector-button'], {
selector: true,
feature: 'file-selector-button',
browsers
})
)

// :autofill
let prefixAutofill = require('caniuse-lite/data/features/css-autofill')
3 changes: 1 addition & 2 deletions lib/autoprefixer.js
Original file line number Diff line number Diff line change
@@ -40,8 +40,7 @@ function timeCapsule(result, prefixes) {
if (Object.keys(prefixes.add).length > 2) {
return
}

/* istanbul ignore next */
/* c8 ignore next 11 */
result.warn(
'Autoprefixer target browsers do not need any prefixes.' +
'You do not need Autoprefixer anymore.\n' +
2 changes: 1 addition & 1 deletion lib/hacks/grid-utils.js
Original file line number Diff line number Diff line change
@@ -532,7 +532,7 @@ function insertAreas(css, isDisabled) {
if (lastRule) {
lastRuleIndex = css.index(lastRule)
} else {
/* istanbul ignore next */
/* c8 ignore next 2 */
lastRuleIndex = -1
}

85 changes: 27 additions & 58 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "autoprefixer",
"version": "10.4.0",
"version": "10.4.1",
"description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website",
"engines": {
"node": "^10 || ^12 || >=14"
@@ -13,7 +13,8 @@
"postcss-plugin"
],
"scripts": {
"test": "jest --coverage && eslint . bin/* && check-dts && size-limit"
"unit": "uvu . '\\.test\\.js$'",
"test": "c8 pnpm unit && eslint . bin/* && size-limit"
},
"main": "lib/autoprefixer.js",
"bin": "bin/autoprefixer",
@@ -32,51 +33,28 @@
"postcss": "^8.1.0"
},
"dependencies": {
"browserslist": "^4.17.5",
"caniuse-lite": "^1.0.30001272",
"fraction.js": "^4.1.1",
"browserslist": "^4.19.1",
"caniuse-lite": "^1.0.30001294",
"fraction.js": "^4.1.2",
"normalize-range": "^0.1.2",
"picocolors": "^1.0.0",
"postcss-value-parser": "^4.1.0"
"postcss-value-parser": "^4.2.0"
},
"devDependencies": {
"@logux/eslint-config": "^46.0.1",
"@size-limit/preset-small-lib": "6.0.3",
"@types/jest": "^27.0.2",
"@typescript-eslint/eslint-plugin": "^5.2.0",
"@typescript-eslint/parser": "^5.2.0",
"check-dts": "^0.6.2",
"clean-publish": "^3.4.2",
"eslint": "^8.1.0",
"@logux/eslint-config": "^46.1.1",
"@size-limit/preset-small-lib": "7.0.5",
"c8": "^7.10.0",
"clean-publish": "^3.4.4",
"eslint": "^8.5.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-jest": "^25.2.2",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prefer-let": "^3.0.0",
"eslint-plugin-promise": "^5.1.1",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-unicorn": "^37.0.1",
"jest": "^27.3.1",
"lint-staged": "^11.2.6",
"postcss": "^8.3.11",
"prettier": "^2.4.1",
"simple-git-hooks": "^2.7.0",
"size-limit": "^6.0.3",
"ts-jest": "^27.0.7",
"typescript": "^4.4.4"
},
"lint-staged": {
"*.js": [
"prettier --write",
"eslint --fix"
],
"*.ts": [
"prettier --write",
"eslint --fix"
]
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
"eslint-plugin-prefer-let": "^3.0.1",
"eslint-plugin-promise": "^6.0.0",
"nanospy": "^0.4.0",
"postcss": "^8.4.5",
"size-limit": "^7.0.5",
"uvu": "^0.5.2"
},
"prettier": {
"arrowParens": "avoid",
@@ -88,14 +66,12 @@
},
"size-limit": [
{
"limit": "95 KB"
"limit": "105 KB"
}
],
"eslintConfig": {
"extends": "@logux/eslint-config/ts",
"extends": "@logux/eslint-config",
"rules": {
"security/detect-non-literal-regexp": "off",
"security/detect-unsafe-regex": "off",
"node/no-missing-require": "off",
"no-unused-expressions": "off",
"no-unused-vars": "off",
@@ -120,19 +96,12 @@
}
]
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"globals": {
"ts-jest": {
"isolatedModules": true
}
},
"coverageThreshold": {
"global": {
"lines": 100
}
}
"c8": {
"exclude": [
"**/*.test.*"
],
"lines": 100,
"check-coverage": true
},
"clean-publish": {
"cleanDocs": true
Loading