Skip to content
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
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2.1.5
- uses: actions/setup-node@v2
with:
node-version: 14
- run: npm i -g yarn
- run: yarn set version 2
- run: cat .yarnrc_patch.yml >> .yarnrc.yml
- run: yarn config set checksumBehavior ignore
- name: Cache Node.js modules
uses: actions/cache@v2.1.4
uses: actions/cache@v2
with:
path: ./.yarn
key: ${{ runner.os }}-yarn2-${{ hashFiles('**/yarn.lock') }}
path: |
./.yarn/cache
./.yarn/unplugged
key: ${{ runner.os }}-yarn2-v4-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn2-
${{ runner.os }}-yarn2-v4
- run: yarn install
- run: yarn build
- run: yarn lint
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/release_helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,20 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v2
- uses: actions/setup-node@v2.1.5
- uses: actions/setup-node@v2
with:
node-version: 14
- run: npm i -g yarn
- run: yarn set version 2
- run: cat .yarnrc_patch.yml >> .yarnrc.yml
- run: yarn config set checksumBehavior ignore
- name: Cache Node.js modules
uses: actions/cache@v2.1.4
uses: actions/cache@v2
with:
path: ./.yarn
key: ${{ runner.os }}-yarn2-${{ hashFiles('**/yarn.lock') }}
path: |
./.yarn/cache
./.yarn/unplugged
key: ${{ runner.os }}-yarn2-v4-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn2-
${{ runner.os }}-yarn2-v4
- run: yarn install
- run: yarn build
- run: yarn pack
Expand Down
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ npm-debug.log*
/coverage
/node_modules
.npm
/.yarnrc.yml
/.yarn
/.pnp.*
.yarn/*
!.yarn/patches
!.yarn/releases
!.yarn/plugins
!.yarn/versions
.pnp.*

# Build files
/.tmp
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/.pnp.cjs
/.pnp*
/.yarnrc.yml
/.yarn
/build
Expand Down
768 changes: 768 additions & 0 deletions .yarn/releases/yarn-3.1.0.cjs

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
packageExtensions:
eslint-module-utils@*:
dependencies:
eslint-import-resolver-node: "*"

yarnPath: .yarn/releases/yarn-3.1.0.cjs
4 changes: 0 additions & 4 deletions .yarnrc_patch.yml

This file was deleted.

4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,8 @@ Chart.register(HierarchicalScale);

```sh
npm i -g yarn
yarn set version berry
cat .yarnrc_patch.yml >> .yarnrc.yml
yarn install
yarn pnpify --sdk vscode
yarn sdks vscode
```

### Common commands
Expand Down
52 changes: 26 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "chartjs-plugin-hierarchical",
"description": "Chart.js module for hierarchical categories",
"version": "3.5.0",
"version": "3.6.0",
"author": {
"name": "Samuel Gratzl",
"email": "[email protected]",
Expand Down Expand Up @@ -34,51 +34,51 @@
"src/**/*.ts"
],
"peerDependencies": {
"chart.js": "^3.5.0"
"chart.js": "^3.6.0"
},
"browserslist": [
"Firefox ESR",
"last 2 Chrome versions",
"last 2 Firefox versions"
],
"devDependencies": {
"@rollup/plugin-commonjs": "^20.0.0",
"@rollup/plugin-node-resolve": "^13.0.4",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-node-resolve": "^13.0.6",
"@rollup/plugin-replace": "^3.0.0",
"@rollup/plugin-typescript": "^8.2.5",
"@types/jest": "^26.0.24",
"@rollup/plugin-typescript": "^8.3.0",
"@types/jest": "^27.0.2",
"@types/jest-image-snapshot": "^4.3.1",
"@types/node": "^16.4.13",
"@types/node": "^16.11.6",
"@types/seedrandom": "^3.0.1",
"@typescript-eslint/eslint-plugin": "^4.29.0",
"@typescript-eslint/parser": "^4.29.0",
"@yarnpkg/pnpify": "^2.4.0",
"@typescript-eslint/eslint-plugin": "^5.3.0",
"@typescript-eslint/parser": "^5.3.0",
"@yarnpkg/sdks": "^2.5.0",
"canvas": "^2.8.0",
"canvas-5-polyfill": "^0.1.5",
"chart.js": "^3.5.0",
"eslint": "^7.32.0",
"eslint-config-airbnb-typescript": "^12.3.1",
"chart.js": "^3.6.0",
"eslint": "^8.1.0",
"eslint-config-airbnb-typescript": "^14.0.1",
"eslint-config-prettier": "^8.3.0",
"eslint-config-react-app": "^6.0.0",
"eslint-plugin-flowtype": "^5.9.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.26.1",
"eslint-plugin-react-hooks": "^4.2.0",
"jest": "^27.0.6",
"jest": "^27.3.1",
"jest-image-snapshot": "^4.5.1",
"prettier": "^2.3.2",
"prettier": "^2.4.1",
"rimraf": "^3.0.2",
"rollup": "^2.56.0",
"rollup": "^2.59.0",
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-dts": "^3.0.2",
"rollup-plugin-dts": "^4.0.0",
"rollup-plugin-terser": "^7.0.2",
"seedrandom": "^3.0.5",
"ts-jest": "^27.0.4",
"tslib": "^2.3.0",
"typedoc": "^0.21.5",
"typescript": "^4.3.5",
"ts-jest": "^27.0.7",
"tslib": "^2.3.1",
"typedoc": "^0.22.7",
"typescript": "^4.4.4",
"us-atlas": "^3.0.0",
"world-atlas": "^2.0.2"
},
Expand All @@ -101,5 +101,5 @@
"docs": "typedoc src/index.ts",
"prepare": "yarn run build"
},
"packageManager": "yarn@3.0.0"
"packageManager": "yarn@3.1.0"
}
2 changes: 1 addition & 1 deletion samples/backgroundColor.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Hierarchical Bar Chart</title>
<script src="https://unpkg.com/chart.js@3.5.0/dist/chart.js"></script>
<script src="https://unpkg.com/chart.js@3.6.0/dist/chart.js"></script>
<script src="../build/index.umd.js"></script>
<style>
canvas {
Expand Down
2 changes: 1 addition & 1 deletion samples/boxplot.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Hierarchical Bar Chart</title>
<script src="https://unpkg.com/chart.js@3.5.0/dist/chart.js"></script>
<script src="https://unpkg.com/chart.js@3.6.0/dist/chart.js"></script>
<script src="../build/index.umd.js"></script>
<script src="https://unpkg.com/@sgratzl/chartjs-chart-boxplot/build/index.umd.js" type="text/javascript"></script>
<style>
Expand Down
2 changes: 1 addition & 1 deletion samples/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Hierarchical Bar Chart</title>
<script src="https://unpkg.com/chart.js@3.5.0/dist/chart.js"></script>
<script src="https://unpkg.com/chart.js@3.6.0/dist/chart.js"></script>
<script src="../build/index.umd.js"></script>
<style>
canvas {
Expand Down
4 changes: 2 additions & 2 deletions samples/default_esm.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<script type="importmap-shim">
{
"imports": {
"chart.js": "https://unpkg.com/chart.js@3.5.0?module",
"chart.js/helpers": "https://unpkg.com/chart.js@3.5.0/helpers/helpers.esm.js?module",
"chart.js": "https://unpkg.com/chart.js@3.6.0?module",
"chart.js/helpers": "https://unpkg.com/chart.js@3.6.0/helpers/helpers.esm.js?module",
"chartjs-plugin-hierarchical": "../build/index.js"
}
}
Expand Down
2 changes: 1 addition & 1 deletion samples/end_hierarchy.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Hierarchical Bar Chart</title>
<script src="https://unpkg.com/chart.js@3.5.0/dist/chart.js"></script>
<script src="https://unpkg.com/chart.js@3.6.0/dist/chart.js"></script>
<script src="../build/index.umd.js"></script>
<style>
canvas {
Expand Down
2 changes: 1 addition & 1 deletion samples/horizontal.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Hierarchical Horizontal Bar Chart</title>
<script src="https://unpkg.com/chart.js@3.5.0/dist/chart.js"></script>
<script src="https://unpkg.com/chart.js@3.6.0/dist/chart.js"></script>
<script src="../build/index.umd.js"></script>
<style>
canvas {
Expand Down
2 changes: 1 addition & 1 deletion samples/lazy.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Hierarchical Bar Chart</title>
<script src="https://unpkg.com/chart.js@3.5.0/dist/chart.js"></script>
<script src="https://unpkg.com/chart.js@3.6.0/dist/chart.js"></script>
<script src="../build/index.umd.js"></script>
<style>
canvas {
Expand Down
2 changes: 1 addition & 1 deletion samples/line.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Hierarchical Line Chart</title>
<script src="https://unpkg.com/chart.js@3.5.0/dist/chart.js"></script>
<script src="https://unpkg.com/chart.js@3.6.0/dist/chart.js"></script>
<script src="../build/index.umd.js"></script>
<style>
canvas {
Expand Down
2 changes: 1 addition & 1 deletion samples/scriptable.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Hierarchical Bar Chart</title>
<script src="https://unpkg.com/chart.js@3.5.0/dist/chart.js"></script>
<script src="https://unpkg.com/chart.js@3.6.0/dist/chart.js"></script>
<script src="https://unpkg.com/d3"></script>
<script src="../build/index.umd.js"></script>
<style>
Expand Down
2 changes: 1 addition & 1 deletion samples/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Hierarchical Bar Chart</title>
<script src="https://unpkg.com/chart.js@3.5.0/dist/chart.js"></script>
<script src="https://unpkg.com/chart.js@3.6.0/dist/chart.js"></script>
<script src="../build/index.umd.js"></script>
<style>
canvas {
Expand Down
2 changes: 1 addition & 1 deletion samples/singleChild.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Hierarchical Bar Chart</title>
<script src="https://unpkg.com/chart.js@3.5.0/dist/chart.js"></script>
<script src="https://unpkg.com/chart.js@3.6.0/dist/chart.js"></script>
<script src="../build/index.umd.js"></script>
<style>
canvas {
Expand Down
2 changes: 1 addition & 1 deletion samples/static.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Hierarchical Bar Chart</title>
<script src="https://unpkg.com/chart.js@3.5.0/dist/chart.js"></script>
<script src="https://unpkg.com/chart.js@3.6.0/dist/chart.js"></script>
<script src="../build/index.umd.js"></script>
<style>
canvas {
Expand Down
Loading