docs(mesh): mesh may change in any release, and only within its own surface
Make the wording consistent: mesh is alpha and may change in any release. The JSDoc tags said 'a minor release' while the README said 'any'. State the rule mesh now follows. Its surface is the @experimental exports, MeshConfig and the mesh:* events. A mesh change stays inside that surface: it adds no createApp option, App method or decorator, and it changes no stable type. Mesh adapts to the stable API instead of moving it. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
11 files changed
+24
-24
No files matched your search
+4
-4
@@ -6,7 +6,7 @@ import type { ResponseShape } from '../pipeline';
|
||||
* Local proxy for a remote scope: runs the RPC and returns its token→value binding.
|
||||
*
|
||||
* @experimental Part of the mesh, which needs `createApp({ experimental: true })`: outside the
|
||||
* API freeze, so it may change in a minor release.
|
||||
* API freeze, so it may change in any release.
|
||||
*/
|
||||
export interface RemoteScopeNode {
|
||||
name: string;
|
||||
@@ -16,7 +16,7 @@ export interface RemoteScopeNode {
|
||||
* Local proxy for a remote route: forwards the request envelope over the link.
|
||||
*
|
||||
* @experimental Part of the mesh, which needs `createApp({ experimental: true })`: outside the
|
||||
* API freeze, so it may change in a minor release.
|
||||
* API freeze, so it may change in any release.
|
||||
*/
|
||||
export interface RemoteRoute {
|
||||
method: string;
|
||||
@@ -32,7 +32,7 @@ export interface RemoteRoute {
|
||||
* and its events on the far side join the same trace instead of starting a new one.
|
||||
*
|
||||
* @experimental Part of the mesh, which needs `createApp({ experimental: true })`: outside the
|
||||
* API freeze, so it may change in a minor release.
|
||||
* API freeze, so it may change in any release.
|
||||
*/
|
||||
export function envelopeFrom(ctx: any): RequestEnvelope {
|
||||
const req = ctx?.req;
|
||||
@@ -54,7 +54,7 @@ export function envelopeFrom(ctx: any): RequestEnvelope {
|
||||
* Turn a link's manifest into local proxy nodes: lazy request-scope steps, and routes.
|
||||
*
|
||||
* @experimental Part of the mesh, which needs `createApp({ experimental: true })`: outside the
|
||||
* API freeze, so it may change in a minor release.
|
||||
* API freeze, so it may change in any release.
|
||||
*/
|
||||
export function buildRemote(link: Link): { steps: RemoteScopeNode[]; routes: RemoteRoute[] } {
|
||||
const steps: RemoteScopeNode[] = link.manifest.steps.map((token) => ({
|
||||
|
||||
Reference in new issue
Block a user