Skip to content

Commit d8d62cf

Browse files
authored
Merge pull request #74 from tsparticles/dev
3.0.14
2 parents c86e1d6 + f21657f commit d8d62cf

File tree

18 files changed

+318
-424
lines changed

18 files changed

+318
-424
lines changed

.github/workflows/node.js-ci.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313
if: ${{ github.event_name != 'pull_request' }}
1414
steps:
15-
- uses: actions/checkout@v5
15+
- uses: actions/checkout@v6
1616
name: Checkout [main]
1717
with:
1818
fetch-depth: 0
19-
- uses: actions/setup-node@v4
19+
- uses: actions/setup-node@v5
2020
with:
2121
node-version: "24"
2222
- uses: pnpm/action-setup@v4
@@ -35,29 +35,32 @@ jobs:
3535
run: |
3636
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
3737
38-
- uses: actions/cache@v4
38+
- uses: actions/cache@v5
3939
name: Setup pnpm cache
4040
with:
4141
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
4242
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
4343
restore-keys: |
4444
${{ runner.os }}-pnpm-store-
45+
- name: Clean tmp-files directory
46+
run: rm -rf tests/tmp-files
47+
if: always()
4548
- run: pnpm install --no-frozen-lockfile
4649
- run: pnpm run build:ci
4750
- run: pnpm test
4851
pr:
4952
runs-on: ubuntu-latest
5053
if: ${{ github.event_name == 'pull_request' }}
5154
steps:
52-
- uses: actions/checkout@v5
55+
- uses: actions/checkout@v6
5356
with:
5457
ref: ${{ github.event.pull_request.head.ref }}
5558
repository: ${{ github.event.pull_request.head.repo.full_name }}
5659
fetch-depth: 0
57-
- uses: actions/setup-node@v4
60+
- uses: actions/setup-node@v5
5861
with:
5962
node-version: "24"
60-
- uses: pnpm/action-setup@v3
63+
- uses: pnpm/action-setup@v4
6164
name: Install pnpm
6265
id: pnpm-install
6366
with:
@@ -73,13 +76,16 @@ jobs:
7376
run: |
7477
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
7578
76-
- uses: actions/cache@v4
79+
- uses: actions/cache@v5
7780
name: Setup pnpm cache
7881
with:
7982
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
8083
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
8184
restore-keys: |
8285
${{ runner.os }}-pnpm-store-
86+
- name: Clean tmp-files directory
87+
run: rm -rf tests/tmp-files
88+
if: always()
8389
- run: pnpm install --no-frozen-lockfile
8490
- run: pnpm run build:ci
8591
- run: pnpm test

.mocharc.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

files/create-plugin/src/PluginInstance.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
import { type Container, type Engine, type IContainerPlugin } from "@tsparticles/engine";
1+
import { /*type Container, type Engine,*/ type IContainerPlugin } from "@tsparticles/engine";
22

33
export class PluginInstance implements IContainerPlugin {
4+
/*
45
private readonly _container;
56
private readonly _engine;
67
78
constructor(container: Container, engine: Engine) {
8-
this._container = container;
9+
/*this._container = container;
910
this._engine = engine;
1011
}
12+
*/
1113

1214
async init(): Promise<void> {
1315
// add your plugin initialization here, replace the empty promise

files/create-plugin/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ import type { Engine } from "@tsparticles/engine";
66
export async function loadTemplatePlugin(engine: Engine): Promise<void> {
77
const { Plugin } = await import("./plugin.js");
88

9-
await engine.addPlugin(new Plugin(engine));
9+
await engine.addPlugin(new Plugin(/*engine*/));
1010
}

files/create-plugin/src/plugin.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
import { type Container, type Engine, type IPlugin, type ISourceOptions, type Options } from "@tsparticles/engine";
1+
import { /*type Container, type Engine,*/ type IPlugin, type ISourceOptions, type Options } from "@tsparticles/engine";
22
import type { PluginInstance } from "./PluginInstance.js";
33

44
/**
55
*/
66
export class Plugin implements IPlugin {
77
readonly id;
88

9-
private readonly _engine;
9+
//private readonly _engine;
1010

11-
constructor(engine: Engine) {
11+
constructor(/*engine: Engine*/) {
1212
this.id = "#template#";
1313

14-
this._engine = engine;
14+
//this._engine = engine;
1515
}
1616

17-
async getPlugin(container: Container): Promise<PluginInstance> {
17+
async getPlugin(/*container: Container*/): Promise<PluginInstance> {
1818
const { PluginInstance } = await import("./PluginInstance.js");
1919

20-
return new PluginInstance(container, this._engine);
20+
return new PluginInstance(/*container, this._engine*/);
2121
}
2222

2323
loadOptions(_options: Options, _source?: ISourceOptions): void {

files/empty-project/package.dist.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@
7373
"module": "index.js",
7474
"types": "index.d.ts",
7575
"dependencies": {
76-
"@tsparticles/engine": "^3.3.0"
76+
"@tsparticles/engine": "^3.9.1"
7777
}
7878
}

files/empty-project/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@
8484
"prettier": "@tsparticles/prettier-config",
8585
"devDependencies": {
8686
"@babel/core": "^7.28.5",
87-
"@tsparticles/cli": "^3.0.11",
88-
"@tsparticles/eslint-config": "^3.0.6",
89-
"@tsparticles/prettier-config": "^3.0.6",
90-
"@tsparticles/tsconfig": "^3.0.6",
91-
"@tsparticles/webpack-plugin": "^3.0.6",
87+
"@tsparticles/cli": "^3.0.14",
88+
"@tsparticles/eslint-config": "^3.0.9",
89+
"@tsparticles/prettier-config": "^3.0.7",
90+
"@tsparticles/tsconfig": "^3.0.9",
91+
"@tsparticles/webpack-plugin": "^3.0.9",
9292
"@types/webpack-env": "^1.18.8",
9393
"babel-loader": "^10.0.0",
9494
"browserslist": "^4.28.1",
@@ -99,7 +99,7 @@
9999
"rimraf": "^6.1.2",
100100
"terser-webpack-plugin": "^5.3.16",
101101
"typescript": "^5.9.3",
102-
"typescript-eslint": "^8.50.0",
102+
"typescript-eslint": "^8.51.0",
103103
"webpack": "^5.104.1",
104104
"webpack-bundle-analyzer": "^5.1.0",
105105
"webpack-cli": "^6.0.1"

files/empty-project/tsconfig.base.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"extends": "@tsparticles/tsconfig/tsconfig.base.json",
33
"compilerOptions": {
4-
"rootDir": "./src"
4+
"rootDir": "./src",
5+
"strictNullChecks": true
56
},
67
"include": [
78
"./src"

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tsparticles/cli",
3-
"version": "3.0.11",
3+
"version": "3.0.14",
44
"license": "MIT",
55
"type": "module",
66
"bin": {
@@ -30,10 +30,10 @@
3030
"version": "node scripts/postversion.js && git add files/empty-project/package.json"
3131
},
3232
"dependencies": {
33-
"@tsparticles/eslint-config": "^3.0.6",
34-
"@tsparticles/prettier-config": "^3.0.6",
35-
"@tsparticles/tsconfig": "^3.0.6",
36-
"@tsparticles/webpack-plugin": "^3.0.6",
33+
"@tsparticles/eslint-config": "^3.0.9",
34+
"@tsparticles/prettier-config": "^3.0.7",
35+
"@tsparticles/tsconfig": "^3.0.9",
36+
"@tsparticles/webpack-plugin": "^3.0.9",
3737
"commander": "^14.0.2",
3838
"eslint": "^9.39.2",
3939
"eslint-config-prettier": "^10.1.8",
@@ -46,16 +46,16 @@
4646
"madge": "^8.0.0",
4747
"path-scurry": "^2.0.1",
4848
"prettier": "^3.7.4",
49-
"prettier-plugin-multiline-arrays": "4.1.1",
49+
"prettier-plugin-multiline-arrays": "^4.1.3",
5050
"prompts": "^2.4.2",
5151
"rimraf": "^6.1.2",
5252
"typescript": "^5.9.3",
53-
"typescript-eslint": "^8.50.0",
53+
"typescript-eslint": "^8.51.0",
5454
"webpack": "^5.104.1"
5555
},
5656
"devDependencies": {
5757
"@babel/core": "^7.28.5",
58-
"@tsparticles/cli": "^3.0.11",
58+
"@tsparticles/cli": "^3.0.14",
5959
"@tsparticles/engine": "^3.9.1",
6060
"@types/eslint": "^9.6.1",
6161
"@types/estree": "^1.0.8",

0 commit comments

Comments
 (0)