Skip to content

Commit 6f68c78

Browse files
authored
Update dependencies (#9968)
1 parent 684b164 commit 6f68c78

File tree

56 files changed

+4328
-4180
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+4328
-4180
lines changed

.github/workflows/ci.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,11 @@ jobs:
9595
packages/core/rust/*.node
9696
9797
integration_tests:
98-
name: Integration tests (${{ matrix.version == 'v3' && 'v3, ' || '' }}${{ matrix.os }}, Node ${{ matrix.node }})
98+
name: Integration tests (${{ matrix.os }}, Node ${{ matrix.node }})
9999
strategy:
100100
matrix:
101101
node: [18, 20]
102102
os: [ubuntu-latest, macos-latest, windows-latest]
103-
version: [v2, v3]
104103
# These tend to be quite flakey, so one failed instance shouldn't stop
105104
# others from potentially succeeding
106105
fail-fast: false
@@ -124,8 +123,6 @@ jobs:
124123
- run: yarn build-native-release
125124
- run: yarn build
126125
- run: yarn test:integration-ci
127-
env:
128-
PARCEL_V3: ${{ matrix.version == 'v3' && 'true' || 'false' }}
129126

130127
# Deployment steps taken from https://github.com/colinwilson/static-site-to-vercel/blob/master/.github/workflows/deploy-preview.yml
131128
repl_build:

flow-libs/dotenv-expand.js.flow

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ declare module 'dotenv-expand' {
66
declare type DotenvConfig = {
77
error?: Error,
88
parsed?: { [string]: string, ... },
9+
processEnv?: {...},
910
...
1011
};
1112

1213
// See: https://github.com/motdotla/dotenv-expand/blob/ddb73d02322fe8522b4e05b73e1c1ad24ea7c14a/lib/main.js
13-
declare module.exports: (config: DotenvConfig) => DotenvConfig;
14+
declare module.exports: {
15+
expand: (config: DotenvConfig) => void,
16+
...
17+
};
1418
}

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
"buffer": "mischnic/buffer#b8a4fa94",
5050
"cross-env": "^7.0.0",
5151
"eslint": "^8.41.0",
52+
"fast-glob": "^3.2.12",
5253
"flow-bin": "0.184.0",
53-
"glob": "^7.1.6",
5454
"gulp": "^4.0.2",
5555
"gulp-babel": "^8.0.0",
5656
"husky": "^6.0.0",
@@ -60,7 +60,7 @@
6060
"mocha-junit-reporter": "^2.0.0",
6161
"mocha-multi-reporters": "^1.5.1",
6262
"prettier": "2.4.1",
63-
"punycode": "^1.4.1",
63+
"punycode": "^2.3.1",
6464
"rimraf": "^5.0.5",
6565
"semver": "^7.5.2",
6666
"sinon": "^7.3.1"

packages/core/codeframe/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
}
2828
},
2929
"dependencies": {
30-
"chalk": "^4.1.0"
30+
"chalk": "^4.1.2"
3131
},
3232
"devDependencies": {
3333
"emphasize": "^4.2.0",

packages/core/core/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"base-x": "^3.0.8",
4444
"browserslist": "^4.6.6",
4545
"clone": "^2.1.1",
46-
"dotenv": "^7.0.0",
47-
"dotenv-expand": "^5.1.0",
46+
"dotenv": "^16.4.5",
47+
"dotenv-expand": "^11.0.6",
4848
"json5": "^2.2.0",
4949
"msgpackr": "^1.9.9",
5050
"nullthrows": "^1.1.1",

packages/core/core/src/loadDotEnv.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import type {FileSystem} from '@parcel/fs';
44
import type {EnvMap, FilePath} from '@parcel/types';
55

66
import {resolveConfig} from '@parcel/utils';
7+
// $FlowFixMe
78
import dotenv from 'dotenv';
89
import variableExpansion from 'dotenv-expand';
910

@@ -39,16 +40,14 @@ export default async function loadEnv(
3940

4041
// `ignoreProcessEnv` prevents dotenv-expand from writing values into `process.env`:
4142
// https://github.com/motdotla/dotenv-expand/blob/ddb73d02322fe8522b4e05b73e1c1ad24ea7c14a/lib/main.js#L5
42-
let output = variableExpansion({
43+
let output = {};
44+
variableExpansion.expand({
45+
processEnv: output,
4346
parsed: dotenv.parse(await fs.readFile(envPath)),
4447
ignoreProcessEnv: true,
4548
});
4649

47-
if (output.error != null) {
48-
throw output.error;
49-
}
50-
51-
return output.parsed;
50+
return output;
5251
}),
5352
);
5453

packages/core/integration-tests/package.json

+7-11
Original file line numberDiff line numberDiff line change
@@ -19,42 +19,38 @@
1919
"@babel/plugin-syntax-module-attributes": "^7.10.4",
2020
"@babel/preset-env": "^7.22.14",
2121
"@babel/preset-typescript": "^7.22.11",
22-
"@jetbrains/kotlinc-js-api": "^1.2.12",
2322
"@mdx-js/react": "^1.5.3",
2423
"@types/react": "^17",
2524
"autoprefixer": "^10.4.0",
26-
"chalk": "^4.1.0",
25+
"chalk": "^4.1.2",
2726
"command-exists": "^1.2.6",
2827
"core-js": "^3.2.1",
2928
"cross-env": "^7.0.0",
3029
"elm": "^0.19.1-5",
3130
"elm-hot": "^1.1.5",
3231
"esbuild-register": "^3.5.0",
33-
"exif-reader": "^1.0.3",
32+
"exif-reader": "^2.0.1",
3433
"get-port": "^5.0.0",
35-
"graphql": "^15.0.0",
3634
"http-proxy-middleware": "^2.0.1",
37-
"js-yaml": "^4.0.0",
38-
"jsdom": "^19.0.0",
35+
"jsdom": "^25.0.1",
3936
"json5": "^2.2.0",
40-
"kotlin": "^1.3.11",
4137
"lodash": "^4.17.15",
4238
"ncp": "^2.0.0",
4339
"nib": "^1.1.2",
4440
"node-elm-compiler": "^5.0.5",
4541
"parcel": "2.12.0",
4642
"postcss": "^8.4.5",
4743
"postcss-custom-properties": "^12.1.2",
48-
"postcss-import": "^14.0.2",
49-
"posthtml-include": "^1.7.2",
44+
"postcss-import": "^16.1.0",
45+
"posthtml-include": "^2.0.1",
5046
"posthtml-obfuscate": "^0.1.5",
5147
"preact": "^10.5.9",
5248
"react": "^17.0.2",
5349
"react-dom": "^17.0.2",
54-
"sugarss": "^3.0.3",
50+
"sugarss": "^4.0.1",
5551
"tailwindcss": "^3.0.2",
5652
"tempy": "^0.3.0",
5753
"wasm-sourcemap": "^1.0.0",
58-
"ws": "^7.0.0"
54+
"ws": "^8.18.0"
5955
}
6056
}

packages/core/integration-tests/test/css.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,9 @@ describe('css', () => {
549549
path.join(__dirname, '/integration/css-nesting/a.css'),
550550
{
551551
defaultTargetOptions: {
552-
engines: {},
552+
engines: {
553+
browsers: 'chrome 80',
554+
},
553555
},
554556
},
555557
);

packages/core/integration-tests/test/hmr.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ describe('hmr', function () {
189189

190190
assert.equal(message.type, 'update');
191191

192-
assert.equal(message.assets.length, 2);
192+
assert.equal(message.assets.length, 1);
193193
});
194194

195195
it('should emit an HMR error on bundle failure', async function () {

packages/core/integration-tests/test/image.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,10 @@ describe('image', function () {
203203
const buffer = await outputFS.readFile(imagePath);
204204
const image = await sharp(buffer).metadata();
205205

206-
const {exif} = exifReader(image.exif);
206+
const exif = exifReader(image.exif);
207207

208208
assert.strictEqual(
209-
exif.UserComment.toString(),
209+
exif.Photo.UserComment.toString(),
210210
'ASCII\u0000\u0000\u0000This is a comment',
211211
);
212212
});

packages/core/integration-tests/test/integration/postcss-dir-dependency/plugin.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
module.exports = (opts = {}) => {
2-
const glob = require('glob');
2+
const glob = require('fast-glob');
33
const fs = require('fs');
4+
const path = require('path')
45

56
return {
67
postcssPlugin: 'postcss-test',
78
Once(root, {result}) {
89
root.walkRules((rule) => {
910
rule.each((decl) => {
1011
if (decl.value === 'bg-glob') {
11-
decl.value = glob.sync(__dirname + '/backgrounds/*.txt').sort().map(f => fs.readFileSync(f)).join(', ');
12+
decl.value = glob.sync('backgrounds/*.txt', {cwd: __dirname}).sort().map(f => fs.readFileSync(path.join(__dirname, f))).join(', ');
1213
result.messages.push({
1314
type: 'dir-dependency',
1415
dir: __dirname + '/backgrounds',

packages/core/integration-tests/test/parcel-link.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ describe('@parcel/link', () => {
4141

4242
it('prints help text', async () => {
4343
let cli = createProgram({fs: overlayFS});
44-
await assert.throws(() => cli('--help'), /\(outputHelp\)/);
44+
// $FlowFixMe[prop-missing]
45+
await assert.rejects(() => cli('--help'), /\(outputHelp\)/);
4546
});
4647

4748
it('links by default', async () => {

packages/core/integration-tests/test/xml.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ describe('xml', function () {
139139
contents.includes(
140140
`<img src="http://example.org/${path.basename(
141141
b.getBundles().find(b => b.type === 'png').filePath,
142-
)}">`,
142+
)}">`,
143143
),
144144
);
145145
assert(contents.includes(`<link>http://example.org/post.html</link>`));

packages/core/markdown-ansi/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
"node": ">= 16.0.0"
2121
},
2222
"dependencies": {
23-
"chalk": "^4.1.0"
23+
"chalk": "^4.1.2"
2424
}
2525
}

packages/core/package-manager/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@
5555
},
5656
"devDependencies": {
5757
"command-exists": "^1.2.6",
58-
"cross-spawn": "^6.0.4",
58+
"cross-spawn": "^7.0.3",
5959
"nullthrows": "^1.1.1",
60-
"split2": "^3.1.1"
60+
"split2": "^4.2.0"
6161
},
6262
"peerDependencies": {
6363
"@parcel/core": "^2.12.0"

packages/core/parcel/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
"@parcel/reporter-dev-server": "2.12.0",
3434
"@parcel/reporter-tracer": "2.12.0",
3535
"@parcel/utils": "2.12.0",
36-
"chalk": "^4.1.0",
37-
"commander": "^7.0.0",
36+
"chalk": "^4.1.2",
37+
"commander": "^12.1.0",
3838
"get-port": "^4.2.0"
3939
},
4040
"devDependencies": {

packages/core/profiler/src/SamplingProfiler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default class SamplingProfiler {
6868

6969
sendCommand(
7070
method: string,
71-
params?: mixed,
71+
params?: {...},
7272
): Promise<{profile: Profile, ...}> {
7373
invariant(this.session != null);
7474
return new Promise((resolve, reject) => {

packages/core/rust/browser.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* global WebAssembly, crypto */
2-
31
const {Environment, napi} = require('napi-wasm');
42

53
let env;

packages/core/test-utils/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
"@parcel/fs": "2.12.0",
1919
"@parcel/package-manager": "2.12.0",
2020
"@parcel/utils": "2.12.0",
21-
"chalk": "^4.1.0",
21+
"chalk": "^4.1.2",
2222
"ncp": "^2.0.0",
2323
"nullthrows": "^1.1.1",
2424
"posthtml": "^0.16.5",
25-
"posthtml-parser": "^0.10.1",
25+
"posthtml-parser": "^0.12.1",
2626
"resolve": "^1.12.0",
27-
"ws": "^7.0.0"
27+
"ws": "^8.18.0"
2828
}
2929
}

packages/core/utils/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"@parcel/markdown-ansi": "2.12.0",
4040
"@parcel/rust": "2.12.0",
4141
"@parcel/source-map": "^2.1.1",
42-
"chalk": "^4.1.0",
42+
"chalk": "^4.1.2",
4343
"nullthrows": "^1.1.1"
4444
},
4545
"devDependencies": {
@@ -51,12 +51,11 @@
5151
"is-glob": "^4.0.0",
5252
"is-url": "^1.2.2",
5353
"json5": "^2.2.0",
54-
"lru-cache": "^6.0.0",
54+
"lru-cache": "^10.0.0",
5555
"micromatch": "^4.0.4",
5656
"node-forge": "^1.2.1",
5757
"nullthrows": "^1.1.1",
5858
"open": "^7.0.3",
59-
"random-int": "^1.0.0",
6059
"snarkdown": "^2.0.0",
6160
"strip-ansi": "^6.0.0",
6261
"terminal-link": "^2.1.1"

packages/core/utils/src/config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import path from 'path';
77
import clone from 'clone';
88
import json5 from 'json5';
99
import {parse as toml} from '@iarna/toml';
10-
import LRU from 'lru-cache';
10+
import {LRUCache} from 'lru-cache';
1111

1212
export type ConfigOutput = {|
1313
config: ConfigResult,
@@ -19,7 +19,7 @@ export type ConfigOptions = {|
1919
parser?: string => any,
2020
|};
2121

22-
const configCache = new LRU<FilePath, ConfigOutput>({max: 500});
22+
const configCache = new LRUCache<FilePath, ConfigOutput>({max: 500});
2323
const resolveCache = new Map();
2424

2525
export function resolveConfig(
@@ -96,7 +96,7 @@ export async function loadConfig(
9696
}
9797

9898
loadConfig.clear = () => {
99-
configCache.reset();
99+
configCache.clear();
100100
resolveCache.clear();
101101
};
102102

packages/core/utils/test/PromiseQueue.test.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// @flow
22
import assert from 'assert';
3-
import randomInt from 'random-int';
43

54
import PromiseQueue from '../src/PromiseQueue';
65
import sinon from 'sinon';
@@ -66,7 +65,7 @@ describe('PromiseQueue', () => {
6665
running++;
6766
assert(queue._numRunning === running);
6867
assert(running <= maxConcurrent);
69-
await Promise.resolve(randomInt(1, 10)); //sleep(randomInt(1, 10));
68+
await Promise.resolve(Math.floor(Math.random() * 10) + 1);
7069
running--;
7170
}),
7271
);

packages/dev/bundle-stats-cli/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@parcel/query": "2.12.0",
2828
"@parcel/reporter-bundle-stats": "2.12.0",
2929
"@parcel/utils": "2.12.0",
30-
"commander": "^7.0.0"
30+
"commander": "^12.1.0"
3131
},
3232
"devDependencies": {
3333
"@parcel/babel-register": "2.12.0",

packages/dev/parcel-link/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@parcel/babel-register": "2.12.0",
1616
"@parcel/fs": "2.12.0",
1717
"@parcel/utils": "2.12.0",
18-
"commander": "^7.0.0",
18+
"commander": "^12.1.0",
1919
"nullthrows": "^1.1.1"
2020
}
2121
}

packages/dev/repl/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@parcel/fs": "2.12.0",
3232
"@parcel/package-manager": "2.12.0",
3333
"comlink": "^4.3.1",
34-
"filesize": "^6.3.0",
34+
"filesize": "^10.1.6",
3535
"idb": "^5.0.8",
3636
"isomorphic-fetch": "^3.0.0",
3737
"jszip": "^3.7.1",
@@ -45,6 +45,6 @@
4545
"browserslist": "Chrome 75",
4646
"devDependencies": {
4747
"eslint-config-react-app": "^7.0.1",
48-
"sharp": "^0.31.1"
48+
"sharp": "^0.33.5"
4949
}
5050
}

packages/dev/repl/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {
2727
} from './components/';
2828
import {saveState, reducer, getInitialState} from './components';
2929
import type {State} from './components';
30-
import filesize from 'filesize';
30+
import {filesize} from 'filesize';
3131
import {linkSourceMapVisualization} from './utils';
3232
import nullthrows from 'nullthrows';
3333

0 commit comments

Comments
 (0)