create-request 0.0.1-beta.16 → 0.0.1-beta.17

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 +31 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -552,6 +552,37 @@ This library works with all browsers that support the Fetch API:
552
552
  - Edge 14+
553
553
  - Opera 29+
554
554
 
555
+ ## Comparison of JavaScript HTTP Client Libraries
556
+
557
+ Below is a comparison of popular JavaScript HTTP client libraries, including create-request and the native Fetch API.
558
+
559
+ | Feature | create-request | Fetch API | Axios | SuperAgent | Got | Ky | node-fetch | Redaxios |
560
+ | -------------------------- | -------------- | -------------------- | ----------------- | ----------- | ------------------ | ----------- | ---------------- | -------------------- |
561
+ | **Bundle Size (min+gzip)** | ~5.1KB | Native | ~13.6KB | ~17.8KB | ~17.8KB | ~3.4KB | ~ 7.7KB | ~1KB |
562
+ | **Browser Support** | Modern | Modern | IE11+ | IE9+ | ❌ No Browser | Modern | ❌ No Browser | Modern |
563
+ | **Node.js Support** | Polyfill | Node 18+ | ✅ | ✅ | ✅ | ✅ + undici | ✅ | ✅ |
564
+ | **HTTP/2 Support** | Via Fetch | Platform-dependent | ❌ | ✅ | ✅ | ✅ | ❌ | ❌ |
565
+ | **Automatic Retries** | ✅ | ❌ | ❌ + addon | ✅ | ✅ | ✅ | ❌ | ❌ |
566
+ | **Request Cancellation** | ✅ | ✅ (AbortController) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ (AbortController) |
567
+ | **Response Caching** | ✅ | ❌ | ❌ + addon | ✅ | ✅ (RFC compliant) | ❌ | ❌ | ❌ |
568
+ | **Automatic JSON** | ✅ | ❌ (Manual) | ✅ | ✅ | ✅ | ✅ | ❌ (Manual) | ✅ |
569
+ | **Timeout Handling** | ✅ | ❌ | ✅ | ✅ | ✅ (Advanced) | ✅ | ✅ (AbortSignal) | ❌ |
570
+ | **TypeScript Support** | First-class | ✅ | ✅ | ✅ (via DT) | ✅ | ✅ | ✅ | ✅ |
571
+ | **Streaming** | Via Fetch | ✅ | ❌ | ✅ | ✅ | ❌ | ✅ (Node only) | ❌ |
572
+ | **Progress Events** | ❌ | ❌ | ✅ (Browser) | ✅ | ✅ | ✅ | ❌ | ❌ |
573
+ | **Hooks/Middleware** | ❌ | ❌ | ✅ (Interceptors) | ❌ | ✅ | ✅ | ❌ | ❌ |
574
+ | **Cookies Built-in** | ✅ | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ |
575
+ | **Pagination API** | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ |
576
+ | **Zero Dependencies** | ✅ | ✅ | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ |
577
+ | **Fluent/Chainable API** | ✅ | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ |
578
+ | **CSRF Protection** | ✅ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
579
+
580
+ **Notes:**
581
+
582
+ - Bundle sizes are approximate and may vary based on build configuration.
583
+ - "Automatic JSON" refers to automatic parsing of JSON responses.
584
+ - "CSRF Protection" refers to built-in mechanisms for CSRF defense.
585
+
555
586
  ## License
556
587
 
557
588
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-request",
3
- "version": "0.0.1-beta.16",
3
+ "version": "0.0.1-beta.17",
4
4
  "description": "A modern, chainable wrapper for fetch with automatic retries, timeouts, comprehensive error handling, and first-class TypeScript support",
5
5
  "main": "dist/library/index.js",
6
6
  "module": "dist/library/index.esm.js",