This content originally appeared on DEV Community and was authored by Matteo Bruni
Changing? Why?
Starting from today the official React.js and Vue.js (2.x and 3.x) packages have a new name.
Don't worry, the previous packages are still maintained and updated, until tsParticles version 3.x, but that's another story.
So what has changed?
React.js
react-tsparticles becomes react-particles, same version (starting from 2.1.3, the latest version that you should use 👀), you can just remove the ts from the package and you're done.
Vue.js
2.x
particles.vue becomes vue2-particles, one major version down. If you are using the version 3.1.3 (the latest, and I really hope you are using this 👀), you have to downgrade that version to 2.1.3 (so it's the exact version of tsParticles)
particles.vue had a major version change when tsParticles was still in v1 because of a major change.
Since vue2-particles is a fresh package, I decided to keep its version aligned with the main package.
3.x
particles.vue3 becomes vue3-particles, same version (starting from 2.0.3, but I recommend using always the latest version, at the moment is 2.1.3).
Recap
A small recap to be clear in few lines:
react-tsparticles -> react-particles, starting from 2.1.3, no different version numbers
particles.vue -> vue2-particles, starting from 3.0.3/2.0.3, they'll have a different major version, but they share the same code
particles.vue3 -> vue3-particles, starting form 2.0.3, no different version numbers
A migration is really suggested, since the "old" packages could become obsolete in the future.
Another thing...
I've launched the tsParticles official sub reddit here: https://www.reddit.com/r/tsParticles
You can also see a full list of tsParticles official components here
- Angular:
ng-particlesRepo npm - Inferno:
inferno-particlesRepo npm - jQuery:
jquery-particlesRepo npm - Preact:
preact-particlesRepo npm - React:
react-particlesRepo npm /react-tsparticlesRepo npm - Riot:
riot-particlesRepo npm - Solid:
solid-particlesRepo npm - Svelte:
svelte-particlesRepo npm - Vue 2.x:
vue2-particlesRepo npm /particles.vueRepo npm - Vue 3.x:
vue3-particlesRepo npm /particles.vue3Repo npm - Web Components:
web-particlesRepo npm
matteobruni
/
tsparticles
tsParticles - Easily create highly customizable JavaScript particles effects, confetti explosions and fireworks animations and use them as animated backgrounds for your website. Ready to use components available for React.js, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Inferno, Solid, Riot and Web Components.
tsParticles - TypeScript Particles
A lightweight TypeScript library for creating particles. Dependency free (*), browser ready and compatible with React.js, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Inferno, Riot.js, Solid.js, and Web Components
Table of Contents
⚠️⚠️ This readme refers to upcoming v2 version, read here for v1 documentation ⚠️⚠️
This content originally appeared on DEV Community and was authored by Matteo Bruni
Matteo Bruni | Sciencx (2022-07-27T15:52:17+00:00) tsParticles React and Vue packages are changing!. Retrieved from https://www.scien.cx/2022/07/27/tsparticles-react-and-vue-packages-are-changing/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.