Skip to content

Commit 598f8aa

Browse files
committed
build: updated deps
1 parent b078301 commit 598f8aa

File tree

8 files changed

+649
-1282
lines changed

8 files changed

+649
-1282
lines changed

files/create-preset/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { Engine } from "@tsparticles/engine";
55
* @param engine - the engine instance to load the preset into
66
*/
77
export async function loadTemplatePreset(engine: Engine): Promise<void> {
8-
const { options } = await import("./options");
8+
const { options } = await import("./options.js");
99

1010
// TODO: additional modules must be loaded here
1111

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { IShapeDrawData, IShapeDrawer } from "@tsparticles/engine";
22

33
export class ShapeDrawer implements IShapeDrawer {
4-
async draw(_data: IShapeDrawData): Promise<void> {
4+
draw(_data: IShapeDrawData): void {
55
// draw the particle using the context
66
// which is already centered in the particle position
77
// colors are already handled, just draw the shape
@@ -10,8 +10,5 @@ export class ShapeDrawer implements IShapeDrawer {
1010
// pixelRatio is the canvas ratio used by the tsParticles instance, you may need it for density-independent shapes
1111
// the parameters have an underscore prefix because they're not used in this example
1212
// the underscore prefix can be removed for used parameters, the unused ones can be removed too
13-
14-
// remove this if there's already an await call
15-
await Promise.resolve();
1613
}
1714
}

files/create-shape/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { Engine } from "@tsparticles/engine";
44
* @param engine - the engine instance to load the shape into
55
*/
66
export async function loadTemplateShape(engine: Engine): Promise<void> {
7-
const { ShapeDrawer } = await import("./ShapeDrawer");
7+
const { ShapeDrawer } = await import("./ShapeDrawer.js");
88

99
await engine.addShape("#template#", new ShapeDrawer());
1010
}

files/empty-project/package.dist.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,6 @@
7272
"module": "index.js",
7373
"types": "index.d.ts",
7474
"dependencies": {
75-
"@tsparticles/engine": "^3.0.3"
75+
"@tsparticles/engine": "^3.3.0"
7676
}
7777
}

files/empty-project/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@
8484
"devDependencies": {
8585
"@babel/core": "^7.23.9",
8686
"@tsparticles/cli": "^2.2.4",
87-
"@tsparticles/eslint-config": "^2.1.4",
88-
"@tsparticles/prettier-config": "^2.1.0",
89-
"@tsparticles/tsconfig": "^2.0.1",
90-
"@tsparticles/webpack-plugin": "^2.1.4",
87+
"@tsparticles/eslint-config": "^2.2.0",
88+
"@tsparticles/prettier-config": "^2.1.6",
89+
"@tsparticles/tsconfig": "^2.1.7",
90+
"@tsparticles/webpack-plugin": "^2.2.0",
9191
"@types/webpack-env": "^1.18.4",
92-
"@typescript-eslint/eslint-plugin": "^6.20.0",
93-
"@typescript-eslint/parser": "^6.20.0",
92+
"@typescript-eslint/eslint-plugin": "^7.1.0",
93+
"@typescript-eslint/parser": "^7.1.0",
9494
"babel-loader": "^9.1.3",
95-
"browserslist": "^4.22.3",
95+
"browserslist": "^4.23.0",
9696
"copyfiles": "^2.4.1",
9797
"eslint": "^8.56.0",
9898
"eslint-config-prettier": "^9.1.0",
@@ -105,6 +105,6 @@
105105
"webpack-cli": "^5.1.4"
106106
},
107107
"dependencies": {
108-
"@tsparticles/engine": "^3.2.0"
108+
"@tsparticles/engine": "^3.3.0"
109109
}
110110
}

package.json

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
"version": "node scripts/postversion.js && git add files/empty-project/package.json"
3030
},
3131
"dependencies": {
32-
"@tsparticles/eslint-config": "^2.1.4",
33-
"@tsparticles/prettier-config": "^2.1.0",
32+
"@tsparticles/eslint-config": "^2.2.0",
33+
"@tsparticles/prettier-config": "^2.1.6",
3434
"@tsparticles/tsconfig": "^2.1.7",
35-
"@tsparticles/webpack-plugin": "^2.1.6",
35+
"@tsparticles/webpack-plugin": "^2.2.0",
3636
"@typescript-eslint/eslint-plugin": "^7.1.0",
3737
"@typescript-eslint/parser": "^7.1.0",
3838
"commander": "^12.0.0",
@@ -53,18 +53,31 @@
5353
"webpack": "^5.90.3"
5454
},
5555
"devDependencies": {
56+
"@babel/core": "^7.23.9",
57+
"@tsparticles/cli": "^2.2.4",
58+
"@tsparticles/engine": "^3.3.0",
5659
"@types/chai": "^4.3.12",
60+
"@types/eslint": "^8.56.5",
5761
"@types/fs-extra": "^11.0.4",
5862
"@types/klaw": "^3.0.6",
5963
"@types/madge": "^5.0.3",
6064
"@types/mocha": "^10.0.6",
61-
"@types/node": "^20.11.20",
65+
"@types/node": "^20.11.24",
6266
"@types/prompts": "^2.4.9",
67+
"@types/webpack-env": "^1.18.4",
68+
"@typescript-eslint/eslint-plugin": "^7.1.0",
69+
"@typescript-eslint/parser": "^7.1.0",
70+
"babel-loader": "^9.1.3",
71+
"browserslist": "^4.23.0",
6372
"chai": "^4.4.1",
73+
"copyfiles": "^2.4.1",
6474
"cross-env": "^7.0.3",
6575
"mocha": "^10.3.0",
6676
"nyc": "^15.1.0",
67-
"ts-node": "^10.9.2"
77+
"terser-webpack-plugin": "^5.3.10",
78+
"ts-node": "^10.9.2",
79+
"webpack-bundle-analyzer": "^4.10.1",
80+
"webpack-cli": "^5.1.4"
6881
},
6982
"description": "tsParticles CLI",
7083
"main": ".eslintrc.js",

0 commit comments

Comments
 (0)