@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.
Files changed (2) hide show
  1. package/README.md +14 -13
  2. 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
- emroute ships two filesystem runtimes:
122
-
123
- - **`UniversalFsRuntime`** — uses only `node:` APIs and esbuild. Works on Node,
124
- Deno, and Bun. The default choice for getting started.
125
- - **`BunFsRuntime`** uses Bun-native APIs (`Bun.file()`, `Bun.write()`,
126
- `Bun.Transpiler`) for better I/O performance in production on Bun.
127
-
128
- emroute ships TypeScript source. Your runtime must handle `.ts` imports natively
129
- (Bun, Deno) or via a loader (`tsx`, `node --experimental-strip-types`).
130
-
131
- emroute 1.5.x shipped on JSR (Deno's registry). Starting with 1.6.0, emroute
132
- publishes to npm. Full analysis:
133
- [ADR-0017 — Move to Bun ecosystem](doc/architecture/ADR-0017-move-to-bun-ecosystem.md).
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.1-beta.2",
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",