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.3.2
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.3.3
Choose a head ref
  • 4 commits
  • 5 files changed
  • 2 contributors

Commits on Aug 21, 2021

  1. Typo

    ai committed Aug 21, 2021
    Copy the full SHA
    7ac31b9 View commit details

Commits on Aug 26, 2021

  1. Added blocker -moz- for ::file-selector-button (#1421)

    * Added block -moz- prefix
    
    * revert fix and add new test
    
    * replaced all prefixes with a -webkit-
    usmanyunusov authored Aug 26, 2021
    Copy the full SHA
    e75889e View commit details
  2. Update dependencies

    ai committed Aug 26, 2021
    Copy the full SHA
    80e17d3 View commit details
  3. Release 10.3.3 version

    ai committed Aug 26, 2021
    Copy the full SHA
    b5b5f5d View commit details
Showing with 264 additions and 371 deletions.
  1. +4 −1 CHANGELOG.md
  2. +13 −0 lib/hacks/file-selector-button.js
  3. +5 −5 package.json
  4. +1 −1 test/autoprefixer.test.ts
  5. +241 −364 yarn.lock
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).

## 10.3.3
* Fixed wrong `-moz-` prefix from `::file-selector-button` (by Usman Yunusov).

## 10.3.2
* Fixed `::file-selector-button` support (by Usman Yunusov)
* Fixed `::file-selector-button` support (by Usman Yunusov).

## 10.3.1
* Fixed adding wrong prefixes to `content` (by Luke Warlow).
13 changes: 13 additions & 0 deletions lib/hacks/file-selector-button.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
let Selector = require('../selector')
let utils = require('../utils')

class FileSelectorButton extends Selector {
constructor(name, prefixes, all) {
super(name, prefixes, all)

if (this.prefixes) {
this.prefixes = utils.uniq(
this.prefixes.map(i => {
return '-webkit-'
})
)
}
}

/**
* Return different selectors depend on prefix
*/
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "autoprefixer",
"version": "10.3.2",
"version": "10.3.3",
"description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website",
"engines": {
"node": "^10 || ^12 || >=14"
@@ -30,7 +30,7 @@
},
"dependencies": {
"browserslist": "^4.16.8",
"caniuse-lite": "^1.0.30001251",
"caniuse-lite": "^1.0.30001252",
"colorette": "^1.3.0",
"fraction.js": "^4.1.1",
"normalize-range": "^0.1.2",
@@ -44,13 +44,13 @@
"@logux/eslint-config": "^45.4.7",
"@size-limit/preset-small-lib": "5.0.3",
"@types/jest": "^27.0.1",
"@typescript-eslint/eslint-plugin": "^4.29.2",
"@typescript-eslint/parser": "^4.29.2",
"@typescript-eslint/eslint-plugin": "^4.29.3",
"@typescript-eslint/parser": "^4.29.3",
"check-dts": "^0.5.5",
"clean-publish": "^2.2.0",
"eslint": "^7.32.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.24.1",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jest": "^24.4.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prefer-let": "^1.1.0",
2 changes: 1 addition & 1 deletion test/autoprefixer.test.ts
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ let selectorer = autoprefixer({
overrideBrowserslist: ['Chrome 25', 'Firefox > 17', 'IE 10', 'Edge 12']
})
let fileSelectorButtoner = autoprefixer({
overrideBrowserslist: ['Chrome > 25', 'Firefox > 85']
overrideBrowserslist: ['Chrome > 25', 'Firefox >= 82']
})
let placeholderShowner = autoprefixer({
overrideBrowserslist: ['IE >= 10']
605 changes: 241 additions & 364 deletions yarn.lock

Large diffs are not rendered by default.