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.5
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.6
Choose a head ref
  • 8 commits
  • 14 files changed
  • 1 contributor

Commits on Apr 23, 2022

  1. Fix test

    ai committed Apr 23, 2022
    Copy the full SHA
    1c0adb8 View commit details
  2. Fix test name

    ai committed Apr 23, 2022
    Copy the full SHA
    fca3f01 View commit details

Commits on Apr 24, 2022

  1. Clean up ESLint config

    ai committed Apr 24, 2022
    Copy the full SHA
    e9478db View commit details
  2. Update dependencies

    ai committed Apr 24, 2022
    Copy the full SHA
    89c5b9a View commit details

Commits on May 1, 2022

  1. Update dependencies

    ai committed May 1, 2022
    Copy the full SHA
    684afed View commit details
  2. Fix Node.js 12 on CI

    ai committed May 1, 2022
    Copy the full SHA
    08d960e View commit details
  3. Copy the full SHA
    51b991c View commit details
  4. Release 10.4.6 version

    ai committed May 1, 2022
    Copy the full SHA
    0a82431 View commit details
23 changes: 21 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -33,7 +33,6 @@ jobs:
node-version:
- 16
- 14
- 12
name: Node.js ${{ matrix.node-version }} Quick
steps:
- name: Checkout the repository
@@ -53,7 +52,27 @@ jobs:
run: pnpm unit
env:
FORCE_COLOR: 2
old:
old12:
runs-on: ubuntu-latest
name: Node.js 12 Quick
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: "^6.0.0"
- name: Install Node.js 10
uses: actions/setup-node@v3
with:
node-version: 12
- name: Install dependencies
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Run unit tests
run: pnpm unit
env:
FORCE_COLOR: 2
old10:
runs-on: ubuntu-latest
name: Node.js 10 Quick
steps:
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.6
* Fixed `print-color-adjust` support.

## 10.4.5
* Fixed `NaN` in grid (by @SukkaW).

20 changes: 10 additions & 10 deletions data/prefixes.js
Original file line number Diff line number Diff line change
@@ -1077,16 +1077,6 @@ f(prefixOverscroll, { match: /a #1/ }, browsers =>
})
)

// color-adjust
let prefixColorAdjust = require('caniuse-lite/data/features/css-color-adjust')

f(prefixColorAdjust, browsers =>
prefix(['color-adjust'], {
feature: 'css-color-adjust',
browsers
})
)

// text-orientation
let prefixTextOrientation = require('caniuse-lite/data/features/css-text-orientation')

@@ -1096,3 +1086,13 @@ f(prefixTextOrientation, browsers =>
browsers
})
)

// print-color-adjust
let prefixPrintAdjust = require('caniuse-lite/data/features/css-print-color-adjust')

f(prefixPrintAdjust, browsers =>
prefix(['print-color-adjust', 'color-adjust'], {
feature: 'css-print-color-adjust',
browsers
})
)
6 changes: 1 addition & 5 deletions lib/hacks/autofill.js
Original file line number Diff line number Diff line change
@@ -6,11 +6,7 @@ class Autofill extends Selector {
super(name, prefixes, all)

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

6 changes: 1 addition & 5 deletions lib/hacks/file-selector-button.js
Original file line number Diff line number Diff line change
@@ -6,11 +6,7 @@ class FileSelectorButton extends Selector {
super(name, prefixes, all)

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

8 changes: 4 additions & 4 deletions lib/hacks/color-adjust.js → lib/hacks/print-color-adjust.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
let Declaration = require('../declaration')

class ColorAdjust extends Declaration {
class PrintColorAdjust extends Declaration {
/**
* Change property name for WebKit-based browsers
*/
@@ -12,10 +12,10 @@ class ColorAdjust extends Declaration {
* Return property name by spec
*/
normalize() {
return 'color-adjust'
return 'print-color-adjust'
}
}

ColorAdjust.names = ['color-adjust', 'print-color-adjust']
PrintColorAdjust.names = ['print-color-adjust', 'color-adjust']

module.exports = ColorAdjust
module.exports = PrintColorAdjust
4 changes: 2 additions & 2 deletions lib/prefixes.js
Original file line number Diff line number Diff line change
@@ -33,7 +33,6 @@ let hackAlignItems = require('./hacks/align-items')
let hackUserSelect = require('./hacks/user-select')
let hackFlexShrink = require('./hacks/flex-shrink')
let hackBreakProps = require('./hacks/break-props')
let hackColorAdjust = require('./hacks/color-adjust')
let hackWritingMode = require('./hacks/writing-mode')
let hackBorderImage = require('./hacks/border-image')
let hackAlignContent = require('./hacks/align-content')
@@ -53,6 +52,7 @@ let hackBackgroundSize = require('./hacks/background-size')
let hackGridRowColumn = require('./hacks/grid-row-column')
let hackGridRowsColumns = require('./hacks/grid-rows-columns')
let hackGridColumnAlign = require('./hacks/grid-column-align')
let hackPrintColorAdjust = require('./hacks/print-color-adjust')
let hackOverscrollBehavior = require('./hacks/overscroll-behavior')
let hackGridTemplateAreas = require('./hacks/grid-template-areas')
let hackTextEmphasisPosition = require('./hacks/text-emphasis-position')
@@ -92,7 +92,6 @@ Declaration.hack(hackAlignItems)
Declaration.hack(hackUserSelect)
Declaration.hack(hackFlexShrink)
Declaration.hack(hackBreakProps)
Declaration.hack(hackColorAdjust)
Declaration.hack(hackWritingMode)
Declaration.hack(hackBorderImage)
Declaration.hack(hackAlignContent)
@@ -114,6 +113,7 @@ Declaration.hack(hackGridRowsColumns)
Declaration.hack(hackGridColumnAlign)
Declaration.hack(hackOverscrollBehavior)
Declaration.hack(hackGridTemplateAreas)
Declaration.hack(hackPrintColorAdjust)
Declaration.hack(hackTextEmphasisPosition)
Declaration.hack(hackTextDecorationSkipInk)
Value.hack(hackGradient)
8 changes: 7 additions & 1 deletion lib/processor.js
Original file line number Diff line number Diff line change
@@ -112,7 +112,13 @@ class Processor {
let prop = decl.prop
let value = decl.value

if (prop === 'grid-row-span') {
if (prop === 'color-adjust') {
result.warn(
'Replace color-adjust to print-color-adjust. ' +
'The color-adjust shorthand is currently deprecated.',
{ node: decl }
)
} else if (prop === 'grid-row-span') {
result.warn(
'grid-row-span is not part of final Grid Layout. Use grid-row.',
{ node: decl }
15 changes: 6 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "autoprefixer",
"version": "10.4.5",
"version": "10.4.6",
"description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website",
"engines": {
"node": "^10 || ^12 || >=14"
@@ -39,26 +39,26 @@
"postcss": "^8.1.0"
},
"dependencies": {
"browserslist": "^4.20.2",
"caniuse-lite": "^1.0.30001332",
"browserslist": "^4.20.3",
"caniuse-lite": "^1.0.30001334",
"fraction.js": "^4.2.0",
"normalize-range": "^0.1.2",
"picocolors": "^1.0.0",
"postcss-value-parser": "^4.2.0"
},
"devDependencies": {
"@logux/eslint-config": "^47.0.0",
"@logux/eslint-config": "^47.2.0",
"@size-limit/preset-small-lib": "7.0.8",
"c8": "^7.11.2",
"clean-publish": "^4.0.0",
"eslint": "^8.14.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-n": "^15.1.0",
"eslint-plugin-n": "^15.2.0",
"eslint-plugin-prefer-let": "^3.0.1",
"eslint-plugin-promise": "^6.0.0",
"nanospy": "^0.5.0",
"postcss": "^8.4.12",
"postcss": "^8.4.13",
"size-limit": "^7.0.8",
"uvu": "^0.5.3"
},
@@ -78,9 +78,6 @@
"eslintConfig": {
"extends": "@logux/eslint-config",
"rules": {
"node/no-missing-require": "off",
"no-unused-expressions": "off",
"no-unused-vars": "off",
"no-console": "off"
},
"overrides": [
Loading