v1.7.0

  • Node.js v22を新たにサポートしました(対応バージョン: Node.js v18.12.0以上)。

  • 依存しているNPMパッケージを更新しました。

v1.6.0からv1.7.0への移行手順

data-viz-create-visual-parts-react v1.6.0 を使用して作成したワークスペースは、以下の操作を行うことで、v1.7.0 を使用して作成したワークスペースと同じ状態にすることができます。

注釈

この移行手順を実行しなくても、v1.6.0 以下で作成したビジュアルパーツは継続して使用することが可能です。

作成済みのワークスペースを v.1.7.0に合わせたい場合のみ、この以降手順を実行してください。

  1. ワークスペース直下の package.json を以下のように更新します。

    package.json

    diff --git a/package.json b/package.json
    index 8ee73bd..4ad334a 100644
    --- a/package.json
    +++ b/package.json
    @@ -60,24 +60,24 @@
         "test:webpack-dev": "webpack --config webpack.dev.js"
       },
       "dependencies": {
    -    "@aptpod/data-viz-visual-parts-sdk": "^1.6.0",
    +    "@aptpod/data-viz-visual-parts-sdk": "^1.7.0",
         "binary-search-bounds": "^2.0.5",
    -    "chart.js": "^4.4.0",
    +    "chart.js": "^4.4.7",
         "chartjs-adapter-date-fns": "^3.0.0",
    -    "core-js": "3.31.1",
    +    "core-js": "3.40.0",
         "d3": "^6.7.0",
         "date-fns": "^2.30.0",
         "react": "^18.2.0",
         "react-chartjs-2": "5.2.0",
         "react-dom": "^18.2.0",
         "styled-components": "^5.3.11",
    -    "zod": "^3.22.4"
    +    "zod": "^3.23.8"
       },
       "devDependencies": {
    -    "@axe-core/react": "4.8.1",
    -    "@babel/core": "7.23.3",
    -    "@babel/eslint-parser": "^7.23.3",
    -    "@babel/eslint-plugin": "^7.22.10",
    +    "@axe-core/react": "4.10.1",
    +    "@babel/core": "7.26.9",
    +    "@babel/eslint-parser": "^7.26.8",
    +    "@babel/eslint-plugin": "^7.25.9",
         "@storybook/addon-actions": "^6.5.16",
         "@storybook/addon-essentials": "^6.5.16",
         "@storybook/addons": "^6.5.16",
    @@ -86,50 +86,50 @@
         "@storybook/manager-webpack5": "^6.5.16",
         "@storybook/react": "^6.5.16",
         "@testing-library/react-hooks": "5.1.3",
    -    "@types/babel__core": "7.20.4",
    -    "@types/browserslist": "4.8.0",
    -    "@types/caniuse-lite": "1.0.4",
    -    "@types/chart.js": "^2.9.40",
    +    "@types/babel__core": "7.20.5",
    +    "@types/browserslist": "4.15.4",
    +    "@types/caniuse-lite": "1.0.5",
    +    "@types/chart.js": "^2.9.41",
         "@types/core-js": "2.5.8",
         "@types/d3": "^7.4.3",
         "@types/eslint": "7.29.0",
         "@types/file-loader": "^5.0.4",
    -    "@types/jest": "^29.5.8",
    -    "@types/mini-css-extract-plugin": "2.5.0",
    +    "@types/jest": "^29.5.14",
    +    "@types/mini-css-extract-plugin": "2.5.1",
         "@types/prettier": "2.7.3",
         "@types/progress-bar-webpack-plugin": "2.1.5",
    -    "@types/prop-types": "15.7.10",
    -    "@types/react": "^18.2.37",
    -    "@types/react-dom": "^18.2.15",
    -    "@types/react-test-renderer": "^18.0.6",
    -    "@types/styled-components": "^5.1.30",
    +    "@types/prop-types": "15.7.14",
    +    "@types/react": "^18.3.18",
    +    "@types/react-dom": "^18.3.5",
    +    "@types/react-test-renderer": "^18.3.1",
    +    "@types/styled-components": "^5.1.34",
         "@types/stylelint": "13.13.3",
    -    "@types/terser-webpack-plugin": "5.0.4",
    +    "@types/terser-webpack-plugin": "5.2.0",
         "@types/testing-library__react-hooks": "3.4.1",
         "@types/webpack": "^5.28.5",
    -    "@types/webpack-bundle-analyzer": "^4.6.3",
    +    "@types/webpack-bundle-analyzer": "^4.7.0",
         "@types/webpack-dev-server": "^4.7.2",
    -    "@typescript-eslint/eslint-plugin": "^5.59.11",
    -    "@typescript-eslint/parser": "^5.59.11",
    -    "@typescript-eslint/typescript-estree": "^5.59.11",
    +    "@typescript-eslint/eslint-plugin": "^5.62.0",
    +    "@typescript-eslint/parser": "^5.62.0",
    +    "@typescript-eslint/typescript-estree": "^5.62.0",
         "babel-eslint": "10.1.0",
    -    "babel-loader": "^9.1.3",
    -    "browserslist": "4.21.11",
    +    "babel-loader": "^9.2.1",
    +    "browserslist": "4.24.4",
         "cross-env": "^7.0.3",
    -    "css-loader": "^6.8.1",
    +    "css-loader": "^6.11.0",
         "del-cli": "^5.1.0",
         "eslint": "7.32.0",
         "eslint-config-prettier": "^7.2.0",
    -    "eslint-import-resolver-webpack": "^0.13.8",
    +    "eslint-import-resolver-webpack": "^0.13.10",
         "eslint-plugin-compat": "^3.13.0",
         "eslint-plugin-flowtype": "^5.10.0",
         "eslint-plugin-flowtype-errors": "^4.5.0",
    -    "eslint-plugin-import": "^2.27.5",
    +    "eslint-plugin-import": "^2.31.0",
         "eslint-plugin-jest": "^24.7.0",
    -    "eslint-plugin-jsx-a11y": "^6.7.1",
    +    "eslint-plugin-jsx-a11y": "^6.10.2",
         "eslint-plugin-prettier": "^3.4.1",
    -    "eslint-plugin-react": "^7.32.2",
    -    "eslint-plugin-react-hooks": "^4.6.0",
    +    "eslint-plugin-react": "^7.37.3",
    +    "eslint-plugin-react-hooks": "^4.6.2",
         "eslint-plugin-unicorn": "^24.0.0",
         "file-loader": "^6.2.0",
         "html-loader": "^4.2.0",
    @@ -137,17 +137,17 @@
         "image-webpack-loader": "^8.1.0",
         "jest": "^29.7.0",
         "lint-staged": "^13.3.0",
    -    "mini-css-extract-plugin": "^2.7.6",
    +    "mini-css-extract-plugin": "^2.9.2",
         "npm-run-all": "4.1.5",
         "prettier": "2.8.8",
         "progress-bar-webpack-plugin": "2.1.0",
         "prop-types": "15.8.1",
         "react-test-renderer": "18.2.0",
         "regenerator-runtime": "0.14.1",
    -    "sort-package-json": "2.6.0",
    -    "source-map-loader": "^4.0.1",
    -    "storycap": "4.2.0",
    -    "style-loader": "^3.3.3",
    +    "sort-package-json": "2.12.0",
    +    "source-map-loader": "^4.0.2",
    +    "storycap": "4.3.1",
    +    "style-loader": "^3.3.4",
         "stylelint": "13.13.1",
         "stylelint-a11y": "^1.2.3",
         "stylelint-config-prettier": "^8.0.2",
    @@ -156,16 +156,16 @@
         "stylelint-config-styled-components": "^0.1.1",
         "stylelint-no-unsupported-browser-features": "^4.1.4",
         "stylelint-processor-styled-components": "^1.10.0",
    -    "terser-webpack-plugin": "^5.3.9",
    -    "ts-jest": "^29.1.1",
    +    "terser-webpack-plugin": "^5.3.11",
    +    "ts-jest": "^29.2.5",
         "ts-loader": "9.5.1",
    -    "typescript": "^5.2.2",
    +    "typescript": "^5.7.2",
         "url-loader": "4.1.1",
    -    "utility-types": "^3.10.0",
    -    "webpack": "^5.87.0",
    +    "utility-types": "^3.11.0",
    +    "webpack": "^5.98.0",
         "webpack-bundle-analyzer": "4.9.1",
         "webpack-cli": "^5.1.4",
    -    "webpack-dev-server": "^4.15.1"
    +    "webpack-dev-server": "^4.15.2"
       },
       "engines": {
         "node": ">=18.12.0"
     
    
  2. 上記のパッチを適用後、以下のコマンドを実行してパッケージをインストールし、 package-lock.json を更新します。

    $ npm i