Skip to content

Commit

Permalink
update dependencies (#2557)
Browse files Browse the repository at this point in the history
<!--
  How to write a good PR title:
- Follow [the Conventional Commits
specification](https://www.conventionalcommits.org/en/v1.0.0/).
  - Give as much context as necessary and as little as possible
  - Prefix it with [WIP] while it’s a work in progress
-->

## Self Checklist

- [x] I wrote a PR title in **English** and added an appropriate
**label** to the PR.
- [x] I wrote the commit message in **English** and to follow [**the
Conventional Commits
specification**](https://www.conventionalcommits.org/en/v1.0.0/).
- [x] I [added the
**changeset**](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md)
about the changes that needed to be released. (or didn't have to)
- [x] I wrote or updated **documentation** related to the changes. (or
didn't have to)
- [x] I wrote or updated **tests** related to the changes. (or didn't
have to)
- [x] I tested the changes in various browsers. (or didn't have to)
  - Windows: Chrome, Edge, (Optional) Firefox
  - macOS: Chrome, Edge, Safari, (Optional) Firefox

## Related Issue

<!-- Please link to issue if one exists -->

- Fixes #2537 

## Summary

의존성을 업데이트합니다.

- 마이너 업데이트
- 메이저 업데이트 Breaking changes 반영
  - turbo
  - sass-loader, css-loader
  - sass
- node 18 -> 22 (lts)
- yarn
- 불필요한 core-js 제거 및 babel config 업데이트

<!-- Please brief explanation of the changes made -->

- 메이저 버전 업데이트를 하려면 변경이 많이 필요하거나, 다른 이유로 업데이트할 수 없는 의존성들은 업데이트하지 않았습니다.
- `Tooltip` 관련 테스트 케이스가 실패합니다. 확인해보니 radix-ui Popper 컴포넌트에서
[변경](https://github.com/radix-ui/primitives/commit/f58a28cbeef3d3756ac6485b94c21c0a26dce2f0)이
있었는데, 이로 인한 사이드 이펙트로 추정됩니다. 동작 자체는 문제가 없어서 임시로 주석처리합니다.

## Details

<!-- Please elaborate description of the changes -->

생략

### Breaking change? (Yes/No)

<!-- If Yes, please describe the impact and migration path for users -->

No

## References

<!-- Please list any other resources or points the reviewer should be
aware of -->
  • Loading branch information
sungik-choi authored Dec 13, 2024
1 parent 730b999 commit dcf9e9d
Show file tree
Hide file tree
Showing 32 changed files with 3,520 additions and 3,623 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.20.5
22.12.0
894 changes: 0 additions & 894 deletions .yarn/releases/yarn-4.3.1.cjs

This file was deleted.

934 changes: 934 additions & 0 deletions .yarn/releases/yarn-4.5.3.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ plugins:
- path: .yarn/plugins/@yarnpkg/plugin-engines.cjs
spec: 'https://raw.githubusercontent.com/devoto13/yarn-plugin-engines/main/bundles/%40yarnpkg/plugin-engines.js'

yarnPath: .yarn/releases/yarn-4.3.1.cjs
yarnPath: .yarn/releases/yarn-4.5.3.cjs
4 changes: 2 additions & 2 deletions configs/eslint-config-bezier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"description": "Common ESLint configuration.",
"main": "index.js",
"dependencies": {
"@channel.io/eslint-config": "^2.0.4",
"@channel.io/eslint-config": "^2.1.0",
"@channel.io/eslint-plugin": "^1.2.3",
"eslint-plugin-jest": "^22.21.0"
"eslint-plugin-jest": "^28.9.0"
}
}
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,40 +22,40 @@
"knip": "knip --config knip.json --workspace packages/bezier-react --cache"
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@changesets/cli": "^2.27.10",
"@changesets/get-github-info": "^0.6.0",
"@changesets/types": "^6.0.0",
"@channel.io/prettier-config": "^0.0.1",
"@channel.io/stylelint-bezier": "workspace:*",
"@channel.io/stylelint-config": "^2.0.0",
"@commitlint/cli": "^19.0.0",
"@commitlint/config-conventional": "^19.0.0",
"@swc/core": "^1.4.2",
"@swc/jest": "^0.2.36",
"@types/jest": "^29.5.12",
"@commitlint/cli": "^19.6.0",
"@commitlint/config-conventional": "^19.6.0",
"@swc/core": "^1.10.1",
"@swc/jest": "^0.2.37",
"@types/jest": "^29.5.14",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.57.0",
"husky": "^9.0.11",
"eslint": "^8.57.1",
"husky": "^9.1.7",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"knip": "^5.27.3",
"npm-run-all2": "^6.1.2",
"prettier": "^3.2.5",
"stylelint": "^16.3.0",
"syncpack": "^12.3.0",
"knip": "^5.39.4",
"npm-run-all2": "^7.0.1",
"prettier": "^3.4.2",
"stylelint": "^16.11.0",
"syncpack": "^13.0.0",
"ts-node": "^10.9.2",
"turbo": "^1.12.4",
"turbo": "^2.3.3",
"typescript": "^5.4.2"
},
"engines": {
"node": "18.20.5",
"yarn": "4.3.1"
"node": "22.12.0",
"yarn": "4.5.3"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"packageManager": "yarn@4.3.1",
"packageManager": "yarn@4.5.3",
"prettier": "@channel.io/prettier-config"
}
12 changes: 6 additions & 6 deletions packages/bezier-codemod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
"dist"
],
"dependencies": {
"@inkjs/ui": "^1.0.0",
"ink": "^4.4.1",
"@inkjs/ui": "^2.0.0",
"ink": "^5.1.0",
"meow": "^13.2.0",
"react": "^18.2.0",
"ts-morph": "^21.0.1"
"react": "^18.3.1",
"ts-morph": "^24.0.0"
},
"devDependencies": {
"@types/node": "^20.11.20",
"@types/react": "^18.2.59",
"@types/node": "^22.10.2",
"@types/react": "^18.3.16",
"eslint-config-bezier": "workspace:*",
"tsconfig": "workspace:*"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ const replaceBorder = (sourceFile: SourceFile) => {
node.replaceWithText(
node
.getText()
.replace(`\${${text}};\n` ?? '', borderStyle)
.replace(`\${${text}}\n` ?? '', borderStyle)
.replace(`\${${text}};\n`, borderStyle)
.replace(`\${${text}}\n`, borderStyle)
)
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ const replaceTransitionsCSS = (sourceFile: SourceFile) => {
node.replaceWithText(
node
.getText()
.replace(`\${${text}};\n` ?? '', transitionStyle)
.replace(`\${${text}}\n` ?? '', transitionStyle)
.replace(`\${${text}};\n`, transitionStyle)
.replace(`\${${text}}\n`, transitionStyle)
)
})

Expand Down
22 changes: 11 additions & 11 deletions packages/bezier-figma-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,27 @@
"author": "Channel Corp.",
"license": "Apache-2.0",
"devDependencies": {
"@figma/plugin-typings": "^1.87.0",
"@types/react": "^18.2.59",
"@types/react-dom": "^18.2.19",
"css-loader": "^6.10.0",
"@figma/plugin-typings": "^1.104.0",
"@types/react": "^18.3.16",
"@types/react-dom": "^18.3.5",
"css-loader": "^7.1.2",
"eslint-config-bezier": "workspace:*",
"html-webpack-inline-source-plugin": "^0.0.10",
"html-webpack-plugin": "^5.6.0",
"html-webpack-plugin": "^5.6.3",
"react-dev-utils": "^12.0.1",
"style-loader": "^3.3.4",
"style-loader": "^4.0.0",
"ts-loader": "^9.5.1",
"tsconfig": "workspace:*",
"url-loader": "^4.1.1",
"webpack": "^5.90.3",
"webpack": "^5.97.1",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"@channel.io/bezier-icons": "0.38.0",
"@channel.io/bezier-react": "2.6.2",
"octokit": "^3.1.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.22.1"
"octokit": "^4.0.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^7.0.2"
}
}
18 changes: 9 additions & 9 deletions packages/bezier-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,22 @@
"author": "Channel Corp.",
"license": "Apache-2.0",
"devDependencies": {
"@babel/core": "^7.23.9",
"@babel/preset-env": "^7.23.9",
"@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@rollup/plugin-alias": "^5.1.0",
"@babel/core": "^7.26.0",
"@babel/preset-env": "^7.26.0",
"@babel/preset-react": "^7.26.3",
"@babel/preset-typescript": "^7.26.0",
"@rollup/plugin-alias": "^5.1.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-virtual": "^3.0.2",
"@rollup/pluginutils": "^5.1.0",
"@rollup/pluginutils": "^5.1.3",
"@svgr/core": "^8.1.0",
"@svgr/plugin-jsx": "^8.1.0",
"eslint-config-bezier": "workspace:*",
"rollup": "^4.11.0",
"rollup": "^4.28.1",
"rollup-plugin-visualizer": "^5.12.0",
"svgo": "^3.2.0",
"svgo": "^3.3.2",
"tsconfig": "workspace:*"
}
}
23 changes: 22 additions & 1 deletion packages/bezier-react/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,31 @@ export default {
test: /\.scss$/,
use: [
'style-loader',
'css-loader',
{
loader: 'css-loader',
options: {
modules: {
/**
* NOTE: The default value of the `esModule` option is `true`, and the default value of the `namedExport` option is also `true`.
* This is set by default to avoid conflicts with the default export keyword of ESModule,
* but applying this requires changing all style import statements to Namespace import statements('import * as styles from './styles.module.scss';').
* Also, when the `namedExport` option becomes `false`, the default value of the `exportLocalsConvention` option changes to 'camel-case-only'.
* Since the current bezier-react CSS module component class naming is in pascal case, applying this would require many changes.
* @see {@link https://github.com/webpack-contrib/css-loader/releases/tag/v7.0.0}
*/
namedExport: false,
exportLocalsConvention: 'as-is',
},
},
},
{
loader: 'sass-loader',
options: {
/**
* FIXME: To support the path resolve method of rollup-plugin-postcss ('../../' of '_tokens.scss')
* @see {@link https://github.com/webpack-contrib/sass-loader/releases/tag/v16.0.0}
*/
api: 'legacy',
implementation: require.resolve('sass'),
},
},
Expand Down
5 changes: 1 addition & 4 deletions packages/bezier-react/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
module.exports = {
presets: [
[
'@babel/preset-env',
{ useBuiltIns: 'entry', corejs: '3.36', bugfixes: true },
],
['@babel/preset-env', { bugfixes: true }],
/**
* Will use the native built-in instead of trying to polyfill behavior for any plugins that require one.
* Remove the helper function for Object.assign.
Expand Down
120 changes: 60 additions & 60 deletions packages/bezier-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,66 +60,66 @@
"author": "Channel Corp.",
"license": "Apache-2.0",
"devDependencies": {
"@babel/core": "^7.23.9",
"@babel/preset-env": "^7.23.9",
"@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@babel/core": "^7.26.0",
"@babel/preset-env": "^7.26.0",
"@babel/preset-react": "^7.26.3",
"@babel/preset-typescript": "^7.26.0",
"@channel.io/bezier-icons": "0.38.0",
"@chromatic-com/storybook": "^1",
"@figma/code-connect": "^1.2.2",
"@rollup/plugin-alias": "^5.1.0",
"@chromatic-com/storybook": "^3.2.2",
"@figma/code-connect": "^1.2.4",
"@rollup/plugin-alias": "^5.1.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-commonjs": "^28.0.1",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-url": "^8.0.2",
"@storybook/addon-a11y": "^8.1.10",
"@storybook/addon-actions": "^8.1.10",
"@storybook/addon-controls": "^8.1.10",
"@storybook/addon-designs": "^8.0.3",
"@storybook/addon-docs": "^8.1.10",
"@storybook/addon-measure": "^8.1.10",
"@storybook/addon-outline": "^8.1.10",
"@storybook/addon-styling-webpack": "^1.0.0",
"@storybook/addon-a11y": "^8.4.7",
"@storybook/addon-actions": "^8.4.7",
"@storybook/addon-controls": "^8.4.7",
"@storybook/addon-designs": "^8.0.4",
"@storybook/addon-docs": "^8.4.7",
"@storybook/addon-measure": "^8.4.7",
"@storybook/addon-outline": "^8.4.7",
"@storybook/addon-styling-webpack": "^1.0.1",
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
"@storybook/manager-api": "^8.1.10",
"@storybook/react": "^8.1.10",
"@storybook/react-webpack5": "^8.1.10",
"@storybook/theming": "^8.1.10",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
"@storybook/manager-api": "^8.4.7",
"@storybook/react": "^8.4.7",
"@storybook/react-webpack5": "^8.4.7",
"@storybook/theming": "^8.4.7",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.1.0",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.12",
"@types/react": "^18.2.59",
"@types/react-dom": "^18.2.19",
"@types/uuid": "^9.0.8",
"babel-loader": "^9.1.3",
"@types/jest": "^29.5.14",
"@types/react": "^18.3.16",
"@types/react-dom": "^18.3.5",
"@types/uuid": "^10.0.0",
"babel-loader": "^9.2.1",
"babel-preset-react-app": "^10.0.1",
"chromatic": "^11.0.0",
"core-js": "^3.36.0",
"chromatic": "^11.20.2",
"eslint-config-bezier": "workspace:*",
"eslint-plugin-jsdoc": "^48.2.0",
"eslint-plugin-jsdoc": "^50.6.1",
"eslint-plugin-sort-export-all": "^1.4.1",
"eslint-plugin-storybook": "^0.10.0",
"eslint-plugin-storybook": "^0.11.1",
"identity-obj-proxy": "^3.0.0",
"lightningcss": "^1.24.0",
"minimatch": "^9.0.3",
"lightningcss": "^1.28.2",
"minimatch": "^10.0.1",
"paths.macro": "^3.0.1",
"postcss": "^8.4.35",
"postcss-preset-env": "^9.4.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup": "^4.11.0",
"rollup-plugin-node-externals": "^7.0.1",
"postcss": "^8.4.49",
"postcss-preset-env": "^10.1.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"rollup": "^4.28.1",
"rollup-plugin-node-externals": "^7.1.3",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-visualizer": "^5.12.0",
"sass": "^1.71.1",
"sass-loader": "^14.2.1",
"storybook": "^8.1.10",
"ts-patch": "^3.1.2",
"sass": "^1.82.0",
"sass-loader": "^16.0.4",
"storybook": "^8.4.7",
"ts-patch": "^3.3.0",
"tsconfig": "workspace:*",
"tsconfig-paths-webpack-plugin": "^4.1.0",
"tsconfig-paths-webpack-plugin": "^4.2.0",
"typescript-plugin-css-modules": "^5.1.0",
"typescript-transform-paths": "^3.4.7"
"typescript-transform-paths": "^3.5.2"
},
"peerDependencies": {
"@channel.io/bezier-icons": ">=0.2.0",
Expand All @@ -133,22 +133,22 @@
},
"dependencies": {
"@channel.io/bezier-tokens": "0.2.13",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-radio-group": "^1.1.3",
"@radix-ui/react-separator": "^1.0.3",
"@radix-ui/react-slider": "^1.1.2",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-switch": "^1.0.3",
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-toggle": "^1.0.3",
"@radix-ui/react-toggle-group": "^1.0.4",
"@radix-ui/react-toolbar": "^1.0.4",
"@radix-ui/react-tooltip": "^1.0.7",
"@radix-ui/react-visually-hidden": "^1.0.3",
"@radix-ui/react-checkbox": "^1.1.2",
"@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-radio-group": "^1.2.1",
"@radix-ui/react-separator": "^1.1.0",
"@radix-ui/react-slider": "^1.2.1",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-switch": "^1.1.1",
"@radix-ui/react-tabs": "^1.1.1",
"@radix-ui/react-toggle": "^1.1.0",
"@radix-ui/react-toggle-group": "^1.1.0",
"@radix-ui/react-toolbar": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.4",
"@radix-ui/react-visually-hidden": "^1.1.0",
"classnames": "^2.5.1",
"react-textarea-autosize": "8.3.4",
"ssr-window": "^4.0.2",
"uuid": "^9.0.1"
"uuid": "^11.0.3"
}
}
Loading

0 comments on commit dcf9e9d

Please sign in to comment.