Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demo/vanilla/public/javascripts/canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ document.addEventListener("DOMContentLoaded", async () => {
const end = performance.now() + 15 * 1000,
colors = ["#bb0000", "#ffffff"],
canvas = document.getElementById("canvas"),
fetti = async options => await confetti.create(canvas, options),
fetti = await confetti.create(canvas),
fworks = async options => await fireworks.create(canvas, options),
prtcls = async options => await particles.create(canvas, options),
standard = async options =>
Expand Down
1 change: 1 addition & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
],
"production": [
"{projectRoot}/src/**/*",
"{projectRoot}/index.*",
"{projectRoot}/package.json",
"{projectRoot}/tsconfig*.json",
"sharedGlobals"
Expand Down
11 changes: 7 additions & 4 deletions websites/confetti/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ const modes = [
},
],
fn: function () {
var defaults = {
const defaults = {
scalar: 2,
spread: 270,
particleCount: 25,
Expand Down Expand Up @@ -738,11 +738,11 @@ const modes = [
(async () => {
const canvas = document.getElementById('my-canvas');

canvas.confetti = canvas.confetti || (await confetti.create(canvas, { resize: true }));
canvas.confetti = canvas.confetti || (await confetti.create(canvas, {}));

canvas.confetti({
spread: 70,
origin: { y: 1.2 },
origin: { y: 0.5 },
});
})();
},
Expand Down Expand Up @@ -805,10 +805,13 @@ function getCode(name) {
return pretty(code);
}

document.addEventListener('DOMContentLoaded', () => {
document.addEventListener('DOMContentLoaded', async () => {
await confetti.init();

updateShareLinks();
updateShareOrder();
setupShareActions();

window.addEventListener('resize', updateShareOrder);

Array.from(document.querySelectorAll('.html-group')).forEach(function (group) {
Expand Down
1 change: 1 addition & 0 deletions websites/website/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ mono_crash.*
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
!docs/releases/
x64/
x86/
[Aa][Rr][Mm]/
Expand Down
Binary file added websites/website/docs/public/tsParticles-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions websites/website/docs/releases/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Releases and Versioning

This project now ships from a single repository: `tsparticles/tsparticles`.

<WebsiteVersionInfo />

## Where release work happens

- Monorepo root: <https://github.com/tsparticles/tsparticles>
- Bundles: <https://github.com/tsparticles/tsparticles/tree/main/bundles>
- Engine: <https://github.com/tsparticles/tsparticles/tree/main/engine>
- Wrappers: <https://github.com/tsparticles/tsparticles/tree/main/wrappers>
- Presets: <https://github.com/tsparticles/tsparticles/tree/main/presets>
- Palettes: <https://github.com/tsparticles/tsparticles/tree/main/palettes>

## Version alignment rule

- Keep all `@tsparticles/*` packages aligned to the same release line.
- Avoid mixing different beta lines or major versions in one app.

## Practical release checklist

1. Verify target package versions in workspace `package.json` files.
2. Build and test affected projects.
3. Validate docs links and playground behavior.
4. Publish from the monorepo release flow.
3 changes: 2 additions & 1 deletion websites/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@
"nx": {
"targets": {
"build": {
"outputs": ["{projectRoot}/docs/.vitepress/dist"]
"outputs": ["{projectRoot}/docs/.vitepress/dist"],
"inputs": ["production", "^production", "{projectRoot}/docs/**/*"]
}
}
}
Expand Down
7 changes: 6 additions & 1 deletion websites/website/scripts/sync-public-assets.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ const rootDir = resolve(__dirname, "..");
const docsPublicDir = resolve(rootDir, "docs", "public");
const rootCname = resolve(rootDir, "CNAME");
const docsCname = resolve(docsPublicDir, "CNAME");
const iconName = resolve(rootDir, "tsParticles-64.png");
const docsIconName = resolve(docsPublicDir, "tsParticles-64.png");

const assetsToSync = ["audio", "images", "videos"];

Expand All @@ -28,5 +30,8 @@ if (existsSync(rootCname)) {
cpSync(rootCname, docsCname);
}

console.log(`[assets] synced ${assetsToSync.join(", ")} to docs/public`);
if (existsSync(iconName)) {
cpSync(iconName, docsIconName);
}

console.log(`[assets] synced ${assetsToSync.join(", ")} to docs/public`);
7 changes: 7 additions & 0 deletions wrappers/angular-confetti/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@
"prettier": "^3.8.3",
"typescript": "~5.9.3"
},
"nx": {
"targets": {
"build": {
"inputs": ["production", "^production", "{projectRoot}/projects/**/src/**/*"]
}
}
},
"module": "dist/ng-confetti/fesm2015/ng-confetti.mjs",
"es2020": "dist/ng-confetti/fesm2020/ng-confetti.mjs",
"esm2020": "dist/ng-confetti/esm2020/ng-confetti.mjs",
Expand Down
7 changes: 7 additions & 0 deletions wrappers/angular-fireworks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@
"prettier": "^3.8.3",
"typescript": "~5.9.3"
},
"nx": {
"targets": {
"build": {
"inputs": ["production", "^production", "{projectRoot}/projects/**/src/**/*"]
}
}
},
"module": "dist/ng-fireworks/fesm2015/ng-fireworks.mjs",
"es2020": "dist/ng-fireworks/fesm2020/ng-fireworks.mjs",
"esm2020": "dist/ng-fireworks/esm2020/ng-fireworks.mjs",
Expand Down
7 changes: 7 additions & 0 deletions wrappers/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@
"prettier": "^3.8.3",
"typescript": "~5.9.3"
},
"nx": {
"targets": {
"build": {
"inputs": ["production", "^production", "{projectRoot}/projects/**/src/**/*"]
}
}
},
"module": "dist/ng-particles/fesm2015/ng-particles.mjs",
"es2020": "dist/ng-particles/fesm2020/ng-particles.mjs",
"esm2020": "dist/ng-particles/esm2020/ng-particles.mjs",
Expand Down
7 changes: 7 additions & 0 deletions wrappers/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@
"prettier-plugin-astro": "^0.14.1",
"typescript": "^5.9.3"
},
"nx": {
"targets": {
"build": {
"inputs": ["production", "^production", "{projectRoot}/index.ts"]
}
}
},
"publishConfig": {
"access": "public"
}
Expand Down
7 changes: 7 additions & 0 deletions wrappers/ember/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@
"ember": {
"edition": "octane"
},
"nx": {
"targets": {
"build": {
"inputs": ["production", "^production", "{projectRoot}/addon/**/*", "{projectRoot}/app/**/*", "{projectRoot}/config/**/*", "{projectRoot}/index.js"]
}
}
},
"ember-addon": {
"configPath": "tests/dummy/config"
},
Expand Down
7 changes: 7 additions & 0 deletions wrappers/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@
"vite": "^8.0.8",
"vite-plugin-dts": "^4.5.4"
},
"nx": {
"targets": {
"build": {
"inputs": ["production", "^production", "{projectRoot}/lib/**/*"]
}
}
},
"publishConfig": {
"access": "public"
}
Expand Down
7 changes: 7 additions & 0 deletions wrappers/nuxt2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@
"globals": "^17.5.0",
"typescript": "^6.0.2"
},
"nx": {
"targets": {
"build": {
"inputs": ["production", "^production", "{projectRoot}/lib/**/*"]
}
}
},
"publishConfig": {
"access": "public"
}
Expand Down
7 changes: 7 additions & 0 deletions wrappers/nuxt3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@
"globals": "^17.5.0",
"typescript": "^6.0.2"
},
"nx": {
"targets": {
"build": {
"inputs": ["production", "^production", "{projectRoot}/lib/**/*"]
}
}
},
"publishConfig": {
"access": "public"
}
Expand Down
7 changes: 7 additions & 0 deletions wrappers/nuxt4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@
"nuxt": "^4.4.2",
"typescript": "^6.0.2"
},
"nx": {
"targets": {
"build": {
"inputs": ["production", "^production", "{projectRoot}/lib/**/*"]
}
}
},
"publishConfig": {
"access": "public"
}
Expand Down
7 changes: 7 additions & 0 deletions wrappers/preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@
"license": "MIT",
"homepage": "https://particles.js.org",
"prettier": "@tsparticles/prettier-config",
"nx": {
"targets": {
"build": {
"inputs": ["production", "^production", "{projectRoot}/src/**/*", "{projectRoot}/index.*"]
}
}
},
"publishConfig": {
"access": "public"
},
Expand Down
7 changes: 7 additions & 0 deletions wrappers/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@
"vite-plugin-dts": "^4.5.4",
"vite-plugin-lib-inject-css": "^2.2.2"
},
"nx": {
"targets": {
"build": {
"inputs": ["production", "^production", "{projectRoot}/lib/**/*"]
}
}
},
"publishConfig": {
"access": "public"
}
Expand Down
4 changes: 0 additions & 4 deletions wrappers/svelte/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

**Note:** Version bump only for package @tsparticles/svelte





# [4.0.0-beta.15](https://github.com/tsparticles/tsparticles/compare/v4.0.0-beta.14...v4.0.0-beta.15) (2026-05-09)

**Note:** Version bump only for package @tsparticles/svelte
Expand Down
7 changes: 7 additions & 0 deletions wrappers/webcomponents/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@
"prepack": "pnpm run build"
},
"prettier": "@tsparticles/prettier-config",
"nx": {
"targets": {
"build": {
"inputs": ["production", "^production", "{projectRoot}/src/**/*", "{projectRoot}/build.ts"]
}
}
},
"dependencies": {
"@tsparticles/engine": "workspace:^"
},
Expand Down
7 changes: 7 additions & 0 deletions wrappers/wordpress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@
"publishConfig": {
"access": "public"
},
"nx": {
"targets": {
"build": {
"inputs": ["production", "^production", "{projectRoot}/src/**/*", "{projectRoot}/wordpress-particles.php", "{projectRoot}/readme.txt"]
}
}
},
"dependencies": {
"@tsparticles/all": "workspace:^",
"@tsparticles/basic": "workspace:^",
Expand Down
Loading