Repository navigation
Releases
Releases · itsisoev/ngx-offline-sync
v1.2.0
v1.1.5
v1.1.4
What's Changed
Added
- Added configurable maximum offline queue size with
maxQueueSize. - Added
onQueueFullcallback. - Added
EnqueueStatuswithQUEUEDandQUEUE_FULLstates. - Added safe serialization for concurrent queue operations.
- Added
onNetworkStatusChangecallback for online/offline status changes. - Added documentation for queue size and network status configuration.
Fixed
- Fixed Offline Sync Interceptor incorrectly returning
202 Acceptedwhen the queue is full. - Fixed concurrent enqueue operations potentially exceeding
maxQueueSize. - Fixed enqueue chain continuing after a storage error.
v1.1.2
v1.1.1
What's New
Priority Queue
Added support for request priorities to control the synchronization order of offline requests.
HIGH,NORMAL, andLOWpriorities.NORMALis used by default.- Priority can be set for individual HTTP requests through
HttpContext. - Higher-priority requests are synchronized before lower-priority requests.
- Requests with the same priority preserve their original queue order.
- Added
QueuePriorityandOFFLINE_SYNC_PRIORITYto the public API.
Retry Policy
Added automatic handling of temporary errors.
- Configurable
maxAttemptsanddelay. - Linear Backoff between retry attempts.
- Automatic retry scheduling.
- Retry support for network errors and
5xxserver errors. - Retry state is stored through
attemptsandnextRetryAt. - Requests are removed after reaching the maximum number of attempts.
Logging
Expanded the logging and synchronization monitoring system.
- Configurable logging levels through
LogLevel. - English and Russian language support through
LogLanguage. - Typed
LogEventvalues. - Synchronization statistics.
- Configurable
LogTransport. - Dedicated events for retry scheduling and execution.
Documentation
- Added Retry Policy documentation.
- Updated Priority Queue documentation.
- Updated configuration documentation.
- Updated What's New sections in Russian, English
v1.1.0
What's new
Batch processing
Added support for configuring how many queued HTTP requests can be processed in parallel during synchronization.
provideOfflineSync({
batchSize: 5,
});batchSize is 1 by default, preserving sequential request processing.
Documentation
- Added detailed configuration documentation for
batchSize - Improved the main README
- Added online, offline, and synchronization demos
- Improved documentation navigation
- Added Russian and Japanese documentation structure
Testing
Expanded test coverage for synchronization and batch processing.