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

[Fix] Update dependencies #762

Merged
merged 24 commits into from
Aug 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
b43b371
Update selected minor versions
Riippi Jul 21, 2023
03c0877
Update stylelint and postcss
Riippi Jul 21, 2023
7fdd69c
Update babel
Riippi Jul 21, 2023
4177875
Update yarn.lock
Riippi Jul 21, 2023
1f4858d
Batch of minor version updates
Riippi Jul 24, 2023
a163ec4
Update selected minor versions
Riippi Jul 24, 2023
719363d
Update selected minor versions
Riippi Jul 24, 2023
27e90c7
Update prettier to v3.0.0
Riippi Jul 24, 2023
88e514d
Update selected major versions
Riippi Jul 24, 2023
ae3ad51
Update testing library
Riippi Jul 25, 2023
9142a80
Update selected dependencies
Riippi Jul 25, 2023
049ef73
Update rollup minor version
Riippi Jul 25, 2023
154a6a9
Update selected dependencies
Riippi Jul 26, 2023
7d59453
Remove react-svg. Not used since 2019.
Riippi Jul 27, 2023
bec82ae
Raise version for babel-plugin-styled-components resolution
Riippi Aug 1, 2023
d2fb51b
Update axe-react to @axe-core/react
Riippi Aug 7, 2023
e03efdb
Modernise stylelint config and remove deprecated plugins
Riippi Aug 8, 2023
4dcd762
Add react-is as a devDependency because styled-components warns about…
Riippi Aug 8, 2023
136c0a9
Add recent patch version updates for dependencies
Riippi Aug 8, 2023
35b3f23
New yarn.lock created from npm install
Riippi Aug 11, 2023
698c94c
Remove outdated resolution and recreate yarn.lock
Riippi Aug 11, 2023
6474967
Update circle ci image
Riippi Aug 11, 2023
404f7fc
Print node version on circle ci build
Riippi Aug 11, 2023
e18b21e
Try to print node version again
Riippi Aug 11, 2023
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
5 changes: 4 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ version: 2.1
executors:
build-executor:
docker:
- image: circleci/node:lts
- image: cimg/node:lts

commands:
checkout_and_cache:
steps:
- checkout
- run:
name: Node version
command: node --version
- restore_cache: # special step to restore the dependency cache
# Read about caching dependencies: https://circleci.com/docs/2.0/caching/
name: Restore Yarn Package Cache
Expand Down
2 changes: 1 addition & 1 deletion .styleguidist/styleguidist.require.axe.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import React from 'react';
import ReactDOM from 'react-dom';

if (process.env.NODE_ENV !== 'production') {
var axe = require('react-axe');
var axe = require('@axe-core/react');
axe(React, ReactDOM, 1000);
}
3 changes: 0 additions & 3 deletions .styleguidist/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ const webpack = require('webpack');
module.exports = (env) => ({
mode: env.production ? 'production' : 'development',
devtool: env.production ? 'inline-source-map' : 'eval',
devServer: {
injectClient: true,
},
resolve: {
extensions: ['.ts', '.tsx', '.js', '.jsx'],
fallback: {
Expand Down
12 changes: 3 additions & 9 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
{
"extends": [
"stylelint-config-recommended",
"stylelint-config-styled-components"
"stylelint-config-recommended"
],
"customSyntax": "postcss-styled-syntax",
"rules": {
"no-extra-semicolons": null,
"function-no-unknown": null
},
"overrides": [
{
"files": ["**/*.{ts,tsx}"],
"customSyntax": "@stylelint/postcss-css-in-js"
}
]
}
}
117 changes: 54 additions & 63 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,97 +70,91 @@
"deploy-dev": "gh-pages -d styleguide -e dev -m \"[skip ci] Updates\""
},
"devDependencies": {
"@babel/core": "7.18.9",
"@babel/plugin-transform-runtime": "7.18.9",
"@babel/preset-env": "7.18.9",
"@babel/preset-react": "7.18.6",
"@axe-core/react": "4.7.3",
"@babel/core": "7.22.10",
"@babel/plugin-transform-runtime": "7.22.10",
"@babel/preset-env": "7.22.10",
"@babel/preset-react": "7.22.5",
"@rollup/plugin-babel": "5.3.1",
"@rollup/plugin-commonjs": "22.0.1",
"@rollup/plugin-node-resolve": "13.3.0",
"@stylelint/postcss-css-in-js": "0.38.0",
"@testing-library/jest-dom": "5.16.4",
"@testing-library/react": "12.1.4",
"@testing-library/jest-dom": "5.17.0",
"@testing-library/react": "12.1.5",
"@types/classnames": "2.3.1",
"@types/jest": "28.1.6",
"@types/jest-axe": "3.5.4",
"@types/jest": "29.5.3",
"@types/jest-axe": "3.5.5",
"@types/react": "17.0.40",
"@types/react-dom": "17.0.13",
"@types/styled-components": "5.1.25",
"@types/styled-components": "5.1.26",
"@types/warning": "3.0.0",
"@typescript-eslint/eslint-plugin": "5.30.7",
"@typescript-eslint/parser": "5.30.7",
"autoprefixer": "10.4.7",
"babel-jest": "28.1.3",
"clean-css": "5.3.1",
"@typescript-eslint/eslint-plugin": "5.62.0",
"@typescript-eslint/parser": "5.62.0",
"autoprefixer": "10.4.14",
"babel-jest": "29.6.2",
"clipboard-copy": "4.0.1",
"copyfiles": "2.4.1",
"cross-env": "7.0.3",
"css-loader": "6.7.1",
"cssnano": "5.1.12",
"eslint": "8.20.0",
"css-loader": "6.8.1",
"cssnano": "6.0.1",
"eslint": "8.46.0",
"eslint-config-airbnb": "19.0.4",
"eslint-config-prettier": "8.5.0",
"eslint-config-prettier": "8.8.0",
"eslint-config-react-app": "7.0.1",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-import": "2.28.0",
"eslint-plugin-jest": "26.6.0",
"eslint-plugin-jsx-a11y": "6.6.0",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-react": "7.30.1",
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-prettier": "5.0.0",
"eslint-plugin-react": "7.33.1",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-tree-shaking": "1.10.0",
"fs-extra": "11.1.1",
"gh-pages": "4.0.0",
"husky": "8.0.1",
"jest": "28.1.3",
"jest-axe": "6.0.0",
"jest-environment-jsdom": "28.1.3",
"jest-styled-components": "7.0.8",
"lint-staged": "13.0.3",
"node-sass": "7.0.1",
"gh-pages": "5.0.0",
"husky": "8.0.3",
"jest": "29.6.2",
"jest-axe": "8.0.0",
"jest-environment-jsdom": "29.6.2",
"jest-styled-components": "7.1.1",
"lint-staged": "13.2.3",
"npm-run-all": "4.1.5",
"postcss": "8.4.14",
"postcss-import": "14.1.0",
"postcss-syntax": "0.36.2",
"prettier": "2.7.1",
"postcss": "8.4.27",
"postcss-import": "15.1.0",
"postcss-styled-syntax": "0.4.0",
"prettier": "3.0.1",
"prettier-eslint": "15.0.1",
"prop-types": "15.8.1",
"react": "17.0.2",
"react-axe": "3.5.4",
"react-docgen": "5.4.3",
"react-docgen-typescript": "2.2.2",
"react-dom": "17.0.2",
"react-styleguidist": "11.2.0",
"rimraf": "3.0.2",
"rollup": "2.77.0",
"react-is": "17.0.2",
"react-styleguidist": "13.0.0",
"rimraf": "5.0.1",
"rollup": "2.79.1",
"rollup-plugin-postcss": "4.0.2",
"rollup-plugin-progress": "1.1.2",
"rollup-plugin-ts": "2.0.7",
"sass": "1.53.0",
"sass-loader": "13.0.2",
"sass": "1.64.2",
"sass-loader": "13.3.2",
"size-limit": "7.0.8",
"style-loader": "3.3.1",
"style-loader": "3.3.3",
"styled-components": "5.3.5",
"stylelint": "14.9.1",
"stylelint-config-recommended": "8.0.0",
"stylelint-config-styled-components": "0.1.1",
"stylelint-custom-processor-loader": "0.6.0",
"stylelint-processor-styled-components": "1.10.0",
"ts-jest": "28.0.7",
"ts-loader": "9.3.1",
"tslib": "2.4.0",
"typescript": "4.6.2",
"webpack": "5.73.0"
"stylelint": "15.10.2",
"stylelint-config-recommended": "13.0.0",
"ts-jest": "29.1.1",
"ts-loader": "9.4.3",
"tslib": "2.6.1",
"typescript": "4.6.4",
"webpack": "5.88.2"
},
"dependencies": {
"@babel/runtime": "7.18.9",
"@popperjs/core": "2.11.5",
"@types/react-modal": "3.13.1",
"classnames": "2.3.1",
"date-fns": "2.29.3",
"@babel/runtime": "7.22.10",
"@popperjs/core": "2.11.8",
"@types/react-modal": "3.16.0",
"classnames": "2.3.2",
"date-fns": "2.30.0",
"polished": "4.2.2",
"react-modal": "3.15.1",
"react-modal": "3.16.1",
"react-popper": "2.3.0",
"react-svg": "15.1.3",
"suomifi-design-tokens": "5.1.0",
"suomifi-icons": "7.0.1"
},
Expand All @@ -181,8 +175,5 @@
{
"path": "dist/suomifi-ui-components.esm.js"
}
],
"resolutions": {
"babel-plugin-styled-components": "2.0.7"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ export const baseStyles = (theme: SuomifiTheme) => css`

&.fi-date-picker--small-screen-hidden {
transform: translateZ(0) translateY(100%);
transition: transform 200ms ${theme.transitions.basicTimingFunction},
transition:
transform 200ms ${theme.transitions.basicTimingFunction},
visibility 200ms ${theme.transitions.basicTimingFunction};
}

Expand Down
2 changes: 1 addition & 1 deletion src/core/Form/DateInput/datePickerTexts.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const languages = ['fi', 'en', 'sv'] as const;

export type Language = typeof languages[number];
export type Language = (typeof languages)[number];

export const defaultLanguage: Language = 'fi';

Expand Down
9 changes: 4 additions & 5 deletions src/core/theme/reset/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ const fontBase = css`
`;

export const font =
(theme: SuomifiTheme) => (typographyToken: TypographyProp) =>
css`
${fontBase}
${theme.typography[typographyToken]}
`;
(theme: SuomifiTheme) => (typographyToken: TypographyProp) => css`
${fontBase}
${theme.typography[typographyToken]}
`;

export const input = (theme: SuomifiTheme) => css`
${element(theme)}
Expand Down
Loading