@govish/shared-services 1.3.0 → 1.4.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 1.4.0
4
+
5
+ ### Changed
6
+ - **StationDutyBlockCacheService**: Fetching data only (read-only). Get methods: `getBlocks`, `getBlocksByStationId`, `getBlock`, `getSectors`, `getSector`. App remains responsible for storing and invalidating cache.
7
+
8
+ ---
9
+
3
10
  ## Version 1.3.0
4
11
 
5
12
  ### Added
package/README.md CHANGED
@@ -29,7 +29,7 @@ const authenticateDeviceOrOfficer = createAuthenticateDeviceOrOfficer(dependenci
29
29
  - **PenalCodeCacheService**: Redis-based caching service for penal codes
30
30
  - **DeviceCacheService**: Redis-based caching service for devices with indexing
31
31
  - **StationCacheService**: Redis-based caching service for police stations (JSON list, set of IDs, and per-station hashes)
32
- - **StationDutyBlockCacheService**: Read-only cache for station-duty blocks and sectors (`getBlocks`, `getBlocksByStationId`, `getBlock`, `getSectors`, `getSector`)
32
+ - **StationDutyBlockCacheService**: Read-only cache for station-duty blocks and sectors — fetch only (`getBlocks`, `getBlocksByStationId`, `getBlock`, `getSectors`, `getSector`)
33
33
  - **RankLeaveDaysCacheService**: Read-only cache for rank leave days (`getLeaveDays`, `getLeaveDay`)
34
34
  - **ApiKeyService**: Service for managing and validating API keys with Redis caching
35
35
  - **AuditService**: Service for logging audit events to Kafka with comprehensive event tracking
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@govish/shared-services",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Govish shared services package - officer, device, station, penal code, station-duty block, and rank leave days cache services; API key service; audit logging; authentication middleware",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",