Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.
Merged

3.4.7 #189

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
4 changes: 2 additions & 2 deletions .github/workflows/node.js-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/setup-node@v6
with:
node-version: "24"
- uses: pnpm/action-setup@v5
- uses: pnpm/action-setup@v6
name: Install pnpm
id: pnpm-install
with:
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
- uses: actions/setup-node@v6
with:
node-version: "24"
- uses: pnpm/action-setup@v5
- uses: pnpm/action-setup@v6
name: Install pnpm
id: pnpm-install
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
node-version: 24
registry-url: https://registry.npmjs.org

- uses: pnpm/action-setup@v5.0.0
- uses: pnpm/action-setup@v6.0.3
name: Install pnpm
with:
run_install: false
Expand Down
10 changes: 10 additions & 0 deletions files/create-plugin/src/index.lazy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type { Engine } from "@tsparticles/engine";

/**
* @param engine - The engine instance
*/
export async function loadTemplatePlugin(engine: Engine): Promise<void> {
const { Plugin } = await import("./plugin.js");

await engine.addPlugin(new Plugin(/*engine*/));
}
3 changes: 1 addition & 2 deletions files/create-plugin/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import type { Engine } from "@tsparticles/engine";
import { Plugin } from "./plugin.js";

/**
* @param engine - The engine instance
*/
export async function loadTemplatePlugin(engine: Engine): Promise<void> {
const { Plugin } = await import("./plugin.js");

await engine.addPlugin(new Plugin(/*engine*/));
}
6 changes: 6 additions & 0 deletions files/create-preset/src/bundle.lazy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { loadTemplatePreset } from "./index.lazy.js";
import { tsParticles } from "@tsparticles/engine";

void loadTemplatePreset(tsParticles);

export { loadTemplatePreset, tsParticles };
14 changes: 14 additions & 0 deletions files/create-preset/src/index.lazy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { Engine } from "@tsparticles/engine";

/**
*
* @param engine - the engine instance to load the preset into
*/
export async function loadTemplatePreset(engine: Engine): Promise<void> {
const { options } = await import("./options.js");

// TODO: additional modules must be loaded here

// Adds the preset to the engine, with the given options
await engine.addPreset("#template#", options);
}
9 changes: 4 additions & 5 deletions files/create-preset/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import type { Engine } from "@tsparticles/engine";
import { options } from "./options.js";

/**
*
* @param engine - the engine instance to load the preset into
*/
export async function loadTemplatePreset(engine: Engine): Promise<void> {
const { options } = await import("./options.js");
// TODO: additional modules must be loaded here

// TODO: additional modules must be loaded here

// Adds the preset to the engine, with the given options
await engine.addPreset("#template#", options);
// Adds the preset to the engine, with the given options
await engine.addPreset("#template#", options);
}
10 changes: 10 additions & 0 deletions files/create-shape/src/index.lazy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type { Engine } from "@tsparticles/engine";

/**
* @param engine - the engine instance to load the shape into
*/
export async function loadTemplateShape(engine: Engine): Promise<void> {
const { ShapeDrawer } = await import("./ShapeDrawer.js");

await engine.addShape(new ShapeDrawer());
}
5 changes: 2 additions & 3 deletions files/create-shape/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import type { Engine } from "@tsparticles/engine";
import { ShapeDrawer } from "./ShapeDrawer.js";

/**
* @param engine - the engine instance to load the shape into
*/
export async function loadTemplateShape(engine: Engine): Promise<void> {
const { ShapeDrawer } = await import("./ShapeDrawer.js");

await engine.addShape(new ShapeDrawer());
await engine.addShape(new ShapeDrawer());
}
3 changes: 1 addition & 2 deletions files/empty-project/.browserslistrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
since 2021
not dead
extends @tsparticles/browserslist-config
25 changes: 13 additions & 12 deletions files/empty-project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,26 +83,27 @@
"types": "dist/types/index.d.ts",
"prettier": "@tsparticles/prettier-config",
"devDependencies": {
"@swc/core": "^1.15.24",
"@swc/core": "^1.15.30",
"@tsparticles/cli": "latest",
"@tsparticles/depcruise-config": "^3.4.6",
"@tsparticles/browserslist-config": "^3.4.11",
"@tsparticles/depcruise-config": "^3.4.11",
"@tsparticles/engine": "^3.9.1",
"@tsparticles/eslint-config": "^3.4.6",
"@tsparticles/prettier-config": "^3.4.6",
"@tsparticles/tsconfig": "^3.4.6",
"@tsparticles/webpack-plugin": "^3.4.6",
"@tsparticles/eslint-config": "^3.4.11",
"@tsparticles/prettier-config": "^3.4.11",
"@tsparticles/tsconfig": "^3.4.11",
"@tsparticles/webpack-plugin": "^3.4.11",
"@types/webpack-env": "^1.18.8",
"browserslist": "^4.28.2",
"copyfiles": "^2.4.1",
"eslint": "^10.2.0",
"eslint": "^10.2.1",
"eslint-config-prettier": "^10.1.8",
"prettier": "^3.8.1",
"prettier": "^3.8.3",
"rimraf": "^6.1.3",
"swc-loader": "^0.2.7",
"terser-webpack-plugin": "^5.4.0",
"typescript": "^6.0.2",
"typescript-eslint": "^8.58.0",
"webpack": "^5.105.4",
"terser-webpack-plugin": "^5.5.0",
"typescript": "^6.0.3",
"typescript-eslint": "^8.59.0",
"webpack": "^5.106.2",
"webpack-bundle-analyzer": "^5.3.0",
"webpack-cli": "^7.0.2"
},
Expand Down
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tsparticles/cli",
"version": "3.4.5",
"version": "3.4.7",
"license": "MIT",
"type": "module",
"bin": {
Expand Down Expand Up @@ -34,14 +34,14 @@
"prepack": "pnpm run build"
},
"dependencies": {
"@swc/core": "^1.15.24",
"@tsparticles/depcruise-config": "^3.4.6",
"@tsparticles/eslint-config": "^3.4.6",
"@tsparticles/prettier-config": "^3.4.6",
"@tsparticles/tsconfig": "^3.4.6",
"@tsparticles/webpack-plugin": "^3.4.6",
"@swc/core": "^1.15.30",
"@tsparticles/depcruise-config": "^3.4.11",
"@tsparticles/eslint-config": "^3.4.11",
"@tsparticles/prettier-config": "^3.4.11",
"@tsparticles/tsconfig": "^3.4.11",
"@tsparticles/webpack-plugin": "^3.4.11",
"commander": "^14.0.3",
"eslint": "^10.2.0",
"eslint": "^10.2.1",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-jsdoc": "^62.9.0",
"eslint-plugin-prettier": "^5.5.5",
Expand All @@ -50,34 +50,34 @@
"lookpath": "^1.2.3",
"dependency-cruiser": "^17.3.10",
"path-scurry": "^2.0.2",
"prettier": "^3.8.1",
"prettier-plugin-multiline-arrays": "^4.1.5",
"prettier": "^3.8.3",
"prettier-plugin-multiline-arrays": "^4.1.7",
"prompts": "^2.4.2",
"rimraf": "^6.1.3",
"swc-loader": "^0.2.7",
"typescript": "^6.0.2",
"typescript-eslint": "^8.58.0",
"webpack": "^5.105.4"
"typescript": "^6.0.3",
"typescript-eslint": "^8.59.0",
"webpack": "^5.106.2"
},
"devDependencies": {
"@tsparticles/cli": "latest",
"@tsparticles/engine": "^3.9.1",
"@types/estree": "^1.0.8",
"@types/klaw": "^3.0.7",
"@types/node": "^25.5.2",
"@types/node": "^25.6.0",
"@types/prompts": "^2.4.9",
"@types/webpack-env": "^1.18.8",
"browserslist": "^4.28.2",
"copyfiles": "^2.4.1",
"cross-env": "^10.1.0",
"terser-webpack-plugin": "^5.4.0",
"terser-webpack-plugin": "^5.5.0",
"ts-node": "^10.9.2",
"vitest": "^4.1.2",
"vitest": "^4.1.5",
"webpack-bundle-analyzer": "^5.3.0",
"webpack-cli": "^7.0.2"
},
"description": "tsParticles CLI",
"main": "eslint.config.js",
"author": "Matteo Bruni <matteo.bruni@me.com>",
"packageManager": "pnpm@10.33.0"
"packageManager": "pnpm@10.33.2"
}
Loading
Loading