Releases: classchartsapi/classcharts-api-js
v.2.1.1
Small patch for cloudflare worker compat
- fix: set ky credentials to undefined 5826faf
v.2.1.0 - Ky
The library has now migrated from axios to ky-universal. This provides better compat with environments like cloudflare workers, since ky uses fetch.
Since this is quite a major backend change, please be on the lookout for issues, and report them via the issue tracker or the discord server
Changes
v.2.0.0 - Meta!
Changes
Meta
All methods now return the meta object.
This object contains additional data which classcharts returns, it usually contains things like number of outstanding homeworks, or other simple metadata. Some methods, namely getAttendance(), getDetentions() and getAnnouncements(), don't return this new meta value yet, simply because I do not have access to these features on ClassCharts, and cannot test it. If you have access to them, please submit a PR.
ClasschartsStudentClient
Both the student and parent client have been renamed to StudentClient and ParentClient respectively, this was simply an oversight when the library was first created, since the word ClassCharts is not needed.
Help Still Wanted
Parent Client
The parent client is still significantly lagging behind the student client, with the new meta changes not being included in this release. This is because I do not have access to a parent client to test features with, which makes it very hard to develop for. If you have access to to a parent client, please submit a PR with fixes/enhancements.
Tests
Because of this new release, I have had to adapt some of the tests. They are barely tests anymore and do little in actual "testing". I will improve them at some point, but PRs would be welcome.
New Routes
Also, please submit PRs for new API routes which you have access to. I only have access to a very small subset of the API and would be very grateful for any PRs implementing new routes.
Commits
v.1.6.0 - Auth token revalidate
The client now revalidates it's auth token, preventing you from getting unauthenticated errors!
v1.5.3 - Better Login Support
v.1.5.2 - Cookie parsing & consistancy
- feat: parse cookies properly (#15) 64909d8
- Merge branch 'main' of https://github.com/Classcharts-API/classcharts-api-js 70bf79e
- fix: use from instead of fromDate for consistancy eead253
- chore: update url e7161de
- Merge branch 'main' of https://github.com/classchartsapi/classcharts-api-js 22cabfa
- docs: update docs 6042b7c
v1.5.1 - Custom User Agent + dependency bump
v1.5.0 - Attendance support
v.1.4.0 - Fix login for parent client
- fix: parent client 0b43804
- Merge branch 'main' of https://github.com/jamesatjaminit/classcharts-api 823c4e0
- fix: remove webpack support 10ce7bb
v.1.3.0 - Fix for Login & Custom Axios Config
Login is now fixed and custom axios config can now be passed through
- fix: login 80c3f65
- feat: custom axios config support 75bc77f
- chore: fix webpack config d5b07cf
- chore: exclude tests directory cb27134
- chore: update package.json b537dbd
- chore: add license file 741b780
- chore: add vscode recomended extensions 5226b96
- chore: update readme 78460b3
- chore: update docs 811e62f
- feat: jest testing (#13) 3b1c446