@emkodev/emroute 1.7.1-beta.2 → 1.7.2
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.
- package/README.md +14 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -118,19 +118,20 @@ export default new ProjectPage();
|
|
|
118
118
|
|
|
119
119
|
## Runtimes
|
|
120
120
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
[ADR-0017
|
|
121
|
+
The router is storage-agnostic — it reads routes through a `Runtime` abstraction,
|
|
122
|
+
not the filesystem directly. emroute ships four runtimes:
|
|
123
|
+
|
|
124
|
+
- **`BunFsRuntime`** — Bun-native APIs (`Bun.file()`, `Bun.write()`,
|
|
125
|
+
`Bun.Transpiler`). The default choice for Bun projects.
|
|
126
|
+
- **`UniversalFsRuntime`** — `node:` APIs only. Works on Node, Deno, and Bun.
|
|
127
|
+
- **`BunSqliteRuntime`** — stores routes in a SQLite database. Proves the
|
|
128
|
+
storage-agnostic design: no filesystem needed.
|
|
129
|
+
- **`FetchRuntime`** — browser runtime that fetches files from a remote server.
|
|
130
|
+
Powers the SPA in `root` and `only` modes.
|
|
131
|
+
|
|
132
|
+
Bun runs TypeScript source directly. Node and Deno use the compiled JS from
|
|
133
|
+
`dist/`. See [ADR-0017](doc/architecture/ADR-0017-move-to-bun-ecosystem.md) for
|
|
134
|
+
the full analysis.
|
|
134
135
|
|
|
135
136
|
## Getting Started
|
|
136
137
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emkodev/emroute",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.2",
|
|
4
4
|
"description": "File-based (but storage-agnostic) router with triple rendering (SPA, SSR HTML, SSR Markdown). Zero dependencies.",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"author": "emko.dev",
|