From 844b6415cb86f133e6a1734a7077dc92bf94b46c Mon Sep 17 00:00:00 2001 From: Silviu Alexandru Avram Date: Fri, 6 Feb 2026 17:01:20 +0100 Subject: [PATCH 1/5] dev: update dependencies --- .github/PULL_REQUEST_TEMPLATE.md | 16 +++-- .github/workflows/validate.yml | 4 +- cypress/.eslintrc | 5 +- other/misc-tests/jest.config.js | 8 ++- package.json | 72 ++++++++++--------- src/__tests__/downshift.get-button-props.js | 6 +- src/__tests__/downshift.misc.js | 33 ++++++--- src/hooks/__tests__/utils.test.js | 4 +- .../__tests__/getItemProps.test.js | 2 +- src/hooks/useCombobox/__tests__/utils.test.js | 2 +- .../__tests__/getSelectedItemProps.test.js | 2 +- .../__tests__/utils.test.js | 2 +- .../useSelect/__tests__/getItemProps.test.js | 2 +- src/hooks/useSelect/__tests__/utils.test.ts | 2 +- .../__tests__/getItemAndIndex.test.ts | 6 +- tsconfig.preact.json | 6 ++ 16 files changed, 101 insertions(+), 71 deletions(-) create mode 100644 tsconfig.preact.json diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 1424f7533..3ba27e005 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -14,30 +14,32 @@ Please fill out the information below to expedite the review and (hopefully) merge of your pull request! --> +# Pull Request + +## What + -**What**: +## Why -**Why**: +## How -**How**: +## Changes - + -**Checklist**: +## Checklist - - [ ] Documentation - [ ] Tests - [ ] TypeScript Types -- [ ] Flow Types - [ ] Ready to be merged diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 58abad9c7..cb18dd642 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -16,7 +16,7 @@ jobs: if: ${{ !contains(github.head_ref, 'all-contributors') }} strategy: matrix: - node: [18, 20] + node: [20, 22, 24] runs-on: ubuntu-latest steps: - name: 🛑 Cancel Previous Runs @@ -68,7 +68,7 @@ jobs: - name: ⎔ Setup node uses: actions/setup-node@v1 with: - node-version: 16 + node-version: 24 - name: 📥 Download deps uses: bahmutov/npm-install@v1 diff --git a/cypress/.eslintrc b/cypress/.eslintrc index 5b9885627..953723a4d 100644 --- a/cypress/.eslintrc +++ b/cypress/.eslintrc @@ -2,7 +2,8 @@ "plugins": [ "cypress" ], - "env": { - "cypress/globals": true + "globals": { + "cy": true, + "Cypress": true } } diff --git a/other/misc-tests/jest.config.js b/other/misc-tests/jest.config.js index 0df65d804..03674aae2 100644 --- a/other/misc-tests/jest.config.js +++ b/other/misc-tests/jest.config.js @@ -4,6 +4,9 @@ const babelHelpersList = require('@babel/helpers').list module.exports = Object.assign(jestConfig, { roots: ['.'], testEnvironment: 'jsdom', + testEnvironmentOptions: { + customExportConditions: ['require', 'node'], + }, moduleNameMapper: babelHelpersList.reduce( (aliasMap, helper) => { aliasMap[ @@ -11,6 +14,9 @@ module.exports = Object.assign(jestConfig, { ] = `@babel/runtime/helpers/${helper}` return aliasMap }, - {'^preact(/(.*)|$)': 'preact$1'}, + { + '^preact(/(.*)|$)': 'preact$1', + '(.*)\\.esm\\.mjs$': '$1.cjs.cjs', + }, ), }) diff --git a/package.json b/package.json index 35ddd3761..ca2c62309 100644 --- a/package.json +++ b/package.json @@ -81,58 +81,60 @@ "react": ">=16.12.0" }, "dependencies": { - "@babel/runtime": "^7.24.5", - "compute-scroll-into-view": "^3.1.0", + "@babel/runtime": "^7.28.6", + "compute-scroll-into-view": "^3.1.1", "prop-types": "^15.8.1", - "react-is": "18.2.0", - "tslib": "^2.6.2" + "react-is": "^18.2.0", + "tslib": "^2.8.1" }, "devDependencies": { - "@babel/helpers": "^7.24.5", + "@babel/helpers": "^7.28.6", "@babel/plugin-proposal-private-methods": "^7.18.6", "@babel/plugin-proposal-private-property-in-object": "^7.21.11", - "@cypress/webpack-preprocessor": "^6.0.1", + "@cypress/webpack-preprocessor": "^7.0.2", "@docusaurus/core": "3.3.2", "@docusaurus/module-type-aliases": "3.3.2", "@docusaurus/preset-classic": "3.3.2", "@mdx-js/react": "^3.0.1", - "@rollup/plugin-babel": "^6.0.4", - "@rollup/plugin-commonjs": "^25.0.7", - "@testing-library/cypress": "^10.0.1", - "@testing-library/dom": "^10.1.0", - "@testing-library/jest-dom": "^6.4.5", - "@testing-library/preact": "^2.0.1", - "@testing-library/react": "^15.0.7", - "@testing-library/user-event": "^14.5.2", - "@types/jest": "^29.5.12", - "@types/react": "^18.3.2", - "@typescript-eslint/eslint-plugin": "^7.9.0", - "@typescript-eslint/parser": "^7.9.0", + "@rollup/plugin-babel": "^6.1.0", + "@rollup/plugin-commonjs": "^29.0.0", + "@testing-library/cypress": "^10.1.0", + "@testing-library/dom": "^10.4.1", + "@testing-library/jest-dom": "^6.9.1", + "@testing-library/preact": "^3.2.4", + "@testing-library/react": "^16.3.2", + "@testing-library/user-event": "^14.6.1", + "@types/jest": "^30.0.0", + "@types/prop-types": "^15.7.15", + "@types/react": "^18.2.0", + "@typescript-eslint/eslint-plugin": "^8.54.0", + "@typescript-eslint/parser": "^8.54.0", "babel-plugin-macros": "^3.1.0", "babel-plugin-no-side-effect-class-properties": "0.0.7", "babel-preset-react-native": "^4.0.1", "buble": "^0.20.0", - "cpy-cli": "^5.0.0", - "cross-env": "^7.0.3", - "cypress": "13.9.0", - "eslint": "^8.56.0", - "eslint-plugin-cypress": "^3.2.0", - "eslint-plugin-react": "7.34.1", - "flow-bin": "^0.236.0", + "cpy-cli": "^6.0.0", + "cross-env": "^10.1.0", + "cypress": "15.9.0", + "eslint": "^9.39.2", + "eslint-plugin-cypress": "^5.2.1", + "eslint-plugin-react": "7.37.5", + "flow-bin": "^0.299.0", "flow-coverage-report": "^0.8.0", "get-pkg-repo": "5.0.0", "kcd-scripts": "^15.0.1", - "node-polyfill-webpack-plugin": "^3.0.0", + "node-polyfill-webpack-plugin": "^4.1.0", "npm-run-all": "^4.1.5", - "preact": "^10.22.0", - "prism-react-renderer": "^2.3.1", - "react": "18.2.0", - "react-dom": "18.2.0", - "react-native": "^0.74.1", - "react-test-renderer": "18.2.0", - "serve": "^14.2.3", - "start-server-and-test": "^2.0.3", - "typescript": "^5.4.5" + "preact": "^10.28.2", + "prism-react-renderer": "^2.4.1", + "react": "^18.3.1", + "react-dom": "^18.3.1", + "react-is": "^18.3.1", + "react-native": "^0.76.0", + "react-test-renderer": "^18.3.1", + "serve": "^14.2.5", + "start-server-and-test": "^2.1.3", + "typescript": "^5.9.3" }, "eslintConfig": { "parserOptions": { diff --git a/src/__tests__/downshift.get-button-props.js b/src/__tests__/downshift.get-button-props.js index b01fd7cb0..2dcabf14e 100644 --- a/src/__tests__/downshift.get-button-props.js +++ b/src/__tests__/downshift.get-button-props.js @@ -74,11 +74,7 @@ test('getToggleButtonProps returns all given props', () => { const Button = jest.fn(props =>