Skip to content

Commit

Permalink
Update dependencies (#16603)
Browse files Browse the repository at this point in the history
* update

* update

* manually revert acorn upgrade

* update acorn

* review

---------

Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
  • Loading branch information
liuxingbaoyu and JLHwung authored Jul 3, 2024
1 parent cfe13c2 commit fc0748a
Show file tree
Hide file tree
Showing 13 changed files with 335 additions and 303 deletions.
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# Specifying `config` manually avoids `lint-staged` scanning the entire repository, even `package.json` containing test suites.
# Use `--no-stash` to skip backup files as we don't automatically fix lint errors.
./node_modules/.bin/lint-staged --config package.json --no-stash
2 changes: 1 addition & 1 deletion Makefile.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ export default [

// v8
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/no-unsafe-function-type": "off",
},
}),
{
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,37 +52,37 @@
"c8": "^8.0.1",
"charcodes": "^0.2.0",
"core-js": "^3.36.1",
"eslint": "^9.2.0",
"eslint": "^9.6.0",
"eslint-formatter-codeframe": "^7.32.1",
"eslint-import-resolver-node": "^0.3.9",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-n": "^17.5.0",
"eslint-plugin-n": "^17.9.0",
"eslint-plugin-prettier": "^5.1.3",
"execa": "^8.0.1",
"glob": "^10.3.10",
"gulp": "^4.0.2",
"gulp-plumber": "^1.2.1",
"husky": "^8.0.3",
"husky": "^9.0.11",
"import-meta-resolve": "^4.1.0",
"is-ci": "^3.0.1",
"jest": "^30.0.0-alpha.2",
"jest-light-runner": "^0.6.0",
"jest-worker": "^30.0.0-alpha.2",
"json5": "^2.2.3",
"lint-staged": "^15.2.0",
"lint-staged": "^15.2.7",
"mergeiterator": "^1.4.4",
"picocolors": "^1.0.0",
"prettier": "^3.2.5",
"rollup": "^4.9.1",
"prettier": "^3.3.2",
"rollup": "^4.18.0",
"rollup-plugin-dts": "patch:rollup-plugin-dts@npm%3A6.1.0#~/.yarn/patches/rollup-plugin-dts-npm-6.1.0-6d41e665a7.patch",
"rollup-plugin-dts-5": "npm:rollup-plugin-dts@^5.3.1",
"rollup-plugin-polyfill-node": "^0.13.0",
"semver": "^6.3.1",
"shelljs": "^0.8.5",
"test262-stream": "^1.4.0",
"typescript": "5.5.1-rc",
"typescript-eslint": "rc-v8"
"typescript": "5.5.3",
"typescript-eslint": "8.0.0-alpha.39"
},
"workspaces": [
"codemods/*",
Expand Down
4 changes: 3 additions & 1 deletion packages/babel-cli/src/babel/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ export default function parseArgv(args: Array<string>): CmdOptions | null {
? // glob 9+ no longer sorts the result, here we maintain the glob 7 behaviour
// https://github.com/isaacs/node-glob/blob/c3cd57ae128faa0e9190492acc743bb779ac4054/common.js#L151
glob.sync(input, { dotRelative: true }).sort(alphasort)
: (USE_ESM ? glob.default.sync : glob.sync)(input);
: // @ts-expect-error When USE_ESM is true and BABEL_8_BREAKING is off,
// the glob package is an ESM wrapper of the CJS glob 7
(USE_ESM ? glob.default.sync : glob.sync)(input);
if (!files.length) files = [input];
globbed.push(...files);
return globbed;
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-helper-validator-option/src/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class OptionValidator {
* The property values of `TopLevelOptionShape` can be arbitrary
* @memberof OptionValidator
*/
validateTopLevelOptions(options: Object, TopLevelOptionShape: Object): void {
validateTopLevelOptions(options: object, TopLevelOptionShape: object): void {
const validOptionNames = Object.keys(TopLevelOptionShape);
for (const option of Object.keys(options)) {
if (!validOptionNames.includes(option)) {
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-helpers/src/helpers/getPrototypeOf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function _getPrototypeOf(o: object) {
_getPrototypeOf = Object.setPrototypeOf
? // @ts-expect-error -- intentionally omitting the argument
Object.getPrototypeOf.bind(/* undefined */)
: function _getPrototypeOf<T extends Object>(o: T) {
: function _getPrototypeOf<T extends object>(o: T) {
return (o as any).__proto__ || Object.getPrototypeOf(o);
};
return _getPrototypeOf(o);
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-helpers/src/helpers/set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function set(
}

export default function _set(
target: Object,
target: object,
property: PropertyKey,
value: any,
receiver?: any,
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-helpers/src/helpers/setPrototypeOf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function _setPrototypeOf(o: object, p: object) {
_setPrototypeOf = Object.setPrototypeOf
? // @ts-expect-error - intentionally omitted argument
Object.setPrototypeOf.bind(/* undefined */)
: function _setPrototypeOf(o: Object, p: object) {
: function _setPrototypeOf(o: object, p: object) {
(o as any).__proto__ = p;
return o;
};
Expand Down
1 change: 0 additions & 1 deletion packages/babel-helpers/src/helpers/usingCtx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ export default function _usingCtx(): UsingCtxReturn {
return err(e as Error);
}
}
// eslint-disable-next-line @typescript-eslint/only-throw-error
if (error !== empty) throw error;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/babel-parser/src/plugins/estree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default (superClass: typeof Parser) =>
// @ts-expect-error ESTree plugin changes node types
parseBigIntLiteral(value: any): N.Node {
// https://github.com/estree/estree/blob/master/es2020.md#bigintliteral
let bigInt: BigInt | null;
let bigInt: bigint | null;
try {
bigInt = BigInt(value);
} catch {
Expand Down
4 changes: 2 additions & 2 deletions scripts/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import isCI from "is-ci";
import husky from "husky";

if (!isCI) {
if (!existsSync(".husky/_/husky.sh")) {
husky.install();
if (!existsSync(".husky/_/h")) {
husky();
}

if (!existsSync(".vscode/settings.json")) {
Expand Down
Loading

0 comments on commit fc0748a

Please sign in to comment.