All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
2.0.0 (2021-05-14)
- core: update Node version to v10.0.0
1.0.1 (2019-09-06)
- update Node version to v8.0.0
- parser: The dates were returned as a mix of ISO-Strings and Date Objects in previous versions.
To migrate your project, confirm that you are handling the dates received from scrapegoat correctly.
- Fix: .getEvents() now returns correctly formatted objects with details about passed in events
- Fix: .getAllEvents() now returns correctly formatted objects containing all events in the calendar
- Fix: .getEventsByTime() now returns all upcoming events from today if you leave out start and end params
- Added url, uid, location, geo and description fields to the output of .getEvents(), .getAllEvents() and .getEventsByTime()
- Added tests for the Calendar
- Fix: Update the events parser to expand recurring events (Switched from using ical to using ical.js) - Fixes #12
- Fix: Handle cases where user inputs an end-date smaller than start-date in .getEventsByTime()
- Added
duration
andtype
fields to the output of .getEvents(), .getAllEvents() and .getEventsByTime() - Removed
url
andgeo
fields from the output of .getEvents(), .getAllEvents() and .getEventsByTime() as most calendar clients do not allow users to provide these values - Update calendar tests
- Fix: Remove wrappedJSObject circular object from event duration object
- Fix: Filter out recurring event occurrences from the past in
.getEventsByTime()
- Fix: CalDav saves the end date of all day events as the start of the next day. To fix this, we now subtract one second from the end date.
- Fix: Solve bug where currently ongoing non-recurring events were being filtered out by
.getEventsByTime()
- Feature: An optional
timeout
parameter can be provided to theconfig
object passed toScrapegoat
to indicate the number of milliseconds to wait for the server to send the response before aborting the request.
-
Fix: Convert
start
,end
, andcreatedAt
dates to ISO-Strings instead of Date objects to maintain consistency.BREAKING CHANGE:
The dates were returned as a mix of ISO-Strings and Date Objects in previous versions.
To migrate your project, confirm that you are handling the dates received from scrapegoat correctly.
-
Fix: Remove
etag
trailing double quote