@drfed/drfed 0.2.0-dev.639 → 0.2.0-dev.682
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 -57
- package/dist/commands/account.mjs +1 -1
- package/dist/commands/migrate.mjs +1 -1
- package/dist/commands/web.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/package-ZArhN_vY.mjs +6 -0
- package/dist/package-ZArhN_vY.mjs.map +1 -0
- package/package.json +10 -10
- package/dist/package-DKp_U5PU.mjs +0 -6
- package/dist/package-DKp_U5PU.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -70,22 +70,10 @@ drfed-server --root-origin http://drfed.localhost:8888 \
|
|
|
70
70
|
--data-path .pgdata
|
|
71
71
|
~~~~
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
| `<slug>.<root domain>` | ActivityPub only; GraphQL answers 404 |
|
|
78
|
-
| the public web authority | Frontend and exact `/graphql` |
|
|
79
|
-
| other control authorities | Exact `/graphql`; web paths are 421 |
|
|
80
|
-
| anything deeper under the root domain | 421 Misdirected Request |
|
|
81
|
-
| an unusable `Host` header | 400 Bad Request |
|
|
82
|
-
|
|
83
|
-
The authority has to match in full, port included. A request for
|
|
84
|
-
`foo.drfed.example.com:8888` against a root origin of
|
|
85
|
-
`https://drfed.example.com` does not name an instance and is served the control
|
|
86
|
-
surface, not a 404, so do not read the table above as isolating GraphQL by host
|
|
87
|
-
name alone. Ports 80 and 443 both count as no port at all, since which of them
|
|
88
|
-
is the default depends on a scheme that is deliberately not compared.
|
|
73
|
+
One-label instance authorities serve ActivityPub only. The public web
|
|
74
|
+
authority serves the frontend and `/graphql`; other control authorities serve
|
|
75
|
+
only `/graphql`. See [HTTP serving internals] for full authority
|
|
76
|
+
classification, port comparison and invalid-host responses.
|
|
89
77
|
|
|
90
78
|
The first-release reverse proxy contract preserves the original `Host` header.
|
|
91
79
|
Set the root origin's external scheme for federation and the public web
|
|
@@ -102,6 +90,8 @@ Changing the root origin after instances exist does not move them. Their host
|
|
|
102
90
|
names are already part of the actor URIs the rest of the fediverse has stored,
|
|
103
91
|
so the server only warns at startup about instances it can no longer reach.
|
|
104
92
|
|
|
93
|
+
[HTTP serving internals]: https://drfed.org/internals/http-serving
|
|
94
|
+
|
|
105
95
|
|
|
106
96
|
Login origins
|
|
107
97
|
-------------
|
|
@@ -384,51 +374,19 @@ It does not publish anything to npm.
|
|
|
384
374
|
Resource ownership
|
|
385
375
|
------------------
|
|
386
376
|
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
owned resources in reverse order. Cleanup continues if one resource fails;
|
|
391
|
-
startup errors retain their original cause. SIGTERM allows ten seconds for
|
|
392
|
-
shutdown and force-closes stalled HTTP connections after five seconds.
|
|
393
|
-
|
|
394
|
-
The `@drfed/drfed/resources` and `@drfed/drfed/operations` subpaths export
|
|
395
|
-
`ResourceOwner` and `OperationRegistry` for code that manages its own runtime.
|
|
396
|
-
Register borrowed resources with `owned: false`; the owner leaves them open.
|
|
397
|
-
Operations receive a shared abort signal and remain tracked until their
|
|
398
|
-
promises settle. HTTP response streams in the CLI remain drained by srvx.
|
|
399
|
-
|
|
400
|
-
The CLI also tracks GraphQL context loading and field/type resolvers separately
|
|
401
|
-
from the HTTP handler. [Yoga execution cancellation] stops further execution
|
|
402
|
-
when a client disconnects, but a resolver already waiting on a database or mail
|
|
403
|
-
operation can still be running. Its resources remain open until it settles.
|
|
404
|
-
|
|
405
|
-
Use `run()` to admit new work and `track()` only for continuations of requests
|
|
406
|
-
already accepted. Stop admitting requests and stop background producers before
|
|
407
|
-
calling `drain()`. Draining also waits for continuations registered during
|
|
408
|
-
shutdown, so an accepted GraphQL response can finish during the grace period.
|
|
377
|
+
`@drfed/drfed/resources` and `@drfed/drfed/operations` expose `ResourceOwner`
|
|
378
|
+
and `OperationRegistry`. See [runtime lifecycle internals] for
|
|
379
|
+
acquisition, cancellation, draining, borrowed resources and shutdown deadlines.
|
|
409
380
|
|
|
410
|
-
[
|
|
381
|
+
[runtime lifecycle internals]: https://drfed.org/internals/runtime-lifecycle
|
|
411
382
|
|
|
412
383
|
|
|
413
384
|
Shared configuration bindings
|
|
414
385
|
-----------------------------
|
|
415
386
|
|
|
416
|
-
`@drfed/drfed/configuration` supplies
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
empty arrays. Array sources replace each other. Each result carries its source
|
|
420
|
-
and, for TOML values, the absolute configuration file path; provenance maps
|
|
421
|
-
contain no setting values.
|
|
422
|
-
|
|
423
|
-
Commands must check required values after resolution. An absent optional
|
|
424
|
-
setting has a default-sourced result whose `value` is `undefined`; wrapping
|
|
425
|
-
a binding in `optional()` can hide invalid environment values and should be
|
|
426
|
-
avoided. Bind only the settings a command consumes: the entire TOML file is
|
|
427
|
-
checked for unknown keys and wrong types, while unused environment values
|
|
428
|
-
remain unread. `configurationPath()` resolves CLI and environment paths
|
|
429
|
-
against the supplied working directory and TOML paths against the file's
|
|
430
|
-
directory. The loader reads only an explicitly selected file and fails if
|
|
431
|
-
that file is missing. It neither searches for configuration nor loads *.env*.
|
|
387
|
+
`@drfed/drfed/configuration` supplies shared setting bindings. Contributor
|
|
388
|
+
contracts for registry entries, validation and source metadata are in
|
|
389
|
+
[configuration resolution internals].
|
|
432
390
|
|
|
433
391
|
The server CLI uses these bindings. Set `DRFED_CONFIG` or pass `--config`
|
|
434
392
|
to select one TOML file; explicit CLI settings take priority over environment
|
|
@@ -569,8 +527,7 @@ policy.
|
|
|
569
527
|
same database selection contract, returning plain runtime settings and
|
|
570
528
|
source-only metadata for ignored fields.
|
|
571
529
|
|
|
572
|
-
[
|
|
573
|
-
[configuration]: https://optique.dev/integrations/config.md
|
|
530
|
+
[configuration resolution internals]: https://drfed.org/internals/configuration-resolution
|
|
574
531
|
[Upyo SMTP documentation]: https://upyo.org/transports/smtp
|
|
575
532
|
|
|
576
533
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as version } from "../package-
|
|
1
|
+
import { t as version } from "../package-ZArhN_vY.mjs";
|
|
2
2
|
import { OperationRegistry } from "../operations.mjs";
|
|
3
3
|
import { ResourceOwner } from "../resources.mjs";
|
|
4
4
|
import { openDatabaseRuntime } from "../database-runtime.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as version } from "../package-
|
|
1
|
+
import { t as version } from "../package-ZArhN_vY.mjs";
|
|
2
2
|
import { OperationRegistry } from "../operations.mjs";
|
|
3
3
|
import { ResourceOwner } from "../resources.mjs";
|
|
4
4
|
import { openDatabaseRuntime } from "../database-runtime.mjs";
|
package/dist/commands/web.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as version } from "../package-
|
|
1
|
+
import { t as version } from "../package-ZArhN_vY.mjs";
|
|
2
2
|
import { OperationRegistry } from "../operations.mjs";
|
|
3
3
|
import { ResourceOwner } from "../resources.mjs";
|
|
4
4
|
import { createWebProgram, describeWebConfiguration, resolveWebOptions } from "./web-program.mjs";
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as version } from "./package-
|
|
1
|
+
import { t as version } from "./package-ZArhN_vY.mjs";
|
|
2
2
|
import { createConfigurationBindings } from "./configuration.mjs";
|
|
3
3
|
import { describeServerConfiguration } from "./diagnostics.mjs";
|
|
4
4
|
import { OperationRegistry } from "./operations.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-ZArhN_vY.mjs","names":[],"sources":["../package.json"],"sourcesContent":[""],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drfed/drfed",
|
|
3
|
-
"version": "0.2.0-dev.
|
|
3
|
+
"version": "0.2.0-dev.682",
|
|
4
4
|
"description": "The main entrypoint program for DrFed.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ActivityPub",
|
|
@@ -227,10 +227,10 @@
|
|
|
227
227
|
"typescript": "^7.0.2"
|
|
228
228
|
},
|
|
229
229
|
"dependencies": {
|
|
230
|
-
"@drfed/federation": "0.2.0-dev.
|
|
231
|
-
"@drfed/graphql": "0.2.0-dev.
|
|
232
|
-
"@drfed/models": "0.2.0-dev.
|
|
233
|
-
"@drfed/web": "0.2.0-dev.
|
|
230
|
+
"@drfed/federation": "0.2.0-dev.682",
|
|
231
|
+
"@drfed/graphql": "0.2.0-dev.682",
|
|
232
|
+
"@drfed/models": "0.2.0-dev.682",
|
|
233
|
+
"@drfed/web": "0.2.0-dev.682",
|
|
234
234
|
"@electric-sql/pglite": "^0.5.3",
|
|
235
235
|
"@fedify/fedify": "2.4.3",
|
|
236
236
|
"@fedify/pglite": "2.4.3",
|
|
@@ -273,13 +273,13 @@
|
|
|
273
273
|
},
|
|
274
274
|
"drfedBuild": {
|
|
275
275
|
"enabled": true,
|
|
276
|
-
"version": "0.2.0-dev.
|
|
277
|
-
"fullVersion": "0.2.0-dev.
|
|
276
|
+
"version": "0.2.0-dev.682",
|
|
277
|
+
"fullVersion": "0.2.0-dev.682+bc1e23be",
|
|
278
278
|
"baseVersion": "0.2.0",
|
|
279
279
|
"channel": "dev",
|
|
280
|
-
"sha": "
|
|
281
|
-
"runNumber": "
|
|
282
|
-
"runId": "
|
|
280
|
+
"sha": "bc1e23bea2507ae62498aef899493b9239dfa3c2",
|
|
281
|
+
"runNumber": "682",
|
|
282
|
+
"runId": "41311128816",
|
|
283
283
|
"ref": "refs/heads/main",
|
|
284
284
|
"workflow": ".github/workflows/main.yaml"
|
|
285
285
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"package-DKp_U5PU.mjs","names":[],"sources":["../package.json"],"sourcesContent":[""],"mappings":""}
|