@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.
Files changed (2) hide show
  1. package/README.md +10 -33
  2. 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
- ## Where it stands out
35
-
36
- Npora Request is aimed at applications that would otherwise assemble several
37
- Axios interceptors, cache packages, queue utilities and stream parsers around
38
- one HTTP client. The differentiation is the integrated lifecycle, not a claim
39
- that one library is best for every transport.
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**. In a separate reproducible five-library
64
- localhost JSON test, the pending release delivered **22,390 req/s median**,
65
- within 1.2% of ofetch and ahead of Ky, Axios, and Got on that machine. These are
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npora/request",
3
- "version": "1.15.0",
3
+ "version": "1.15.1",
4
4
  "description": "A modern, TypeScript-first HTTP client powered by the Fetch API.",
5
5
  "keywords": [
6
6
  "npora",