Skip to content

Commit 5519417

Browse files
committed
build: updated deps and docs
1 parent ddcb545 commit 5519417

File tree

7 files changed

+626
-577
lines changed

7 files changed

+626
-577
lines changed

README.md

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ yarn add svelte-particles
2727
```html
2828
<script>
2929
import Particles from "svelte-particles";
30-
import { loadFull } from "tsparticles";
30+
//import { loadFull } from "tsparticles"; // if you are going to use `loadFull`, install the "tsparticles" package too.
31+
import { loadSlim } from "tsparticles-slim"; // if you are going to use `loadSlim`, install the "tsparticles-slim" package too.
3132
3233
let particlesUrl = "http://foo.bar/particles.json"; // placeholder, replace it with a real url
3334
@@ -44,8 +45,8 @@ yarn add svelte-particles
4445
enable: true,
4546
},
4647
number: {
47-
value: 100
48-
}
48+
value: 100,
49+
},
4950
},
5051
};
5152
@@ -60,7 +61,8 @@ yarn add svelte-particles
6061
// you can use main to customize the tsParticles instance adding presets or custom shapes
6162
// this loads the tsparticles package bundle, it's the easiest method for getting everything ready
6263
// starting from v2 you can add only the features you need reducing the bundle size
63-
await loadFull(engine);
64+
//await loadFull(engine);
65+
await loadSlim(engine);
6466
};
6567
</script>
6668

@@ -95,7 +97,8 @@ You can see a sample below:
9597
```html
9698
<script>
9799
import { onMount } from "svelte";
98-
import { loadFull } from "tsparticles";
100+
//import { loadFull } from "tsparticles"; // if you are going to use `loadFull`, install the "tsparticles" package too.
101+
import { loadSlim } from "tsparticles-slim"; // if you are going to use `loadSlim`, install the "tsparticles-slim" package too.
99102
100103
let ParticlesComponent;
101104
@@ -132,11 +135,12 @@ You can see a sample below:
132135
// (from the core library) methods like play, pause, refresh, start, stop
133136
};
134137
135-
let particlesInit = async main => {
138+
let particlesInit = async engine => {
136139
// you can use main to customize the tsParticles instance adding presets or custom shapes
137140
// this loads the tsparticles package bundle, it's the easiest method for getting everything ready
138141
// starting from v2 you can add only the features you need reducing the bundle size
139-
await loadFull(main);
142+
//await loadFull(main);
143+
await loadSlim(engine);
140144
};
141145
</script>
142146

@@ -178,17 +182,17 @@ After that, everything should work as expected.
178182

179183
### SvelteKit
180184

181-
If you have issues with SvelteKit, like you *Cannot use import statement outside a module*, change your `vite.config.ts` file like this:
185+
If you have issues with SvelteKit, like you _Cannot use import statement outside a module_, change your `vite.config.ts` file like this:
182186

183187
```ts
184-
import { sveltekit } from '@sveltejs/kit/vite';
185-
import { defineConfig } from 'vite';
188+
import { sveltekit } from "@sveltejs/kit/vite";
189+
import { defineConfig } from "vite";
186190

187191
export default defineConfig({
188-
plugins: [sveltekit()],
189-
ssr: {
190-
noExternal: ['tsparticles', 'tsparticles-engine', 'svelte-particles'] // add all tsparticles libraries here, they're not made for SSR, they're client only
191-
}
192+
plugins: [sveltekit()],
193+
ssr: {
194+
noExternal: ["tsparticles", "tsparticles-slim", "tsparticles-engine", "svelte-particles"], // add all tsparticles libraries here, they're not made for SSR, they're client only
195+
},
192196
});
193197
```
194198

apps/svelte-kit/package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,27 @@
1111
"format": "prettier --plugin-search-dir . --write ."
1212
},
1313
"devDependencies": {
14-
"@fontsource/fira-mono": "^5.0.0",
14+
"@fontsource/fira-mono": "^5.0.5",
1515
"@neoconfetti/svelte": "^1.0.0",
16-
"@sveltejs/adapter-auto": "^2.0.0",
17-
"@sveltejs/kit": "^1.5.0",
16+
"@sveltejs/adapter-auto": "^2.1.0",
17+
"@sveltejs/kit": "^1.22.3",
1818
"@types/cookie": "^0.5.1",
1919
"@typescript-eslint/eslint-plugin": "^6.0.0",
2020
"@typescript-eslint/parser": "^6.0.0",
21-
"eslint": "^8.28.0",
22-
"eslint-config-prettier": "^8.5.0",
23-
"eslint-plugin-svelte": "^2.26.0",
24-
"prettier": "^2.8.0",
25-
"prettier-plugin-svelte": "^2.8.1",
26-
"svelte": "^4.0.0",
27-
"svelte-check": "^3.0.1",
21+
"eslint": "^8.45.0",
22+
"eslint-config-prettier": "^8.8.0",
23+
"eslint-plugin-svelte": "^2.32.2",
24+
"prettier": "^2.8.8",
25+
"prettier-plugin-svelte": "^2.10.1",
26+
"svelte": "^4.0.5",
27+
"svelte-check": "^3.4.6",
2828
"svelte-particles": "^2.10.1",
2929
"svelte-preprocess": "^5.0.4",
30-
"tslib": "^2.4.1",
31-
"tsparticles": "^2.10.1",
32-
"tsparticles-engine": "^2.10.1",
33-
"typescript": "^5.0.0",
34-
"vite": "^4.3.0"
30+
"tslib": "^2.6.0",
31+
"tsparticles": "^2.11.0",
32+
"tsparticles-engine": "^2.11.0",
33+
"typescript": "^5.1.6",
34+
"vite": "^4.4.4"
3535
},
3636
"type": "module"
3737
}

apps/svelte/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,26 @@
1010
"check": "svelte-check --tsconfig ./tsconfig.json"
1111
},
1212
"devDependencies": {
13-
"@rollup/plugin-commonjs": "^25.0.0",
13+
"@rollup/plugin-commonjs": "^25.0.2",
1414
"@rollup/plugin-json": "^6.0.0",
1515
"@rollup/plugin-node-resolve": "^15.1.0",
1616
"@rollup/plugin-terser": "^0.4.3",
17-
"@rollup/plugin-typescript": "^11.1.1",
17+
"@rollup/plugin-typescript": "^11.1.2",
1818
"@tsconfig/svelte": "^5.0.0",
19-
"rollup": "^3.24.0",
19+
"rollup": "^3.26.2",
2020
"rollup-plugin-css-only": "^4.3.0",
2121
"rollup-plugin-livereload": "^2.0.5",
22-
"rollup-plugin-svelte": "^7.1.5",
23-
"svelte": "^4.0.0",
24-
"svelte-check": "^3.4.3",
22+
"rollup-plugin-svelte": "^7.1.6",
23+
"svelte": "^4.0.5",
24+
"svelte-check": "^3.4.6",
2525
"svelte-preprocess": "^5.0.4",
26-
"tslib": "^2.5.3",
27-
"typescript": "~5.1.3"
26+
"tslib": "^2.6.0",
27+
"typescript": "~5.1.6"
2828
},
2929
"dependencies": {
3030
"sirv-cli": "^2.0.2",
3131
"svelte-particles": "^2.10.1",
32-
"tsparticles": "^2.10.1",
33-
"tsparticles-demo-configs": "^2.10.1"
32+
"tsparticles": "^2.11.0",
33+
"tsparticles-demo-configs": "^2.11.0"
3434
}
3535
}

components/svelte/README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ yarn add svelte-particles
2727
```html
2828
<script>
2929
import Particles from "svelte-particles";
30-
import { loadFull } from "tsparticles";
30+
//import { loadFull } from "tsparticles"; // if you are going to use `loadFull`, install the "tsparticles" package too.
31+
import { loadSlim } from "tsparticles-slim"; // if you are going to use `loadSlim`, install the "tsparticles-slim" package too.
3132
3233
let particlesUrl = "http://foo.bar/particles.json"; // placeholder, replace it with a real url
3334
@@ -60,7 +61,8 @@ yarn add svelte-particles
6061
// you can use main to customize the tsParticles instance adding presets or custom shapes
6162
// this loads the tsparticles package bundle, it's the easiest method for getting everything ready
6263
// starting from v2 you can add only the features you need reducing the bundle size
63-
await loadFull(engine);
64+
//await loadFull(engine);
65+
await loadSlim(engine);
6466
};
6567
</script>
6668

@@ -95,7 +97,8 @@ You can see a sample below:
9597
```html
9698
<script>
9799
import { onMount } from "svelte";
98-
import { loadFull } from "tsparticles";
100+
//import { loadFull } from "tsparticles"; // if you are going to use `loadFull`, install the "tsparticles" package too.
101+
import { loadSlim } from "tsparticles-slim"; // if you are going to use `loadSlim`, install the "tsparticles-slim" package too.
99102
100103
let ParticlesComponent;
101104
@@ -132,11 +135,12 @@ You can see a sample below:
132135
// (from the core library) methods like play, pause, refresh, start, stop
133136
};
134137
135-
let particlesInit = async main => {
138+
let particlesInit = async engine => {
136139
// you can use main to customize the tsParticles instance adding presets or custom shapes
137140
// this loads the tsparticles package bundle, it's the easiest method for getting everything ready
138141
// starting from v2 you can add only the features you need reducing the bundle size
139-
await loadFull(main);
142+
//await loadFull(main);
143+
await loadSlim(engine);
140144
};
141145
</script>
142146

@@ -187,7 +191,7 @@ import { defineConfig } from "vite";
187191
export default defineConfig({
188192
plugins: [sveltekit()],
189193
ssr: {
190-
noExternal: ["tsparticles", "tsparticles-engine", "svelte-particles"], // add all tsparticles libraries here, they're not made for SSR, they're client only
194+
noExternal: ["tsparticles", "tsparticles-slim", "tsparticles-engine", "svelte-particles"], // add all tsparticles libraries here, they're not made for SSR, they're client only
191195
},
192196
});
193197
```

components/svelte/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,24 +84,24 @@
8484
"svelte": ">=3"
8585
},
8686
"dependencies": {
87-
"tsparticles-engine": "^2.10.1"
87+
"tsparticles-engine": "^2.11.0"
8888
},
8989
"devDependencies": {
90-
"@rollup/plugin-commonjs": "^25.0.0",
90+
"@rollup/plugin-commonjs": "^25.0.2",
9191
"@rollup/plugin-node-resolve": "^15.1.0",
9292
"@rollup/plugin-terser": "^0.4.3",
93-
"@rollup/plugin-typescript": "^11.1.1",
93+
"@rollup/plugin-typescript": "^11.1.2",
9494
"@tsconfig/svelte": "^5.0.0",
95-
"@tsparticles/prettier-config": "^1.10.0",
95+
"@tsparticles/prettier-config": "^1.11.0",
9696
"prettier": "^2.8.8",
9797
"prettier-plugin-svelte": "^2.10.1",
98-
"rollup": "^3.24.0",
99-
"rollup-plugin-svelte": "^7.1.5",
100-
"svelte": "^4.0.0",
101-
"svelte-check": "^3.4.3",
98+
"rollup": "^3.26.2",
99+
"rollup-plugin-svelte": "^7.1.6",
100+
"svelte": "^4.0.5",
101+
"svelte-check": "^3.4.6",
102102
"svelte-preprocess": "^5.0.4",
103-
"tslib": "^2.5.3",
104-
"typescript": "~5.1.3"
103+
"tslib": "^2.6.0",
104+
"typescript": "~5.1.6"
105105
},
106106
"bugs": {
107107
"url": "https://github.com/tsparticles/svelte/issues"

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
},
88
"license": "MIT",
99
"dependencies": {
10-
"@commitlint/cli": "^17.6.5",
11-
"@commitlint/config-conventional": "^17.6.5",
10+
"@commitlint/cli": "^17.6.6",
11+
"@commitlint/config-conventional": "^17.6.6",
1212
"husky": "^8.0.3",
13-
"lerna": "^7.0.2"
13+
"lerna": "^7.1.3"
1414
},
1515
"workspaces": [
1616
"apps/*",

0 commit comments

Comments
 (0)