-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
1 parent
9bb45cd
commit bd0497f
Showing
21 changed files
with
11,032 additions
and
7,287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
|
||
strategy: | ||
matrix: | ||
node-version: [12] | ||
node-version: [14] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
} | ||
}, | ||
"devDependencies": { | ||
"rollup": "^3.20.0", | ||
"rollup": "^3.21.0", | ||
"rollup-plugin-postcss": "^4.0.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,6 @@ | |
}, | ||
"devDependencies": { | ||
"isomorphic-fetch": "^3.0.0", | ||
"vite": "^4.2.1" | ||
"vite": "^4.3.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
Oops, something went wrong.