Skip to content

Releases: classchartsapi/classcharts-api-js

v2.6.0 - classcharts-api/types

15 Sep 16:17

Choose a tag to compare

  1. Types are now exported using the exports field on package.json. Making it easier to import specific ClassCharts types:
// Before
const { ActivityPoint } = require('classcharts-api/script/src/types.js')
import type { ActivityPoint } from 'classcharts-api/esm/src/types.js'

// After
const { ActivityPoint } = require('classcharts-api/types')
import type { ActivityPoint } from 'classcharts-api/types' 
  1. Certain commonly used types were previously exported in the main mod.ts file. Since it's easier to import types now, these are no longer exported in this file.
// Before
import type { ActivityPoint, ... } from 'classcharts-api'

// After
import type { ActivityPoint, ... } from 'classcharts-api/types'

List of types affected by the latter change: ActivityPoint, Announcement, AttendanceDate, Badge, BehaviourTimelinePoint, Detention, Homework, Lesson, Student.

Full Changelog: v2.5.0...v2.6.0

v2.5.0 - Announcements Meta & Small Cleanup

14 Sep 18:52

Choose a tag to compare

  • Implemented the meta property on the .getAnnouncements() method.
  • Updated types for the .getAnnouncements() method.
  • Removed the basic HTML sanitising on the .getHomeworks() method - This was left in from when the library was initially created, and doesn't align with the "stick as close to the API as possible" direction I want to go with this library, and thus was removed. This does mean the .description_raw field no longer exists on each homework, since .description is now exactly as returned by the API.

Full Changelog: v2.4.3...v2.5.0

v2.4.3

05 Sep 14:19

Choose a tag to compare

Changes

  • Fixed improper types for baseClient.ts

v2.4.2

30 Aug 15:24

Choose a tag to compare

fix: remove types from package.json build

v2.4.0 - Deno Support

30 Aug 12:30
f86ded2

Choose a tag to compare

Note: Node.js is still supported

With this release I migrated the library to Deno, improving ease of development and tests.

Changes:

  • Deno support
  • Support CommonJs as well as ESM (improved Node.js compat)
  • BREAKING: Some types I do not have access to have been changed from any to unknown

v2.3.1

14 Jun 08:43
f2981dd

Choose a tag to compare

No visible changes in this release, just some small tweaks.

Patch Changes

v2.3.0 - Native Fetch

30 May 17:39
3fe6a7e

Choose a tag to compare

Instead of using ky-universal the library now uses native fetch. This allows for greater compatibility with services like vercel edge functions or cloudflare workers, at the expense of dropping nodejs versions less than 18 (I can add the ability to add your own fetch function if is required, to work around this issue).

Minor Changes

v2.2.0

09 May 18:27
f11c7c5

Choose a tag to compare

Minor Changes

  • a3e078b: Throw more description JSON parsing errors

Patch Changes

  • 350878c: Fixed internal typing typo
  • 451f800: Specify the required node version

v2.1.3

02 May 19:10
4cfb412

Choose a tag to compare

Small release to require the options argument in getLessons:
https://classchartsapi.github.io/classcharts-api-js/classes/core_studentClient.StudentClient.html#getLessons

Patch Changes

v2.1.2

28 Apr 20:13
f808c3f

Choose a tag to compare

Patch Changes