@tsparticles/template-404 4.3.2 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,32 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [4.3.2](https://github.com/tsparticles/tsparticles/compare/v4.3.1...v4.3.2) (2026-07-10)
6
+ # [4.5.0](https://github.com/tsparticles/tsparticles/compare/v4.4.0...v4.5.0) (2026-10-25)
7
7
 
8
8
  **Note:** Version bump only for package @tsparticles/template-404
9
9
 
10
+ # [4.4.0](https://github.com/tsparticles/tsparticles/compare/v4.3.3...v4.4.0) (2026-08-30)
10
11
 
12
+ ### Bug Fixes
11
13
 
14
+ - various fixes for 4.4.0 ([475d06d](https://github.com/tsparticles/tsparticles/commit/475d06da27e1497bb097c0822fcfcb72d7142456))
12
15
 
13
-
14
- ## [4.3.1](https://github.com/tsparticles/tsparticles/compare/v4.3.0...v4.3.1) (2026-07-01)
16
+ ## [4.3.3](https://github.com/tsparticles/tsparticles/compare/v4.3.2...v4.3.3) (2026-07-23)
15
17
 
16
18
  **Note:** Version bump only for package @tsparticles/template-404
17
19
 
20
+ ## [4.3.2](https://github.com/tsparticles/tsparticles/compare/v4.3.1...v4.3.2) (2026-07-10)
18
21
 
22
+ **Note:** Version bump only for package @tsparticles/template-404
19
23
 
24
+ ## [4.3.1](https://github.com/tsparticles/tsparticles/compare/v4.3.0...v4.3.1) (2026-07-01)
20
25
 
26
+ **Note:** Version bump only for package @tsparticles/template-404
21
27
 
22
28
  # [4.3.0](https://github.com/tsparticles/tsparticles/compare/v4.2.1...v4.3.0) (2026-06-27)
23
29
 
24
-
25
30
  ### Bug Fixes
26
31
 
27
- * fixed angular confetti ([6f25a4a](https://github.com/tsparticles/tsparticles/commit/6f25a4a1eaa69c47f2668316e7b396fe55195f84))
28
-
29
-
30
-
31
-
32
+ - fixed angular confetti ([6f25a4a](https://github.com/tsparticles/tsparticles/commit/6f25a4a1eaa69c47f2668316e7b396fe55195f84))
32
33
 
33
34
  ## [4.2.1](https://github.com/tsparticles/tsparticles/compare/v4.2.0...v4.2.1) (2026-06-18)
34
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/template-404",
3
- "version": "4.3.2",
3
+ "version": "4.5.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -14,7 +14,15 @@
14
14
  "prebuild": "node scripts/prebuild.js",
15
15
  "build": "pnpm run prebuild",
16
16
  "build:ci": "pnpm run prebuild",
17
- "version": "pnpm run build && git add template.json"
17
+ "version": "pnpm run build && git add template.json",
18
+ "prepack": "pnpm run build"
18
19
  },
19
- "gitHead": "527bc42f2324fbb9b93262efa3d90a5517532b8b"
20
+ "dependencies": {
21
+ "@tsparticles/engine": "4.5.0",
22
+ "@tsparticles/slim": "4.5.0"
23
+ },
24
+ "devDependencies": {
25
+ "fs-extra": "^11.3.4"
26
+ },
27
+ "gitHead": "a637373a03c008ab38edaaecf6524ec4b8e332c0"
20
28
  }
@@ -1,5 +1,6 @@
1
1
  const fs = require("fs-extra");
2
2
 
3
+ const mainPackage = require("../package.json");
3
4
  const libPackage = "./template.json";
4
5
 
5
6
  const workspaceVersions = {
@@ -8,14 +9,7 @@ const workspaceVersions = {
8
9
  };
9
10
 
10
11
  function resolveWorkspaceDependency(name) {
11
- const libObj = JSON.parse(fs.readFileSync(libPackage, "utf-8"));
12
-
13
- const allDeps = {
14
- ...libObj.package.dependencies,
15
- ...libObj.package.devDependencies,
16
- };
17
-
18
- const spec = allDeps[name];
12
+ const spec = mainPackage.dependencies[name];
19
13
 
20
14
  if (!spec?.startsWith("workspace:")) {
21
15
  return spec;
@@ -41,8 +35,7 @@ fs.readFile(libPackage, function (error, data) {
41
35
  throw error;
42
36
  }
43
37
 
44
- const text = data.toString();
45
- const libObj = JSON.parse(text);
38
+ const libObj = JSON.parse(data.toString());
46
39
 
47
40
  for (const dep of Object.keys(libObj.package.dependencies)) {
48
41
  const resolved = resolveWorkspaceDependency(dep);
@@ -58,7 +51,7 @@ fs.readFile(libPackage, function (error, data) {
58
51
  }
59
52
  }
60
53
 
61
- fs.writeFile(libPackage, JSON.stringify(libObj, undefined, 2), "utf-8", function () {
54
+ fs.writeFile(libPackage, `${JSON.stringify(libObj, undefined, 2)}\n`, "utf-8", function () {
62
55
  console.log("template.json dependencies updated successfully");
63
56
  });
64
57
  });
package/template.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "package": {
3
3
  "dependencies": {
4
- "@tsparticles/engine": "^4.1.3",
5
- "@tsparticles/slim": "^4.1.3"
4
+ "@tsparticles/engine": "^4.5.0",
5
+ "@tsparticles/slim": "^4.5.0"
6
6
  },
7
7
  "devDependencies": {
8
8
  "typescript": "^6.0.3",
9
- "vite": "^8.1.0"
9
+ "vite": "^8.3.1"
10
10
  }
11
11
  }
12
- }
12
+ }