Repository navigation
Releases
Releases · amirsaam/CoreXray-Swift
v261109.2.0
CoreXray 261109.2.0
Core: XTLS/libXray v26.11.9
Swift: 2.0
NEW:
XraySession.stopAsync()— async stop for structured-concurrency call sites.XrayTrafficMonitor.decodeSnapshot(from:taken:)— decode a metrics payload without a live monitor.- Traffic, probe, and ping result models gain public initializers; previously only the engine could construct them.
CHANGES:
Xray.shared.fakeDNS(ipPool:poolSize:)now throws.invalidInputon a non-positive pool instead of trapping. Call sites addtry. This is the release's one breaking change.- Subscription feeds run under one overall fetch-and-top-up budget, error messages redact query tokens, and JSON documents launch directly as configurations. Feed sanitization keeps allow-listed
envkeys only and rejects non-loopback inbounds. - Deadline starts throw
.timedOutwith a recovery hint, cancel promptly, and reap their orphan without touching a newer launch.health()waits for a legitimately busy lane instead of reporting wedged. validate()no longer applies the documentenvto the process;validateOffline()ignores unknown top-level sections except the removed legacyreverseportal, matching the engine.- Underscore
envspellings (XRAY_LOCATION_ASSET,XRAY_TUN_FD) are honored everywhere the dotted spellings are.
FIXES:
- TUN descriptor backstop on every launch path: fd-less launches clear stale descriptors instead of inheriting them, and an uppercase-only descriptor is never shadowed by an empty canonical key.
- The DNS-relay route is ordered before the final catch-all, so relay traffic can no longer fall into the terminal rule first.
- The stall watchdog stops firing once released, and a cancelled snapshot poll rethrows
CancellationErrorinstead of a bridge failure. - Ping failure sentinels read as zero latency with the engine's reason in
failureReason.
Full Changelog: 261109.1.1...261109.2.0
v261109.1.1
CoreXray 261109.1.1
Core: XTLS/libXray v26.11.9
Swift: 1.1
NEW:
- This release contains no new APIs
CHANGES:
- Core
v26.10.31→v26.11.9: mux defaults rise (concurrency 8→128, max connections 128→1024); newhellochrome_155fingerprint picked up automatically through existing configs; freedomfinalRulesgaindelay/logLevel(blockDelaystill accepted, deprecated) — available via raw JSON/transform, not typed API; remaining upstream diff is Windows-only or internal. - Log section now emits the canonical
logLevelkey matching upstream spelling (accepted by old and new engines alike). - Maintainer docs (versioning, core-update flow, repo layout) moved from README to
CONTRIBUTING.md; pushing a tag now drafts the release notes automatically.
FIXES:
- This release contains no bug fixes
Full Changelog: 261031.1.1...261109.1.1
v261031.1.1
CoreXray 261031.1.1
Core: XTLS/libXray v26.10.31
Swift: 1.1
NEW:
XraySession.usage(XrayDataUsage): per-session upload/download counters. Callsession.usage.advance(snapshot)once per traffic poll, then readusedUp/usedDown/usedTotal. These accumulate outbound-side bytes only, so they report wire-accurate usage;totalUp/totalDownremain engine-doubled reconciliation figures and must not back usage labels. Counters reset on each successful start and survivestopfor disconnect reports.
CHANGES:
- All deadline and interval parameters are now
TimeIntervalseconds instead ofDuration:start(_:options:deadline:),start(_:config:options:deadline:),start(remoteSubscription:deadline:timeoutSeconds:), and the watchdoginterval/stalledAfter. Same behavior; call sites change fromdeadline: .seconds(20)todeadline: 20.
FIXES:
261031.1.0is not usable on iOS 15: it used iOS 16-only APIs (Duration,ContinuousClock,Task.sleep(for:)), so the module failed to emit when an app built for the iOS 15.261031.1.0users on iOS 15 must move to261031.1.1.
Full Changelog: 261031.1.0...261031.1.1
v261031.1.0
CoreXray 261031.1.0
Core: XTLS/libXray v26.10.31
Swift: 1.0 (initial release)