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

⬆️(dependencies) update js dependencies #335

Merged
merged 3 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
# ---- Codebase -----
build:
docker:
- image: cimg/node:18.18
- image: cimg/node:20.16
working_directory: ~/cunningham
steps:
- *checkout_cunningham
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
key: v1-front-dependencies-{{ checksum "yarn.lock" }}
lint:
docker:
- image: cimg/node:18.18
- image: cimg/node:20.16
working_directory: ~/cunningham
steps:
- *checkout_cunningham
Expand All @@ -92,7 +92,7 @@ jobs:

test:
docker:
- image: cimg/node:18.18
- image: cimg/node:20.16
parallelism: 4
resource_class: large
working_directory: ~/cunningham
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
# ---- Deploy ----
publish-storybook:
docker:
- image: cimg/node:18.18
- image: cimg/node:20.16
working_directory: ~/cunningham
steps:
- add_ssh_keys:
Expand All @@ -140,7 +140,7 @@ jobs:
yarn deploy-ghpages
publish-packages:
docker:
- image: cimg/node:18.18
- image: cimg/node:20.16
auth:
username: $DOCKER_USER
password: $DOCKER_PASS
Expand Down
8 changes: 4 additions & 4 deletions apps/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
"@vitejs/plugin-react": "4.3.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"sass": "1.77.6",
"typescript": "5.5.3",
"vite": "5.3.3"
"sass": "1.77.8",
"typescript": "5.5.4",
"vite": "5.3.5"
},
"engines": {
"node": ">=18.0.0"
},
"volta": {
"node": "18.18.2",
"node": "20.16.0",
"yarn": "1.22.22"
}
}
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.5"

services:
node:
image: node:18.18
image: node:20.16
working_dir: /app
user: "${DOCKER_USER:-1000}"
ports:
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"devDependencies": {
"cross-env": "7.0.3",
"make-dir-cli": "4.0.0",
"prettier": "3.3.2",
"turbo": "2.0.6"
"prettier": "3.3.3",
"turbo": "2.0.9"
},
"engines": {
"node": ">=18.0.0"
Expand All @@ -31,10 +31,10 @@
},
"packageManager": "[email protected]",
"resolutions": {
"@testing-library/dom": "10.3.1"
"@testing-library/dom": "10.4.0"
},
"volta": {
"node": "18.18.2",
"node": "20.16.0",
"yarn": "1.22.22"
}
}
14 changes: 7 additions & 7 deletions packages/eslint-config-custom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@
"license": "MIT",
"main": ".eslintrc.json",
"dependencies": {
"@typescript-eslint/eslint-plugin": "7.15.0",
"@typescript-eslint/parser": "7.15.0",
"@typescript-eslint/eslint-plugin": "7.17.0",
"@typescript-eslint/parser": "7.17.0",
"eslint": "8.57.0",
"eslint-config-airbnb": "19.0.4",
"eslint-config-airbnb-typescript": "18.0.0",
"eslint-config-next": "14.2.4",
"eslint-config-next": "14.2.5",
"eslint-config-prettier": "9.1.0",
"eslint-import-resolver-typescript": "3.6.1",
"eslint-import-resolver-webpack": "0.13.8",
"eslint-plugin-compat": "5.0.0",
"eslint-plugin-compat": "6.0.0",
"eslint-plugin-formatjs": "4.13.3",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsx-a11y": "6.9.0",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-react": "7.34.3",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-react": "7.35.0",
"eslint-plugin-react-hooks": "4.6.2"
},
"volta": {
"node": "18.18.2",
"node": "20.16.0",
"yarn": "1.22.22"
}
}
66 changes: 33 additions & 33 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,30 +44,30 @@
"dependencies": {
"@fontsource-variable/roboto-flex": "5.0.15",
"@fontsource/material-icons-outlined": "5.0.12",
"@internationalized/date": "3.5.4",
"@internationalized/date": "3.5.5",
"@openfun/cunningham-tokens": "*",
"@react-aria/calendar": "3.5.8",
"@react-aria/datepicker": "3.10.1",
"@react-aria/i18n": "3.11.1",
"@react-stately/calendar": "3.5.1",
"@react-stately/datepicker": "3.9.4",
"@tanstack/react-table": "8.19.2",
"@react-aria/calendar": "3.5.10",
"@react-aria/datepicker": "3.11.1",
"@react-aria/i18n": "3.12.1",
"@react-stately/calendar": "3.5.3",
"@react-stately/datepicker": "3.10.1",
"@tanstack/react-table": "8.19.3",
"@types/react-modal": "3.16.3",
"chromatic": "11.5.4",
"chromatic": "11.5.6",
"classnames": "2.5.1",
"downshift": "9.0.6",
"downshift": "9.0.7",
"react": "18.3.1",
"react-aria": "3.33.1",
"react-aria-components": "1.2.1",
"react-aria": "3.34.1",
"react-aria-components": "1.3.1",
"react-dom": "18.3.1",
"react-modal": "3.16.1",
"react-stately": "3.31.1"
"react-stately": "3.32.1"
},
"engines": {
"node": ">=18.0.0"
},
"devDependencies": {
"@babel/core": "7.24.7",
"@babel/core": "7.24.9",
"@babel/plugin-proposal-decorators": "7.24.7",
"@babel/plugin-proposal-export-default-from": "7.24.7",
"@babel/preset-typescript": "7.24.7",
Expand All @@ -76,45 +76,45 @@
"@hookform/resolvers": "3.9.0",
"@openfun/cunningham-tokens": "*",
"@openfun/typescript-configs": "*",
"@storybook/addon-a11y": "8.1.11",
"@storybook/addon-actions": "8.1.11",
"@storybook/addon-essentials": "8.1.11",
"@storybook/addon-interactions": "8.1.11",
"@storybook/addon-links": "8.1.11",
"@storybook/addon-a11y": "8.2.6",
"@storybook/addon-actions": "8.2.6",
"@storybook/addon-essentials": "8.2.6",
"@storybook/addon-interactions": "8.2.6",
"@storybook/addon-links": "8.2.6",
"@storybook/preset-scss": "1.0.3",
"@storybook/react": "8.1.11",
"@storybook/react-vite": "8.1.11",
"@storybook/react": "8.2.6",
"@storybook/react-vite": "8.2.6",
"@storybook/storybook-deployer": "2.8.16",
"@testing-library/dom": "10.3.1",
"@testing-library/jest-dom": "6.4.6",
"@testing-library/dom": "10.4.0",
"@testing-library/jest-dom": "6.4.8",
"@testing-library/react": "16.0.0",
"@testing-library/user-event": "14.5.2",
"@types/jest": "29.5.12",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@vitejs/plugin-react": "4.3.1",
"@vitest/coverage-c8": "0.33.0",
"@vitest/ui": "1.6.0",
"@vitest/ui": "2.0.4",
"babel-loader": "9.1.3",
"css-loader": "7.1.2",
"glob": "10.4.3",
"jsdom": "24.1.0",
"glob": "11.0.0",
"jsdom": "24.1.1",
"react-hook-form": "7.52.1",
"remark-gfm": "4.0.0",
"sass": "1.77.6",
"sass-loader": "14.2.1",
"storybook": "8.1.11",
"sass": "1.77.8",
"sass-loader": "16.0.0",
"storybook": "8.2.6",
"style-loader": "4.0.0",
"typescript": "5.5.3",
"vite": "5.3.3",
"typescript": "5.5.4",
"vite": "5.3.5",
"vite-plugin-dts": "3.9.1",
"vite-tsconfig-paths": "4.3.2",
"vitest": "1.6.0",
"vitest-fetch-mock": "0.2.2",
"vitest": "2.0.4",
"vitest-fetch-mock": "0.3.0",
"yup": "1.4.0"
},
"volta": {
"node": "18.18.2",
"node": "20.16.0",
"yarn": "1.22.22"
}
}
10 changes: 5 additions & 5 deletions packages/react/src/components/Forms/DatePicker/CalendarCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface CalendarCellProps {
}

const isRangeCalendar = (object: any): object is RangeCalendarState => {
return object?.highlightedRange;
return Boolean(object?.highlightedRange);
};

export const CalendarCell = ({ state, date }: CalendarCellProps) => {
Expand All @@ -31,15 +31,15 @@ export const CalendarCell = ({ state, date }: CalendarCellProps) => {
} = useCalendarCell({ date }, state, ref);

const isSelectionEnd =
isRangeCalendar(state) && isSameDay(date, state?.highlightedRange?.end);
isRangeCalendar(state) && isSameDay(date, state.highlightedRange!.end);

const isSelectionStart =
isRangeCalendar(state) && isSameDay(date, state?.highlightedRange?.start);
isRangeCalendar(state) && isSameDay(date, state?.highlightedRange!.start);

const isWithinHighlightedRange =
isRangeCalendar(state) &&
state?.highlightedRange?.start <= date &&
state?.highlightedRange?.end >= date;
state?.highlightedRange!.start <= date &&
state?.highlightedRange!.end >= date;

return (
<td {...cellProps}>
Expand Down
10 changes: 5 additions & 5 deletions packages/tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,20 @@
"devDependencies": {
"@types/figlet": "1.5.8",
"@types/jest": "29.5.12",
"@types/node": "20.14.10",
"@types/node": "20.14.13",
"eslint-config-custom": "*",
"jest": "29.7.0",
"nodemon": "3.1.4",
"prettier": "3.3.2",
"ts-jest": "29.1.5",
"prettier": "3.3.3",
"ts-jest": "29.2.3",
"tsc-alias": "1.8.10",
"typescript": "5.5.3"
"typescript": "5.5.4"
},
"engines": {
"node": ">=18.0.0"
},
"volta": {
"node": "18.18.2",
"node": "20.16.0",
"yarn": "1.22.22"
}
}
2 changes: 1 addition & 1 deletion packages/tsconfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"volta": {
"node": "18.18.2",
"node": "20.16.0",
"yarn": "1.22.22"
}
}
Loading