@solidjs/start 2.0.0-rc.3 → 2.0.0-rc.5

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.
Files changed (62) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/dist/config/app-root-alias.d.ts +7 -0
  3. package/dist/config/app-root-alias.js +58 -0
  4. package/dist/config/constants.d.ts +1 -0
  5. package/dist/config/constants.js +1 -0
  6. package/dist/config/env.js +2 -2
  7. package/dist/config/fs-routes/index.js +3 -3
  8. package/dist/config/fs-routes/tree-shake.d.ts +27 -0
  9. package/dist/config/fs-routes/tree-shake.js +46 -1
  10. package/dist/config/index.d.ts +23 -0
  11. package/dist/config/index.js +14 -6
  12. package/dist/config/manifest.js +11 -2
  13. package/dist/directives/remove-unused-variables.js +2 -2
  14. package/dist/directives/xxhash32.js +5 -13
  15. package/dist/fns/handler.js +37 -12
  16. package/dist/fns/plugins.d.ts +34 -0
  17. package/dist/fns/plugins.js +33 -0
  18. package/dist/fns/serialization.js +35 -5
  19. package/dist/server/assets/render.jsx +1 -1
  20. package/dist/server/handler.js +9 -1
  21. package/dist/server/spa/StartServer.jsx +1 -1
  22. package/dist/shared/clientOnly.js +3 -1
  23. package/dist/shared/dev-toolbar/error-viewer/CodeView.jsx +1 -1
  24. package/dist/shared/dev-toolbar/functions/BlobViewer.css +1 -1
  25. package/dist/shared/dev-toolbar/functions/BlobViewer.d.ts +2 -2
  26. package/dist/shared/dev-toolbar/functions/BlobViewer.jsx +7 -11
  27. package/dist/shared/dev-toolbar/functions/FormDataViewer.d.ts +1 -1
  28. package/dist/shared/dev-toolbar/functions/FormDataViewer.jsx +7 -11
  29. package/dist/shared/dev-toolbar/functions/HeadersViewer.d.ts +1 -1
  30. package/dist/shared/dev-toolbar/functions/HeadersViewer.jsx +2 -2
  31. package/dist/shared/dev-toolbar/functions/HexViewer.d.ts +1 -1
  32. package/dist/shared/dev-toolbar/functions/HexViewer.jsx +7 -15
  33. package/dist/shared/dev-toolbar/functions/SerovalValue.css +0 -2
  34. package/dist/shared/dev-toolbar/functions/SerovalValue.d.ts +1 -1
  35. package/dist/shared/dev-toolbar/functions/SerovalValue.jsx +3 -3
  36. package/dist/shared/dev-toolbar/functions/SerovalViewer.css +0 -1
  37. package/dist/shared/dev-toolbar/functions/URLSearchParamsViewer.d.ts +1 -1
  38. package/dist/shared/dev-toolbar/functions/URLSearchParamsViewer.jsx +5 -7
  39. package/dist/shared/dev-toolbar/functions/styles.css +0 -1
  40. package/dist/shared/dev-toolbar/index.jsx +5 -0
  41. package/dist/shared/ui/Badge.css +0 -1
  42. package/dist/shared/ui/Badge.d.ts +3 -3
  43. package/dist/shared/ui/Badge.jsx +3 -3
  44. package/dist/shared/ui/Button.jsx +1 -1
  45. package/dist/shared/ui/Cascade.jsx +3 -3
  46. package/dist/shared/ui/Dialog.css +1 -2
  47. package/dist/shared/ui/Dialog.jsx +3 -3
  48. package/dist/shared/ui/IconButton.jsx +1 -1
  49. package/dist/shared/ui/Placeholder.css +1 -1
  50. package/dist/shared/ui/Placeholder.d.ts +2 -2
  51. package/dist/shared/ui/Placeholder.jsx +2 -4
  52. package/dist/shared/ui/Section.css +0 -1
  53. package/dist/shared/ui/Section.d.ts +2 -2
  54. package/dist/shared/ui/Section.jsx +3 -5
  55. package/dist/shared/ui/Select.jsx +3 -3
  56. package/dist/shared/ui/Table.d.ts +6 -6
  57. package/dist/shared/ui/Table.jsx +5 -5
  58. package/dist/shared/ui/Tabs.jsx +4 -4
  59. package/dist/shared/ui/Text.css +7 -3
  60. package/dist/shared/ui/Text.d.ts +8 -8
  61. package/dist/shared/ui/Text.jsx +9 -9
  62. package/package.json +28 -27
@@ -24,13 +24,17 @@
24
24
  }
25
25
 
26
26
  [data-start-text-font="sans"] {
27
- font-family: system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
27
+ font-family:
28
+ system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
29
+ "Noto Color Emoji";
28
30
  }
29
31
  [data-start-text-font="serif"] {
30
- font-family: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
32
+ font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
31
33
  }
32
34
  [data-start-text-font="mono"] {
33
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
35
+ font-family:
36
+ ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
37
+ monospace;
34
38
  }
35
39
 
36
40
  [data-start-text-weight="thin"] {
@@ -1,12 +1,12 @@
1
- import { type ComponentProps, type JSX } from 'solid-js';
2
- import './Text.css';
3
- export type TextProps<T extends keyof JSX.IntrinsicElements = 'span'> = ComponentProps<T> & {
1
+ import { type ComponentProps, type JSX } from "solid-js";
2
+ import "./Text.css";
3
+ export type TextProps<T extends keyof JSX.IntrinsicElements = "span"> = ComponentProps<T> & {
4
4
  options?: {
5
5
  as?: T;
6
- size?: 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl';
7
- font?: 'sans' | 'serif' | 'mono';
8
- weight?: 'thin' | 'extralight' | 'light' | 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold';
9
- wrap?: 'wrap' | 'nowrap';
6
+ size?: "xs" | "sm" | "base" | "lg" | "xl" | "2xl";
7
+ font?: "sans" | "serif" | "mono";
8
+ weight?: "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "bold" | "extrabold";
9
+ wrap?: "wrap" | "nowrap";
10
10
  };
11
11
  };
12
- export declare function Text<T extends keyof JSX.IntrinsicElements = 'span'>(props: TextProps<T>): JSX.Element;
12
+ export declare function Text<T extends keyof JSX.IntrinsicElements = "span">(props: TextProps<T>): JSX.Element;
@@ -1,17 +1,17 @@
1
- import { createMemo, splitProps } from 'solid-js';
2
- import { Dynamic } from 'solid-js/web';
3
- import './Text.css';
1
+ import { createMemo, splitProps } from "solid-js";
2
+ import { Dynamic } from "solid-js/web";
3
+ import "./Text.css";
4
4
  export function Text(props) {
5
- const [current, rest] = splitProps(props, ['options']);
5
+ const [current, rest] = splitProps(props, ["options"]);
6
6
  const customization = createMemo(() => {
7
7
  const options = Object.assign({}, {
8
- size: 'base',
9
- font: 'mono',
10
- weight: 'normal',
11
- wrap: 'wrap',
8
+ size: "base",
9
+ font: "mono",
10
+ weight: "normal",
11
+ wrap: "wrap",
12
12
  }, current.options);
13
13
  const entries = Object.entries(options);
14
14
  return Object.fromEntries(entries.map(([key, value]) => [`data-start-text-${key}`, value]));
15
15
  });
16
- return (<Dynamic component={(current.options?.as || 'span')} {...rest} {...customization()}/>);
16
+ return (<Dynamic component={(current.options?.as || "span")} {...rest} {...customization()}/>);
17
17
  }
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@solidjs/start",
3
- "version": "2.0.0-rc.3",
4
- "type": "module",
5
- "files": [
6
- "dist",
7
- "env.d.ts",
8
- "CHANGELOG.md"
9
- ],
3
+ "version": "2.0.0-rc.5",
10
4
  "repository": {
11
5
  "type": "git",
12
6
  "url": "git+https://github.com/solidjs/solid-start.git",
13
7
  "directory": "packages/start"
14
8
  },
9
+ "files": [
10
+ "dist",
11
+ "env.d.ts",
12
+ "CHANGELOG.md"
13
+ ],
14
+ "type": "module",
15
15
  "exports": {
16
16
  ".": "./dist/index.jsx",
17
17
  "./config": "./dist/config/index.js",
@@ -24,50 +24,51 @@
24
24
  "./http": "./dist/http/index.js",
25
25
  "./env": "./env.d.ts",
26
26
  "./fns/server": "./dist/fns/server.js",
27
- "./fns/client": "./dist/fns/client.js"
27
+ "./fns/client": "./dist/fns/client.js",
28
+ "./serialization": "./dist/fns/plugins.js"
28
29
  },
29
30
  "publishConfig": {
30
31
  "access": "public"
31
32
  },
32
33
  "dependencies": {
33
- "@babel/core": "^7.29.0",
34
- "@babel/traverse": "^7.29.0",
35
- "@babel/types": "^7.29.0",
34
+ "@babel/core": "^7.29.7",
35
+ "@babel/traverse": "^7.29.7",
36
+ "@babel/types": "^7.29.7",
36
37
  "@solidjs/meta": "^0.29.4",
37
38
  "@types/babel__traverse": "^7.28.0",
38
39
  "@types/micromatch": "^4.0.10",
39
- "cookie-es": "^2.0.0",
40
- "defu": "^6.1.4",
40
+ "cookie-es": "^3.1.1",
41
+ "defu": "^6.1.7",
41
42
  "error-stack-parser": "^2.1.4",
42
43
  "fast-glob": "^3.3.3",
43
44
  "h3": "^2.0.1-rc.26",
44
45
  "html-to-image": "^1.11.13",
45
46
  "micromatch": "^4.0.8",
46
- "oxc-parser": "^0.139.0",
47
- "path-to-regexp": "^8.3.0",
47
+ "oxc-parser": "^0.141.0",
48
+ "path-to-regexp": "^8.4.2",
48
49
  "pathe": "^2.0.3",
49
50
  "radix3": "^1.1.2",
50
- "seroval": "^1.5.4",
51
- "seroval-plugins": "^1.5.1",
52
- "shiki": "^1.29.2",
53
- "solid-js": "^1.9.11",
51
+ "seroval": "^1.5.6",
52
+ "seroval-plugins": "^1.5.6",
53
+ "shiki": "^4.3.1",
54
+ "solid-js": "^1.9.14",
54
55
  "source-map-js": "^1.2.1",
55
- "srvx": "^0.12.0",
56
+ "srvx": "^0.12.4",
56
57
  "terracotta": "^1.1.1",
57
- "vite-plugin-solid": "^2.11.11"
58
- },
59
- "engines": {
60
- "node": ">=24"
58
+ "vite-plugin-solid": "^2.11.13"
61
59
  },
62
60
  "devDependencies": {
63
61
  "@types/babel__core": "^7.20.5",
64
- "@types/node": "^25.5.0",
65
- "vite": "^8.0.0",
66
- "vitest": "^4.1.0"
62
+ "@types/node": "^26.1.1",
63
+ "vite": "^8.1.5",
64
+ "vitest": "^4.1.10"
67
65
  },
68
66
  "peerDependencies": {
69
67
  "vite": "^8 || ^9"
70
68
  },
69
+ "engines": {
70
+ "node": ">=24"
71
+ },
71
72
  "scripts": {
72
73
  "build": "pnpm validate-imports && tsc && node scripts/build.js",
73
74
  "dev": "tsc --watch",