Skip to content

Commit

Permalink
v1.4.1
Browse files Browse the repository at this point in the history
Fixed a bug with duplicate eventSources.events call
  • Loading branch information
vkurko committed Jun 14, 2023
1 parent a61c3ba commit 63940bf
Show file tree
Hide file tree
Showing 20 changed files with 59 additions and 54 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Event Calendar changelog

## 1.4.1
June 14, 2023

* Fixed a bug with duplicate `eventSources.events` call ([146](https://github.com/vkurko/calendar/issues/146))

## 1.4.0
June 12, 2023

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Full-sized drag & drop JavaScript event calendar with resource view:

* Lightweight (28kb [br](https://en.wikipedia.org/wiki/Brotli) compressed)
* Zero-dependency (pre-built bundle)
* Used on over 60,000 websites with [Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/)
* Used on over 70,000 websites with [Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/)

Inspired by [FullCalendar](https://fullcalendar.io/), implements similar options.

Expand Down Expand Up @@ -193,8 +193,8 @@ import '@event-calendar/core/index.css';
### Pre-built browser ready bundle
Include the following lines of code in the `<head>` section of your page:
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.0/event-calendar.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.1/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.1/event-calendar.min.js"></script>
```

<details>
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<link rel="manifest" href="site.webmanifest">
<link rel="stylesheet" href="global.css">

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.0/event-calendar.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.1/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.1/event-calendar.min.js"></script>
<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "event-calendar",
"version": "1.4.0",
"version": "1.4.1",
"scripts": {
"build": "rollup -c",
"dev": "rollup -c -w",
Expand All @@ -13,13 +13,13 @@
"@babel/plugin-transform-runtime": "^7.19.6",
"@babel/preset-env": "^7.20.2",
"@babel/runtime-corejs3": "^7.20.13",
"@event-calendar/build": "~1.4.0",
"@event-calendar/core": "~1.4.0",
"@event-calendar/day-grid": "~1.4.0",
"@event-calendar/interaction": "~1.4.0",
"@event-calendar/list": "~1.4.0",
"@event-calendar/resource-time-grid": "~1.4.0",
"@event-calendar/time-grid": "~1.4.0",
"@event-calendar/build": "~1.4.1",
"@event-calendar/core": "~1.4.1",
"@event-calendar/day-grid": "~1.4.1",
"@event-calendar/interaction": "~1.4.1",
"@event-calendar/list": "~1.4.1",
"@event-calendar/resource-time-grid": "~1.4.1",
"@event-calendar/time-grid": "~1.4.1",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-node-resolve": "^15.0.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Full-sized drag & drop JavaScript event calendar with resource view:

* Lightweight (28kb [br](https://en.wikipedia.org/wiki/Brotli) compressed)
* Zero-dependency (pre-built bundle)
* Used on over 60,000 websites with [Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/)
* Used on over 70,000 websites with [Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/)

Inspired by [FullCalendar](https://fullcalendar.io/), implements similar options.

Expand Down Expand Up @@ -193,8 +193,8 @@ import '@event-calendar/core/index.css';
### Pre-built browser ready bundle
Include the following lines of code in the `<head>` section of your page:
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.0/event-calendar.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.1/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.1/event-calendar.min.js"></script>
```

<details>
Expand Down
12 changes: 6 additions & 6 deletions packages/build/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@event-calendar/build",
"version": "1.4.0",
"version": "1.4.1",
"title": "Event Calendar",
"description": "Full-sized drag & drop event calendar with resource view",
"keywords": [
Expand All @@ -18,10 +18,10 @@
"license": "MIT",
"jsdelivr": "event-calendar.min.js",
"devDependencies": {
"@event-calendar/day-grid": "~1.4.0",
"@event-calendar/interaction": "~1.4.0",
"@event-calendar/list": "~1.4.0",
"@event-calendar/time-grid": "~1.4.0",
"@event-calendar/resource-time-grid": "~1.4.0"
"@event-calendar/day-grid": "~1.4.1",
"@event-calendar/interaction": "~1.4.1",
"@event-calendar/list": "~1.4.1",
"@event-calendar/time-grid": "~1.4.1",
"@event-calendar/resource-time-grid": "~1.4.1"
}
}
6 changes: 3 additions & 3 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Full-sized drag & drop JavaScript event calendar with resource view:

* Lightweight (28kb [br](https://en.wikipedia.org/wiki/Brotli) compressed)
* Zero-dependency (pre-built bundle)
* Used on over 60,000 websites with [Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/)
* Used on over 70,000 websites with [Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/)

Inspired by [FullCalendar](https://fullcalendar.io/), implements similar options.

Expand Down Expand Up @@ -193,8 +193,8 @@ import '@event-calendar/core/index.css';
### Pre-built browser ready bundle
Include the following lines of code in the `<head>` section of your page:
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.0/event-calendar.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.1/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.1/event-calendar.min.js"></script>
```

<details>
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@event-calendar/core",
"version": "1.4.0",
"version": "1.4.1",
"title": "Event Calendar Core package",
"description": "Full-sized drag & drop event calendar with resource view",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/storage/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export default class {
// Private stores
this._queue = writable(new Map()); // debounce queue
this._auxiliary = writable([]); // auxiliary components
this._viewClass = writable(undefined);
this._monthMode = monthMode(this);
this._currentRange = currentRange(this);
this._activeRange = activeRange(this);
Expand All @@ -47,6 +46,7 @@ export default class {
this._viewTitle = viewTitle(this);
this._viewDates = viewDates(this);
this._view = view2(this);
this._viewClass = writable(undefined);
this._viewComponent = writable(undefined);
// Resources
this._resBgColor = writable(noop);
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/storage/stores.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
} from '../lib.js';

export function monthMode(state) {
return derived(state._viewClass, $_viewClass => $_viewClass === 'month');
return derived(state.view, $view => $view.startsWith?.('dayGrid'));
}

export function activeRange(state) {
Expand Down
6 changes: 3 additions & 3 deletions packages/day-grid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Full-sized drag & drop JavaScript event calendar with resource view:

* Lightweight (28kb [br](https://en.wikipedia.org/wiki/Brotli) compressed)
* Zero-dependency (pre-built bundle)
* Used on over 60,000 websites with [Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/)
* Used on over 70,000 websites with [Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/)

Inspired by [FullCalendar](https://fullcalendar.io/), implements similar options.

Expand Down Expand Up @@ -193,8 +193,8 @@ import '@event-calendar/core/index.css';
### Pre-built browser ready bundle
Include the following lines of code in the `<head>` section of your page:
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.0/event-calendar.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.1/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.1/event-calendar.min.js"></script>
```

<details>
Expand Down
4 changes: 2 additions & 2 deletions packages/day-grid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@event-calendar/day-grid",
"version": "1.4.0",
"version": "1.4.1",
"title": "Event Calendar DayGrid plugin",
"description": "Full-sized drag & drop event calendar with resource view",
"keywords": [
Expand All @@ -26,7 +26,7 @@
"./package.json": "./package.json"
},
"dependencies": {
"@event-calendar/core": "~1.4.0",
"@event-calendar/core": "~1.4.1",
"svelte": "^3.59.1"
}
}
6 changes: 3 additions & 3 deletions packages/interaction/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Full-sized drag & drop JavaScript event calendar with resource view:

* Lightweight (28kb [br](https://en.wikipedia.org/wiki/Brotli) compressed)
* Zero-dependency (pre-built bundle)
* Used on over 60,000 websites with [Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/)
* Used on over 70,000 websites with [Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/)

Inspired by [FullCalendar](https://fullcalendar.io/), implements similar options.

Expand Down Expand Up @@ -193,8 +193,8 @@ import '@event-calendar/core/index.css';
### Pre-built browser ready bundle
Include the following lines of code in the `<head>` section of your page:
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.0/event-calendar.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.1/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.1/event-calendar.min.js"></script>
```

<details>
Expand Down
4 changes: 2 additions & 2 deletions packages/interaction/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@event-calendar/interaction",
"version": "1.4.0",
"version": "1.4.1",
"title": "Event Calendar Interaction plugin",
"description": "Full-sized drag & drop event calendar with resource view",
"keywords": [
Expand All @@ -26,7 +26,7 @@
"./package.json": "./package.json"
},
"dependencies": {
"@event-calendar/core": "~1.4.0",
"@event-calendar/core": "~1.4.1",
"svelte": "^3.59.1"
}
}
6 changes: 3 additions & 3 deletions packages/list/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Full-sized drag & drop JavaScript event calendar with resource view:

* Lightweight (28kb [br](https://en.wikipedia.org/wiki/Brotli) compressed)
* Zero-dependency (pre-built bundle)
* Used on over 60,000 websites with [Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/)
* Used on over 70,000 websites with [Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/)

Inspired by [FullCalendar](https://fullcalendar.io/), implements similar options.

Expand Down Expand Up @@ -193,8 +193,8 @@ import '@event-calendar/core/index.css';
### Pre-built browser ready bundle
Include the following lines of code in the `<head>` section of your page:
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.0/event-calendar.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.1/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.1/event-calendar.min.js"></script>
```

<details>
Expand Down
4 changes: 2 additions & 2 deletions packages/list/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@event-calendar/list",
"version": "1.4.0",
"version": "1.4.1",
"title": "Event Calendar List plugin",
"description": "Full-sized drag & drop event calendar with resource view",
"keywords": [
Expand All @@ -26,7 +26,7 @@
"./package.json": "./package.json"
},
"dependencies": {
"@event-calendar/core": "~1.4.0",
"@event-calendar/core": "~1.4.1",
"svelte": "^3.59.1"
}
}
6 changes: 3 additions & 3 deletions packages/resource-time-grid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Full-sized drag & drop JavaScript event calendar with resource view:

* Lightweight (28kb [br](https://en.wikipedia.org/wiki/Brotli) compressed)
* Zero-dependency (pre-built bundle)
* Used on over 60,000 websites with [Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/)
* Used on over 70,000 websites with [Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/)

Inspired by [FullCalendar](https://fullcalendar.io/), implements similar options.

Expand Down Expand Up @@ -193,8 +193,8 @@ import '@event-calendar/core/index.css';
### Pre-built browser ready bundle
Include the following lines of code in the `<head>` section of your page:
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.0/event-calendar.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.1/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.1/event-calendar.min.js"></script>
```

<details>
Expand Down
6 changes: 3 additions & 3 deletions packages/resource-time-grid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@event-calendar/resource-time-grid",
"version": "1.4.0",
"version": "1.4.1",
"title": "Event Calendar ResourceTimeGrid plugin",
"description": "Full-sized drag & drop event calendar with resource view",
"keywords": [
Expand All @@ -26,8 +26,8 @@
"./package.json": "./package.json"
},
"dependencies": {
"@event-calendar/core": "~1.4.0",
"@event-calendar/time-grid": "~1.4.0",
"@event-calendar/core": "~1.4.1",
"@event-calendar/time-grid": "~1.4.1",
"svelte": "^3.59.1"
}
}
6 changes: 3 additions & 3 deletions packages/time-grid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Full-sized drag & drop JavaScript event calendar with resource view:

* Lightweight (28kb [br](https://en.wikipedia.org/wiki/Brotli) compressed)
* Zero-dependency (pre-built bundle)
* Used on over 60,000 websites with [Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/)
* Used on over 70,000 websites with [Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/)

Inspired by [FullCalendar](https://fullcalendar.io/), implements similar options.

Expand Down Expand Up @@ -193,8 +193,8 @@ import '@event-calendar/core/index.css';
### Pre-built browser ready bundle
Include the following lines of code in the `<head>` section of your page:
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.0/event-calendar.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.1/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.1/event-calendar.min.js"></script>
```

<details>
Expand Down
4 changes: 2 additions & 2 deletions packages/time-grid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@event-calendar/time-grid",
"version": "1.4.0",
"version": "1.4.1",
"title": "Event Calendar TimeGrid plugin",
"description": "Full-sized drag & drop event calendar with resource view",
"keywords": [
Expand All @@ -26,7 +26,7 @@
"./package.json": "./package.json"
},
"dependencies": {
"@event-calendar/core": "~1.4.0",
"@event-calendar/core": "~1.4.1",
"svelte": "^3.59.1"
}
}

0 comments on commit 63940bf

Please sign in to comment.