Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Try to update npm & node #46576

Closed
wants to merge 13 commits into from
1 change: 1 addition & 0 deletions .npmrc
@@ -1,2 +1,3 @@
save-exact = true
engine-strict = true
legacy-peer-deps = true
2 changes: 1 addition & 1 deletion .nvmrc
@@ -1 +1 @@
14
18
119,564 changes: 83,670 additions & 35,894 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -15,8 +15,8 @@
"url": "https://github.com/WordPress/gutenberg/issues"
},
"engines": {
"node": ">=14.0.0",
"npm": ">=6.9.0 <7"
"node": ">=18.12.1",
"npm": ">=8.19.2"
},
"config": {
"IS_GUTENBERG_PLUGIN": true
Expand Down Expand Up @@ -96,7 +96,7 @@
"@babel/traverse": "7.16.0",
"@emotion/babel-plugin": "11.3.0",
"@emotion/jest": "11.7.1",
"@emotion/native": "11.0.0",
"@emotion/native": "11.10.0",
"@octokit/rest": "16.26.0",
"@octokit/types": "6.34.0",
"@octokit/webhooks-types": "5.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-preset-default/package.json
Expand Up @@ -40,7 +40,7 @@
"@wordpress/element": "file:../element",
"@wordpress/warning": "file:../warning",
"browserslist": "^4.17.6",
"core-js": "^3.19.1"
"core-js": "^3.26.1"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 0 additions & 2 deletions packages/components/src/clipboard-button/index.js
Expand Up @@ -42,7 +42,6 @@ export default function ClipboardButton( {
const timeoutId = useRef();
const ref = useCopyToClipboard( text, () => {
onCopy();
// @ts-expect-error: Should check if .current is defined, but not changing because this component is deprecated.
clearTimeout( timeoutId.current );

if ( onFinishCopy ) {
Expand All @@ -51,7 +50,6 @@ export default function ClipboardButton( {
} );

useEffect( () => {
// @ts-expect-error: Should check if .current is defined, but not changing because this component is deprecated.
clearTimeout( timeoutId.current );
}, [] );

Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/draggable/index.tsx
Expand Up @@ -211,7 +211,7 @@ export function Draggable( {
// https://reactjs.org/docs/events.html#event-pooling
event.persist();

let timerId: number | undefined;
let timerId: any;

if ( onDragStart ) {
timerId = setTimeout( () => onDragStart( event ) );
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/package.json
Expand Up @@ -40,7 +40,7 @@
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-jest": "^25.2.3",
"eslint-plugin-jsdoc": "^37.0.3",
"eslint-plugin-jsdoc": "39.6.4",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^3.3.0",
"eslint-plugin-react": "^7.27.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-editor/package.json
Expand Up @@ -50,7 +50,7 @@
"@wordpress/i18n": "file:../i18n",
"@wordpress/react-native-aztec": "file:../react-native-aztec",
"@wordpress/react-native-bridge": "file:../react-native-bridge",
"core-js": "^3.19.1",
"core-js": "^3.26.1",
"fast-average-color": "^9.1.1",
"gettext-parser": "^1.3.1",
"jed": "^1.1.1",
Expand Down