Skip to content

v2.0.0

Compare
Choose a tag to compare
@natelindev natelindev released this 09 Feb 12:35
· 66 commits to master since this release

breaking

  • removed DAVFilter and DAVProp, now all function uses ElementCompact as prop and filter directly generated from xml-js instead.
  • removed related formatProp, formatFilter and mergeObjectDupKeyArray function since they are not needed (These functions were marked as internal so they really shouldn't be causing breaking change).
  • removed DAVNamespaceShorthandMap and added DAVNamespaceShort as a replacement.
  • renamed parameter vCardUrlFilter of function fetchVCards to urlFilter for consistent naming.
  • collectionQuery now accepts DAVNamespaceShort instead of DAVNamespace.

features

  • etag param on updateObject is now optional, since some caldav servers will throw error if we use If-Match headers.
  • added freeBusyQuery for CALDAV, note this feature is not working with many caldav providers.
  • added expand for fetchCalendarObjects so it can now.
  • added prop and filter overriding feature to functions where overriding is possible.
  • now fetchCalendar fetch calendarColor by default.

improvements

  • fixed collection query not handling empty result properly.
  • createObject requests now send If-None-Match: * to avoid accidental overwrite.
  • depth header and others are now able be to overwritten by user specified headers.
  • tested with provider zoho
  • fixed urlFilter not really filtering the urls, only filtering on pathname of urls.
  • fixed a bug where fetching on empty calendars/addressBooks returning calendar/addressBook itself as result.
  • fixed a bug where supportedReportSet was using incorrect depth, which resulted more data fetched than needed.
  • added tests for supportedReportSet

docs

  • added doc for freeBusyQuery
  • added a helper to convert xml between tsdav compatible js objects.
  • added migration helper to help convert old DAVProp and DAVFilter into new ElementCompact.
  • fixed theming issues to create a more consistent light theme.
  • added sitemap for docs for better seo.
  • archived version 1.x docs.