Skip to content

Commit

Permalink
Drop support for Node.js v12 (#11089)
Browse files Browse the repository at this point in the history
* bump `postcss-load-config` in the oxide engine

* bump `postcss-load-config` in the stable engine

* update changelog

* Switch to stable

* Update Node to v14

* Update to latest dependency versions

* Update test helper for new version of `rimraf`

Co-Authored-By: Jordan Pittman <[email protected]>

* Downgrade `lightningcss` to `v1.18.0`

Co-Authored-By: Jordan Pittman <[email protected]>

* Switch back to oxide

* Update Github actions from Node 12 to Node 14

* Update oxide dependencies

* Update stable dependencies

* Update `content-resolution` integration test dependencies

* Update `postcss-cli` integration test dependencies

* Update `rollup` integration test dependencies

* Update `rollup-sass` integration test dependencies

* Update `vite` integration test dependencies

* Update `webpack-5` integration test dependencies

* Update changelog

* Remove `color-name` dependency

* Replace `quick-lru` dependency with `@alloc/quick-lru`

* Replace `quick-lru` dependency with `@alloc/quick-lru` in stable

* Fix standalone CLI test

---------

Co-authored-by: Jonathan Reinink <[email protected]>
Co-authored-by: Jordan Pittman <[email protected]>
  • Loading branch information
3 people authored Apr 25, 2023
1 parent 9bb45cd commit bd0497f
Show file tree
Hide file tree
Showing 21 changed files with 11,032 additions and 7,287 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

strategy:
matrix:
node-version: [12, 18]
node-version: [14, 18]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-insiders-oxide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ jobs:
include:
- target: x86_64-unknown-linux-gnu
strip: strip
image: docker.io/centos/nodejs-12-centos7
image: docker.io/centos/nodejs-14-centos7
- target: aarch64-unknown-linux-gnu
strip: aarch64-linux-gnu-strip
image: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-oxide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ jobs:
include:
- target: x86_64-unknown-linux-gnu
strip: strip
image: docker.io/centos/nodejs-12-centos7
image: docker.io/centos/nodejs-14-centos7
- target: aarch64-unknown-linux-gnu
strip: aarch64-linux-gnu-strip
image: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [12]
node-version: [14]

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Ensure multiple `theme(spacing[5])` calls with bracket notation in arbitrary properties work ([#11039](https://github.com/tailwindlabs/tailwindcss/pull/11039))
- Normalize arbitrary modifiers ([#11057](https://github.com/tailwindlabs/tailwindcss/pull/11057))

### Changed

- Drop support for Node.js v12 ([#11089](https://github.com/tailwindlabs/tailwindcss/pull/11089))

## [3.3.1] - 2023-03-30

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions integrations/content-resolution/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
},
"devDependencies": {
"postcss": "^8.4.21",
"postcss-cli": "^9.1.0"
"postcss": "^8.4.23",
"postcss-cli": "^10.1.0"
}
}
4 changes: 2 additions & 2 deletions integrations/postcss-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
},
"devDependencies": {
"postcss": "^8.4.21",
"postcss-cli": "^9.1.0"
"postcss": "^8.4.23",
"postcss-cli": "^10.1.0"
}
}
4 changes: 2 additions & 2 deletions integrations/rollup-sass/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
}
},
"devDependencies": {
"rollup": "^3.20.0",
"rollup": "^3.21.0",
"rollup-plugin-postcss": "^4.0.2",
"sass": "^1.59.3"
"sass": "^1.62.0"
}
}
2 changes: 1 addition & 1 deletion integrations/rollup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
},
"devDependencies": {
"rollup": "^3.20.0",
"rollup": "^3.21.0",
"rollup-plugin-postcss": "^4.0.2"
}
}
2 changes: 1 addition & 1 deletion integrations/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
},
"devDependencies": {
"isomorphic-fetch": "^3.0.0",
"vite": "^4.2.1"
"vite": "^4.3.2"
}
}
10 changes: 5 additions & 5 deletions integrations/webpack-5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
}
},
"devDependencies": {
"css-loader": "^6.7.1",
"mini-css-extract-plugin": "^2.7.2",
"postcss-loader": "^6.2.1",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1"
"css-loader": "^6.7.3",
"mini-css-extract-plugin": "^2.7.5",
"postcss-loader": "^7.2.4",
"webpack": "^5.80.0",
"webpack-cli": "^5.0.2"
}
}
35 changes: 18 additions & 17 deletions jest/runInTempDirectory.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
import fs from 'fs'
import fs from 'fs/promises'
import path from 'path'

import rimraf from 'rimraf'
import { rimraf } from 'rimraf'

let id = 0

export default function (callback) {
return new Promise((resolve) => {
const workerId = `${process.env.JEST_WORKER_ID}-${id++}`
const tmpPath = path.resolve(__dirname, `../__tmp_${workerId}`)
const currentPath = process.cwd()
/**
* @template T
* @param {() => Promise<T>} callback
* @returns {Promise<T>}
*/
export default async function (callback) {
const workerId = `${process.env.JEST_WORKER_ID}-${id++}`
const tmpPath = path.resolve(__dirname, `../__tmp_${workerId}`)
const currentPath = process.cwd()

rimraf.sync(tmpPath)
fs.mkdirSync(tmpPath)
process.chdir(tmpPath)
await rimraf(tmpPath)
await fs.mkdir(tmpPath)

callback().then(() => {
process.chdir(currentPath)
process.chdir(tmpPath)
let result = await callback()
process.chdir(currentPath)

rimraf.sync(tmpPath)
resolve()
})
})
await rimraf(tmpPath)
return result
}
Loading

0 comments on commit bd0497f

Please sign in to comment.