@fullcalendar/icalendar 7.0.0-beta.8 → 7.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/global.js +13 -5
  2. package/index.js +12 -4
  3. package/package.json +3 -3
package/global.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- FullCalendar iCalendar Plugin v7.0.0-beta.8
2
+ FullCalendar iCalendar Plugin v7.0.0-rc.1
3
3
  Docs & License: https://fullcalendar.io/docs/icalendar
4
4
  (c) 2025 Adam Shaw
5
5
  */
@@ -186,16 +186,24 @@ Docs & License: https://fullcalendar.io/docs/icalendar
186
186
  // we can query startDate/endDate.isDate. More efficient to avoid formatting/reparsing.
187
187
  // single events
188
188
  for (let iCalEvent of iCalRes.events) {
189
- expanded.push(Object.assign(Object.assign({}, buildNonDateProps(iCalEvent)), { start: iCalEvent.startDate.toString(), end: (specifiesEnd(iCalEvent) && iCalEvent.endDate)
189
+ expanded.push({
190
+ ...buildNonDateProps(iCalEvent),
191
+ start: iCalEvent.startDate.toString(),
192
+ end: (specifiesEnd(iCalEvent) && iCalEvent.endDate)
190
193
  ? iCalEvent.endDate.toString()
191
- : null }));
194
+ : null,
195
+ });
192
196
  }
193
197
  // recurring event instances
194
198
  for (let iCalOccurence of iCalRes.occurrences) {
195
199
  let iCalEvent = iCalOccurence.item;
196
- expanded.push(Object.assign(Object.assign({}, buildNonDateProps(iCalEvent)), { start: iCalOccurence.startDate.toString(), end: (specifiesEnd(iCalEvent) && iCalOccurence.endDate)
200
+ expanded.push({
201
+ ...buildNonDateProps(iCalEvent),
202
+ start: iCalOccurence.startDate.toString(),
203
+ end: (specifiesEnd(iCalEvent) && iCalOccurence.endDate)
197
204
  ? iCalOccurence.endDate.toString()
198
- : null }));
205
+ : null,
206
+ });
199
207
  }
200
208
  return expanded;
201
209
  }
package/index.js CHANGED
@@ -152,16 +152,24 @@ function expandICalEvents(iCalExpander, range) {
152
152
  // we can query startDate/endDate.isDate. More efficient to avoid formatting/reparsing.
153
153
  // single events
154
154
  for (let iCalEvent of iCalRes.events) {
155
- expanded.push(Object.assign(Object.assign({}, buildNonDateProps(iCalEvent)), { start: iCalEvent.startDate.toString(), end: (specifiesEnd(iCalEvent) && iCalEvent.endDate)
155
+ expanded.push({
156
+ ...buildNonDateProps(iCalEvent),
157
+ start: iCalEvent.startDate.toString(),
158
+ end: (specifiesEnd(iCalEvent) && iCalEvent.endDate)
156
159
  ? iCalEvent.endDate.toString()
157
- : null }));
160
+ : null,
161
+ });
158
162
  }
159
163
  // recurring event instances
160
164
  for (let iCalOccurence of iCalRes.occurrences) {
161
165
  let iCalEvent = iCalOccurence.item;
162
- expanded.push(Object.assign(Object.assign({}, buildNonDateProps(iCalEvent)), { start: iCalOccurence.startDate.toString(), end: (specifiesEnd(iCalEvent) && iCalOccurence.endDate)
166
+ expanded.push({
167
+ ...buildNonDateProps(iCalEvent),
168
+ start: iCalOccurence.startDate.toString(),
169
+ end: (specifiesEnd(iCalEvent) && iCalOccurence.endDate)
163
170
  ? iCalOccurence.endDate.toString()
164
- : null }));
171
+ : null,
172
+ });
165
173
  }
166
174
  return expanded;
167
175
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fullcalendar/icalendar",
3
- "version": "7.0.0-beta.8",
3
+ "version": "7.0.0-rc.1",
4
4
  "title": "FullCalendar iCalendar Plugin",
5
5
  "description": "Display events from a public iCalendar feed",
6
6
  "keywords": [
@@ -13,8 +13,8 @@
13
13
  ],
14
14
  "homepage": "https://fullcalendar.io/docs/icalendar",
15
15
  "dependencies": {
16
- "@full-ui/headless-calendar": "7.0.0-beta.8",
17
- "@fullcalendar/core": "7.0.0-beta.8"
16
+ "@full-ui/headless-calendar": "7.0.0-rc.1",
17
+ "@fullcalendar/core": "7.0.0-rc.1"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "ical.js": "^2.0.0",