Skip to content

Commit

Permalink
v3.6.1
Browse files Browse the repository at this point in the history
Fixed destroy() method in pure JS version of the library
  • Loading branch information
vkurko committed Oct 1, 2024
1 parent 54316bd commit da6900c
Show file tree
Hide file tree
Showing 24 changed files with 129 additions and 119 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

## 3.6.1
October 1, 2024

* Fixed `destroy()` method in pure JS version of the library

## 3.6.0
October 1, 2024

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ See [demo](https://vkurko.github.io/calendar/) and [changelog](CHANGELOG.md).

Full-sized drag & drop JavaScript event calendar with resource & timeline views:

* Lightweight (35kb [br](https://en.wikipedia.org/wiki/Brotli) compressed)
* Lightweight (36kb [br](https://en.wikipedia.org/wiki/Brotli) compressed)
* Zero-dependency (pre-built bundle)
* 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.

## Table of contents
- [Usage](#usage)
- [Svelte component / ES6 module](#svelte-component--es6-module)
- [JavaScript module / Svelte component](#javascript-module--svelte-component)
- [Pre-built browser ready bundle](#pre-built-browser-ready-bundle)
- [Modifying options after initialization](#modifying-options-after-initialization)
- [Options](#options)
Expand Down Expand Up @@ -144,7 +144,7 @@ Inspired by [FullCalendar](https://fullcalendar.io/), implements similar options
- [Browser support](#browser-support)

## Usage
### Pure JavaScript / Svelte component
### JavaScript module / Svelte component
The first step is to install the Event Calendar `core` package:
```bash
npm install --save-dev @event-calendar/core
Expand Down Expand Up @@ -203,8 +203,8 @@ Or in your Svelte component, use the calendar like this:
### 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@3.6.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.6.0/event-calendar.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.6.1/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.6.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?20231021">

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.6.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.6.0/event-calendar.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.6.1/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.6.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
62 changes: 31 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "event-calendar",
"version": "3.6.0",
"version": "3.6.1",
"scripts": {
"build": "rollup -c",
"dev": "rollup -c -w",
Expand All @@ -13,14 +13,14 @@
"@babel/plugin-transform-runtime": "^7.25.4",
"@babel/preset-env": "^7.25.4",
"@babel/runtime-corejs3": "^7.25.6",
"@event-calendar/build": "~3.6.0",
"@event-calendar/core": "~3.6.0",
"@event-calendar/day-grid": "~3.6.0",
"@event-calendar/interaction": "~3.6.0",
"@event-calendar/list": "~3.6.0",
"@event-calendar/resource-time-grid": "~3.6.0",
"@event-calendar/resource-timeline": "~3.6.0",
"@event-calendar/time-grid": "~3.6.0",
"@event-calendar/build": "~3.6.1",
"@event-calendar/core": "~3.6.1",
"@event-calendar/day-grid": "~3.6.1",
"@event-calendar/interaction": "~3.6.1",
"@event-calendar/list": "~3.6.1",
"@event-calendar/resource-time-grid": "~3.6.1",
"@event-calendar/resource-timeline": "~3.6.1",
"@event-calendar/time-grid": "~3.6.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^26.0.3",
"@rollup/plugin-node-resolve": "^15.3.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ See [demo](https://vkurko.github.io/calendar/) and [changelog](CHANGELOG.md).

Full-sized drag & drop JavaScript event calendar with resource & timeline views:

* Lightweight (35kb [br](https://en.wikipedia.org/wiki/Brotli) compressed)
* Lightweight (36kb [br](https://en.wikipedia.org/wiki/Brotli) compressed)
* Zero-dependency (pre-built bundle)
* 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.

## Table of contents
- [Usage](#usage)
- [Svelte component / ES6 module](#svelte-component--es6-module)
- [JavaScript module / Svelte component](#javascript-module--svelte-component)
- [Pre-built browser ready bundle](#pre-built-browser-ready-bundle)
- [Modifying options after initialization](#modifying-options-after-initialization)
- [Options](#options)
Expand Down Expand Up @@ -144,7 +144,7 @@ Inspired by [FullCalendar](https://fullcalendar.io/), implements similar options
- [Browser support](#browser-support)

## Usage
### Pure JavaScript / Svelte component
### JavaScript module / Svelte component
The first step is to install the Event Calendar `core` package:
```bash
npm install --save-dev @event-calendar/core
Expand Down Expand Up @@ -203,8 +203,8 @@ Or in your Svelte component, use the calendar like this:
### 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@3.6.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.6.0/event-calendar.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.6.1/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.6.1/event-calendar.min.js"></script>
```

<details>
Expand Down
14 changes: 7 additions & 7 deletions packages/build/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@event-calendar/build",
"version": "3.6.0",
"version": "3.6.1",
"title": "Event Calendar",
"description": "Full-sized drag & drop event calendar with resource & timeline views",
"keywords": [
Expand All @@ -20,11 +20,11 @@
"jsdelivr": "event-calendar.min.js",
"style": "event-calendar.min.css",
"devDependencies": {
"@event-calendar/day-grid": "~3.6.0",
"@event-calendar/interaction": "~3.6.0",
"@event-calendar/list": "~3.6.0",
"@event-calendar/time-grid": "~3.6.0",
"@event-calendar/resource-time-grid": "~3.6.0",
"@event-calendar/resource-timeline": "~3.6.0"
"@event-calendar/day-grid": "~3.6.1",
"@event-calendar/interaction": "~3.6.1",
"@event-calendar/list": "~3.6.1",
"@event-calendar/time-grid": "~3.6.1",
"@event-calendar/resource-time-grid": "~3.6.1",
"@event-calendar/resource-timeline": "~3.6.1"
}
}
8 changes: 0 additions & 8 deletions packages/build/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,4 @@ export default class extends Calendar {
}
});
}

get view() {
return this.getView();
}

destroy() {
this.$destroy();
}
}
10 changes: 5 additions & 5 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ See [demo](https://vkurko.github.io/calendar/) and [changelog](CHANGELOG.md).

Full-sized drag & drop JavaScript event calendar with resource & timeline views:

* Lightweight (35kb [br](https://en.wikipedia.org/wiki/Brotli) compressed)
* Lightweight (36kb [br](https://en.wikipedia.org/wiki/Brotli) compressed)
* Zero-dependency (pre-built bundle)
* 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.

## Table of contents
- [Usage](#usage)
- [Svelte component / ES6 module](#svelte-component--es6-module)
- [JavaScript module / Svelte component](#javascript-module--svelte-component)
- [Pre-built browser ready bundle](#pre-built-browser-ready-bundle)
- [Modifying options after initialization](#modifying-options-after-initialization)
- [Options](#options)
Expand Down Expand Up @@ -144,7 +144,7 @@ Inspired by [FullCalendar](https://fullcalendar.io/), implements similar options
- [Browser support](#browser-support)

## Usage
### Pure JavaScript / Svelte component
### JavaScript module / Svelte component
The first step is to install the Event Calendar `core` package:
```bash
npm install --save-dev @event-calendar/core
Expand Down Expand Up @@ -203,8 +203,8 @@ Or in your Svelte component, use the calendar like this:
### 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@3.6.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.6.0/event-calendar.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.6.1/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.6.1/event-calendar.min.js"></script>
```

<details>
Expand Down
6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@event-calendar/core",
"version": "3.6.0",
"version": "3.6.1",
"title": "Event Calendar Core package",
"description": "Full-sized drag & drop event calendar with resource & timeline views",
"keywords": [
Expand All @@ -18,10 +18,10 @@
},
"license": "MIT",
"type": "module",
"svelte": "src/index.js",
"svelte": "src/index.svelte.js",
"exports": {
".": {
"svelte": "./src/index.js",
"svelte": "./src/index.svelte.js",
"default": "./index.js"
},
"./index.css": "./index.css",
Expand Down
11 changes: 10 additions & 1 deletion packages/core/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
import Calendar from './Calendar.svelte';

export {Calendar as default};
export default class extends Calendar {
destroy() {
this.$destroy();
}

get view() {
return this.getView();
}
}

export * from './lib.js';
4 changes: 4 additions & 0 deletions packages/core/src/index.svelte.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Calendar from './Calendar.svelte';

export {Calendar as default};
export * from './lib.js';
Loading

0 comments on commit da6900c

Please sign in to comment.