@mrjacket/ahko 0.1.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 +19 -0
- package/LICENSE +674 -0
- package/README.md +157 -0
- package/dist/ahko.d.ts +73 -0
- package/dist/errors/ahko.error.d.ts +12 -0
- package/dist/errors/cancellation.error.d.ts +13 -0
- package/dist/errors/configuration.error.d.ts +13 -0
- package/dist/errors/index.d.ts +5 -0
- package/dist/errors/queue.error.d.ts +13 -0
- package/dist/errors/timeout.error.d.ts +13 -0
- package/dist/index.cjs +517 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +482 -0
- package/dist/index.js.map +1 -0
- package/dist/models/context.model.d.ts +14 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/options.model.d.ts +33 -0
- package/dist/models/state.model.d.ts +17 -0
- package/dist/models/stats.model.d.ts +19 -0
- package/dist/models/strategy.model.d.ts +13 -0
- package/dist/models/task.model.d.ts +9 -0
- package/dist/scheduler/index.d.ts +2 -0
- package/dist/scheduler/task-queue.d.ts +63 -0
- package/dist/scheduler/task-runner.d.ts +73 -0
- package/dist/version.d.ts +4 -0
- package/package.json +62 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [0.1.0] - 2026-09-22 — Core Scheduler
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- Core `Ahko` scheduler class.
|
|
12
|
+
- Generic return type inference for `schedule<T>()`.
|
|
13
|
+
- Controlled concurrency queue with FIFO ordering.
|
|
14
|
+
- Scheduling strategies: `immediate` and `delay`.
|
|
15
|
+
- Task context with unique `taskId` and propagated `AbortSignal`.
|
|
16
|
+
- Cooperative cancellation for pending and running tasks via native `AbortSignal`.
|
|
17
|
+
- Memory leak prevention with automatic cleanup of abort listeners upon settle.
|
|
18
|
+
- Scheduler telemetry via `stats()`.
|
|
19
|
+
- Typed error hierarchy: `AhkoError`, `AhkoCancellationError`, `AhkoConfigurationError`, `AhkoQueueError`, and `AhkoTimeoutError`.
|