diff --git a/.ado/jobs/node-tests.yml b/.ado/jobs/node-tests.yml index 93459773246..7a9f0878c6f 100644 --- a/.ado/jobs/node-tests.yml +++ b/.ado/jobs/node-tests.yml @@ -11,7 +11,7 @@ parameters: - name: versions type: object - default: [14, 16] + default: [16] jobs: - ${{ each nodeVersion in parameters.versions }}: diff --git a/change/@office-iss-react-native-win32-ab60d8d7-ccd1-46ef-84f2-b2bb7e2c2141.json b/change/@office-iss-react-native-win32-ab60d8d7-ccd1-46ef-84f2-b2bb7e2c2141.json new file mode 100644 index 00000000000..9704daa8414 --- /dev/null +++ b/change/@office-iss-react-native-win32-ab60d8d7-ccd1-46ef-84f2-b2bb7e2c2141.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Update Node to 16", + "packageName": "@office-iss/react-native-win32", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@react-native-windows-automation-7976a61f-7ebb-4a67-9f81-047f6e386565.json b/change/@react-native-windows-automation-7976a61f-7ebb-4a67-9f81-047f6e386565.json new file mode 100644 index 00000000000..81fc9bc36e9 --- /dev/null +++ b/change/@react-native-windows-automation-7976a61f-7ebb-4a67-9f81-047f6e386565.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Update Node to 16", + "packageName": "@react-native-windows/automation", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@react-native-windows-automation-channel-f520bf36-957e-4117-9011-25c50fc968e1.json b/change/@react-native-windows-automation-channel-f520bf36-957e-4117-9011-25c50fc968e1.json new file mode 100644 index 00000000000..f4e12a81e79 --- /dev/null +++ b/change/@react-native-windows-automation-channel-f520bf36-957e-4117-9011-25c50fc968e1.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Update Node to 16", + "packageName": "@react-native-windows/automation-channel", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@react-native-windows-automation-commands-001324e2-d082-4d1d-8647-6c03b6a86f5c.json b/change/@react-native-windows-automation-commands-001324e2-d082-4d1d-8647-6c03b6a86f5c.json new file mode 100644 index 00000000000..fd478c12c16 --- /dev/null +++ b/change/@react-native-windows-automation-commands-001324e2-d082-4d1d-8647-6c03b6a86f5c.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Update Node to 16", + "packageName": "@react-native-windows/automation-commands", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@react-native-windows-cli-f1bba592-2e4a-40cf-a6ad-fbd8376ca0b4.json b/change/@react-native-windows-cli-f1bba592-2e4a-40cf-a6ad-fbd8376ca0b4.json new file mode 100644 index 00000000000..fd3c1ceadd6 --- /dev/null +++ b/change/@react-native-windows-cli-f1bba592-2e4a-40cf-a6ad-fbd8376ca0b4.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Update Node to 16", + "packageName": "@react-native-windows/cli", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@react-native-windows-codegen-d46d93a9-fc33-4d13-8a45-1875bf0ca9f6.json b/change/@react-native-windows-codegen-d46d93a9-fc33-4d13-8a45-1875bf0ca9f6.json new file mode 100644 index 00000000000..9aad320286e --- /dev/null +++ b/change/@react-native-windows-codegen-d46d93a9-fc33-4d13-8a45-1875bf0ca9f6.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Update Node to 16", + "packageName": "@react-native-windows/codegen", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@react-native-windows-find-repo-root-ff7a0e59-80a6-4ba4-860a-127891ca03b2.json b/change/@react-native-windows-find-repo-root-ff7a0e59-80a6-4ba4-860a-127891ca03b2.json new file mode 100644 index 00000000000..e8f55783184 --- /dev/null +++ b/change/@react-native-windows-find-repo-root-ff7a0e59-80a6-4ba4-860a-127891ca03b2.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Update Node to 16", + "packageName": "@react-native-windows/find-repo-root", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@react-native-windows-fs-a8ed4cf5-8949-458e-a074-02ba6e224da9.json b/change/@react-native-windows-fs-a8ed4cf5-8949-458e-a074-02ba6e224da9.json new file mode 100644 index 00000000000..d9af23679d8 --- /dev/null +++ b/change/@react-native-windows-fs-a8ed4cf5-8949-458e-a074-02ba6e224da9.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Update Node to 16", + "packageName": "@react-native-windows/fs", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@react-native-windows-package-utils-7fdeabb4-bf88-45ce-b389-a7806a90d1b1.json b/change/@react-native-windows-package-utils-7fdeabb4-bf88-45ce-b389-a7806a90d1b1.json new file mode 100644 index 00000000000..01db9f93dd9 --- /dev/null +++ b/change/@react-native-windows-package-utils-7fdeabb4-bf88-45ce-b389-a7806a90d1b1.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Update Node to 16", + "packageName": "@react-native-windows/package-utils", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@react-native-windows-telemetry-5a412b23-d4f6-4b91-a36f-c059ce452619.json b/change/@react-native-windows-telemetry-5a412b23-d4f6-4b91-a36f-c059ce452619.json new file mode 100644 index 00000000000..c90edec868f --- /dev/null +++ b/change/@react-native-windows-telemetry-5a412b23-d4f6-4b91-a36f-c059ce452619.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Update Node to 16", + "packageName": "@react-native-windows/telemetry", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@rnw-scripts-babel-node-config-30bcf3d8-e1ea-4002-8971-3070efe3a769.json b/change/@rnw-scripts-babel-node-config-30bcf3d8-e1ea-4002-8971-3070efe3a769.json new file mode 100644 index 00000000000..252f397a754 --- /dev/null +++ b/change/@rnw-scripts-babel-node-config-30bcf3d8-e1ea-4002-8971-3070efe3a769.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Update Node to 16", + "packageName": "@rnw-scripts/babel-node-config", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@rnw-scripts-create-github-releases-d359f93e-956a-4347-a72b-d0b6947ddb88.json b/change/@rnw-scripts-create-github-releases-d359f93e-956a-4347-a72b-d0b6947ddb88.json new file mode 100644 index 00000000000..4da48c69b97 --- /dev/null +++ b/change/@rnw-scripts-create-github-releases-d359f93e-956a-4347-a72b-d0b6947ddb88.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Update Node to 16", + "packageName": "@rnw-scripts/create-github-releases", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@rnw-scripts-doxysaurus-607e9b54-a415-44b0-a80a-55cfc5d96b3b.json b/change/@rnw-scripts-doxysaurus-607e9b54-a415-44b0-a80a-55cfc5d96b3b.json new file mode 100644 index 00000000000..c917029b351 --- /dev/null +++ b/change/@rnw-scripts-doxysaurus-607e9b54-a415-44b0-a80a-55cfc5d96b3b.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Update Node to 16", + "packageName": "@rnw-scripts/doxysaurus", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@rnw-scripts-eslint-config-0614bf2c-93a5-4230-8cdf-21b2dc0a98f4.json b/change/@rnw-scripts-eslint-config-0614bf2c-93a5-4230-8cdf-21b2dc0a98f4.json new file mode 100644 index 00000000000..bcb50caccf8 --- /dev/null +++ b/change/@rnw-scripts-eslint-config-0614bf2c-93a5-4230-8cdf-21b2dc0a98f4.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Update Node to 16", + "packageName": "@rnw-scripts/eslint-config", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@rnw-scripts-format-files-bcace8af-bb55-4e1d-acc0-142ef047c2a7.json b/change/@rnw-scripts-format-files-bcace8af-bb55-4e1d-acc0-142ef047c2a7.json new file mode 100644 index 00000000000..40d4a67f5b4 --- /dev/null +++ b/change/@rnw-scripts-format-files-bcace8af-bb55-4e1d-acc0-142ef047c2a7.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Update Node to 16", + "packageName": "@rnw-scripts/format-files", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@rnw-scripts-integrate-rn-a66d55d6-cf32-4192-8a11-ddb22586342e.json b/change/@rnw-scripts-integrate-rn-a66d55d6-cf32-4192-8a11-ddb22586342e.json new file mode 100644 index 00000000000..6be922dc691 --- /dev/null +++ b/change/@rnw-scripts-integrate-rn-a66d55d6-cf32-4192-8a11-ddb22586342e.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Update Node to 16", + "packageName": "@rnw-scripts/integrate-rn", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@rnw-scripts-jest-debug-config-94b9edd7-379b-4b41-85cf-196fc7cd161f.json b/change/@rnw-scripts-jest-debug-config-94b9edd7-379b-4b41-85cf-196fc7cd161f.json new file mode 100644 index 00000000000..1fbed3d55f2 --- /dev/null +++ b/change/@rnw-scripts-jest-debug-config-94b9edd7-379b-4b41-85cf-196fc7cd161f.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Update Node to 16", + "packageName": "@rnw-scripts/jest-debug-config", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@rnw-scripts-jest-e2e-config-c96567af-de76-44b6-ab20-dafd560704d0.json b/change/@rnw-scripts-jest-e2e-config-c96567af-de76-44b6-ab20-dafd560704d0.json new file mode 100644 index 00000000000..5217a5e1834 --- /dev/null +++ b/change/@rnw-scripts-jest-e2e-config-c96567af-de76-44b6-ab20-dafd560704d0.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Update Node to 16", + "packageName": "@rnw-scripts/jest-e2e-config", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@rnw-scripts-jest-out-of-tree-resolver-4d790491-7071-4ba8-814f-a63f8a9fd8be.json b/change/@rnw-scripts-jest-out-of-tree-resolver-4d790491-7071-4ba8-814f-a63f8a9fd8be.json new file mode 100644 index 00000000000..2499b999c6e --- /dev/null +++ b/change/@rnw-scripts-jest-out-of-tree-resolver-4d790491-7071-4ba8-814f-a63f8a9fd8be.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Update Node to 16", + "packageName": "@rnw-scripts/jest-out-of-tree-resolver", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@rnw-scripts-jest-out-of-tree-snapshot-resolver-a936a881-2d0b-4fe6-ab10-ec61cf0df18f.json b/change/@rnw-scripts-jest-out-of-tree-snapshot-resolver-a936a881-2d0b-4fe6-ab10-ec61cf0df18f.json new file mode 100644 index 00000000000..59560f238bf --- /dev/null +++ b/change/@rnw-scripts-jest-out-of-tree-snapshot-resolver-a936a881-2d0b-4fe6-ab10-ec61cf0df18f.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Update Node to 16", + "packageName": "@rnw-scripts/jest-out-of-tree-snapshot-resolver", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@rnw-scripts-jest-unittest-config-a16998bb-5302-42d8-a076-922d06ab6d4a.json b/change/@rnw-scripts-jest-unittest-config-a16998bb-5302-42d8-a076-922d06ab6d4a.json new file mode 100644 index 00000000000..137d2a27fb8 --- /dev/null +++ b/change/@rnw-scripts-jest-unittest-config-a16998bb-5302-42d8-a076-922d06ab6d4a.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Update Node to 16", + "packageName": "@rnw-scripts/jest-unittest-config", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@rnw-scripts-just-task-994c0e38-acb7-4ebe-9323-47874efe46eb.json b/change/@rnw-scripts-just-task-994c0e38-acb7-4ebe-9323-47874efe46eb.json new file mode 100644 index 00000000000..696b78ea067 --- /dev/null +++ b/change/@rnw-scripts-just-task-994c0e38-acb7-4ebe-9323-47874efe46eb.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Update Node to 16", + "packageName": "@rnw-scripts/just-task", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@rnw-scripts-promote-release-461568f1-f610-43cb-8107-6b0e6783fc73.json b/change/@rnw-scripts-promote-release-461568f1-f610-43cb-8107-6b0e6783fc73.json new file mode 100644 index 00000000000..487484adf63 --- /dev/null +++ b/change/@rnw-scripts-promote-release-461568f1-f610-43cb-8107-6b0e6783fc73.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Update Node to 16", + "packageName": "@rnw-scripts/promote-release", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@rnw-scripts-take-screenshot-355529e6-b230-494c-b08d-4cb151a1ba03.json b/change/@rnw-scripts-take-screenshot-355529e6-b230-494c-b08d-4cb151a1ba03.json new file mode 100644 index 00000000000..21e20bf7237 --- /dev/null +++ b/change/@rnw-scripts-take-screenshot-355529e6-b230-494c-b08d-4cb151a1ba03.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Update Node to 16", + "packageName": "@rnw-scripts/take-screenshot", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@rnw-scripts-ts-config-02fbb14e-88fb-4574-8d66-1ad594f5fad3.json b/change/@rnw-scripts-ts-config-02fbb14e-88fb-4574-8d66-1ad594f5fad3.json new file mode 100644 index 00000000000..d5e3bac2841 --- /dev/null +++ b/change/@rnw-scripts-ts-config-02fbb14e-88fb-4574-8d66-1ad594f5fad3.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Update Node to 16", + "packageName": "@rnw-scripts/ts-config", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/react-native-platform-override-b7f4fb32-c92f-4f03-a725-2e587d0ed42b.json b/change/react-native-platform-override-b7f4fb32-c92f-4f03-a725-2e587d0ed42b.json new file mode 100644 index 00000000000..306d1303fc1 --- /dev/null +++ b/change/react-native-platform-override-b7f4fb32-c92f-4f03-a725-2e587d0ed42b.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Update Node to 16", + "packageName": "react-native-platform-override", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/react-native-windows-c871d835-f06f-4777-b7e1-52629cb70952.json b/change/react-native-windows-c871d835-f06f-4777-b7e1-52629cb70952.json new file mode 100644 index 00000000000..30490e8ae38 --- /dev/null +++ b/change/react-native-windows-c871d835-f06f-4777-b7e1-52629cb70952.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Update Node to 16", + "packageName": "react-native-windows", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/react-native-windows-init-0e37772a-b2fe-4025-b40a-c2bddc0d6b3a.json b/change/react-native-windows-init-0e37772a-b2fe-4025-b40a-c2bddc0d6b3a.json new file mode 100644 index 00000000000..2b0b649778e --- /dev/null +++ b/change/react-native-windows-init-0e37772a-b2fe-4025-b40a-c2bddc0d6b3a.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Update Node to 16", + "packageName": "react-native-windows-init", + "email": "34109996+chiaramooney@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/packages/@office-iss/react-native-win32-tester/package.json b/packages/@office-iss/react-native-win32-tester/package.json index c0ef0bdcdbc..c80257521c7 100644 --- a/packages/@office-iss/react-native-win32-tester/package.json +++ b/packages/@office-iss/react-native-win32-tester/package.json @@ -27,7 +27,7 @@ "@rnw-scripts/eslint-config": "1.1.15", "@rnw-scripts/just-task": "2.3.6", "@rnw-scripts/ts-config": "2.0.3", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "eslint": "^8.19.0", "just-scripts": "^1.3.3", "react-native": "0.0.0-20230404-2109-62c4da142", @@ -35,6 +35,6 @@ "typescript": "^4.9.5" }, "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@office-iss/react-native-win32/package.json b/packages/@office-iss/react-native-win32/package.json index 4e7db036a29..daf63154e94 100644 --- a/packages/@office-iss/react-native-win32/package.json +++ b/packages/@office-iss/react-native-win32/package.json @@ -73,7 +73,7 @@ "@rnw-scripts/just-task": "2.3.6", "@rnw-scripts/metro-dev-config": "0.0.0", "@rnx-kit/jest-preset": "^0.1.0", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "@types/prop-types": "15.7.1", "@types/react": "^18.0.18", "eslint": "^8.19.0", @@ -100,6 +100,6 @@ }, "promoteRelease": true, "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@office-iss/react-native-win32/src/Libraries/Components/Touchable/TouchableWin32.tsx b/packages/@office-iss/react-native-win32/src/Libraries/Components/Touchable/TouchableWin32.tsx index ce75e6463b9..e2384e957e6 100644 --- a/packages/@office-iss/react-native-win32/src/Libraries/Components/Touchable/TouchableWin32.tsx +++ b/packages/@office-iss/react-native-win32/src/Libraries/Components/Touchable/TouchableWin32.tsx @@ -180,9 +180,9 @@ const LONG_PRESS_ALLOWED_MOVEMENT = 10; * (that use internal state to conditionally calculate styles) */ export class TouchableWin32 extends React.Component { - private _longPressDelayTimeout: number; - private _touchableDelayTimeout: number; - private _pressOutDelayTimeout: number; + private _longPressDelayTimeout: NodeJS.Timeout; + private _touchableDelayTimeout: NodeJS.Timeout; + private _pressOutDelayTimeout: NodeJS.Timeout; private _pressInLocation: IPressInLocation; private _touchState: IState; private _responderID: number; diff --git a/packages/@react-native-windows/automation-channel/package.json b/packages/@react-native-windows/automation-channel/package.json index 530e5560aa5..e8b64a49889 100644 --- a/packages/@react-native-windows/automation-channel/package.json +++ b/packages/@react-native-windows/automation-channel/package.json @@ -26,7 +26,7 @@ "@rnw-scripts/just-task": "2.3.6", "@rnw-scripts/ts-config": "2.0.3", "@types/find-up": "^4.0.0", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "eslint": "^8.19.0", "just-scripts": "^1.3.2", "prettier": "^2.4.1", @@ -40,6 +40,6 @@ "windows" ], "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@react-native-windows/automation-commands/package.json b/packages/@react-native-windows/automation-commands/package.json index d35275f60f6..30eb474a229 100644 --- a/packages/@react-native-windows/automation-commands/package.json +++ b/packages/@react-native-windows/automation-commands/package.json @@ -28,7 +28,7 @@ "@rnw-scripts/just-task": "2.3.6", "@rnw-scripts/ts-config": "2.0.3", "@types/jest": "^29.2.2", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "eslint": "^8.19.0", "prettier": "^2.4.1", "typescript": "^4.9.5" @@ -38,6 +38,6 @@ "README.md" ], "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@react-native-windows/automation/package.json b/packages/@react-native-windows/automation/package.json index b3898b6e419..11a7cbabb32 100644 --- a/packages/@react-native-windows/automation/package.json +++ b/packages/@react-native-windows/automation/package.json @@ -34,7 +34,7 @@ "@rnw-scripts/just-task": "2.3.6", "@rnw-scripts/ts-config": "2.0.3", "@types/jest": "^29.2.2", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "@types/readline-sync": "^1.4.4", "eslint": "^8.19.0", "prettier": "^2.4.1", @@ -49,6 +49,6 @@ "README.md" ], "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@react-native-windows/cli/package.json b/packages/@react-native-windows/cli/package.json index f2339f90985..b29423821bf 100644 --- a/packages/@react-native-windows/cli/package.json +++ b/packages/@react-native-windows/cli/package.json @@ -50,7 +50,7 @@ "@types/jest": "^29.2.2", "@types/lodash": "^4.14.168", "@types/mustache": "^4.1.1", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "@types/ora": "^3.2.0", "@types/prompts": "2.0.10", "@types/semver": "^7.3.3", @@ -84,6 +84,6 @@ "promoteRelease": true, "windowsOnly": true, "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@react-native-windows/codegen/package.json b/packages/@react-native-windows/codegen/package.json index 59c44dee9f1..7336a4c9a6c 100644 --- a/packages/@react-native-windows/codegen/package.json +++ b/packages/@react-native-windows/codegen/package.json @@ -36,7 +36,7 @@ "@rnw-scripts/ts-config": "2.0.3", "@types/chalk": "^2.2.0", "@types/jest": "^29.2.2", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "@types/yargs": "16.0.0", "@typescript-eslint/eslint-plugin": "^5.30.5", "@typescript-eslint/parser": "^5.30.5", @@ -66,6 +66,6 @@ }, "promoteRelease": true, "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@react-native-windows/find-repo-root/package.json b/packages/@react-native-windows/find-repo-root/package.json index c60e811b47f..37b9bd9bb9f 100644 --- a/packages/@react-native-windows/find-repo-root/package.json +++ b/packages/@react-native-windows/find-repo-root/package.json @@ -24,7 +24,7 @@ "@rnw-scripts/just-task": "2.3.6", "@rnw-scripts/ts-config": "2.0.3", "@types/find-up": "^4.0.0", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "@typescript-eslint/eslint-plugin": "^5.30.5", "@typescript-eslint/parser": "^5.30.5", "eslint": "^8.19.0", @@ -44,6 +44,6 @@ "lib-commonjs" ], "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@react-native-windows/fs/package.json b/packages/@react-native-windows/fs/package.json index dd75edee426..acff2ab5c4f 100644 --- a/packages/@react-native-windows/fs/package.json +++ b/packages/@react-native-windows/fs/package.json @@ -24,7 +24,7 @@ "@rnw-scripts/just-task": "2.3.6", "@rnw-scripts/ts-config": "2.0.3", "@types/graceful-fs": "^4.1.5", - "@types/node": "12.12.6", + "@types/node": "^16.0.0", "@typescript-eslint/eslint-plugin": "^5.30.5", "@typescript-eslint/parser": "^5.30.5", "eslint": "^8.19.0", @@ -45,6 +45,6 @@ }, "promoteRelease": true, "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@react-native-windows/package-utils/package.json b/packages/@react-native-windows/package-utils/package.json index 48af935908d..6e1d9d6534f 100644 --- a/packages/@react-native-windows/package-utils/package.json +++ b/packages/@react-native-windows/package-utils/package.json @@ -26,7 +26,7 @@ "@rnw-scripts/just-task": "2.3.6", "@rnw-scripts/ts-config": "2.0.3", "@types/lodash": "^4.14.168", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "@typescript-eslint/eslint-plugin": "^5.30.5", "@typescript-eslint/parser": "^5.30.5", "eslint": "^8.19.0", @@ -46,6 +46,6 @@ "lib-commonjs" ], "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@react-native-windows/telemetry/package.json b/packages/@react-native-windows/telemetry/package.json index d0807764bba..e0355f74067 100644 --- a/packages/@react-native-windows/telemetry/package.json +++ b/packages/@react-native-windows/telemetry/package.json @@ -34,7 +34,7 @@ "@rnw-scripts/ts-config": "2.0.3", "@types/envinfo": "^7.8.1", "@types/jest": "^29.2.2", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "@types/semver": "^7.3.3", "@typescript-eslint/eslint-plugin": "^5.30.5", "@typescript-eslint/parser": "^5.30.5", @@ -60,6 +60,6 @@ "promoteRelease": true, "windowsOnly": true, "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@react-native-windows/tester/package.json b/packages/@react-native-windows/tester/package.json index eae15f1477a..f3790703ab1 100644 --- a/packages/@react-native-windows/tester/package.json +++ b/packages/@react-native-windows/tester/package.json @@ -28,7 +28,7 @@ "@rnw-scripts/eslint-config": "1.1.15", "@rnw-scripts/just-task": "2.3.6", "@rnw-scripts/ts-config": "2.0.3", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "eslint": "^8.19.0", "just-scripts": "^1.3.3", "react-native": "0.0.0-20230404-2109-62c4da142", @@ -37,6 +37,6 @@ "typescript": "^4.9.5" }, "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@rnw-scripts/babel-node-config/package.json b/packages/@rnw-scripts/babel-node-config/package.json index bd885afca10..d28e890e9ac 100644 --- a/packages/@rnw-scripts/babel-node-config/package.json +++ b/packages/@rnw-scripts/babel-node-config/package.json @@ -12,7 +12,7 @@ "@babel/core": "^7.20.0", "@babel/preset-env": "^7.8.4", "@babel/preset-typescript": "^7.8.3", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "eslint": "^8.19.0", "prettier": "^2.4.1" }, @@ -22,6 +22,6 @@ "@babel/preset-typescript": "^7.8.0" }, "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@rnw-scripts/babel-react-native-config/package.json b/packages/@rnw-scripts/babel-react-native-config/package.json index 9c3a42a53b8..51480cb3528 100644 --- a/packages/@rnw-scripts/babel-react-native-config/package.json +++ b/packages/@rnw-scripts/babel-react-native-config/package.json @@ -21,6 +21,6 @@ "prettier": "^2.4.1" }, "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@rnw-scripts/beachball-config/package.json b/packages/@rnw-scripts/beachball-config/package.json index ca5400c0e9f..1b7e35dd2a0 100644 --- a/packages/@rnw-scripts/beachball-config/package.json +++ b/packages/@rnw-scripts/beachball-config/package.json @@ -26,7 +26,7 @@ "@rnw-scripts/generated-beachball-config": "0.0.0", "@rnw-scripts/just-task": "2.3.6", "@rnw-scripts/ts-config": "2.0.3", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "beachball": "^2.20.0", "eslint": "^8.19.0", "prettier": "^2.4.1", @@ -36,6 +36,6 @@ "lib-commonjs" ], "engines": { - "node": ">= 14.0.0" + "node": ">= 16.0.0" } -} +} \ No newline at end of file diff --git a/packages/@rnw-scripts/create-github-releases/package.json b/packages/@rnw-scripts/create-github-releases/package.json index 9e3ad418281..c86f67a5256 100644 --- a/packages/@rnw-scripts/create-github-releases/package.json +++ b/packages/@rnw-scripts/create-github-releases/package.json @@ -38,7 +38,7 @@ "@types/chalk": "^2.2.0", "@types/glob": "^7.1.3", "@types/lodash": "^4.14.168", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "@types/semver": "^7.3.3", "@types/yargs": "^16.0.0", "eslint": "^8.19.0", @@ -50,6 +50,6 @@ "lib-commonjs" ], "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@rnw-scripts/doxysaurus/package.json b/packages/@rnw-scripts/doxysaurus/package.json index 05f33ce493e..f8422335afb 100644 --- a/packages/@rnw-scripts/doxysaurus/package.json +++ b/packages/@rnw-scripts/doxysaurus/package.json @@ -41,7 +41,7 @@ "@types/github-slugger": "^1.3.0", "@types/jest": "^29.2.2", "@types/mustache": "^4.1.1", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "@types/xml2js": "^0.4.8", "@types/yargs": "^16.0.0", "babel-jest": "^29.3.0", @@ -56,6 +56,6 @@ "templates" ], "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@rnw-scripts/doxysaurus/src/doxysaurus.ts b/packages/@rnw-scripts/doxysaurus/src/doxysaurus.ts index 2ed58f027f0..c7160ef4315 100644 --- a/packages/@rnw-scripts/doxysaurus/src/doxysaurus.ts +++ b/packages/@rnw-scripts/doxysaurus/src/doxysaurus.ts @@ -87,7 +87,7 @@ function watchProject(config: Config): void { log(`[Watching] folder {${config.input}} ...`); // We use delayTimer to coalesce multiple events coming at the same time - let delayTimer: number | undefined; + let delayTimer: NodeJS.Timeout | undefined; fs.watch(config.input, () => { clearTimeout(delayTimer); delayTimer = setTimeout(() => fireAndForget(startProcessingProject), 100); diff --git a/packages/@rnw-scripts/eslint-config/package.json b/packages/@rnw-scripts/eslint-config/package.json index 208eea7c13f..361f9b9d1e6 100644 --- a/packages/@rnw-scripts/eslint-config/package.json +++ b/packages/@rnw-scripts/eslint-config/package.json @@ -23,6 +23,6 @@ "prettier": "*" }, "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@rnw-scripts/format-files/package.json b/packages/@rnw-scripts/format-files/package.json index 0da60714eb7..4109851a924 100644 --- a/packages/@rnw-scripts/format-files/package.json +++ b/packages/@rnw-scripts/format-files/package.json @@ -29,7 +29,7 @@ "@rnw-scripts/just-task": "2.3.6", "@rnw-scripts/ts-config": "2.0.3", "@types/async": "^3.2.5", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "eslint": "^8.19.0", "prettier": "^2.4.1", "typescript": "^4.9.5" @@ -39,6 +39,6 @@ "lib-commonjs" ], "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@rnw-scripts/integrate-rn/package.json b/packages/@rnw-scripts/integrate-rn/package.json index 72fbe9b0580..04e594bc2c6 100644 --- a/packages/@rnw-scripts/integrate-rn/package.json +++ b/packages/@rnw-scripts/integrate-rn/package.json @@ -43,7 +43,7 @@ "@types/async": "^3.2.5", "@types/jest": "^29.2.2", "@types/lodash": "^4.14.168", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "@types/ora": "^3.2.0", "@types/semver": "^7.3.3", "@types/yargs": "^16.0.0", @@ -58,6 +58,6 @@ "lib-commonjs" ], "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@rnw-scripts/jest-debug-config/package.json b/packages/@rnw-scripts/jest-debug-config/package.json index b596f8d7abd..27a4149a8a4 100644 --- a/packages/@rnw-scripts/jest-debug-config/package.json +++ b/packages/@rnw-scripts/jest-debug-config/package.json @@ -25,6 +25,6 @@ "jest": "^26.4.0" }, "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@rnw-scripts/jest-e2e-config/package.json b/packages/@rnw-scripts/jest-e2e-config/package.json index 8351acb4621..2583cba8ad9 100644 --- a/packages/@rnw-scripts/jest-e2e-config/package.json +++ b/packages/@rnw-scripts/jest-e2e-config/package.json @@ -25,6 +25,6 @@ "jest": "^26.4.0" }, "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@rnw-scripts/jest-out-of-snapshot-resolver/package.json b/packages/@rnw-scripts/jest-out-of-snapshot-resolver/package.json index 0c373f5f7c0..52f896dd35e 100644 --- a/packages/@rnw-scripts/jest-out-of-snapshot-resolver/package.json +++ b/packages/@rnw-scripts/jest-out-of-snapshot-resolver/package.json @@ -14,6 +14,6 @@ "prettier": "^2.4.1" }, "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@rnw-scripts/jest-out-of-tree-resolver/package.json b/packages/@rnw-scripts/jest-out-of-tree-resolver/package.json index 15ad824baf0..997267afab2 100644 --- a/packages/@rnw-scripts/jest-out-of-tree-resolver/package.json +++ b/packages/@rnw-scripts/jest-out-of-tree-resolver/package.json @@ -17,6 +17,6 @@ "prettier": "^2.4.1" }, "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@rnw-scripts/jest-unittest-config/package.json b/packages/@rnw-scripts/jest-unittest-config/package.json index 53da50c3461..59b0f0f3db8 100644 --- a/packages/@rnw-scripts/jest-unittest-config/package.json +++ b/packages/@rnw-scripts/jest-unittest-config/package.json @@ -25,6 +25,6 @@ "jest": "^26.4.0" }, "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@rnw-scripts/just-task/package.json b/packages/@rnw-scripts/just-task/package.json index f7e6e433fcd..7d9a08f687e 100644 --- a/packages/@rnw-scripts/just-task/package.json +++ b/packages/@rnw-scripts/just-task/package.json @@ -19,7 +19,7 @@ "just-scripts": "^1.3.3" }, "devDependencies": { - "@types/node": "^14.14.22" + "@types/node": "^16.0.0" }, "peerDependencies": { "eslint": "*", @@ -33,6 +33,6 @@ } }, "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@rnw-scripts/metro-dev-config/package.json b/packages/@rnw-scripts/metro-dev-config/package.json index 735d6c77f79..dc99c26d387 100644 --- a/packages/@rnw-scripts/metro-dev-config/package.json +++ b/packages/@rnw-scripts/metro-dev-config/package.json @@ -31,6 +31,6 @@ "prettier": "^2.4.1" }, "engines": { - "node": ">= 12.0.0" + "node": ">= 16.0.0" } -} +} \ No newline at end of file diff --git a/packages/@rnw-scripts/promote-release/package.json b/packages/@rnw-scripts/promote-release/package.json index fadbad7ea3b..2a8f725ab77 100644 --- a/packages/@rnw-scripts/promote-release/package.json +++ b/packages/@rnw-scripts/promote-release/package.json @@ -33,7 +33,7 @@ "@rnw-scripts/just-task": "2.3.6", "@rnw-scripts/ts-config": "2.0.3", "@types/chalk": "^2.2.0", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "@types/yargs": "^16.0.0", "eslint": "^8.19.0", "prettier": "^2.4.1", @@ -44,6 +44,6 @@ "lib-commonjs" ], "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@rnw-scripts/stamp-version/package.json b/packages/@rnw-scripts/stamp-version/package.json index a54a028b018..4ce527cac83 100644 --- a/packages/@rnw-scripts/stamp-version/package.json +++ b/packages/@rnw-scripts/stamp-version/package.json @@ -30,7 +30,7 @@ "@rnw-scripts/ts-config": "2.0.3", "@types/jest": "^29.2.2", "@types/mustache": "^4.1.1", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "@types/semver": "^7.3.3", "@types/xml2js": "^0.4.8", "@types/yargs": "^16.0.0", @@ -45,6 +45,6 @@ "template" ], "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@rnw-scripts/take-screenshot/package.json b/packages/@rnw-scripts/take-screenshot/package.json index 335e4e36884..3061433a947 100644 --- a/packages/@rnw-scripts/take-screenshot/package.json +++ b/packages/@rnw-scripts/take-screenshot/package.json @@ -29,7 +29,7 @@ "@rnw-scripts/eslint-config": "1.1.15", "@rnw-scripts/just-task": "2.3.6", "@rnw-scripts/ts-config": "2.0.3", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "@types/yargs": "^16.0.0", "eslint": "^8.19.0", "prettier": "^2.4.1", @@ -45,6 +45,6 @@ "lib-commonjs" ], "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/@rnw-scripts/ts-config/package.json b/packages/@rnw-scripts/ts-config/package.json index 50f2cf7fa06..e34d2122895 100644 --- a/packages/@rnw-scripts/ts-config/package.json +++ b/packages/@rnw-scripts/ts-config/package.json @@ -9,6 +9,6 @@ "directory": "packages/@rnw-scripts/ts-config" }, "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/e2e-test-app-fabric/package.json b/packages/e2e-test-app-fabric/package.json index 82ecc5d311b..d9c4b6aae41 100644 --- a/packages/e2e-test-app-fabric/package.json +++ b/packages/e2e-test-app-fabric/package.json @@ -37,7 +37,7 @@ "@rnw-scripts/ts-config": "2.0.3", "@rnx-kit/jest-preset": "^0.1.0", "@types/jest": "^29.2.2", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "@types/react": "^18.0.18", "babel-jest": "^29.3.0", "eslint": "^8.19.0", @@ -49,6 +49,6 @@ "typescript": "^4.9.5" }, "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/e2e-test-app/package.json b/packages/e2e-test-app/package.json index 602ea5dc22d..5e664dc3ea9 100644 --- a/packages/e2e-test-app/package.json +++ b/packages/e2e-test-app/package.json @@ -40,7 +40,7 @@ "@rnw-scripts/ts-config": "2.0.3", "@rnx-kit/jest-preset": "^0.1.0", "@types/jest": "^29.2.2", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "@types/react": "^18.0.18", "babel-jest": "^29.3.0", "eslint": "^8.19.0", @@ -52,6 +52,6 @@ "typescript": "^4.9.5" }, "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/integration-test-app/package.json b/packages/integration-test-app/package.json index ca424cc9d53..f695cc093f5 100644 --- a/packages/integration-test-app/package.json +++ b/packages/integration-test-app/package.json @@ -33,7 +33,7 @@ "@rnw-scripts/ts-config": "^2.0.3", "@types/chai": "^4.2.14", "@types/jest": "^29.2.2", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "@types/ora": "^3.2.0", "@types/ws": "^7.4.0", "babel-jest": "^29.3.0", @@ -46,6 +46,6 @@ "ws": "^7.4.6" }, "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/playground/package.json b/packages/playground/package.json index e4a0d2c0dfe..fbdae7f2624 100644 --- a/packages/playground/package.json +++ b/packages/playground/package.json @@ -27,7 +27,7 @@ "@rnw-scripts/just-task": "2.3.6", "@rnw-scripts/metro-dev-config": "0.0.0", "@rnw-scripts/ts-config": "2.0.3", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "@types/react": "^18.0.18", "eslint": "^8.19.0", "just-scripts": "^1.3.3", @@ -35,6 +35,6 @@ "react-test-renderer": "18.2.0" }, "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/react-native-platform-override/package.json b/packages/react-native-platform-override/package.json index 4ed9b2c6213..23b811705d5 100644 --- a/packages/react-native-platform-override/package.json +++ b/packages/react-native-platform-override/package.json @@ -58,7 +58,7 @@ "@types/jest": "^29.2.2", "@types/lodash": "^4.14.168", "@types/minimatch": "^3.0.3", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "@types/node-fetch": "^2.5.8", "@types/ora": "^3.2.0", "@types/semver": "^7.3.3", @@ -75,7 +75,7 @@ "react-native": "*" }, "engines": { - "node": ">= 14" + "node": ">= 16" }, "files": [ "bin.js", @@ -83,4 +83,4 @@ "!lib-commonjs/e2etest/**", "!lib-commonjs/test/**" ] -} +} \ No newline at end of file diff --git a/packages/react-native-windows-init/package.json b/packages/react-native-windows-init/package.json index e441ab19368..299bb3636e9 100644 --- a/packages/react-native-windows-init/package.json +++ b/packages/react-native-windows-init/package.json @@ -44,7 +44,7 @@ "@rnw-scripts/ts-config": "2.0.3", "@types/chalk": "^2.2.0", "@types/jest": "^29.2.2", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "@types/npm-registry-fetch": "^8.0.0", "@types/prompts": "2.0.10", "@types/semver": "7.3.3", @@ -67,6 +67,6 @@ ] }, "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/packages/sample-apps/package.json b/packages/sample-apps/package.json index d8312033266..8c652a96d86 100644 --- a/packages/sample-apps/package.json +++ b/packages/sample-apps/package.json @@ -27,7 +27,7 @@ "@rnw-scripts/eslint-config": "1.1.15", "@rnw-scripts/just-task": "2.3.6", "@rnw-scripts/metro-dev-config": "0.0.0", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "@types/react": "^18.0.18", "eslint": "^8.19.0", "just-scripts": "^1.3.3", @@ -43,6 +43,6 @@ } }, "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/vnext/Scripts/rnw-dependencies.ps1 b/vnext/Scripts/rnw-dependencies.ps1 index 48d38e40db5..b0506628062 100644 --- a/vnext/Scripts/rnw-dependencies.ps1 +++ b/vnext/Scripts/rnw-dependencies.ps1 @@ -215,7 +215,7 @@ function CheckNode { $nodeVersion = (Get-Command node -ErrorAction Stop).Version; Write-Verbose "Node version found: $nodeVersion"; $v = $nodeVersion.Major; - return ($v -ge 14) -and (($v % 2) -eq 0); + return ($v -ge 16) -and (($v % 2) -eq 0); } catch { Write-Debug $_ } Write-Verbose "Node not found."; @@ -412,7 +412,7 @@ $requirements = @( }, @{ Id=[CheckId]::Node; - Name = 'Node.js (LTS, >= 14.0)'; + Name = 'Node.js (LTS, >= 16.0)'; Tags = @('appDev'); Valid = { CheckNode; } Install = { choco install -y nodejs-lts }; diff --git a/vnext/package.json b/vnext/package.json index 47e5d8b3c53..4f733120f5e 100644 --- a/vnext/package.json +++ b/vnext/package.json @@ -69,7 +69,7 @@ "@rnw-scripts/just-task": "2.3.6", "@rnw-scripts/metro-dev-config": "0.0.0", "@rnx-kit/jest-preset": "^0.1.0", - "@types/node": "^14.14.22", + "@types/node": "^16.0.0", "@types/react": "^18.0.18", "eslint": "^8.19.0", "eslint-plugin-prettier": "^4.2.1", @@ -144,6 +144,6 @@ ], "promoteRelease": true, "engines": { - "node": ">= 14" + "node": ">= 16" } -} +} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 6ecd4d513f6..a58e37b6cbd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2729,11 +2729,6 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.0.tgz#f38c7139247a1d619f6cc6f27b072606af7c289d" integrity sha512-IOXCvVRToe7e0ny7HpT/X9Rb2RYtElG1a+VshjwT00HxrM2dWBApHQoqsI6WiY7Q03vdf2bCrIGzVrkF/5t10w== -"@types/node@12.12.6": - version "12.12.6" - resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.6.tgz#a47240c10d86a9a57bb0c633f0b2e0aea9ce9253" - integrity sha512-FjsYUPzEJdGXjwKqSpE0/9QEh6kzhTAeObA54rn6j3rR4C/mzpI9L0KNfoeASSPMMdxIsoJuCLDWcM/rVjIsSA== - "@types/node@12.20.24": version "12.20.24" resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.24.tgz#c37ac69cb2948afb4cef95f424fa0037971a9a5c" @@ -2744,11 +2739,16 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.60.tgz#35f3d6213daed95da7f0f73e75bcc6980e90597b" integrity sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw== -"@types/node@^14.14.22", "@types/node@^14.14.35": +"@types/node@^14.14.35": version "14.18.33" resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.33.tgz#8c29a0036771569662e4635790ffa9e057db379b" integrity sha512-qelS/Ra6sacc4loe/3MSjXNL1dNQ/GjxNHVzuChwMfmk7HuycRLVQN2qNY3XahK+fZc5E2szqQSKUyAF0E+2bg== +"@types/node@^16.0.0": + version "16.18.23" + resolved "https://registry.yarnpkg.com/@types/node/-/node-16.18.23.tgz#b6e934fe427eb7081d0015aad070acb3373c3c90" + integrity sha512-XAMpaw1s1+6zM+jn2tmw8MyaRDIJfXxqmIQIS0HfoGYPuf7dUWeiUKopwq13KFX9lEp1+THGtlaaYx39Nxr58g== + "@types/npm-package-arg@*": version "6.1.1" resolved "https://registry.yarnpkg.com/@types/npm-package-arg/-/npm-package-arg-6.1.1.tgz#9e2d8adc04d39824a3d9f36f738010a3f7da3c1a"