Skip to content

Releases: classchartsapi/classcharts-api-js

v.2.1.1

16 Apr 14:33

Choose a tag to compare

Small patch for cloudflare worker compat

See sindresorhus/ky#366

  • fix: set ky credentials to undefined 5826faf

v2.1.0...v2.1.1

v.2.1.0 - Ky

16 Apr 14:24

Choose a tag to compare

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

  • chore: update package.json a0fe80b
  • chore: update package.json 29c829e
  • feat: axios -> ky-universal 629c998

v2.0.0...v2.1.0

v.2.0.0 - Meta!

07 Apr 13:04

Choose a tag to compare

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

v1.6.0...v2.0.0

v.1.6.0 - Auth token revalidate

07 Apr 11:50

Choose a tag to compare

The client now revalidates it's auth token, preventing you from getting unauthenticated errors!

  • fix: revalidate auth token 797c43e
  • chore: bump deps 91e956b
  • fix: use correct command for github action a192c0f
  • fix: allow manually run of docs action 5aa267a
  • feat: automatically build docs with github actions 5c66e98

v1.5.3...v1.6.0

v1.5.3 - Better Login Support

23 Sep 18:48

Choose a tag to compare

v1.5.2...v1.5.3

Thanks To

@Tyler2P, @jamesatjaminit

v.1.5.2 - Cookie parsing & consistancy

03 Aug 16:03

Choose a tag to compare

v1.5.1...v1.5.2

v1.5.1 - Custom User Agent + dependency bump

21 Jul 14:55

Choose a tag to compare

v1.5.0...v1.5.1

v1.5.0 - Attendance support

24 Jun 12:43

Choose a tag to compare

v1.4.0...v1.5.0

v.1.4.0 - Fix login for parent client

24 May 21:49

Choose a tag to compare

v.1.3.0 - Fix for Login & Custom Axios Config

24 May 21:09

Choose a tag to compare

Login is now fixed and custom axios config can now be passed through

v1.2.0...v1.3.0