Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/server-function-pages.md

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# filesystem-routing

## 0.4.0

### Minor Changes

- 4d628e2: Server-function pages, behind `serverComponents: true`: a route module whose default export begins with a `"use server"` directive is flagged `server: true` and its `$component` ref marked `eager` (picking only `default`), so the Vite adapter delivers the stub as a static import even with code splitting on and it is not a build input. A new `filesystem-routing/flags` module exposes scan facts (`serverRoutes`) for emission adapters to gate static imports on: the shipped file says `true`; the Vite plugin serves the scan's answer in builds, folded to a literal, so gated code tree-shakes out of apps with no server page. `ModuleRef.eager` and `RouteManifestEntry.server` are added to the neutral manifest; `analyzeRouteModule` returns the default export's directive alongside the exports. Off by default: existing manifests are unchanged.

## 0.3.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "filesystem-routing",
"description": "Router-neutral file-system routing: scans a route directory into a neutral route manifest with pluggable conventions and delivery adapters",
"license": "MIT",
"version": "0.3.1",
"version": "0.4.0",
"author": "Ryan Carniato",
"homepage": "https://github.com/solidjs/filesystem-routing#readme",
"repository": {
Expand Down