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

Lines changed: 1 addition & 4 deletions
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

Lines changed: 5 additions & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 5 additions & 6 deletions
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

Lines changed: 7 additions & 11 deletions
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

Lines changed: 3 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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
});

0 commit comments

Comments
 (0)