@periodic/strontium-next 1.0.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/CHANGELOG.md +27 -0
- package/LICENSE +21 -0
- package/README.md +719 -0
- package/dist/chunk-5YPMJUNO.mjs +146 -0
- package/dist/edge-BycyYwkg.d.mts +75 -0
- package/dist/edge-BycyYwkg.d.ts +75 -0
- package/dist/edge.d.mts +3 -0
- package/dist/edge.d.ts +3 -0
- package/dist/edge.js +147 -0
- package/dist/edge.mjs +10 -0
- package/dist/index.d.mts +54 -0
- package/dist/index.d.ts +54 -0
- package/dist/index.js +246 -0
- package/dist/index.mjs +75 -0
- package/package.json +86 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `@periodic/strontium-next` will be documented in this file.
|
|
4
|
+
|
|
5
|
+
This project adheres to [Semantic Versioning](https://semver.org/).
|
|
6
|
+
|
|
7
|
+
## [1.0.0] — 2024-01-01
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- Initial release of `@periodic/strontium-next`
|
|
11
|
+
- Deterministic state machine (IDLE, PENDING, RETRYING, SUCCESS, ERROR, CANCELLED)
|
|
12
|
+
- Retry engine with fixed, linear, exponential strategies and jitter
|
|
13
|
+
- Circuit breaker (CLOSED, OPEN, HALF_OPEN) with configurable thresholds
|
|
14
|
+
- Request deduplication for GET/HEAD requests
|
|
15
|
+
- Timeout control via AbortController
|
|
16
|
+
- Pluggable schema validation
|
|
17
|
+
- Payload integrity enforcement with SHA-256 hashing
|
|
18
|
+
- Idempotency key injection in idempotent protocol mode
|
|
19
|
+
- Event hooks: onBeforeRequest, onAfterResponse, onRetry, onCircuitOpen, onError, onCancel
|
|
20
|
+
- Optional OpenTelemetry span propagation
|
|
21
|
+
- Pluggable transport layer
|
|
22
|
+
- Health monitoring via `client.health()`
|
|
23
|
+
- Strict and performance execution modes
|
|
24
|
+
- Full TypeScript support with strict types
|
|
25
|
+
- ESM + CommonJS dual exports
|
|
26
|
+
- Edge runtime compatibility (Node 18+, browsers, Workers, Bun, Deno)
|
|
27
|
+
- Comprehensive test suite
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 [Uday Thakur]
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|