Skip to content

Releases: dotnize/moodle-scrape

v3.1.0

01 Feb 10:50
Compare
Choose a tag to compare

What's Changed

  • Added an optional navCourses option to .refresh() for getting all courses (including those with no active tasks) from the 'My Courses' dropdown, usually found in the navigation bar. May not be supported for some sites.
// to include courses with no active tasks in the calendar
await moodle.refresh(cookies, { navCourses: true });

Full Changelog: v3.0.0...v3.1.0

v3.0.0

31 Jan 07:45
Compare
Choose a tag to compare

Breaking Changes

  • Tasks and courses now store the ids instead of the object references
  • Task deadlines are now properly formatted as Dates instead of strings
export interface Task {
  // ...
- course: Course;
+ courseId: number;

- deadline: string;
+ deadline: Date;
}

export interface Course {
  // ...
- tasks: Array<Task>;
+ taskIds: Array<number>;
}

What's Changed

  • Login form path & Retrieving courses by href by @Fairbrook in #3

New Contributors

Full Changelog: https://github.com/nizewn/moodle-scrape/commits/v3.0.0