Skip to content

Releases: Tch1b0/dsbmobile.js

v1.2.0

15 Jan 09:00
b4bf0e0
Compare
Choose a tag to compare

enhanced the customization: In case your timetable isn't compatible with mine(@Tch1b0), you can now define your own htmlHandler like this:

TimeTable.htmlHandler = (html) => {
  let div = html("my-div")
  let data = div.text()

  return new TimeTable(...)
}

and then you can get your timetable as you are used to:

const dsb = new Dsbmobile("<id>", "<password>")

// timetable is now parsed using the custom handler
const timetable = await dsb.getTimetable()

To reset to the default handler you can just write:

TimeTable.htmlHandler = undefined

v1.1.9

20 Oct 15:00
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.1.7...v1.1.9

v1.1.7

05 Sep 14:18
10ef223
Compare
Choose a tag to compare

What's Changed

  • Exceptions: add new IncompatiblePlan exception in #45

Full Changelog: v1.1.6...v1.1.7

v1.1.6

13 Jul 14:29
1c511fe
Compare
Choose a tag to compare

What's Changed

The Subject-short maps can now be updated

timetable.registerSubjectShorts(new Map([["<subject-short>", "<subject-long>"]]))
// or
entry.registerSubjectShorts(new Map([["<subject-short>", "<subject-long>"]]))

Full Changelog: v1.1.5...v1.1.6

v1.1.5

01 May 07:52
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.1.4...v1.1.5

v1.1.4

08 Mar 17:31
Compare
Choose a tag to compare

What's Changed

TLDR

  • enhanced error handling
  • fixed toJSON methods on classes with date attributes
  • consistent comment-capitalization

Full Changelog: v1.1.3...v1.1.4

v1.1.3

05 Mar 16:15
Compare
Choose a tag to compare

Full Changelog: v1.1.2...v1.1.3

v1.1.2

26 Feb 09:27
Compare
Choose a tag to compare

What's Changed

  • Fix dates by @Tch1b0 in #37
  • await dsb.fetchToken() not needed anymore (as a user)

Full Changelog: v1.1.1...v1.1.2

v1.1.1

18 Feb 13:58
Compare
Choose a tag to compare

What's Changed

  • Fixed the parsing of multiple class-names in one entry

Full Changelog: v1.1.0...v1.1.1

v1.1.0

14 Jan 13:13
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.0.9...v1.1.0
Changelog between 1.0.0 and 1.1.0: 1.0.0...v1.1.0