Skip to content

Commit 8c61a0c

Browse files
committed
Version 5 🎉
- upgrade React Activity Calendar to v3 - migrate to pure ESM package - remove default export - remove totalCount property - all breaking changes from React Activity Calendar v3
1 parent 26b3226 commit 8c61a0c

15 files changed

Lines changed: 1212 additions & 1185 deletions

File tree

File renamed without changes.

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@
33
[![CI](https://github.com/grubersjoe/react-github-calendar/actions/workflows/test.yml/badge.svg)](https://github.com/grubersjoe/react-github-calendar/actions/workflows/test.yml)
44
[![npm version](https://badge.fury.io/js/react-github-calendar.svg)](https://www.npmjs.com/package/react-github-calendar)
55

6-
A React component to display a GitHub contributions graph based on
6+
A React component to display a GitHub contributions calendar based on
77
[`react-activity-calendar`](https://github.com/grubersjoe/react-activity-calendar) and
88
[`github-contributions-api`](https://github.com/grubersjoe/github-contributions-api).
99

10+
**Version 5** has been released 🎉<br>See the list of
11+
[breaking changes](https://github.com/grubersjoe/react-activity-calendar/releases/tag/v5.0).
12+
1013
![Screenshot](preview.png)
1114

1215
[Demo and documentation](https://grubersjoe.github.io/react-github-calendar/)
1316

1417
<a href="https://www.buymeacoffee.com/grubersjoe">
15-
<img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 40px;" >
18+
<img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 32px;" >
1619
</a>
1720

1821
## Installation

example/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,23 @@
33
"scripts": {
44
"build": "tsc && vite build",
55
"dev": "vite",
6+
"prebuild": "./scripts/docgen.sh",
67
"preview": "vite preview"
78
},
89
"dependencies": {
910
"react-error-boundary": "^6.0.0",
1011
"react-github-btn": "^1.4.0",
1112
"react-github-calendar": "link:..",
1213
"react-router": "^7.9.5",
13-
"react-syntax-highlighter": "^16.1.0"
14+
"react-syntax-highlighter": "^16.1.0",
15+
"showdown": "^2.1.0"
1416
},
1517
"devDependencies": {
1618
"@types/node": "^24.10.0",
1719
"@types/react": "^19.2.2",
1820
"@types/react-dom": "^19.2.2",
1921
"@types/react-syntax-highlighter": "^15.5.13",
22+
"@types/showdown": "^2.0.6",
2023
"@vitejs/plugin-react": "^5.1.0",
2124
"react": "^19.2.0",
2225
"react-dom": "^19.2.0",

example/pnpm-lock.yaml

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/pnpm-workspace.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

example/scripts/docgen.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
dirname=$(dirname "$(realpath "$0")")
3+
cd "$dirname/../../node_modules/react-activity-calendar/src/components" || exit 1
4+
json=$(pnpm dlx @react-docgen/cli ActivityCalendar.tsx)
5+
echo "$json" | jq '.["ActivityCalendar.tsx"][0]' > "$dirname/../src/docgen.json"

0 commit comments

Comments
 (0)