Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SolidStart Beta 2 #1139

Merged
merged 167 commits into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from 141 commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
1914932
initial wip
ryansolid Aug 18, 2023
310ef6c
fixes
nksaraf Aug 18, 2023
08989a9
bump vinxi version
nksaraf Aug 18, 2023
a6d8161
add to gitignore
nksaraf Aug 18, 2023
27fd165
base ssr looking good
ryansolid Aug 22, 2023
c563cba
Merge branch 'main' of https://github.com/ryansolid/solid-start into …
ryansolid Aug 23, 2023
e1cddd1
cleanup lock file
ryansolid Aug 23, 2023
d666ced
update hackernews, fix streaming
ryansolid Aug 23, 2023
d0f517d
update tailwind example
ryansolid Aug 23, 2023
43b7f66
user config merge, solid-styles wip
ryansolid Aug 24, 2023
60e1b89
server actions with "use server" + working example in hackernews
nksaraf Aug 25, 2023
fbd4898
vinxi islands initial support
nksaraf Aug 26, 2023
82215d0
fix vinxi build issues
nksaraf Aug 26, 2023
8ceba52
refactor and fix typescript
nksaraf Aug 26, 2023
99d0b73
bump vinxi versions
nksaraf Aug 27, 2023
7f06b96
handle non function exports from use client
nksaraf Aug 28, 2023
2984ed7
temp: some stuff working
nksaraf Aug 30, 2023
51130e0
remove uncessary code
nksaraf Aug 30, 2023
d032e04
move middleware code to vinxi
nksaraf Aug 30, 2023
607bd69
refactorings
ryansolid Aug 30, 2023
76956a5
Merge branch 'main' of https://github.com/ryansolid/solid-start into …
ryansolid Aug 30, 2023
d7b17d9
merge
ryansolid Aug 30, 2023
909ca2e
ts adjustments
ryansolid Aug 30, 2023
698eea6
try to patch middleware
ryansolid Aug 31, 2023
e82749e
fix up hydration in style demos
ryansolid Sep 12, 2023
a2822d2
mdx work in progress
ryansolid Sep 12, 2023
6beb9a8
iterating on middleware (NOT DONE)
nksaraf Sep 13, 2023
db8d5ef
remove console logs
nksaraf Sep 13, 2023
61db683
use vinxi/plugin-mdx
nksaraf Sep 13, 2023
b687ab4
version bumps and mdx fixes
nksaraf Sep 13, 2023
86b70ee
fix mdx build
nksaraf Sep 13, 2023
9e8db83
solid mdx v0.0.7 (esm)
nksaraf Sep 14, 2023
3a1a2c1
update mdx example
ryansolid Sep 14, 2023
83f42eb
bump vinxi version
nksaraf Sep 15, 2023
e10bd2e
middleware examples
nksaraf Sep 15, 2023
5ed905f
fix a small issue with mdx imports
nksaraf Sep 15, 2023
7a8b665
middleware early return
nksaraf Sep 16, 2023
2f87586
various combinations of middleware
nksaraf Sep 16, 2023
eb81102
clean up hackernews example
ryansolid Sep 21, 2023
d910ef2
bump vinxi version and test inline server functions
nksaraf Oct 23, 2023
6ccad0c
fix plugin versions
nksaraf Oct 23, 2023
e399e29
Merge branch 'main' of https://github.com/ryansolid/solid-start into …
ryansolid Oct 23, 2023
ea66848
fix lock
ryansolid Oct 23, 2023
bc2714c
update versions
ryansolid Oct 23, 2023
e9b7242
upgrade vinxi version and use @vinxi/plugin-server-functions
nksaraf Oct 23, 2023
5f56bf1
update lock
ryansolid Oct 23, 2023
ce3bcc2
remove middleware for now
nksaraf Oct 23, 2023
006721e
remove islands in HN
ryansolid Oct 23, 2023
b82a008
remove SolidMeta from Start
ryansolid Oct 26, 2023
f711e71
Add async context to main handler
ryansolid Oct 27, 2023
730f0e0
clean up examples folder
ryansolid Oct 27, 2023
7b1f483
remove dependency on vinxi/solid
ryansolid Oct 27, 2023
3415944
bump vinxi dependencies to 0.0.39
nksaraf Oct 28, 2023
a082499
fix mdx example, pass extensions to fs-router
nksaraf Oct 28, 2023
f42ac55
add url to server-runtime, needs to be supported in the backend too
nksaraf Oct 28, 2023
222b15b
islands working in DEV (working on prod)
nksaraf Oct 28, 2023
d8fa77d
fix islands hackernews in PROD too
nksaraf Oct 28, 2023
9d65f3e
fix use server directive on windows (#1109)
edivados Nov 3, 2023
0d0e6b6
fix server actuons and added todos example with new router primitievs
nksaraf Nov 5, 2023
b1bed23
use import helper in lazy route and runtime path normalization (#1113)
edivados Nov 6, 2023
76859a0
Merge branch 'main' of https://github.com/ryansolid/solid-start into …
ryansolid Nov 7, 2023
ddad4e1
remove server context
ryansolid Nov 7, 2023
5dd1bdb
small fix
ryansolid Nov 7, 2023
b8c810e
remove solid router from start
ryansolid Nov 7, 2023
0adab2b
change to route pass through
ryansolid Nov 8, 2023
b4928c3
just playing
ryansolid Nov 8, 2023
6da6df3
docs wip
ryansolid Nov 8, 2023
c69bb6c
prep for publish
ryansolid Nov 15, 2023
2332d6a
fix cli
ryansolid Nov 15, 2023
f2fb898
update router
ryansolid Nov 15, 2023
976034d
update entries
ryansolid Nov 16, 2023
94e434e
update router, fix up hackernews
ryansolid Nov 17, 2023
5a7a4c8
deleting a bunch of stuff
ryansolid Nov 21, 2023
8dd6f09
update todomvc
ryansolid Nov 22, 2023
c13a146
add server function handler
ryansolid Nov 22, 2023
625069b
update solid version
ryansolid Nov 22, 2023
5c66f62
feat: new server functions (#1128)
lxsmnsyc Nov 23, 2023
9003aef
fix lock
ryansolid Nov 23, 2023
f420e12
server action -> server function
ryansolid Nov 23, 2023
333b9f1
fix up throwing responses
ryansolid Nov 27, 2023
7fa4719
fix
nksaraf Nov 27, 2023
32b8278
fix handler
nksaraf Nov 27, 2023
e24eccc
basic auth example direct actions
ryansolid Nov 27, 2023
f14d354
add persistent storage to todos example
ryansolid Nov 28, 2023
6418bea
action fixes
ryansolid Nov 29, 2023
c5244f1
update router
ryansolid Nov 29, 2023
b98b3c0
remove old auth example
ryansolid Nov 29, 2023
cd23fb3
Fix server function deserialization (#1131)
lxsmnsyc Nov 29, 2023
5ac61ce
small cleanup
ryansolid Nov 29, 2023
246d9d2
update todomvc to be progressive enhanceable
ryansolid Nov 29, 2023
fcd4a22
update headers
ryansolid Nov 29, 2023
0e196ae
vinxi update: inline server functions better working now
nksaraf Nov 30, 2023
7e97cd7
fix
nksaraf Nov 30, 2023
8ac7738
small updates
ryansolid Nov 30, 2023
8f72c02
update types in node example
ryansolid Dec 1, 2023
b058bce
update router
ryansolid Dec 1, 2023
84bc644
v0.4.0-alpha.1
ryansolid Dec 1, 2023
354a8f2
fix docs
nksaraf Dec 2, 2023
ac80081
bring docs pages back
nksaraf Dec 3, 2023
f4a40f7
bound actions
ryansolid Dec 4, 2023
92753eb
cleaning out some docs
ryansolid Dec 5, 2023
a28cbcd
docs updates
ryansolid Dec 5, 2023
b297e9b
updated session docs.. still broken? better H3 access
ryansolid Dec 6, 2023
652a474
fix CSR server functions, docs update
ryansolid Dec 6, 2023
ab65014
narrow serialization further
ryansolid Dec 6, 2023
5b9b0bb
small cleanup
ryansolid Dec 6, 2023
27bc318
update router
ryansolid Dec 6, 2023
9c14175
finish up docs for now
ryansolid Dec 6, 2023
b8c890a
update router
ryansolid Dec 7, 2023
26a750f
a bunch of fixes around API, server handling
ryansolid Dec 7, 2023
620b638
vite 5 support and router updates
ryansolid Dec 8, 2023
c639484
add trpc example
ryansolid Dec 8, 2023
c0a289c
fix passing ssr options through
ryansolid Dec 8, 2023
070abc9
add prisma example
ryansolid Dec 8, 2023
8f9da4e
move old examples not making it in (atleast initially)
ryansolid Dec 8, 2023
28acd90
set node as start script (for now?)
ryansolid Dec 8, 2023
e5004cc
disable test work flow (for now?)
ryansolid Dec 8, 2023
cb78e1c
add typecheck back in
ryansolid Dec 8, 2023
39bb62c
fix docs build (but probably not actual fix)
ryansolid Dec 8, 2023
366eeb9
v0.4.0-alpha.2
ryansolid Dec 8, 2023
6601d9f
add readme
ryansolid Dec 8, 2023
25297bd
fix types
ryansolid Dec 8, 2023
c434a73
fix TS in HN example
ryansolid Dec 11, 2023
950033b
v0.4.0-alpha.3
ryansolid Dec 11, 2023
9e40c67
fix editting in todo example
ryansolid Dec 11, 2023
ea9da6c
type fixes on hn demo
ryansolid Dec 11, 2023
48ffae3
fix client side prod build
ryansolid Dec 11, 2023
dd59931
v0.4.0-alpha.4
ryansolid Dec 11, 2023
6a3f730
fix cloudflare streaming
ryansolid Dec 12, 2023
3c3e06f
v0.4.0-alpha.5
ryansolid Dec 12, 2023
da6687e
update router
ryansolid Dec 13, 2023
8ef297d
update solid meta
ryansolid Dec 13, 2023
aeb583b
spa alias re-export server methods
ryansolid Dec 13, 2023
5b64fc1
update docs for prerendering
ryansolid Dec 13, 2023
3887f32
fix prerender
ryansolid Dec 14, 2023
fadc2ff
v0.4.0-alpha.6
ryansolid Dec 14, 2023
78a7373
fix grouped routes and named indexes
ryansolid Dec 14, 2023
e789de1
setup modulepreload anticipating vinxi update
ryansolid Dec 15, 2023
901f43f
update vinxi for preloading
ryansolid Dec 15, 2023
757e2d6
0.4.0-alpha.7
ryansolid Dec 15, 2023
202efe5
update gitignore
ryansolid Dec 15, 2023
cfbb6dd
fix ssr without router
ryansolid Dec 17, 2023
266b8b7
force promise on JSON serializing
ryansolid Dec 17, 2023
c008dd1
update router
ryansolid Dec 17, 2023
8200775
v0.4.0-alpha.8
ryansolid Dec 17, 2023
a0188e1
Better error when server function called outside request
ryansolid Dec 18, 2023
3483f4c
add solid option to start config to expose vite plugin
ryansolid Dec 18, 2023
190be0e
Cli is vinxi (#1145)
birkskyum Dec 18, 2023
1e40719
fix #805 logo link
ryansolid Dec 18, 2023
8816801
better fix
ryansolid Dec 18, 2023
c89a109
update router
ryansolid Dec 18, 2023
e742015
fix ssr: false in CLI
ryansolid Dec 18, 2023
55a4896
move tests to archived(for now)
ryansolid Dec 18, 2023
9cfa6d7
fix auth example
ryansolid Dec 18, 2023
97f2903
add persistence to auth example
ryansolid Dec 18, 2023
6c055d9
fix extending define and alias
ryansolid Dec 18, 2023
a6b62a0
add option to "async" ssr
ryansolid Dec 18, 2023
b7815ba
add config types (#1146)
brenelz Dec 19, 2023
37b5caa
add docs for `clientOnly`
ryansolid Dec 19, 2023
63e0c9c
fix docs
ryansolid Dec 19, 2023
d6be723
v0.4.0-alpha.9
ryansolid Dec 19, 2023
1477c4b
fix cli
ryansolid Dec 19, 2023
12b4c7e
v0.4.0-alpha.10
ryansolid Dec 19, 2023
0caf8a2
change vite config to ts
ryansolid Dec 19, 2023
cffad3f
change templates to be ssr true by default
ryansolid Dec 19, 2023
a5941f8
support JS projects
ryansolid Dec 19, 2023
92c09f6
v0.4.0-alpha.11
ryansolid Dec 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
178 changes: 89 additions & 89 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,103 +1,103 @@
name: 🧪 Test
# name: 🧪 Test

on:
push:
branches:
- main
- dev
- release-*
tags-ignore:
- v*
paths-ignore:
- "docs/**"
- "docs.root.tsx"
- "components/**"
- "**/README.md"
pull_request:
paths-ignore:
- "docs/**"
- "**/*.md"
# on:
# push:
# branches:
# - main
# - dev
# - release-*
# tags-ignore:
# - v*
# paths-ignore:
# - "docs/**"
# - "docs.root.tsx"
# - "components/**"
# - "**/README.md"
# pull_request:
# paths-ignore:
# - "docs/**"
# - "**/*.md"

env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_ACCOUNT_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
# env:
# CLOUDFLARE_API_TOKEN: ${{ secrets.CF_ACCOUNT_TOKEN }}
# CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}

jobs:
integration:
name: "👀 ${{ matrix.adapter }} (os: ${{ matrix.os }}, node: ${{ matrix.node-version }})"
# jobs:
# integration:
# name: "👀 ${{ matrix.adapter }} (os: ${{ matrix.os }}, node: ${{ matrix.node-version }})"

strategy:
fail-fast: false
matrix:
node-version: [18, 20]
adapter:
- solid-start-node
# - solid-start-cloudflare-workers
# - solid-start-cloudflare-pages
- solid-start-deno
os:
- ubuntu-latest
# - macos-latest
- windows-latest
include:
- os: ubuntu-latest
playwright_binary_path: ~/.cache/ms-playwright
# - os: macos-latest
# playwright_binary_path: ~/Library/Caches/ms-playwright
- os: windows-latest
playwright_binary_path: '~\\AppData\\Local\\ms-playwright'
# strategy:
# fail-fast: false
# matrix:
# node-version: [18, 20]
# adapter:
# - solid-start-node
# # - solid-start-cloudflare-workers
# # - solid-start-cloudflare-pages
# - solid-start-deno
# os:
# - ubuntu-latest
# # - macos-latest
# - windows-latest
# include:
# - os: ubuntu-latest
# playwright_binary_path: ~/.cache/ms-playwright
# # - os: macos-latest
# # playwright_binary_path: ~/Library/Caches/ms-playwright
# - os: windows-latest
# playwright_binary_path: '~\\AppData\\Local\\ms-playwright'

runs-on: ${{ matrix.os }}
# runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
# steps:
# - uses: actions/checkout@v2

- uses: pnpm/action-setup@v2.2.2
with:
version: 8
# - uses: pnpm/action-setup@v2.2.2
# with:
# version: 8

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
# cache: "pnpm"
# - name: Install dependencies
# run: pnpm install --frozen-lockfile

- name: Use Deno
if: matrix.adapter == 'solid-start-deno'
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
# - name: Use Deno
# if: matrix.adapter == 'solid-start-deno'
# uses: denoland/setup-deno@v1
# with:
# deno-version: v1.x

- name: 🕵️‍♂️ Get current Playwright version
id: playwright-version
shell: bash
run: |
playwright_version=1.38.1
echo "::set-output name=version::${playwright_version}"
# - name: 🕵️‍♂️ Get current Playwright version
# id: playwright-version
# shell: bash
# run: |
# playwright_version=1.38.1
# echo "::set-output name=version::${playwright_version}"

- name: 🤖 Cache Playwright binaries
uses: actions/cache@v3
id: playwright-cache
with:
path: ${{ matrix.playwright_binary_path }}
key: ${{ runner.os }}-${{ runner.arch }}-cache-playwright-${{ steps.playwright-version.outputs.version }}
# - name: 🤖 Cache Playwright binaries
# uses: actions/cache@v3
# id: playwright-cache
# with:
# path: ${{ matrix.playwright_binary_path }}
# key: ${{ runner.os }}-${{ runner.arch }}-cache-playwright-${{ steps.playwright-version.outputs.version }}

- name: 🖨️ Playwright info
shell: bash
run: |
echo "OS: ${{ matrix.os }}"
echo "Playwright version: ${{ steps.playwright-version.outputs.version }}"
echo "Playwright install dir: ${{ matrix.playwright_binary_path }}"
echo "Cache key: ${{ runner.os }}-${{ runner.arch }}-cache-playwright-${{ steps.playwright-version.outputs.version }}"
echo "Cache hit: ${{ steps.playwright-cache.outputs.cache-hit == 'true' }}"
# - name: 🖨️ Playwright info
# shell: bash
# run: |
# echo "OS: ${{ matrix.os }}"
# echo "Playwright version: ${{ steps.playwright-version.outputs.version }}"
# echo "Playwright install dir: ${{ matrix.playwright_binary_path }}"
# echo "Cache key: ${{ runner.os }}-${{ runner.arch }}-cache-playwright-${{ steps.playwright-version.outputs.version }}"
# echo "Cache hit: ${{ steps.playwright-cache.outputs.cache-hit == 'true' }}"

- name: 📥 Install Playwright
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: pnpm --filter solid-start-tests install:playwright
# - name: 📥 Install Playwright
# if: steps.playwright-cache.outputs.cache-hit != 'true'
# run: pnpm --filter solid-start-tests install:playwright

- name: 👀 Run Integration Tests
env:
START_ADAPTER: ${{ matrix.adapter }}
run: npm run test
# - name: 👀 Run Integration Tests
# env:
# START_ADAPTER: ${{ matrix.adapter }}
# run: npm run test
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ types/
.turbo
.nitro
.output
.vinxi

packages/create-solid/bin
*.log
Expand Down Expand Up @@ -45,3 +46,6 @@ netlify
.vercel

vite.config.ts.timestamp*

.nitro
.output
2 changes: 0 additions & 2 deletions components/A.tsx

This file was deleted.

54 changes: 0 additions & 54 deletions docs/advanced/middleware.mdx

This file was deleted.

Loading
Loading