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/postcss-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 11.0.0
Choose a base ref
...
head repository: postcss/postcss-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 11.0.1
Choose a head ref
  • 14 commits
  • 7 files changed
  • 4 contributors

Commits on Dec 8, 2023

  1. Update dependency dependency-graph to v1 (#465)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Dec 8, 2023
    Copy the full SHA
    278377f View commit details

Commits on Jan 3, 2024

  1. Update dependency postcss-import to v16 (#468)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 3, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    9854cea View commit details
  2. Update dependency c8 to v9 (#469)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 3, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    ea71afd View commit details

Commits on Jan 12, 2024

  1. Update dependency prettier to ~3.2.0 (#470)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 12, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    4c5a69c View commit details

Commits on Jan 29, 2024

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    528af4c View commit details

Commits on Jun 3, 2024

  1. Update dependency prettier to ~3.3.0 (#477)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jun 3, 2024
    Copy the full SHA
    0f52be7 View commit details

Commits on Nov 26, 2024

  1. Update dependency prettier to ~3.4.0 (#484)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Nov 26, 2024
    Copy the full SHA
    5f9f92a View commit details

Commits on Mar 12, 2025

  1. feat: replace globby with tinyglobby and remove get-stdin in favor of…

    … builtin stream.consumers.text (#489)
    talentlessguy authored Mar 12, 2025
    Copy the full SHA
    b5d8f0e View commit details
  2. Update dependency c8 to v10 (#480)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 12, 2025
    Copy the full SHA
    bfad16d View commit details
  3. Update dependency uuid to v11 (#482)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 12, 2025
    Copy the full SHA
    bd416f5 View commit details
  4. Update dependency prettier to ~3.5.0 (#488)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 12, 2025
    Copy the full SHA
    1363a65 View commit details
  5. chore(deps): update dependency sugarss to v5 (#483)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 12, 2025
    Copy the full SHA
    733ef42 View commit details
  6. Use eslint v9 + flat config (#490)

    RyanZim authored Mar 12, 2025
    Copy the full SHA
    0dc4eba View commit details
  7. 11.0.1

    RyanZim committed Mar 12, 2025
    Copy the full SHA
    7bea180 View commit details
Showing with 39 additions and 24 deletions.
  1. +0 −7 .eslintrc.yaml
  2. +4 −0 CHANGELOG.md
  3. +2 −0 README.md
  4. +16 −0 eslint.config.js
  5. +4 −4 index.js
  6. +11 −11 package.json
  7. +2 −2 test/helpers/env.js
7 changes: 0 additions & 7 deletions .eslintrc.yaml

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 11.0.1 / 2025-03-12

- Update and minimize dependencies

# 11.0.0 / 2023-12-05

- **BREAKING:** Require Node.js v18+ ([#464](https://github.com/postcss/postcss-cli/pull/464))
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -12,6 +12,8 @@
<h1>PostCSS CLI</h1>
</div>

PostCSS CLI is a command line interface for [PostCSS](https://postcss.org/)

<h2 align="center">Install</h2>

```bash
16 changes: 16 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import problems from 'eslint-config-problems'
import globals from 'globals'

export default [
problems,
{
languageOptions: {
globals: {
...globals.node,
},
},
rules: {
'no-console': 'off',
},
},
]
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -4,10 +4,10 @@ import fs from 'fs-extra'
import path from 'path'

import prettyHrtime from 'pretty-hrtime'
import stdin from 'get-stdin'
import { text } from 'stream/consumers'
import read from 'read-cache'
import pc from 'picocolors'
import { globby } from 'globby'
import { glob } from 'tinyglobby'
import slash from 'slash'
import chokidar from 'chokidar'

@@ -86,7 +86,7 @@ buildCliConfig()
}

if (input && input.length) {
return globby(
return glob(
input.map((i) => slash(String(i))),
{ dot: argv.includeDotfiles },
)
@@ -188,7 +188,7 @@ function files(files) {
return Promise.all(
files.map((file) => {
if (file === 'stdin') {
return stdin().then((content) => {
return text(process.stdin).then((content) => {
if (!content) return error('Input Error: Did not receive any STDIN')
return css(content, 'stdin')
})
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postcss-cli",
"version": "11.0.0",
"version": "11.0.1",
"description": "CLI for PostCSS",
"type": "module",
"engines": {
@@ -19,29 +19,29 @@
},
"dependencies": {
"chokidar": "^3.3.0",
"dependency-graph": "^0.11.0",
"dependency-graph": "^1.0.0",
"fs-extra": "^11.0.0",
"get-stdin": "^9.0.0",
"globby": "^14.0.0",
"picocolors": "^1.0.0",
"postcss-load-config": "^5.0.0",
"postcss-reporter": "^7.0.0",
"pretty-hrtime": "^1.0.3",
"read-cache": "^1.0.0",
"slash": "^5.0.0",
"tinyglobby": "^0.2.12",
"yargs": "^17.0.0"
},
"devDependencies": {
"ava": "^3.1.0",
"c8": "^8.0.0",
"c8": "^10.0.0",
"coveralls": "^3.0.0",
"eslint": "^8.55.0",
"eslint-config-problems": "8.0.0",
"eslint": "^9.22.0",
"eslint-config-problems": "9.0.0",
"globals": "^16.0.0",
"postcss": "^8.0.4",
"postcss-import": "^15.0.0",
"prettier": "~3.1.0",
"sugarss": "^4.0.0",
"uuid": "^9.0.0"
"postcss-import": "^16.0.0",
"prettier": "~3.5.0",
"sugarss": "^5.0.0",
"uuid": "^11.0.0"
},
"peerDependencies": {
"postcss": "^8.0.0"
4 changes: 2 additions & 2 deletions test/helpers/env.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import fs from 'fs-extra'
import path from 'path'
import { globby } from 'globby'
import { glob } from 'tinyglobby'

import tmp from './tmp.js'

export default function (config, fixtures = '**/*', extension = 'cjs') {
const dir = tmp()

return Promise.all([
globby(fixtures, { cwd: 'test/fixtures' }).then((list) => {
glob(fixtures, { cwd: 'test/fixtures' }).then((list) => {
return list.map((item) => {
return fs.copy(path.join('test/fixtures', item), path.join(dir, item))
})