Skip to content

Commit bd0497f

Browse files
RobinMalfaitreininkthecrypticace
authored
Drop support for Node.js v12 (#11089)
* 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]>
1 parent 9bb45cd commit bd0497f

21 files changed

+11032
-7287
lines changed

.github/workflows/ci-stable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
strategy:
2626
matrix:
27-
node-version: [12, 18]
27+
node-version: [14, 18]
2828

2929
steps:
3030
- uses: actions/checkout@v3

.github/workflows/release-insiders-oxide.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ jobs:
170170
include:
171171
- target: x86_64-unknown-linux-gnu
172172
strip: strip
173-
image: docker.io/centos/nodejs-12-centos7
173+
image: docker.io/centos/nodejs-14-centos7
174174
- target: aarch64-unknown-linux-gnu
175175
strip: aarch64-linux-gnu-strip
176176
image: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian

.github/workflows/release-oxide.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ jobs:
138138
include:
139139
- target: x86_64-unknown-linux-gnu
140140
strip: strip
141-
image: docker.io/centos/nodejs-12-centos7
141+
image: docker.io/centos/nodejs-14-centos7
142142
- target: aarch64-unknown-linux-gnu
143143
strip: aarch64-linux-gnu-strip
144144
image: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian

.github/workflows/release-stable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [12]
19+
node-version: [14]
2020

2121
steps:
2222
- uses: actions/checkout@v3

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616
- Ensure multiple `theme(spacing[5])` calls with bracket notation in arbitrary properties work ([#11039](https://github.com/tailwindlabs/tailwindcss/pull/11039))
1717
- Normalize arbitrary modifiers ([#11057](https://github.com/tailwindlabs/tailwindcss/pull/11057))
1818

19+
### Changed
20+
21+
- Drop support for Node.js v12 ([#11089](https://github.com/tailwindlabs/tailwindcss/pull/11089))
22+
1923
## [3.3.1] - 2023-03-30
2024

2125
### Fixed

integrations/content-resolution/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919
},
2020
"devDependencies": {
21-
"postcss": "^8.4.21",
22-
"postcss-cli": "^9.1.0"
21+
"postcss": "^8.4.23",
22+
"postcss-cli": "^10.1.0"
2323
}
2424
}

integrations/postcss-cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919
},
2020
"devDependencies": {
21-
"postcss": "^8.4.21",
22-
"postcss-cli": "^9.1.0"
21+
"postcss": "^8.4.23",
22+
"postcss-cli": "^10.1.0"
2323
}
2424
}

integrations/rollup-sass/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
}
1919
},
2020
"devDependencies": {
21-
"rollup": "^3.20.0",
21+
"rollup": "^3.21.0",
2222
"rollup-plugin-postcss": "^4.0.2",
23-
"sass": "^1.59.3"
23+
"sass": "^1.62.0"
2424
}
2525
}

integrations/rollup/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919
},
2020
"devDependencies": {
21-
"rollup": "^3.20.0",
21+
"rollup": "^3.21.0",
2222
"rollup-plugin-postcss": "^4.0.2"
2323
}
2424
}

integrations/vite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
},
2222
"devDependencies": {
2323
"isomorphic-fetch": "^3.0.0",
24-
"vite": "^4.2.1"
24+
"vite": "^4.3.2"
2525
}
2626
}

integrations/webpack-5/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
}
2222
},
2323
"devDependencies": {
24-
"css-loader": "^6.7.1",
25-
"mini-css-extract-plugin": "^2.7.2",
26-
"postcss-loader": "^6.2.1",
27-
"webpack": "^5.75.0",
28-
"webpack-cli": "^5.0.1"
24+
"css-loader": "^6.7.3",
25+
"mini-css-extract-plugin": "^2.7.5",
26+
"postcss-loader": "^7.2.4",
27+
"webpack": "^5.80.0",
28+
"webpack-cli": "^5.0.2"
2929
}
3030
}

jest/runInTempDirectory.js

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
1-
import fs from 'fs'
1+
import fs from 'fs/promises'
22
import path from 'path'
3-
4-
import rimraf from 'rimraf'
3+
import { rimraf } from 'rimraf'
54

65
let id = 0
76

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

14-
rimraf.sync(tmpPath)
15-
fs.mkdirSync(tmpPath)
16-
process.chdir(tmpPath)
17+
await rimraf(tmpPath)
18+
await fs.mkdir(tmpPath)
1719

18-
callback().then(() => {
19-
process.chdir(currentPath)
20+
process.chdir(tmpPath)
21+
let result = await callback()
22+
process.chdir(currentPath)
2023

21-
rimraf.sync(tmpPath)
22-
resolve()
23-
})
24-
})
24+
await rimraf(tmpPath)
25+
return result
2526
}

0 commit comments

Comments
 (0)