@rshono/core 1.0.0-rc.5 → 1.0.0-rc.7

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 (41) hide show
  1. package/README.md +165 -164
  2. package/dist/config.d.ts +45 -1
  3. package/dist/config.d.ts.map +1 -1
  4. package/dist/config.js +17 -1
  5. package/dist/config.js.map +1 -1
  6. package/dist/deploy/contract.d.ts +12 -7
  7. package/dist/deploy/contract.d.ts.map +1 -1
  8. package/dist/deploy/contract.js.map +1 -1
  9. package/dist/index.d.ts +2 -0
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +2 -0
  12. package/dist/index.js.map +1 -1
  13. package/dist/router.d.ts +67 -24
  14. package/dist/router.d.ts.map +1 -1
  15. package/dist/router.js.map +1 -1
  16. package/dist/runtime/boundaries.d.ts +10 -0
  17. package/dist/runtime/boundaries.d.ts.map +1 -1
  18. package/dist/runtime/boundaries.js +6 -0
  19. package/dist/runtime/boundaries.js.map +1 -1
  20. package/dist/runtime/client.d.ts +5 -3
  21. package/dist/runtime/client.d.ts.map +1 -1
  22. package/dist/runtime/client.js +5 -3
  23. package/dist/runtime/client.js.map +1 -1
  24. package/dist/runtime/context.d.ts +165 -23
  25. package/dist/runtime/context.d.ts.map +1 -1
  26. package/dist/runtime/context.js +244 -24
  27. package/dist/runtime/context.js.map +1 -1
  28. package/dist/runtime/entry.client.js +49 -9
  29. package/dist/runtime/entry.client.js.map +1 -1
  30. package/dist/runtime/entry.rsc.d.ts.map +1 -1
  31. package/dist/runtime/entry.rsc.js +7 -2
  32. package/dist/runtime/entry.rsc.js.map +1 -1
  33. package/dist/runtime/navigation.d.ts +11 -0
  34. package/dist/runtime/navigation.d.ts.map +1 -1
  35. package/dist/runtime/navigation.js +3 -0
  36. package/dist/runtime/navigation.js.map +1 -1
  37. package/dist/runtime/server.d.ts +4 -10
  38. package/dist/runtime/server.d.ts.map +1 -1
  39. package/dist/runtime/server.js +10 -10
  40. package/dist/runtime/server.js.map +1 -1
  41. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/runtime/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EACL,iBAAiB,EACjB,QAAQ,EACR,aAAa,EACb,QAAQ,GAST,MAAM,cAAc,CAAC","sourcesContent":["/**\n * `@rshono/core/server` — the request-scoped surface, for use inside server components\n * and `'use server'` action modules: {@link getRequestContext} for the URL, cookies,\n * params, env and middleware variables, the {@link redirect} and {@link notFound}\n * control-flow helpers, and {@link onServerError} for reporting the errors the\n * framework catches.\n *\n * Server-only. Importing this from a `'use client'` module is a mistake — those\n * run in the browser (and are SSR'd without a bound context). Read what you need\n * on the server and pass it down as props, or use `useNavigation()` from\n * `@rshono/core/client` for URL data.\n *\n * A barrel rather than `./context.js` itself, which is where all of this is\n * implemented: that module also exports the plumbing the framework's own entry\n * points need (`runWithContext`, `readParams`, `publicUrl`, `reportServerError`),\n * and pointing the `./server` subpath straight at it published every one of them —\n * `@internal` in the docs, but present in a consumer's autocomplete and pinned by\n * semver all the same. They stay reachable by relative import, which is the only\n * way the framework itself ever reaches them.\n *\n * @packageDocumentation\n */\n\nexport {\n getRequestContext,\n notFound,\n onServerError,\n redirect,\n type EnvVars,\n type RedirectStatus,\n // A type, not a value: `RequestContext` is handed to you by `getRequestContext()` or the `ctx` page\n // prop — one instance per request — and is never constructed by application code.\n type RequestContext,\n type ServerErrorContext,\n type ServerErrorHandler,\n type ServerErrorSource,\n} from './context.js';\n"]}
1
+ {"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/runtime/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,qGAAqG;AACrG,mGAAmG;AACnG,kGAAkG;AAClG,mGAAmG;AACnG,4FAA4F;AAC5F,sCAAsC;AACtC,OAAO,EACL,iBAAiB,EACjB,QAAQ,EACR,aAAa,EACb,QAAQ,GAST,MAAM,cAAc,CAAC","sourcesContent":["/**\n * `@rshono/core/server` — the request-scoped surface, for use inside server components\n * and `'use server'` action modules: `getRequestContext()` for the URL, cookies,\n * params, env and middleware variables, the `redirect()` and `notFound()`\n * control-flow helpers, and `onServerError()` for reporting the errors the\n * framework catches.\n *\n * Server-only. Importing this from a `'use client'` module is a mistake — those\n * run in the browser (and are SSR'd without a bound context). Read what you need\n * on the server and pass it down as props, or use `useNavigation()` from\n * `@rshono/core/client` for URL data.\n *\n * @see {@link https://www.rshono.com/docs/api#rshonocoreserver | Docs — `@rshono/core/server`}\n *\n * @packageDocumentation\n */\n\n// A barrel rather than `./context.js` itself, which is where all of this is implemented: that module\n// also exports the plumbing the framework's own entry points need (`runWithContext`, `readParams`,\n// `publicUrl`, `reportServerError`), and pointing the `./server` subpath straight at it published\n// every one of them — `@internal` in the docs, but present in a consumer's autocomplete and pinned\n// by semver all the same. They stay reachable by relative import, which is the only way the\n// framework itself ever reaches them.\nexport {\n getRequestContext,\n notFound,\n onServerError,\n redirect,\n type EnvVars,\n type RedirectStatus,\n // A type, not a value: `RequestContext` is handed to you by `getRequestContext()` or the `ctx` page\n // prop — one instance per request — and is never constructed by application code.\n type RequestContext,\n type ServerErrorContext,\n type ServerErrorHandler,\n type ServerErrorSource,\n} from './context.js';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rshono/core",
3
- "version": "1.0.0-rc.5",
3
+ "version": "1.0.0-rc.7",
4
4
  "description": "Minimalist web framework — Hono + Rspack + React Server Components",
5
5
  "author": "Lasse <lasse@lassetange.com> (https://www.lassetange.com)",
6
6
  "license": "ISC",