Skip to content

Commit 08cc6c5

Browse files
authored
Bump minimum Node.js version to 16 (#15131)
1 parent 7ee492b commit 08cc6c5

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ version: 2.1
33
executors:
44
node-browsers:
55
docker:
6-
- image: circleci/node:14-browsers
6+
- image: circleci/node:16-browsers
77
node-browsers-medium-plus:
88
docker:
9-
- image: circleci/node:14-browsers
9+
- image: circleci/node:16-browsers
1010
resource_class: medium+
1111
environment:
1212
NODE_OPTIONS: --max_old_space_size=2048

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v14
1+
v16

app/scripts/lib/ComposableObservableStore.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ describe('ComposableObservableStore', () => {
165165
Example: exampleController,
166166
},
167167
}),
168-
).toThrow(`Cannot read property 'subscribe' of undefined`);
168+
).toThrow(`Cannot read properties of undefined (reading 'subscribe')`);
169169
});
170170

171171
it('should throw if the controller messenger is omitted and updateStructure called with a BaseControllerV2 controller', () => {
@@ -175,7 +175,7 @@ describe('ComposableObservableStore', () => {
175175
});
176176
const store = new ComposableObservableStore({});
177177
expect(() => store.updateStructure({ Example: exampleController })).toThrow(
178-
`Cannot read property 'subscribe' of undefined`,
178+
`Cannot read properties of undefined (reading 'subscribe')`,
179179
);
180180
});
181181

development/build/transforms/utils.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('transform utils', () => {
2626
// This error is an artifact of how we're mocking the ESLint singleton,
2727
// and won't actually occur in production.
2828
await expect(() => lintTransformedFile()).rejects.toThrow(
29-
`Cannot read property '0' of undefined`,
29+
`Cannot read properties of undefined (reading '0')`,
3030
);
3131
expect(mockESLint).toBeDefined();
3232
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@
381381
"yarn-deduplicate": "^3.1.0"
382382
},
383383
"engines": {
384-
"node": "^14.15.1",
384+
"node": "^16.0.0",
385385
"yarn": "^1.16.0"
386386
},
387387
"lavamoat": {

0 commit comments

Comments
 (0)