@fougere/transport-http 0.4.0-alpha.0 → 0.5.0-alpha.0

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/dist/policy.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * What every receiver of the envelope decides the same way, and what it does not.
3
3
  *
4
- * The cap and the answers are POLICY `1024 * 1024` was spelled in four packages and
5
- * omitted by the receiver written by hand. Reading the body is PLUMBING, and it belongs to
4
+ * The answers are POLICY. The CAP is core's (`wire/call.ts`) — it was spelled in four packages
5
+ * and omitted by the receiver written by hand, and this file claimed to have consolidated it
6
+ * while three doors kept their own literal. Reading the body is PLUMBING, and it belongs to
6
7
  * the transport: a `node:http` stream and a `Request` body are read differently, and putting
7
8
  * Node through the Web reader HALVED the door that took it (measured, 2026-08-22: the JSON-RPC
8
9
  * door fell from 0.677 to 0.341 of its hand-written baseline, while the REST door, which never
@@ -11,8 +12,8 @@
11
12
  * So this file holds the decisions. Each receiver keeps its own reader.
12
13
  */
13
14
  import { type RpcResponse } from './jsonrpc.js';
14
- /** What a receiver accepts before it stops reading. */
15
- export declare const MAX_BODY_BYTES: number;
15
+ /** What a receiver accepts before it stops reading — declared by core, re-exported here. */
16
+ export { MAX_BODY_BYTES } from '@fougere/core';
16
17
  /** The path the envelope answers on. A host mounting it elsewhere passes its own. */
17
18
  export declare const CALL_PATH = "/_fougere/call";
18
19
  /** The answer to a payload that was not JSON. */
@@ -1 +1 @@
1
- {"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../src/policy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAE7D,uDAAuD;AACvD,eAAO,MAAM,cAAc,QAAc,CAAC;AAE1C,qFAAqF;AACrF,eAAO,MAAM,SAAS,mBAAmB,CAAC;AAE1C,iDAAiD;AACjD,eAAO,MAAM,UAAU,QAAO,WAI5B,CAAC;AAEH,yCAAyC;AACzC,eAAO,MAAM,QAAQ;IAAY,KAAK;CAAwB,CAAC"}
1
+ {"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../src/policy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAE7D,4FAA4F;AAC5F,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,qFAAqF;AACrF,eAAO,MAAM,SAAS,mBAAmB,CAAC;AAE1C,iDAAiD;AACjD,eAAO,MAAM,UAAU,QAAO,WAI5B,CAAC;AAEH,yCAAyC;AACzC,eAAO,MAAM,QAAQ;IAAY,KAAK;CAAwB,CAAC"}
package/dist/policy.js CHANGED
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * What every receiver of the envelope decides the same way, and what it does not.
3
3
  *
4
- * The cap and the answers are POLICY `1024 * 1024` was spelled in four packages and
5
- * omitted by the receiver written by hand. Reading the body is PLUMBING, and it belongs to
4
+ * The answers are POLICY. The CAP is core's (`wire/call.ts`) — it was spelled in four packages
5
+ * and omitted by the receiver written by hand, and this file claimed to have consolidated it
6
+ * while three doors kept their own literal. Reading the body is PLUMBING, and it belongs to
6
7
  * the transport: a `node:http` stream and a `Request` body are read differently, and putting
7
8
  * Node through the Web reader HALVED the door that took it (measured, 2026-08-22: the JSON-RPC
8
9
  * door fell from 0.677 to 0.341 of its hand-written baseline, while the REST door, which never
@@ -11,8 +12,8 @@
11
12
  * So this file holds the decisions. Each receiver keeps its own reader.
12
13
  */
13
14
  import { PARSE_ERROR } from './jsonrpc.js';
14
- /** What a receiver accepts before it stops reading. */
15
- export const MAX_BODY_BYTES = 1024 * 1024;
15
+ /** What a receiver accepts before it stops reading — declared by core, re-exported here. */
16
+ export { MAX_BODY_BYTES } from '@fougere/core';
16
17
  /** The path the envelope answers on. A host mounting it elsewhere passes its own. */
17
18
  export const CALL_PATH = '/_fougere/call';
18
19
  /** The answer to a payload that was not JSON. */
@@ -1 +1 @@
1
- {"version":3,"file":"policy.js","sourceRoot":"","sources":["../src/policy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,WAAW,EAAoB,MAAM,cAAc,CAAC;AAE7D,uDAAuD;AACvD,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,CAAC;AAE1C,qFAAqF;AACrF,MAAM,CAAC,MAAM,SAAS,GAAG,gBAAgB,CAAC;AAE1C,iDAAiD;AACjD,MAAM,CAAC,MAAM,UAAU,GAAG,GAAgB,EAAE,CAAC,CAAC;IAC5C,OAAO,EAAE,KAAK;IACd,EAAE,EAAE,IAAI;IACR,KAAK,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa,EAAE;CACrD,CAAC,CAAC;AAEH,yCAAyC;AACzC,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,mBAAmB,EAAE,CAAC,CAAC"}
1
+ {"version":3,"file":"policy.js","sourceRoot":"","sources":["../src/policy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,WAAW,EAAoB,MAAM,cAAc,CAAC;AAE7D,4FAA4F;AAC5F,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,qFAAqF;AACrF,MAAM,CAAC,MAAM,SAAS,GAAG,gBAAgB,CAAC;AAE1C,iDAAiD;AACjD,MAAM,CAAC,MAAM,UAAU,GAAG,GAAgB,EAAE,CAAC,CAAC;IAC5C,OAAO,EAAE,KAAK;IACd,EAAE,EAAE,IAAI;IACR,KAAK,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa,EAAE;CACrD,CAAC,CAAC;AAEH,yCAAyC;AACzC,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,mBAAmB,EAAE,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fougere/transport-http",
3
- "version": "0.4.0-alpha.0",
3
+ "version": "0.5.0-alpha.0",
4
4
  "description": "The call contract on the wire, in JSON-RPC 2.0 (server + client).",
5
5
  "keywords": [
6
6
  "fougere",
@@ -38,12 +38,12 @@
38
38
  "src"
39
39
  ],
40
40
  "dependencies": {
41
- "@fougere/core": "0.4.0-alpha.0"
41
+ "@fougere/core": "0.5.0-alpha.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "jiti": "^2.6.1",
45
- "@fougere/schema": "0.4.0-alpha.0",
46
- "@fougere/container": "0.4.0-alpha.0"
45
+ "@fougere/container": "0.5.0-alpha.0",
46
+ "@fougere/schema": "0.5.0-alpha.0"
47
47
  },
48
48
  "publishConfig": {
49
49
  "access": "public"
package/src/policy.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * What every receiver of the envelope decides the same way, and what it does not.
3
3
  *
4
- * The cap and the answers are POLICY `1024 * 1024` was spelled in four packages and
5
- * omitted by the receiver written by hand. Reading the body is PLUMBING, and it belongs to
4
+ * The answers are POLICY. The CAP is core's (`wire/call.ts`) — it was spelled in four packages
5
+ * and omitted by the receiver written by hand, and this file claimed to have consolidated it
6
+ * while three doors kept their own literal. Reading the body is PLUMBING, and it belongs to
6
7
  * the transport: a `node:http` stream and a `Request` body are read differently, and putting
7
8
  * Node through the Web reader HALVED the door that took it (measured, 2026-08-22: the JSON-RPC
8
9
  * door fell from 0.677 to 0.341 of its hand-written baseline, while the REST door, which never
@@ -12,8 +13,8 @@
12
13
  */
13
14
  import { PARSE_ERROR, type RpcResponse } from './jsonrpc.js';
14
15
 
15
- /** What a receiver accepts before it stops reading. */
16
- export const MAX_BODY_BYTES = 1024 * 1024;
16
+ /** What a receiver accepts before it stops reading — declared by core, re-exported here. */
17
+ export { MAX_BODY_BYTES } from '@fougere/core';
17
18
 
18
19
  /** The path the envelope answers on. A host mounting it elsewhere passes its own. */
19
20
  export const CALL_PATH = '/_fougere/call';