diff --git a/.changeset/clever-jars-explode.md b/.changeset/clever-jars-explode.md deleted file mode 100644 index b97def8e0..000000000 --- a/.changeset/clever-jars-explode.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/start": patch ---- - -Omit some keys from Vite server config diff --git a/.changeset/fifty-shrimps-cross.md b/.changeset/fifty-shrimps-cross.md deleted file mode 100644 index b8e68b24e..000000000 --- a/.changeset/fifty-shrimps-cross.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/start": patch ---- - -Pass event to getResponseStatus in set statusCode diff --git a/.changeset/quiet-mirrors-judge.md b/.changeset/quiet-mirrors-judge.md new file mode 100644 index 000000000..0c66999de --- /dev/null +++ b/.changeset/quiet-mirrors-judge.md @@ -0,0 +1,5 @@ +--- +"@solidjs/start": patch +--- + +Fixed fetchEvent flakyness by storing the event in h3 context. diff --git a/.changeset/flat-mugs-travel.md b/.changeset/thin-swans-yell.md similarity index 50% rename from .changeset/flat-mugs-travel.md rename to .changeset/thin-swans-yell.md index 7f3c4211c..5ddc5be6e 100644 --- a/.changeset/flat-mugs-travel.md +++ b/.changeset/thin-swans-yell.md @@ -2,4 +2,4 @@ "@solidjs/start": patch --- -Set X-Error for thrown Responses +encode api url components diff --git a/.github/workflows/doc-checks.yml b/.github/workflows/cr.yml similarity index 67% rename from .github/workflows/doc-checks.yml rename to .github/workflows/cr.yml index 6f8e4acce..55ec0c481 100644 --- a/.github/workflows/doc-checks.yml +++ b/.github/workflows/cr.yml @@ -1,19 +1,15 @@ -name: 📜 Docs Checks +name: ⚡️ Continuous Releases on: - merge_group: - pull_request: - paths: - - "docs/**" - - "package.json" - - "pnpm-lock.yaml" - + push: branches: - main + merge_group: + pull_request: jobs: - docs: - name: "📜 Docs successfully build" + cr: + name: "⚡️ Continuous Releases" strategy: fail-fast: false @@ -37,7 +33,7 @@ jobs: run: pnpm install --frozen-lockfile - name: Build start - run: pnpm run build + run: pnpm run build:all - - name: Build docs - run: pnpm run docs:build + - name: Release + run: pnpm dlx pkg-pr-new@0.0 publish './packages/start' --template './examples/*' --compact diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/docs.yml similarity index 75% rename from .github/workflows/deploy-docs.yml rename to .github/workflows/docs.yml index 86d0d93c1..17bea77ae 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/docs.yml @@ -4,13 +4,19 @@ on: push: branches: - main + merge_group: + pull_request: + paths: + - "docs/**" + - "package.json" + - "pnpm-lock.yaml" env: CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} jobs: docs: - name: "📜 Deploy Docs" + name: "📜 Docs" strategy: fail-fast: false @@ -41,6 +47,7 @@ jobs: env: TARGET: cloudflare_module - - run: npx wrangler deploy + - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + run: npx wrangler deploy env: WRANGLER_LOG: debug diff --git a/app.config.ts b/app.config.ts index 24c6033e7..f342043b3 100644 --- a/app.config.ts +++ b/app.config.ts @@ -7,6 +7,9 @@ export default defineConfig({ // experimental: { islands: true }, server: { preset: "cloudflare_module", + alias: { + "_mime": "mime/index.js" + }, rollupConfig: { external: ["__STATIC_CONTENT_MANIFEST", "node:async_hooks"] } diff --git a/docs/components/code-snippet.tsx b/docs/components/code-snippet.tsx index 110767a20..719d1b5f7 100644 --- a/docs/components/code-snippet.tsx +++ b/docs/components/code-snippet.tsx @@ -17,7 +17,7 @@ const getSolidStartVersion = async () => { export function CodeSnippet() { const [npmVersion] = createResource(() => getSolidStartVersion()); return ( -