Skip to content

Commit 0546cc0

Browse files
committed
v2.0.0-rc.2
1 parent c370e30 commit 0546cc0

File tree

13 files changed

+450
-369
lines changed

13 files changed

+450
-369
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
## v2.0.0-rc.2
2+
3+
**improvements**
4+
5+
- fixed wrong namespace issue
6+
- fixed a bug where supportedReportSet was using incorrect depth, which resulted more data fetched than needed.
7+
- added tests for supportedReportSet
8+
9+
**docs**
10+
11+
- added doc for freeBusyQuery
12+
13+
## v2.0.0-rc.1
14+
15+
**improvements**
16+
17+
- fixed wrong namespace issue
18+
119
## v2.0.0-rc.0
220

321
**breaking**

docs/docs/caldav/freeBusyQuery.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
sidebar_position: 10
3+
---
4+
5+
## `freeBusyQuery`
6+
7+
query free busy data on calendar
8+
9+
:::caution
10+
a lot of caldav providers do not support this method like google, apple.
11+
use with caution.
12+
:::
13+
14+
```ts
15+
const freeBusyQuery = await freeBusyQuery({
16+
url: 'https://caldav.icloud.com/123456/calendars/A5639426-B73B-4F90-86AB-D70F7F603E75/',
17+
timeRange: {
18+
start: '2022-01-28T16:25:33.125Z',
19+
end: '2022-02-28T16:25:33.125Z',
20+
},
21+
depth: '0',
22+
headers: {
23+
authorization: 'Basic x0C9uFWd9Vz8OwS0DEAtkAlj',
24+
},
25+
});
26+
```
27+
28+
### Arguments
29+
30+
- `url` **required**, collection url
31+
- `timeRange` **required** time range in iso format
32+
- `start` start time in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601), format that's not in ISO 8601 will cause an error be thrown.
33+
- `end` end time in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601), format that's not in ISO 8601 will cause an error be thrown.
34+
- `depth` [DAVDepth](../types/DAVDepth.md)
35+
- `headers` request headers
36+
37+
### Return Value
38+
39+
[DAVResponse](../types/DAVResponse.md)
40+
41+
### Behavior
42+
43+
send free-busy-query REPORT request to caldav server.

docs/docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module.exports = {
5959
lastVersion: 'current',
6060
versions: {
6161
current: {
62-
label: '2.0.0-rc.1',
62+
label: '2.0.0-rc.2',
6363
},
6464
'1.1.6': {
6565
label: '1.1.6',

docs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
]
2727
},
2828
"dependencies": {
29-
"@docusaurus/core": "2.0.0-beta.14",
30-
"@docusaurus/preset-classic": "2.0.0-beta.14",
29+
"@docusaurus/core": "2.0.0-beta.15",
30+
"@docusaurus/preset-classic": "2.0.0-beta.15",
3131
"@easyops-cn/docusaurus-search-local": "0.21.4",
3232
"@mdx-js/react": "1.6.22",
3333
"@svgr/webpack": "6.2.0",
@@ -41,7 +41,7 @@
4141
"xml-js": "1.6.11"
4242
},
4343
"devDependencies": {
44-
"@docusaurus/module-type-aliases": "2.0.0-beta.14",
44+
"@docusaurus/module-type-aliases": "2.0.0-beta.15",
4545
"@tsconfig/docusaurus": "1.0.4",
4646
"@types/react": "17.0.38",
4747
"@types/react-helmet": "6.1.5",

0 commit comments

Comments
 (0)