Skip to content

Commit 65e3c8d

Browse files
authored
Merge pull request #69 from tsparticles/dev
3.0.1
2 parents 8ca5ebb + f00a556 commit 65e3c8d

File tree

12 files changed

+601
-1001
lines changed

12 files changed

+601
-1001
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [3.0.1](https://github.com/tsparticles/vue3/compare/v3.0.0...v3.0.1) (2024-03-06)
7+
8+
**Note:** Version bump only for package @tsparticles/vue3-workspace
9+
10+
11+
12+
13+
614
# [3.0.0](https://github.com/tsparticles/vue3/compare/v2.12.0...v3.0.0) (2023-12-22)
715

816

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ createApp(App).use(Particles, {
3636
```html
3737
<template>
3838
<div id="app">
39-
<vue-particles id="tsparticles" :particlesLoaded="particlesLoaded" url="http://foo.bar/particles.json" />
39+
<vue-particles id="tsparticles" @particles-loaded="particlesLoaded" url="http://foo.bar/particles.json" />
4040

4141
<vue-particles
4242
id="tsparticles"
43-
:particlesLoaded="particlesLoaded"
43+
@particles-loaded="particlesLoaded"
4444
:options="{
4545
background: {
4646
color: {

apps/nuxt3/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [3.0.1](https://github.com/tsparticles/vue3/compare/v3.0.0...v3.0.1) (2024-03-06)
7+
8+
**Note:** Version bump only for package nuxt3-particles-demo
9+
10+
11+
12+
13+
614
# [3.0.0](https://github.com/tsparticles/vue3/compare/v2.12.0...v3.0.0) (2023-12-22)
715

816

apps/nuxt3/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nuxt3-particles-demo",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"private": true,
55
"scripts": {
66
"build": "nuxt build",

apps/vue3/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [3.0.1](https://github.com/tsparticles/vue3/compare/v3.0.0...v3.0.1) (2024-03-06)
7+
8+
**Note:** Version bump only for package vue3-demo
9+
10+
11+
12+
13+
614
# [3.0.0](https://github.com/tsparticles/vue3/compare/v2.12.0...v3.0.0) (2023-12-22)
715

816

apps/vue3/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue3-demo",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"private": true,
55
"scripts": {
66
"dev": "vite",
@@ -12,18 +12,18 @@
1212
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
1313
},
1414
"dependencies": {
15-
"@tsparticles/configs": "^3.0.2",
16-
"@tsparticles/engine": "^3.0.2",
15+
"@tsparticles/configs": "^3.0.3",
16+
"@tsparticles/engine": "^3.0.3",
1717
"@tsparticles/vue3": "workspace:^",
18-
"tsparticles": "^3.0.2",
18+
"tsparticles": "^3.0.3",
1919
"vue": "^3.3.13",
2020
"vue-router": "^4.2.5"
2121
},
2222
"devDependencies": {
2323
"@rushstack/eslint-patch": "^1.6.1",
2424
"@tsconfig/node18": "^18.2.2",
2525
"@types/node": "^20.10.5",
26-
"@vitejs/plugin-vue": "^4.5.2",
26+
"@vitejs/plugin-vue": "^5.0.0",
2727
"@vitejs/plugin-vue-jsx": "^3.1.0",
2828
"@vue/eslint-config-prettier": "^8.0.0",
2929
"@vue/eslint-config-typescript": "^12.0.0",
@@ -35,6 +35,6 @@
3535
"prettier": "^3.1.1",
3636
"typescript": "^5.3.3",
3737
"vite": "^5.0.10",
38-
"vue-tsc": "^1.8.26"
38+
"vue-tsc": "^1.8.27"
3939
}
4040
}

components/vue3/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [3.0.1](https://github.com/tsparticles/vue3/compare/v3.0.0...v3.0.1) (2024-03-06)
7+
8+
**Note:** Version bump only for package @tsparticles/vue3
9+
10+
11+
12+
13+
614
# [3.0.0](https://github.com/tsparticles/vue3/compare/v2.12.0...v3.0.0) (2023-12-22)
715

816

components/vue3/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ createApp(App).use(Particles, {
3636
```html
3737
<template>
3838
<div id="app">
39-
<vue-particles id="tsparticles" :particlesLoaded="particlesLoaded" url="http://foo.bar/particles.json" />
39+
<vue-particles id="tsparticles" @particles-loaded="particlesLoaded" url="http://foo.bar/particles.json" />
4040

4141
<vue-particles
4242
id="tsparticles"
43-
:particlesLoaded="particlesLoaded"
43+
@particles-loaded="particlesLoaded"
4444
:options="{
4545
background: {
4646
color: {

components/vue3/package.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tsparticles/vue3",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"description": "Official tsParticles Vue.js 3.x Component - Easily create highly customizable particle, confetti and fireworks animations and use them as animated backgrounds for your website. Ready to use components available also for Web Components, React, Vue.js 2.x, Angular, Svelte, jQuery, Preact, Riot.js, Solid.js, Inferno.",
55
"keywords": [
66
"front-end",
@@ -67,6 +67,10 @@
6767
"typecheck": "vue-tsc --noEmit",
6868
"lint": "echo eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
6969
},
70+
"files": [
71+
"dist",
72+
"README.md"
73+
],
7074
"repository": {
7175
"url": "https://github.com/tsparticles/vue3",
7276
"type": "git",
@@ -97,15 +101,15 @@
97101
"access": "public"
98102
},
99103
"dependencies": {
100-
"@tsparticles/engine": "^3.0.2",
104+
"@tsparticles/engine": "^3.0.3",
101105
"vue": "^3.3.13"
102106
},
103107
"devDependencies": {
104108
"@rushstack/eslint-patch": "^1.6.1",
105109
"@tsconfig/node18": "^18.2.2",
106110
"@tsparticles/prettier-config": "^2.0.1",
107111
"@types/node": "^20.10.5",
108-
"@vitejs/plugin-vue": "^4.5.2",
112+
"@vitejs/plugin-vue": "^5.0.0",
109113
"@vitejs/plugin-vue-jsx": "^3.1.0",
110114
"@vue/eslint-config-prettier": "^8.0.0",
111115
"@vue/eslint-config-typescript": "^12.0.0",
@@ -115,8 +119,8 @@
115119
"prettier": "^3.1.1",
116120
"typescript": "^5.3.3",
117121
"vite": "^5.0.10",
118-
"vite-plugin-dts": "^3.6.4",
119-
"vue-tsc": "^1.8.26"
122+
"vite-plugin-dts": "^3.7.0",
123+
"vue-tsc": "^1.8.27"
120124
},
121125
"main": "dist/particles.umd.js",
122126
"module": "dist/particles.es.js",

components/vue3/src/components/vue-particles.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
</template>
44

55
<script setup lang="ts">
6-
import { nextTick, onMounted, onUnmounted, watch } from "vue";
76
import { type Container, type ISourceOptions, type Engine, tsParticles } from "@tsparticles/engine";
7+
import { nextTick, onMounted, onUnmounted, watch } from "vue";
88
99
export type IParticlesProps = ISourceOptions;
1010
@@ -28,6 +28,7 @@ const initEventHandler = (e: Event) => {
2828
2929
loadParticles();
3030
};
31+
3132
addEventListener("particlesInit", initEventHandler);
3233
3334
const loadParticles = async () => {
@@ -58,8 +59,11 @@ onUnmounted(() => {
5859
if (!container) {
5960
return;
6061
}
62+
6163
container.destroy();
64+
6265
container = undefined;
66+
6367
removeEventListener("particlesInit", initEventHandler);
6468
});
6569

0 commit comments

Comments
 (0)