From 0a39587318f6a285003e01db331d977cecab58ee Mon Sep 17 00:00:00 2001 From: mrholek Date: Sun, 11 Jun 2023 18:43:55 +0200 Subject: [PATCH 01/14] chore: update dependencies and devDependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @coreui/chartjs ^3.1.1 → ^3.1.2 @rollup/plugin-commonjs ^25.0.0 → ^25.0.1 @rollup/plugin-node-resolve ^15.0.2 → ^15.1.0 @types/lodash ^4.14.194 → ^4.14.195 @types/react 18.2.6 → 18.2.11 jest-canvas-mock ^2.5.0 → ^2.5.1 rollup ^3.21.7 → ^3.25.0 --- package.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index b10e046..4a19a49 100644 --- a/package.json +++ b/package.json @@ -40,27 +40,27 @@ "test:update": "jest --coverage --updateSnapshot" }, "dependencies": { - "@coreui/chartjs": "^3.1.1", + "@coreui/chartjs": "^3.1.2", "chart.js": "3.9.1" }, "devDependencies": { - "@rollup/plugin-commonjs": "^25.0.0", - "@rollup/plugin-node-resolve": "^15.0.2", + "@rollup/plugin-commonjs": "^25.0.1", + "@rollup/plugin-node-resolve": "^15.1.0", "@rollup/plugin-typescript": "^11.1.1", "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^14.0.0", - "@types/lodash": "^4.14.194", - "@types/react": "18.2.6", + "@types/lodash": "^4.14.195", + "@types/react": "18.2.11", "@types/react-dom": "^18.2.4", "classnames": "^2.3.2", "jest": "^29.5.0", - "jest-canvas-mock": "^2.5.0", + "jest-canvas-mock": "^2.5.1", "jest-environment-jsdom": "^29.5.0", "lodash": "^4.17.21", "prop-types": "^15.8.1", "react": "^18.2.0", "react-dom": "^18.2.0", - "rollup": "^3.21.7", + "rollup": "^3.25.0", "ts-jest": "^29.1.0", "typescript": "^4.9.5" }, From 293a430ae15fb1731f8c79cdd5b0b6da972bbf57 Mon Sep 17 00:00:00 2001 From: mrholek Date: Fri, 27 Oct 2023 16:08:25 +0200 Subject: [PATCH 02/14] chore: update dependencies and devDependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @rollup/plugin-commonjs ^25.0.1 → ^25.0.7 @rollup/plugin-node-resolve ^15.1.0 → ^15.2.3 @rollup/plugin-typescript ^11.1.1 → ^11.1.5 @testing-library/jest-dom ^5.16.5 → ^6.1.4 @types/lodash ^4.14.195 → ^4.14.200 @types/react 18.2.11 → 18.2.33 @types/react-dom ^18.2.4 → ^18.2.14 chart.js 3.9.1 → 4.4.0 jest ^29.5.0 → ^29.7.0 jest-canvas-mock ^2.5.1 → ^2.5.2 jest-environment-jsdom ^29.5.0 → ^29.7.0 rollup ^3.25.0 → ^4.1.4 ts-jest ^29.1.0 → ^29.1.1 typescript ^4.9.5 → ^5.2.2 --- package.json | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 4a19a49..2253a49 100644 --- a/package.json +++ b/package.json @@ -41,28 +41,28 @@ }, "dependencies": { "@coreui/chartjs": "^3.1.2", - "chart.js": "3.9.1" + "chart.js": "4.4.0" }, "devDependencies": { - "@rollup/plugin-commonjs": "^25.0.1", - "@rollup/plugin-node-resolve": "^15.1.0", - "@rollup/plugin-typescript": "^11.1.1", - "@testing-library/jest-dom": "^5.16.5", + "@rollup/plugin-commonjs": "^25.0.7", + "@rollup/plugin-node-resolve": "^15.2.3", + "@rollup/plugin-typescript": "^11.1.5", + "@testing-library/jest-dom": "^6.1.4", "@testing-library/react": "^14.0.0", - "@types/lodash": "^4.14.195", - "@types/react": "18.2.11", - "@types/react-dom": "^18.2.4", + "@types/lodash": "^4.14.200", + "@types/react": "18.2.33", + "@types/react-dom": "^18.2.14", "classnames": "^2.3.2", - "jest": "^29.5.0", - "jest-canvas-mock": "^2.5.1", - "jest-environment-jsdom": "^29.5.0", + "jest": "^29.7.0", + "jest-canvas-mock": "^2.5.2", + "jest-environment-jsdom": "^29.7.0", "lodash": "^4.17.21", "prop-types": "^15.8.1", "react": "^18.2.0", "react-dom": "^18.2.0", - "rollup": "^3.25.0", - "ts-jest": "^29.1.0", - "typescript": "^4.9.5" + "rollup": "^4.1.4", + "ts-jest": "^29.1.1", + "typescript": "^5.2.2" }, "peerDependencies": { "react": ">=17", From c1098af8b0c55b8cf58d4b566b7cd7eb27c51216 Mon Sep 17 00:00:00 2001 From: mrholek Date: Sat, 28 Oct 2023 11:39:12 +0200 Subject: [PATCH 03/14] build: update rollup config --- package.json | 6 +++--- rollup.config.js => rollup.config.mjs | 0 tsconfig.json | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) rename rollup.config.js => rollup.config.mjs (100%) diff --git a/package.json b/package.json index 2253a49..bd3e027 100644 --- a/package.json +++ b/package.json @@ -28,14 +28,14 @@ "license": "MIT", "author": "The CoreUI Team (https://github.com/orgs/coreui/people)", "main": "dist/index.js", - "module": "dist/index.es.js", - "jsnext:main": "dist/index.es.js", + "module": "dist/index.esm.js", + "jsnext:main": "dist/index.esm.js", "files": [ "dist/", "src/" ], "scripts": { - "build": "rollup -c --bundleConfigAsCjs", + "build": "rollup --config", "test": "jest --coverage", "test:update": "jest --coverage --updateSnapshot" }, diff --git a/rollup.config.js b/rollup.config.mjs similarity index 100% rename from rollup.config.js rename to rollup.config.mjs diff --git a/tsconfig.json b/tsconfig.json index ed928e2..7f4d467 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,7 +15,6 @@ "noImplicitThis": true, "noImplicitAny": true, "strictNullChecks": true, - "suppressImplicitAnyIndexErrors": true, "noUnusedLocals": true, "noUnusedParameters": true, "esModuleInterop": true From c517338fd184d3701e0dc7609f2f12c3a7785b5a Mon Sep 17 00:00:00 2001 From: mrholek Date: Sun, 29 Oct 2023 21:21:36 +0100 Subject: [PATCH 04/14] fix: resolve TS warnings --- src/CChart.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CChart.tsx b/src/CChart.tsx index e5a4776..0196ac4 100644 --- a/src/CChart.tsx +++ b/src/CChart.tsx @@ -17,7 +17,7 @@ import type { ChartTypeRegistry, InteractionItem, Plugin, - ScatterDataPoint, + Point, BubbleDataPoint, } from 'chart.js' import { customTooltips as cuiCustomTooltips } from '@coreui/chartjs' @@ -148,7 +148,7 @@ export const CChart = forwardRef( const chartRef = useRef< | ChartJS< keyof ChartTypeRegistry, - (number | ScatterDataPoint | BubbleDataPoint | null)[], + (number | [number, number] | Point | BubbleDataPoint | null)[], unknown > | undefined From 2b604a449629067d6861ee9f8399d93f38e87011 Mon Sep 17 00:00:00 2001 From: mrholek Date: Mon, 30 Oct 2023 14:51:39 +0100 Subject: [PATCH 05/14] chore: update dependencies and devDependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @coreui/chartjs ^3.1.2 → ^4.0.0-beta.0 rollup ^4.1.4 → ^4.1.5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bd3e027..785c9cd 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "prop-types": "^15.8.1", "react": "^18.2.0", "react-dom": "^18.2.0", - "rollup": "^4.1.4", + "rollup": "^4.1.5", "ts-jest": "^29.1.1", "typescript": "^5.2.2" }, From 9894cb3057b48dd14c8f684b2ca084fe87837c9e Mon Sep 17 00:00:00 2001 From: mrholek Date: Mon, 30 Oct 2023 15:17:14 +0100 Subject: [PATCH 06/14] release: v3.0.0-beta.0 --- package.json | 10 +++++----- rollup.config.mjs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 785c9cd..55f6752 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@coreui/react-chartjs", - "version": "2.1.3", + "version": "3.0.0-beta.0", "description": "React wrapper component for Chart.js", "keywords": [ "coreui", @@ -39,11 +39,8 @@ "test": "jest --coverage", "test:update": "jest --coverage --updateSnapshot" }, - "dependencies": { - "@coreui/chartjs": "^3.1.2", - "chart.js": "4.4.0" - }, "devDependencies": { + "@coreui/chartjs": "^4.0.0-beta.0", "@rollup/plugin-commonjs": "^25.0.7", "@rollup/plugin-node-resolve": "^15.2.3", "@rollup/plugin-typescript": "^11.1.5", @@ -52,6 +49,7 @@ "@types/lodash": "^4.14.200", "@types/react": "18.2.33", "@types/react-dom": "^18.2.14", + "chart.js": "^4.4.0", "classnames": "^2.3.2", "jest": "^29.7.0", "jest-canvas-mock": "^2.5.2", @@ -65,6 +63,8 @@ "typescript": "^5.2.2" }, "peerDependencies": { + "@coreui/chartjs": "^4.0.0-beta.0", + "chart.js": "^4.4.0", "react": ">=17", "react-dom": ">=17" } diff --git a/rollup.config.mjs b/rollup.config.mjs index 11e6ecd..60f0192 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -31,7 +31,7 @@ export default { }, }, ], - external: ['react', 'react-dom'], + external: ['@coreui/chartjs', 'chart.js', 'react', 'react-dom'], plugins: [ resolve(), typescript({ From e18e5496dd8d634394768914e88cbd56fce415b4 Mon Sep 17 00:00:00 2001 From: mrholek Date: Fri, 10 Nov 2023 20:32:17 +0100 Subject: [PATCH 07/14] docs: update README --- README.md | 74 +++++++++++++++++++++++++++---------------------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index 25a5d2e..a34a0f0 100644 --- a/README.md +++ b/README.md @@ -161,44 +161,44 @@ wrapper?: boolean class CoreUICharts extends Component { ... render() { - return ( - - ) + ], + }} + options={{ + aspectRatio: 1.5, + tooltips: { + enabled: true + } + }} + /> + ) } ... ``` \ No newline at end of file From 8ae28817aae261de97551b23e06dac40ce67344c Mon Sep 17 00:00:00 2001 From: mrholek Date: Fri, 10 Nov 2023 20:40:14 +0100 Subject: [PATCH 08/14] build: update dependencies, devDependencies, and peerDependencies --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 55f6752..d501de2 100644 --- a/package.json +++ b/package.json @@ -39,8 +39,11 @@ "test": "jest --coverage", "test:update": "jest --coverage --updateSnapshot" }, - "devDependencies": { + "dependencies": { "@coreui/chartjs": "^4.0.0-beta.0", + "chart.js": "^4.4.0" + }, + "devDependencies": { "@rollup/plugin-commonjs": "^25.0.7", "@rollup/plugin-node-resolve": "^15.2.3", "@rollup/plugin-typescript": "^11.1.5", @@ -49,7 +52,6 @@ "@types/lodash": "^4.14.200", "@types/react": "18.2.33", "@types/react-dom": "^18.2.14", - "chart.js": "^4.4.0", "classnames": "^2.3.2", "jest": "^29.7.0", "jest-canvas-mock": "^2.5.2", @@ -63,8 +65,6 @@ "typescript": "^5.2.2" }, "peerDependencies": { - "@coreui/chartjs": "^4.0.0-beta.0", - "chart.js": "^4.4.0", "react": ">=17", "react-dom": ">=17" } From deb1b6ba4f46ca9ac2dc7d4d4ff287743e0e6418 Mon Sep 17 00:00:00 2001 From: mrholek Date: Tue, 14 Nov 2023 22:05:38 +0100 Subject: [PATCH 09/14] chore: update dependencies and devDependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @coreui/chartjs ^4.0.0-beta.0 → ^4.0.0-rc.0 @testing-library/react ^14.0.0 → ^14.1.0 @types/lodash ^4.14.200 → ^4.14.201 @types/react 18.2.33 → 18.2.37 @types/react-dom ^18.2.14 → ^18.2.15 rollup ^4.1.5 → ^4.4.1 --- package.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index d501de2..29fc682 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "test:update": "jest --coverage --updateSnapshot" }, "dependencies": { - "@coreui/chartjs": "^4.0.0-beta.0", + "@coreui/chartjs": "^4.0.0-rc.0", "chart.js": "^4.4.0" }, "devDependencies": { @@ -48,10 +48,10 @@ "@rollup/plugin-node-resolve": "^15.2.3", "@rollup/plugin-typescript": "^11.1.5", "@testing-library/jest-dom": "^6.1.4", - "@testing-library/react": "^14.0.0", - "@types/lodash": "^4.14.200", - "@types/react": "18.2.33", - "@types/react-dom": "^18.2.14", + "@testing-library/react": "^14.1.0", + "@types/lodash": "^4.14.201", + "@types/react": "18.2.37", + "@types/react-dom": "^18.2.15", "classnames": "^2.3.2", "jest": "^29.7.0", "jest-canvas-mock": "^2.5.2", @@ -60,7 +60,7 @@ "prop-types": "^15.8.1", "react": "^18.2.0", "react-dom": "^18.2.0", - "rollup": "^4.1.5", + "rollup": "^4.4.1", "ts-jest": "^29.1.1", "typescript": "^5.2.2" }, From d49b6340fa630265af7e1377b5f086f172a73529 Mon Sep 17 00:00:00 2001 From: mrholek Date: Tue, 14 Nov 2023 22:09:09 +0100 Subject: [PATCH 10/14] release: v3.0.0-rc.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 29fc682..8cf717f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@coreui/react-chartjs", - "version": "3.0.0-beta.0", + "version": "3.0.0-rc.0", "description": "React wrapper component for Chart.js", "keywords": [ "coreui", From fe2c8a26054ddcfcfc740b576a8d3798fe6adecf Mon Sep 17 00:00:00 2001 From: mrholek Date: Fri, 22 Mar 2024 10:57:01 +0100 Subject: [PATCH 11/14] chore: update dependencies and devDependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @rollup/plugin-typescript ^11.1.5 → ^11.1.6 @testing-library/jest-dom ^6.1.4 → ^6.4.2 @testing-library/react ^14.1.0 → ^14.2.2 @types/lodash ^4.14.201 → ^4.17.0 @types/react 18.2.37 → 18.2.67 @types/react-dom ^18.2.15 → ^18.2.22 chart.js ^4.4.0 → ^4.4.2 classnames ^2.3.2 → ^2.5.1 rollup ^4.4.1 → ^4.13.0 ts-jest ^29.1.1 → ^29.1.2 typescript ^5.2.2 → ^5.4.3 --- package.json | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 8cf717f..be7927d 100644 --- a/package.json +++ b/package.json @@ -41,18 +41,18 @@ }, "dependencies": { "@coreui/chartjs": "^4.0.0-rc.0", - "chart.js": "^4.4.0" + "chart.js": "^4.4.2" }, "devDependencies": { "@rollup/plugin-commonjs": "^25.0.7", "@rollup/plugin-node-resolve": "^15.2.3", - "@rollup/plugin-typescript": "^11.1.5", - "@testing-library/jest-dom": "^6.1.4", - "@testing-library/react": "^14.1.0", - "@types/lodash": "^4.14.201", - "@types/react": "18.2.37", - "@types/react-dom": "^18.2.15", - "classnames": "^2.3.2", + "@rollup/plugin-typescript": "^11.1.6", + "@testing-library/jest-dom": "^6.4.2", + "@testing-library/react": "^14.2.2", + "@types/lodash": "^4.17.0", + "@types/react": "18.2.67", + "@types/react-dom": "^18.2.22", + "classnames": "^2.5.1", "jest": "^29.7.0", "jest-canvas-mock": "^2.5.2", "jest-environment-jsdom": "^29.7.0", @@ -60,9 +60,9 @@ "prop-types": "^15.8.1", "react": "^18.2.0", "react-dom": "^18.2.0", - "rollup": "^4.4.1", - "ts-jest": "^29.1.1", - "typescript": "^5.2.2" + "rollup": "^4.13.0", + "ts-jest": "^29.1.2", + "typescript": "^5.4.3" }, "peerDependencies": { "react": ">=17", From 1d65312f25e85def26557a7a508de387873a1179 Mon Sep 17 00:00:00 2001 From: mrholek Date: Fri, 22 Mar 2024 10:58:14 +0100 Subject: [PATCH 12/14] chore: update current year --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 027b881..94e4f4d 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 creativeLabs Łukasz Holeczek +Copyright (c) 2024 creativeLabs Łukasz Holeczek Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From 433742db8a4866336b69ed338466fba12d5b0ebe Mon Sep 17 00:00:00 2001 From: mrholek Date: Thu, 28 Mar 2024 12:11:45 +0100 Subject: [PATCH 13/14] chore: update dependencies and devDependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @coreui/chartjs ^4.0.0-rc.0 → ^4.0.0 @types/react 18.2.67 → 18.2.73 rollup ^4.13.0 → ^4.13.1 --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index be7927d..fc9cb35 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "test:update": "jest --coverage --updateSnapshot" }, "dependencies": { - "@coreui/chartjs": "^4.0.0-rc.0", + "@coreui/chartjs": "^4.0.0", "chart.js": "^4.4.2" }, "devDependencies": { @@ -50,7 +50,7 @@ "@testing-library/jest-dom": "^6.4.2", "@testing-library/react": "^14.2.2", "@types/lodash": "^4.17.0", - "@types/react": "18.2.67", + "@types/react": "18.2.73", "@types/react-dom": "^18.2.22", "classnames": "^2.5.1", "jest": "^29.7.0", @@ -60,7 +60,7 @@ "prop-types": "^15.8.1", "react": "^18.2.0", "react-dom": "^18.2.0", - "rollup": "^4.13.0", + "rollup": "^4.13.1", "ts-jest": "^29.1.2", "typescript": "^5.4.3" }, From c6077716da130a1ba8f97346f2d98c60ea2cca3e Mon Sep 17 00:00:00 2001 From: mrholek Date: Thu, 28 Mar 2024 12:14:24 +0100 Subject: [PATCH 14/14] release: v3.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fc9cb35..0ee3f5d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@coreui/react-chartjs", - "version": "3.0.0-rc.0", + "version": "3.0.0", "description": "React wrapper component for Chart.js", "keywords": [ "coreui", pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy