@npora/request 1.15.0 → 1.15.1
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 +10 -33
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,41 +31,19 @@ authentication, and upload/download progress.
|
|
|
31
31
|
verifies public exports, browser behavior, security regressions, and size
|
|
32
32
|
budgets before release.
|
|
33
33
|
|
|
34
|
-
##
|
|
35
|
-
|
|
36
|
-
Npora Request
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
| Area | Npora Request | Axios | Ky | Got |
|
|
42
|
-
| --- | --- | --- | --- | --- |
|
|
43
|
-
| Runtime dependencies | **0** | 4 | **0** | 12 |
|
|
44
|
-
| Standard Schema validation | **First-party** | Application code | First-party | Application code |
|
|
45
|
-
| Retry + circuit breaker + concurrency queue | **Composable plugins** | Retry/coordination added separately | Retry only | Retry; Node transport controls |
|
|
46
|
-
| Parsed SSE and NDJSON | **Incremental async iterables** | Raw response stream | Raw response stream | Raw response stream |
|
|
47
|
-
| Persistent response cache | **Web Storage, IndexedDB, tiered, cross-tab** | Application package | Application package | First-party cache |
|
|
48
|
-
| IndexedDB controls | **Schema, bytes, admission, metrics, compaction** | — | — | — |
|
|
49
|
-
| Node proxy/HTTP2/socket depth | Custom adapter | **Strong** | Fetch-dependent | **Strongest** |
|
|
50
|
-
| ESM and CommonJS exports | **Both** | Both | ESM | ESM |
|
|
51
|
-
|
|
52
|
-
Axios remains the safer choice when ecosystem adoption or mature Node adapter
|
|
53
|
-
compatibility dominates. Ky is excellent when a smaller Fetch convenience API
|
|
54
|
-
is enough. Got is the stronger Node-only transport specialist. Npora Request's
|
|
55
|
-
advantage is combining runtime validation, streaming, cache correctness,
|
|
56
|
-
resilience, observability and cancellation under one typed, deterministic,
|
|
57
|
-
zero-runtime-dependency lifecycle. See the dated, source-linked
|
|
58
|
-
[comparison](docs/comparison.md) for tradeoffs rather than marketing-only
|
|
59
|
-
claims.
|
|
34
|
+
## Design focus
|
|
35
|
+
|
|
36
|
+
Npora Request combines runtime validation, incremental streaming, persistent
|
|
37
|
+
cache correctness, resilience, observability, and cancellation under one
|
|
38
|
+
typed, deterministic lifecycle. It keeps the standard Fetch model, ships with
|
|
39
|
+
zero runtime dependencies, supports ESM and CommonJS, and exposes optional
|
|
40
|
+
capabilities through tree-shakeable subpath exports.
|
|
60
41
|
|
|
61
42
|
The current stress gate completed **10,000,000 logical operations at concurrency
|
|
62
43
|
256 with zero unexpected failures**, followed by **100,000 real localhost HTTP
|
|
63
|
-
requests at concurrency 256**.
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
engineering checks, not claims about every remote workload; commands,
|
|
67
|
-
per-round results, and limitations are in the [benchmark
|
|
68
|
-
documentation](docs/benchmark.md).
|
|
44
|
+
requests at concurrency 256**. These are reproducible engineering checks, not
|
|
45
|
+
claims about every remote workload; commands and limitations are in the
|
|
46
|
+
[benchmark documentation](docs/benchmark.md).
|
|
69
47
|
|
|
70
48
|
## Features
|
|
71
49
|
|
|
@@ -681,7 +659,6 @@ allowlist, and size budgets.
|
|
|
681
659
|
- [Architecture](https://github.com/npora/request/blob/main/docs/architecture.md)
|
|
682
660
|
- [Migration from 0.x](https://github.com/npora/request/blob/main/docs/migration.md)
|
|
683
661
|
- [Migration from Axios or Ky](https://github.com/npora/request/blob/main/docs/migration-from-axios-and-ky.md)
|
|
684
|
-
- [HTTP client comparison](https://github.com/npora/request/blob/main/docs/comparison.md)
|
|
685
662
|
- [Security model](https://github.com/npora/request/blob/main/docs/security.md)
|
|
686
663
|
- [Testing and release gates](https://github.com/npora/request/blob/main/docs/testing.md)
|
|
687
664
|
- [Performance benchmarks](https://github.com/npora/request/blob/main/docs/benchmark.md)
|