Skip to content

Commit fdeaa45

Browse files
authored
fix: label Solid 2.0 as RC (#86)
1 parent c9ee5c8 commit fdeaa45

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎.changeset/solid-v2-templates.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Solid 2.0 template support
77

8-
- New "Solid 2.0" top-level project type scaffolding the `solid-v2/*` templates from solidjs/templates (basic, bare, fullstack, fullstack-tanstack, with-\*). Listed first but not preselected while Solid 2.0 core is in beta; existing flags (`-s`, `-v`, `-l`, `--v2`) keep their meaning, plus new `--solid` and `--ssr` flags.
8+
- New "Solid 2.0" top-level project type scaffolding the `solid-v2/*` templates from solidjs/templates (basic, bare, fullstack, fullstack-tanstack, with-\*). Listed first but not preselected while Solid 2.0 core is a release candidate; existing flags (`-s`, `-v`, `-l`, `--v2`) keep their meaning, plus new `--solid` and `--ssr` flags.
99
- Optional streaming SSR on templates that support it (currently `basic`): a scaffold-time flip that sets `ssr: true` in `vite.config.ts`, adds the generic production `server.js`, and points the `start` script at it. Defaults to No.
1010
- JavaScript variants of the Solid 2.0 templates via the existing sucrase TS→JS conversion (no `index.html` rewrite; `.ts`/`.tsx` references inside `vite.config` are retargeted, `.d.ts` files dropped, minimal `jsconfig.json`).
1111
- Template lists, subdir paths and per-template flags are now read from a `templates.json` manifest at the templates repo HEAD (2s timeout), with silent fallback to the baked-in lists — so new templates and future repo reorganizations no longer require a CLI release.

‎packages/create/src/index.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { readFile, writeFile } from "node:fs/promises";
1414
export { createVanilla, createStart, createLibrary, createSolidV2 };
1515

1616
const PROJECT_TYPE_LABELS: Record<ProjectType, string> = {
17-
solid: "Solid 2.0 (Beta)",
17+
solid: "Solid 2.0 (RC)",
1818
start: "SolidStart (Solid 1.x)",
1919
vanilla: "SolidJS + Vite (Solid 1.x)",
2020
library: "Library",
@@ -132,7 +132,7 @@ export const createSolid = (version: string) =>
132132
projectType ??= await cancelable(
133133
p.select({
134134
message: "What type of project would you like to create?",
135-
// Solid 2.0 is listed first but not preselected while core is in beta
135+
// Solid 2.0 is listed first but not preselected while core is a release candidate
136136
initialValue: "start",
137137
options: PROJECT_TYPES.map((t) => ({
138138
value: t,

‎packages/create/src/utils/constants.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export const LIBRARY_TEMPLATES = ["solid-lib-starter"] as const satisfies string
134134
export type LibraryTemplate = (typeof LIBRARY_TEMPLATES)[number];
135135

136136
// "solid" (Solid 2.0) is listed first, but "start" remains the preselected
137-
// default while Solid 2.0 core is in beta
137+
// default while Solid 2.0 core is a release candidate
138138
export const PROJECT_TYPES = ["solid", "start", "vanilla", "library"] as const satisfies string[];
139139
export type ProjectType = (typeof PROJECT_TYPES)[number];
140140

0 commit comments

Comments
 (0)