vike-solid 0.7.19 → 0.8.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.
@@ -0,0 +1,9 @@
1
+ function assert(condition) {
2
+ if (condition) return;
3
+ throw new Error("You stumbled upon a vike-solid bug, reach out on GitHub.");
4
+ }
5
+ function assertWarning(condition, message) {
6
+ console.warn(new Error(message));
7
+ }
8
+
9
+ export { assertWarning as a, assert as b };
@@ -1,7 +1,7 @@
1
1
  import { createSignal, splitProps, sharedConfig, onMount, createMemo, untrack } from 'solid-js';
2
2
  import { isServer } from 'solid-js/web';
3
+ import { a as assertWarning } from '../assert-DxoZsFMo.js';
3
4
 
4
- // TODO/soon: add deprecation warning in favor of <ClientOnly>
5
5
  // TO-DO/breaking-change: remove it
6
6
 
7
7
 
@@ -11,6 +11,7 @@ import { isServer } from 'solid-js/web';
11
11
  * @see {@link https://vike.dev/clientOnly}
12
12
  */
13
13
  function clientOnly(fn, options = {}) {
14
+ assertWarning(false, "clientOnly() is deprecated — use <ClientOnly> https://vike.dev/ClientOnly");
14
15
  if (isServer) return props => props.fallback;
15
16
  const [comp, setComp] = createSignal();
16
17
  if (!options.lazy) {
package/package.json CHANGED
@@ -1,32 +1,33 @@
1
1
  {
2
2
  "name": "vike-solid",
3
- "version": "0.7.19",
3
+ "version": "0.8.0",
4
4
  "type": "module",
5
5
  "dependencies": {
6
- "isbot-fast": "^1.2.0",
7
- "vite-plugin-solid": "^2.11.10"
6
+ "isbot-fast": "^1.2.0"
8
7
  },
9
8
  "peerDependencies": {
10
9
  "solid-js": "^1.8.7",
11
- "vike": ">=0.4.250"
10
+ "vike": ">=0.4.250",
11
+ "vite-plugin-solid": "^2.11.10"
12
12
  },
13
13
  "devDependencies": {
14
- "@babel/core": "^7.28.5",
15
- "@babel/preset-env": "^7.28.5",
14
+ "@babel/core": "^7.28.6",
15
+ "@babel/preset-env": "^7.28.6",
16
16
  "@babel/preset-typescript": "^7.28.5",
17
17
  "@brillout/release-me": "^0.4.12",
18
18
  "@rollup/plugin-babel": "^6.1.0",
19
19
  "@rollup/plugin-node-resolve": "^16.0.3",
20
- "@types/node": "^22.17.0",
20
+ "@types/node": "^22.19.7",
21
21
  "babel-preset-solid": "^1.9.10",
22
- "bumpp": "^10.3.2",
23
- "rollup": "^4.55.1",
22
+ "bumpp": "^10.4.0",
23
+ "rollup": "^4.57.0",
24
24
  "rollup-plugin-dts": "^6.3.0",
25
- "solid-js": "^1.9.10",
25
+ "solid-js": "^1.9.11",
26
26
  "tslib": "^2.8.1",
27
27
  "typescript": "^5.9.3",
28
- "vike": "^0.4.251",
29
- "vite": "^7.3.1"
28
+ "vike": "^0.4.252",
29
+ "vite": "^7.3.1",
30
+ "vite-plugin-solid": "^2.11.10"
30
31
  },
31
32
  "exports": {
32
33
  "./config": "./dist/+config.js",