Skip to content

Commit 0431f3d

Browse files
In-range dependency updates (#237)
1 parent 5ceaa5e commit 0431f3d

File tree

458 files changed

+3354
-2298
lines changed

Some content is hidden

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

458 files changed

+3354
-2298
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
runs-on: ubuntu-latest
5050
strategy:
5151
matrix:
52-
node-version: [18, 16, 14, 12]
52+
node-version: [18, 16, 14]
5353
steps:
5454
- name: Checkout code
5555
uses: actions/checkout@v3
@@ -74,8 +74,6 @@ jobs:
7474
- name: Test on Node.js ${{ matrix.node-version }}
7575
# `maxWorkers` cannot be 1 because we are using `process.exitCode` in our tests.
7676
run: yarn jest --ci --color --maxWorkers=2
77-
env:
78-
BABEL_TYPES_8_BREAKING: true
7977
- name: Test the esm build
8078
run: yarn test:esm
8179

@@ -101,7 +99,5 @@ jobs:
10199
- name: Test on Node.js latest
102100
# `maxWorkers` cannot be 1 because we are using `process.exitCode` in our tests.
103101
run: yarn jest --ci --color --maxWorkers=2
104-
env:
105-
BABEL_TYPES_8_BREAKING: true
106102
- name: Test the esm build
107103
run: yarn test:esm

package.json

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,43 +18,43 @@
1818
"watch": "gulp watch"
1919
},
2020
"devDependencies": {
21-
"@babel/cli": "^7.22.6",
22-
"@babel/core": "^7.22.6",
23-
"@babel/eslint-parser": "^7.22.6",
24-
"@babel/eslint-plugin-development": "^7.22.5",
25-
"@babel/plugin-transform-runtime": "^7.22.6",
26-
"@babel/preset-env": "^7.22.6",
27-
"@babel/preset-typescript": "^7.22.5",
28-
"@babel/runtime": "^7.22.6",
29-
"@rollup/plugin-babel": "^5.3.0",
21+
"@babel/cli": "^7.27.2",
22+
"@babel/core": "^7.27.7",
23+
"@babel/eslint-parser": "^7.27.5",
24+
"@babel/eslint-plugin-development": "^7.27.1",
25+
"@babel/plugin-transform-runtime": "^7.27.4",
26+
"@babel/preset-env": "^7.27.2",
27+
"@babel/preset-typescript": "^7.27.1",
28+
"@babel/runtime": "^7.27.6",
29+
"@rollup/plugin-babel": "^5.3.1",
3030
"@rollup/plugin-json": "^4.1.0",
31-
"@rollup/plugin-node-resolve": "^11.2.0",
32-
"@types/babel__traverse": "^7.14.2",
33-
"@typescript-eslint/eslint-plugin": "^6.19.1",
34-
"@typescript-eslint/parser": "^6.19.1",
35-
"babel-jest": "^29.0.3",
31+
"@rollup/plugin-node-resolve": "^11.2.1",
32+
"@types/babel__traverse": "^7.20.7",
33+
"@typescript-eslint/eslint-plugin": "^8.35.0",
34+
"@typescript-eslint/parser": "^8.35.0",
35+
"babel-jest": "^29.7.0",
3636
"chalk": "^3.0.0",
37-
"electron-to-chromium": "^1.4.528",
38-
"eslint": "^8.12.0",
37+
"electron-to-chromium": "^1.5.177",
38+
"eslint": "^8.57.1",
3939
"eslint-formatter-codeframe": "^7.32.1",
40-
"eslint-plugin-import": "^2.26.0",
41-
"eslint-plugin-prettier": "^5.1.3",
40+
"eslint-plugin-import": "^2.32.0",
41+
"eslint-plugin-prettier": "^5.5.1",
4242
"fancy-log": "^1.3.3",
4343
"gulp": "^4.0.2",
4444
"gulp-babel": "^8.0.0",
45-
"gulp-newer": "^1.0.0",
45+
"gulp-newer": "^1.4.0",
4646
"gulp-plumber": "^1.2.1",
4747
"gulp-rename": "^1.4.0",
4848
"gulp-uglify": "^3.0.2",
4949
"gulp-watch": "^5.0.1",
50-
"jest": "^27.0.0",
51-
"lerna": "^3.20.2",
52-
"lodash": "^4.17.15",
53-
"prettier": "^3.2.4",
54-
"rimraf": "^2.6.3",
55-
"rollup": "^2.42.3",
56-
"through2": "^2.0.0",
57-
"typescript": "^5.3.3"
50+
"jest": "^27.5.1",
51+
"lerna": "^3.22.1",
52+
"lodash": "^4.17.21",
53+
"prettier": "^3.6.2",
54+
"rimraf": "^2.7.1",
55+
"rollup": "^2.79.2",
56+
"through2": "^2.0.5",
57+
"typescript": "^5.8.3"
5858
},
5959
"resolutions": {
6060
"@lerna/npm-publish": "patch:@lerna/npm-publish@npm:3.18.5#.yarn-patches/@lerna/npm-publish.patch",

packages/babel-helper-define-polyfill-provider/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,26 @@
3333
"./package.json": "./package.json"
3434
},
3535
"dependencies": {
36-
"@babel/helper-compilation-targets": "^7.22.6",
37-
"@babel/helper-plugin-utils": "^7.22.5",
38-
"debug": "^4.1.1",
36+
"@babel/helper-compilation-targets": "^7.27.2",
37+
"@babel/helper-plugin-utils": "^7.27.1",
38+
"debug": "^4.4.1",
3939
"lodash.debounce": "^4.0.8",
40-
"resolve": "^1.14.2"
40+
"resolve": "^1.22.10"
4141
},
4242
"peerDependencies": {
4343
"@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"
4444
},
4545
"devDependencies": {
46-
"@babel/cli": "^7.22.6",
47-
"@babel/core": "^7.22.6",
48-
"@babel/generator": "^7.22.5",
49-
"@babel/plugin-transform-modules-commonjs": "^7.22.5",
50-
"@babel/traverse": "^7.22.6",
51-
"babel-loader": "^8.1.0",
52-
"rollup": "^2.3.2",
46+
"@babel/cli": "^7.27.2",
47+
"@babel/core": "^7.27.7",
48+
"@babel/generator": "^7.27.5",
49+
"@babel/plugin-transform-modules-commonjs": "^7.27.1",
50+
"@babel/traverse": "^7.27.7",
51+
"babel-loader": "^8.4.1",
52+
"rollup": "^2.79.2",
5353
"rollup-plugin-babel": "^4.4.0",
54-
"strip-ansi": "^6.0.0",
55-
"webpack": "^4.42.1",
56-
"webpack-cli": "^3.3.11"
54+
"strip-ansi": "^6.0.1",
55+
"webpack": "^4.47.0",
56+
"webpack-cli": "^3.3.12"
5757
}
5858
}

packages/babel-helper-define-polyfill-provider/src/imports-injector.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ export default class ImportsCachedInjector {
2828
programPath: NodePath<t.Program>,
2929
url: string,
3030
moduleName: string,
31-
getVal: (isScript: boolean, source: t.StringLiteral) => t.Node,
31+
getVal: (
32+
isScript: boolean,
33+
source: t.StringLiteral,
34+
) => t.Statement | t.Declaration,
3235
) {
3336
const key = this._normalizeKey(programPath, url);
3437
const imports = this._ensure<Set<string>>(
@@ -58,7 +61,7 @@ export default class ImportsCachedInjector {
5861
source: t.StringLiteral,
5962
// eslint-disable-next-line no-undef
6063
name: t.Identifier,
61-
) => { node: t.Node; name: string },
64+
) => { node: t.Statement | t.Declaration; name: string },
6265
) {
6366
const key = this._normalizeKey(programPath, url, name);
6467
const imports = this._ensure<Map<string, any>>(
@@ -82,7 +85,7 @@ export default class ImportsCachedInjector {
8285

8386
_injectImport(
8487
programPath: NodePath<t.Program>,
85-
node: t.Node,
88+
node: t.Statement | t.Declaration,
8689
moduleName: string,
8790
) {
8891
const newIndex = this._getPreferredIndex(moduleName);
@@ -121,7 +124,7 @@ export default class ImportsCachedInjector {
121124
const [newPath] = last.insertAfter(node);
122125
lastImports.push({ path: newPath, index: newIndex });
123126
} else {
124-
const [newPath] = programPath.unshiftContainer("body", node);
127+
const [newPath] = programPath.unshiftContainer("body", [node]);
125128
this._lastImports.set(programPath, [{ path: newPath, index: newIndex }]);
126129
}
127130
}

packages/babel-helper-define-polyfill-provider/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export function getRequireSource({ node }: NodePath<t.Statement>) {
141141
}
142142
}
143143

144-
function hoist(node: t.Node) {
144+
function hoist<T extends t.Node>(node: T): T {
145145
// @ts-expect-error
146146
node._blockHoist = 3;
147147
return node;

packages/babel-helper-define-polyfill-provider/test/injectors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ describe("injectors", () => {
393393
394394
var _foo3 = require("./polyfill/foo");
395395
var _foo2 = _interopRequireDefault(require("./polyfill/foo"));
396-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
396+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
397397
_foo2.default;
398398
_foo3;
399399
`);

packages/babel-plugin-polyfill-corejs2/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
2626
"babel-plugin"
2727
],
2828
"dependencies": {
29-
"@babel/compat-data": "^7.22.6",
29+
"@babel/compat-data": "^7.27.7",
3030
"@babel/helper-define-polyfill-provider": "workspace:^0.6.4",
3131
"semver": "^6.3.1"
3232
},
3333
"devDependencies": {
34-
"@babel/core": "^7.22.6",
35-
"@babel/helper-plugin-test-runner": "^7.22.5",
36-
"@babel/plugin-transform-for-of": "^7.22.5",
37-
"@babel/plugin-transform-modules-commonjs": "^7.22.5"
34+
"@babel/core": "^7.27.7",
35+
"@babel/helper-plugin-test-runner": "^7.27.1",
36+
"@babel/plugin-transform-for-of": "^7.27.1",
37+
"@babel/plugin-transform-modules-commonjs": "^7.27.1"
3838
},
3939
"peerDependencies": {
4040
"@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"externalHelpers": false,
23
"plugins": [
34
[
45
"@@/polyfill-corejs2",
@@ -7,13 +8,9 @@
78
"targets": {
89
"chrome": 55
910
},
10-
"exclude": [
11-
"es6.string.repeat"
12-
],
13-
"include": [
14-
"es6.map"
15-
]
11+
"exclude": ["es6.string.repeat"],
12+
"include": ["es6.map"]
1613
}
1714
]
1815
]
19-
}
16+
}

packages/babel-plugin-polyfill-corejs2/test/fixtures/entry-global-exclude-include/exclude/options.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"externalHelpers": false,
23
"plugins": [
34
[
45
"@@/polyfill-corejs2",
@@ -16,4 +17,4 @@
1617
}
1718
]
1819
]
19-
}
20+
}
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"externalHelpers": false,
23
"plugins": [
34
[
45
"@@/polyfill-corejs2",
@@ -7,11 +8,8 @@
78
"targets": {
89
"chrome": 55
910
},
10-
"include": [
11-
"es6.map",
12-
"es6.set"
13-
]
11+
"include": ["es6.map", "es6.set"]
1412
}
1513
]
1614
]
17-
}
15+
}

packages/babel-plugin-polyfill-corejs2/test/fixtures/entry-global-regenerator/all-1/options.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"externalHelpers": false,
23
"plugins": [
34
[
45
"@@/polyfill-corejs2",
@@ -10,4 +11,4 @@
1011
}
1112
]
1213
]
13-
}
14+
}

packages/babel-plugin-polyfill-corejs2/test/fixtures/entry-global-regenerator/all-2/options.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"externalHelpers": false,
23
"plugins": [
34
[
45
"@@/polyfill-corejs2",
@@ -10,4 +11,4 @@
1011
}
1112
]
1213
]
13-
}
14+
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"externalHelpers": false,
23
"plugins": [
34
[
45
"@@/polyfill-corejs2",
@@ -7,4 +8,4 @@
78
}
89
]
910
]
10-
}
11+
}

packages/babel-plugin-polyfill-corejs2/test/fixtures/entry-global/chrome-48/options.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"externalHelpers": false,
23
"plugins": [
34
[
45
"@@/polyfill-corejs2",
@@ -10,4 +11,4 @@
1011
}
1112
]
1213
]
13-
}
14+
}

packages/babel-plugin-polyfill-corejs2/test/fixtures/entry-global/chrome-49/options.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"externalHelpers": false,
23
"plugins": [
34
[
45
"@@/polyfill-corejs2",
@@ -10,4 +11,4 @@
1011
}
1112
]
1213
]
13-
}
14+
}

packages/babel-plugin-polyfill-corejs2/test/fixtures/entry-global/chrome-66/options.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"externalHelpers": false,
23
"plugins": [
34
[
45
"@@/polyfill-corejs2",
@@ -10,4 +11,4 @@
1011
}
1112
]
1213
]
13-
}
14+
}

packages/babel-plugin-polyfill-corejs2/test/fixtures/entry-global/chrome-71/options.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"externalHelpers": false,
23
"plugins": [
34
[
45
"@@/polyfill-corejs2",
@@ -10,4 +11,4 @@
1011
}
1112
]
1213
]
13-
}
14+
}

packages/babel-plugin-polyfill-corejs2/test/fixtures/entry-global/chromeandroid/options.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"externalHelpers": false,
23
"plugins": [
34
[
45
"@@/polyfill-corejs2",
@@ -10,4 +11,4 @@
1011
}
1112
]
1213
]
13-
}
14+
}

packages/babel-plugin-polyfill-corejs2/test/fixtures/entry-global/electron/options.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"externalHelpers": false,
23
"plugins": [
34
[
45
"@@/polyfill-corejs2",
@@ -10,4 +11,4 @@
1011
}
1112
]
1213
]
13-
}
14+
}

0 commit comments

Comments
 (0)