jetstream_bridge 4.0.0 → 4.0.2
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -0
- data/README.md +2 -2
- data/lib/jetstream_bridge/topology/stream.rb +7 -3
- data/lib/jetstream_bridge/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fa4616ea064fcf04741b61ed07981980f47944e4cae10624605e5b5aed990990
|
|
4
|
+
data.tar.gz: 5eacc8c962149d70e1b6b8dc05588fd6b568dbc6112cbf04eaa70895d0d3969f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 16f82dca9bc584f85b01ec9fc5934980c2ffd6be87a8eaa8691af5fb8902ce7c737eaf5ee638d41b0a62396870f4d51d9b0684015a959893b4c9c2677b6ae84b
|
|
7
|
+
data.tar.gz: db6b1268c39dfe997ad95f805c9a2553655e75cb2004cc78c1ed09968797ce7a9668a1e6bbe24fa1c98877b5bb9986cce21e4da7212297a947b2c554e30fb876
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,25 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [4.0.2] - 2025-11-23
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **Stream Updates** - Prevent retention policy change errors (NATS error 10052)
|
|
13
|
+
- Skip all stream updates when retention policy differs from expected 'workqueue'
|
|
14
|
+
- Prevents "stream configuration update can not change retention policy to/from workqueue" error
|
|
15
|
+
- Logs warning when stream has mismatched retention policy but skips update
|
|
16
|
+
- Ensures compatibility with existing streams that have different retention policies
|
|
17
|
+
|
|
18
|
+
## [4.0.1] - 2025-11-23
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- **Documentation** - Updated version references in README and YARD documentation
|
|
23
|
+
- Installation instructions now reference version 4.0
|
|
24
|
+
- Health check example output shows correct version
|
|
25
|
+
- YARD documentation reflects current version
|
|
26
|
+
|
|
8
27
|
## [4.0.0] - 2025-11-23
|
|
9
28
|
|
|
10
29
|
### Breaking Changes
|
data/README.md
CHANGED
|
@@ -92,7 +92,7 @@ Building event-driven systems with NATS JetStream is powerful, but comes with ch
|
|
|
92
92
|
|
|
93
93
|
```ruby
|
|
94
94
|
# Gemfile
|
|
95
|
-
gem "jetstream_bridge", "~>
|
|
95
|
+
gem "jetstream_bridge", "~> 4.0"
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
```bash
|
|
@@ -1249,7 +1249,7 @@ health = JetstreamBridge.health_check
|
|
|
1249
1249
|
# connected_at: "2025-11-22T20:00:00Z",
|
|
1250
1250
|
# stream: { exists: true, name: "...", ... },
|
|
1251
1251
|
# config: { env: "production", ... },
|
|
1252
|
-
# version: "
|
|
1252
|
+
# version: "4.0.1"
|
|
1253
1253
|
# }
|
|
1254
1254
|
|
|
1255
1255
|
# Force-connect & ensure topology at boot or in a check
|
|
@@ -129,11 +129,15 @@ module JetstreamBridge
|
|
|
129
129
|
def ensure_update(jts, name, info, desired_subjects)
|
|
130
130
|
existing = StreamSupport.normalize_subjects(info.config.subjects || [])
|
|
131
131
|
to_add = StreamSupport.missing_subjects(existing, desired_subjects)
|
|
132
|
-
add_subjects(jts, name, existing, to_add) if to_add.any?
|
|
133
132
|
|
|
134
|
-
# Retention is immutable;
|
|
133
|
+
# Retention is immutable; if different, skip all updates to avoid 10052 error.
|
|
135
134
|
have_ret = info.config.retention.to_s.downcase
|
|
136
|
-
|
|
135
|
+
if have_ret != RETENTION
|
|
136
|
+
StreamSupport.log_retention_mismatch(name, have: have_ret, want: RETENTION)
|
|
137
|
+
return
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
add_subjects(jts, name, existing, to_add) if to_add.any?
|
|
137
141
|
|
|
138
142
|
# Storage can be updated; do it without passing retention.
|
|
139
143
|
have_storage = info.config.storage.to_s.downcase
|