Skip to content

chore(release): v2.9.0 - #274

Merged
MarTrepodi merged 71 commits into
mainfrom
release/v2.9.0
Nov 23, 2026
Merged

MarTrepodi merged 71 commits into
mainfrom
release/v2.9.0

Conversation

@MarTrepodi

Copy link
Copy Markdown
Collaborator

Automated release prep for v2.9.0. CHANGELOG.md regenerated via git-changelog.

Merging promotes develop -> main with the changelog already in place.
Afterwards, run the release workflow on main to build, publish, and tag v2.9.0.

Issues resolved by this release

Merging this PR into main closes:


v2.9.0 (2026-11-23)

Features

  • client: add strip_empty option to get_game_data (3b63a7a)
  • helpers: add get_omicron_breakdown for guild-wide omicron adoption (ff158cd)
  • statcalc: apply a named datacron's stat affixes to characters (d79193a)
  • client: add opt-in max_response_bytes and max_game_data_bytes limits (81623d0)
  • helpers: sync game data constants with client schema 0.41.2115745 (3100f3c)
  • helpers: accept type-prefixed enum names in guild roles and item names (4f7e96e)

Bug Fixes

  • helpers: accept tier 0 in is_omicron_skill (07bffd6)
  • client: attribute the credential deprecation warning past in-package subclasses (374541a)
  • async: give back the pacing slot on any exception while sleeping (a23b611)
  • examples: skip comment lines when decoding language bundles (18bd2ee)
  • async: use httpx default keep-alive and add a limits argument (8b51989)
  • statcalc: cap and optionally verify the game data download (06b0227)
  • hmac: warn when HMAC is used over plain HTTP to a non-loopback host (7288a1f)
  • client: read HMAC keys from COMLINK_ACCESS_KEY and COMLINK_SECRET_KEY (63ed346)
  • core: replace runtime asserts and raw KeyErrors with library errors (0467afe)
  • core: validate and URL-encode the get_unit_stats language parameter (1672812)
  • exceptions: truncate response bodies in HTTP error messages (4ec7597)

Code Refactoring

  • core: generate the sync client from the async client (921148b)
  • core: move request preparation and retry decisions into a sans-I/O core (07b3db2)

Performance Improvements

  • statcalc: build renamed stat dicts with a comprehension (ccc3198)
  • statcalc: index mod GP by int (pips, level, tier) in set_game_data (17d35de)
  • statcalc: key the summed raw mod stats by int stat id (e02f7fb)
  • statcalc: run all percent conversions in one _convert_percent call (1f81a80)
  • statcalc: fold final stat ids by lookup and loop the percent conversions (d8b5b07)
  • statcalc: map mod stat ids to their target stats with lookup tables (1a71544)
  • statcalc: drop key-list copies and probing lookups in _format_stats (ae35c6d)
  • statcalc: index each unit's skills by id in set_game_data (d228fa1)
  • statcalc: copy normalized units shallowly instead of deep-copying (0190952)
  • statcalc: normalise game data tables to str keys once (3648460)
  • statcalc: run StatCalcAsync calculations off the event loop (3201dbe)

Docs

  • examples: add guild omicron breakdown examples (0c3bf6a)
  • examples: add sync and async datacron calculation examples (c213f68)
  • migration: note that set_game_data indexes the mod GP table (24684ea)

🤖 Generated with Claude Code

MarTrepodi and others added 30 commits November 4, 2026 21:11
…953363288

chore: back-merge main into develop
SwgohComlinkHTTPError.from_response put the whole response body in the
exception message, so a large HTML error page from a proxy or CDN ended
up in logs, tracebacks and bot error replies.

The message now cuts a body longer than 512 characters and appends
"… (N bytes total)". Classification and the code/detail attributes still
use the full body, so "Rate exceeded" past the cut-off is still detected
as a rate limit, and exc.response is unchanged.

Refs #238

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pin every third-party `uses:` line in .github/workflows to the full
40-character commit SHA of the latest release in the major version
already in use, with a `# vX.Y.Z` comment so Dependabot's
github-actions updates keep bumping them. Each SHA equals the commit
the moving major tag pointed at when pinned, so behaviour is unchanged.
The existing pypa/gh-action-pypi-publish pin is kept.

Add tests/unit/test_workflow_pins.py to fail if a workflow uses an
action by tag or branch, or drops the version comment.

Refs #242

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
_build_unit_stats_endpoint concatenated `language` into the stats query
string unchanged, so a value such as "eng_us&flags=onlyGP#x" could add
query parameters or a fragment to the request.

- A value that is not a language code (^[A-Za-z]{2,3}_[A-Za-z]{2}$, full
  match) now raises SwgohComlinkValueError before any request is sent.
- A well-formed code not in Constants.LANGUAGES (case-insensitive) logs
  one warning and is still sent unchanged.
- The query is built with urlencode(..., safe=","), so the output for
  valid input is byte-identical (api?flags=calcGP&language=eng_us) and
  the HMAC-signed path still matches the path on the wire.

Shared code in _base.py, so both clients are covered; tests run against
the sync and async clients.

Refs #235

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Invalid input reached callers as a bare KeyError or AssertionError, and
the assert guards vanished under python -O.

- get_leaderboard (both clients) maps an unknown league or division name
  to SwgohComlinkValueError listing the valid names.
- StatCalc.set_game_data checks all six required tables up front and
  raises SwgohComlinkValueError naming any that are missing or None,
  leaving previously loaded data in place.
- _construct_request_headers raises SwgohComlinkException when HMAC is
  enabled without a secret_key.
- get_localization (both clients) drops a redundant assert; the type
  checker already narrows the id.
- The remaining StatCalc asserts only narrow types after
  _require_game_data() and now carry a "# type narrowing" comment; a
  unit test keeps src/ free of uncommented asserts.

Refs #239

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…T_KEY

Both clients fell back to the generic ACCESS_KEY / SECRET_KEY environment
variables when no keys were passed. If another tool set those names, HMAC
turned on silently and that tool's access key went to Comlink in the
Authorization header.

Credentials now resolve as: constructor arguments, then
COMLINK_ACCESS_KEY / COMLINK_SECRET_KEY, then (only when neither new name
is set) the old ACCESS_KEY / SECRET_KEY names. Using an old name emits one
DeprecationWarning per client naming the new variables. When only one key
of the pair ends up set, a warning is logged since HMAC stays off.

The change is in SwgohComlinkBase, so it covers SwgohComlink and
SwgohComlinkAsync alike; tests run against both.

Refs #236

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HMAC signing authenticates requests but does not protect responses or
stop replays within the server's X-Date window. Over http:// to a remote
host, both are open to anyone on the network path, and the client
accepted that setup silently.

When HMAC is on, each client now logs one warning naming its url and/or
stats_url that use plain http to a host other than localhost,
127.0.0.0/8 or ::1 (literal IPs checked with ipaddress; host names are
not resolved). The connection is never blocked. docs/index.md gains a
paragraph recommending TLS or a private network for a remote Comlink.

The check is in SwgohComlinkBase, so it covers SwgohComlink and
SwgohComlinkAsync alike; tests run against both.

Refs #237

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
StatCalc() with no game_data downloaded gameData.json with no size limit
and no way to check its integrity, and the sync path used urllib, which
trusts the system CA store instead of certifi.

- Fetch through httpx.Client (sync) and httpx.AsyncClient (async), both
  following redirects with the existing 30 s timeout.
- Stream the body through one shared helper, _GameDataDownload, which
  aborts past _MAX_GAMEDATA_BYTES (64 MiB, counted after Content-Encoding
  decoding) and, when asked, checks the SHA-256 of the body before parsing.
  Both raise SwgohComlinkValueError.
- Add keyword-only game_data_url and expected_sha256 to StatCalc.__init__
  and StatCalcAsync.create. The default stays the latest main of
  swgoh-utils/gamedata.

Refs #234

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add acalc_char_stats, acalc_ship_stats, acalc_roster_stats and
acalc_player_stats to StatCalcAsync. Each runs the matching calc_* method
in a worker thread via asyncio.to_thread, so a 386-unit roster (tens of
ms of CPU) no longer blocks the loop. The inherited sync methods are
unchanged.

The game data tables are only read during calculation (a test checks
they are unchanged after a full roster), so concurrent calls on one
instance are safe. The docstring and docs say not to call set_game_data
mid-calculation or touch an input while its call is in progress.

Docs, README and the async example now use the acalc_* methods.

Refs #243

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…imits

Both clients accept two keyword-only constructor arguments, defaulting to
None (no limit, and the existing buffered request path unchanged):

- max_response_bytes applies to every endpoint except /data, including
  the stats service.
- max_game_data_bytes applies to /data (get_game_data), whose responses
  are far larger, mirroring DEFAULT_TIMEOUT / GAME_DATA_TIMEOUT.

When the applicable limit is set, _send streams the response. A success
whose Content-Length is over the limit raises SwgohComlinkValueError
before the body is read; otherwise decoded bytes from iter_bytes() are
counted and the read aborts with SwgohComlinkValueError past the limit,
which also stops gzip bombs. An error body is read only up to the limit
and cut there before SwgohComlinkHTTPError.from_response, so status
classification and retries are unchanged.

Adds a UTF-8 BOM regression test: a BOM-prefixed body still raises
SwgohComlinkDecodeError, buffered and streamed.

Refs #240

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
parity/scripts/bench_statcalc.py loads tests/resources/gameData.json
["data"] and the 386-unit example-player.json, warms up once, then times
calc_player_stats over 20 runs (--runs N), each on a fresh deepcopy of
the roster made outside the timed section. It prints the median, p95
and min/max in ms with the Python version and platform; --profile adds
the top 15 functions by tottime from one extra cProfile run.

It finishes in about 1.5 s locally and is deliberately not wired into
CI: shared runners are too noisy for timing gates.

Refs #244

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SwgohComlinkAsync built its httpx clients with
httpx.Limits(keepalive_expiry=None), so idle pooled connections were
never closed, while SwgohComlink used the httpx default of 5 s. A stale
connection after a Comlink restart or NAT idle timeout could then fail
the next call with RemoteProtocolError.

Remove the async override so both clients use the httpx default pool
limits, and add a keyword-only limits: httpx.Limits | None = None
argument to both constructors. None passes no limits to httpx, keeping
its defaults; a value is passed to every httpx client both classes
build. Request timeouts are unchanged.

Refs #241

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	docs/migration.md
#	src/swgoh_comlink/_base.py
#	src/swgoh_comlink/swgoh_comlink.py
#	src/swgoh_comlink/swgoh_comlink_async.py
set_game_data now rebuilds any table holding non-str keys with str keys
(copy-on-write, so JSON game data is reused without copying and the
caller's dict is never modified). _table_get becomes a single dict.get on
str(key), keeping its list branch, and the base and mod stat steps read
their str-keyed stat dicts with dict.get directly.

Int-keyed game data previously produced different results because the
copied stat dicts mixed int and str keys; it now matches JSON game data.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
_normalize_char and _normalize_ship_and_crew deep-copied every unit given
in the normalized (defId) form. Later steps only set top-level keys (the
setdefault defaults and a crew member's "gp") and read nested values, so
a shallow dict copy keeps the caller's unit unmodified. New tests prove
calc_char_stats, calc_char_gp, calc_ship_stats and calc_ship_gp leave the
caller's units unchanged apart from the documented stats and gp keys.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
_get_skill_gp and _get_crewless_skills_gp scanned the unit's skill list
for every skill. set_game_data now builds a per-unit {skill id: skill
definition} index (first definition of an id wins, as the scan did) and
both functions look skills up through _find_skill_def. A unit with no
skill list falls back to the old scan, so an unknown unit still raises
KeyError.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ans-I/O core

Both clients duplicated the whole retry and pacing loop in _request and the
request building and response decoding in _send. That logic now lives once,
without I/O:

- retry.py: _retry_step (given an error and attempt number, the delay and
  whether a rate hold applies) and _Admission (the waits a caller sleeps
  before an attempt, including the requeue when a hold is extended).
- _base.py: _prepare_request (method, body, headers, client choice, size
  limit), _interpret_response (an httpx.Response into a result or a typed
  exception) and _retry_wait (logging, holds, jitter).

Each client keeps only a short loop that sends, sleeps and handles
cancellation for its runtime: _request is 28 lines and _admit keeps the
existing cancellation rules (sync releases the slot on BaseException,
async on asyncio.CancelledError). Retry log records keep the client module
logger names. Behaviour is unchanged; the retry, pacing and hold tests pass
unmodified.

Adds a test that every public method of SwgohComlinkAsync exists on
SwgohComlink with the same signature, aliases included.

Refs #246

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tats

The rounding and scaling loops only replace values of existing keys, so
they iterate dict.items() instead of copying the keys first. The final
stat id list becomes an insertion-ordered dict (same first-seen order,
O(1) membership instead of a list scan), and _format_stats and
_convert_percent read their str-keyed stat dicts with dict.get.

New tests pin the order and sums of the formatted final stats for a
character and a ship.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…bles

_calculate_mod_stats converted the summed mod stats with an eleven-branch
if/elif chain that called _add_stat (and its str() key conversion) for
every target. Two module-level tables now name the target stats of the
split stats (41, 42, 53, 54) and the percent-of-base stats (48, 49,
55-57), and the loop updates the str-keyed dict directly.

The arithmetic, the order targets are updated in, and the key insertion
order are unchanged, so the output is identical.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nversions

_format_stats built each character's final stats by turning every stat
id into an int and back into a str to fold 21/22 into 14/15 and 35/36
into 39/40. A small str-keyed table now gives the folded id directly;
the stat ids are already str (game data tables are str-keyed and the
calculator's own stat dicts use str keys), so the keys are unchanged.

The ten _convert_percent calls become one loop over (stat id, converter)
pairs. The converters are defined once per call instead of as ten
lambdas, and _convert_percent takes the str id directly.

Output is byte-identical for raw, normalized, normalized-with-mods and
legacy dict rosters.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
_format_stats called _convert_percent ten times per unit, and each call
looked up the base, crew, gear and mods dicts again. _convert_percent
now takes the (stat id, converter) pairs and loops over them itself,
looking the dicts up once. The conversions only update those dicts in
place, so the order and arithmetic are unchanged; a ship is still
recognised by its "crew" key, whatever its value.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
_calculate_mod_stats summed each mod stat under str(stat id) and then
turned every key back into an int to pick its conversion. The raw sums
are now keyed by int(stat id), which the conversion uses directly; only
stats that keep their own id are turned into a str key, once each.

Comlink stat ids and the mod set ids in game data are ints, so the same
stats are summed together, in the same order, and the output is
byte-identical for raw, normalized, normalized-with-mods and legacy dict
rosters.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
_calc_char_gp read each mod's GP with three nested _table_get calls on
modRarityLevelTierGP, 18 calls for a fully modded character.
set_game_data now flattens that table into a {(pips, level, tier): GP}
index with int keys, and _calc_char_gp reads a mod's GP with one dict
lookup.

Only entries whose keys are canonical int strings are indexed, so an int
key finds exactly the value the nested lookups find. A key the index
does not hold (a str pips, level or tier, or a value missing from the
table) still takes the nested _table_get lookups, which keep their
defaults. The mods are added in the same order as before.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
_rename_stats looked STATS_NAME_MAP up on the instance and allocated an
empty default dict for every stat, then filled each renamed dict one
item at a time. It now binds the map once, uses a shared read-only
empty dict as the default, and builds each renamed dict with a
comprehension. Names, values and key order are unchanged.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Like the per-unit skill index, the mod GP index is built when
set_game_data runs, so a modRarityLevelTierGP table changed in place
afterwards needs another set_game_data call.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Current localization bundles contain '#' comment lines with no '|'
delimiter (e.g. '# Start Category: ...', a bare '#'). The Sync and Async
get_language_bundle examples unpacked line.split("|") into two names and
raised ValueError on the first of them.

Both examples now skip blank and '#' lines and split on the first '|'
only, matching the library parser. Their docstrings point to
get_localization_dictionary / async_get_localization_dictionary as the
supported way to build the lookup. Both print the lookup size, and the
Async main() returns the dict so the script exposes der_str_lookup like
the Sync one.

Adds tests/examples/test_get_language_bundle.py, which runs each example
against a patched client serving a bundle with comment lines, blank lines
and a value containing '|'.

Closes #248

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix: truncate error bodies in messages and replace runtime asserts with library errors
fix(statcalc): cap and optionally verify the game data download
perf(statcalc): run StatCalcAsync calculations off the event loop and add a benchmark
perf(statcalc): speed up StatCalc table lookups, copying and stat formatting
MarTrepodi and others added 16 commits November 9, 2026 19:10
feat(helpers): add get_omicron_breakdown for guild-wide omicron adoption
feat(statcalc): apply a named datacron's stat affixes to characters
/data returns every collection key, populating only the requested ones:
unrequested list collections come back as [] and unrequested single-object
collections as null. The new keyword-only strip_empty flag drops those keys
so the response holds only the collections that came back with data.
Falsy scalars such as 0, False and "" are kept.

Defaults to False, so existing callers get the full response unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(client): add strip_empty option to get_game_data
Bumps the astral-tools group with 2 updates: [ty](https://github.com/astral-sh/ty) and [ruff](https://github.com/astral-sh/ruff).


Updates `ty` from 0.0.98 to 0.0.102
- [Release notes](https://github.com/astral-sh/ty/releases)
- [Changelog](https://github.com/astral-sh/ty/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ty@0.0.98...0.0.102)

Updates `ruff` from 0.17.4 to 0.17.5
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.17.4...0.17.5)

---
updated-dependencies:
- dependency-name: ty
  dependency-version: 0.0.102
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: astral-tools
- dependency-name: ruff
  dependency-version: 0.17.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: astral-tools
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps the python group with 3 updates: [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio), [git-changelog](https://github.com/pawamoy/git-changelog) and [mkdocs-material](https://github.com/squidfunk/mkdocs-material).


Updates `pytest-asyncio` from 1.4.1.post1 to 1.5.0
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases)
- [Commits](pytest-dev/pytest-asyncio@v1.4.1.post1...v1.5.0)

Updates `git-changelog` from 2.10.0 to 2.11.0
- [Release notes](https://github.com/pawamoy/git-changelog/releases)
- [Changelog](https://github.com/pawamoy/git-changelog/blob/main/CHANGELOG.md)
- [Commits](pawamoy/git-changelog@2.10.0...2.11.0)

Updates `mkdocs-material` from 9.8.0 to 9.8.1
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](squidfunk/mkdocs-material@9.8.0...9.8.1)

---
updated-dependencies:
- dependency-name: pytest-asyncio
  dependency-version: 1.5.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: python
- dependency-name: git-changelog
  dependency-version: 2.11.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: python
- dependency-name: mkdocs-material
  dependency-version: 9.8.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: python
...

Signed-off-by: dependabot[bot] <support@github.com>
…-tools-2778c70eee

chore(deps): Bump the astral-tools group with 2 updates
…-6b2c282676

chore(deps): Bump the python group with 3 updates
Bumps the github-actions group with 1 update: [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv).


Updates `astral-sh/setup-uv` from 10.3.3 to 10.4.0
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](astral-sh/setup-uv@68559e9...1db35dd)

---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
  dependency-version: 10.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps the astral-tools group with 2 updates: [ty](https://github.com/astral-sh/ty) and [ruff](https://github.com/astral-sh/ruff).


Updates `ty` from 0.0.102 to 0.0.107
- [Release notes](https://github.com/astral-sh/ty/releases)
- [Changelog](https://github.com/astral-sh/ty/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ty@0.0.102...0.0.107)

Updates `ruff` from 0.17.5 to 0.17.6
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.17.5...0.17.6)

---
updated-dependencies:
- dependency-name: ty
  dependency-version: 0.0.107
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: astral-tools
- dependency-name: ruff
  dependency-version: 0.17.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: astral-tools
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps the python group with 2 updates: [git-changelog](https://github.com/pawamoy/git-changelog) and [mkdocs-material](https://github.com/squidfunk/mkdocs-material).


Updates `git-changelog` from 2.11.0 to 2.12.0
- [Release notes](https://github.com/pawamoy/git-changelog/releases)
- [Changelog](https://github.com/pawamoy/git-changelog/blob/main/CHANGELOG.md)
- [Commits](pawamoy/git-changelog@2.11.0...2.12.0)

Updates `mkdocs-material` from 9.8.1 to 9.8.2
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](squidfunk/mkdocs-material@9.8.1...9.8.2)

---
updated-dependencies:
- dependency-name: git-changelog
  dependency-version: 2.12.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: python
- dependency-name: mkdocs-material
  dependency-version: 9.8.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: python
...

Signed-off-by: dependabot[bot] <support@github.com>
…velop/github-actions-ab053d56de

chore(deps): Bump astral-sh/setup-uv from 10.3.3 to 10.4.0 in the github-actions group
…-tools-7062382a32

chore(deps): Bump the astral-tools group with 2 updates
…-a99d50bd64

chore(deps): Bump the python group with 2 updates
Client 0.41.2115745 adds the Overcharge game data bit (2**52) and folds it
into segment 4, so DataItems gains OVERCHARGE (aliases
OVERCHARGE_DEFINITION, OVERCHARGE_STAT_GROUP,
OVERCHARGE_POINT_MISSION_LOOKUP), Constants.get("Overcharge") resolves it,
and SEGMENT4 / Constants.Segment4 move to the game's new 7881024469991424.

The stat and enum tables gain UnitStat 62 (Critical Defense,
UNIT_STAT_CRITICAL_DAMAGE_NEGATE), ItemType 36 OVERCHARGE_POINT and
CurrencyType 51 ARENA_CURRENCY ("Arena Tokens").

Requires Comlink 4.6.0 or later, which accepts items up to 2**53 - 1.
Earlier releases reject OVERCHARGE and the new SEGMENT4 with HTTP 400.

Closes #216

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(helpers): sync game data constants with client schema 0.41.2115745
@github-actions github-actions Bot added documentation Improvements or additions to documentation ci Changes related to continuous integration processes dependencies Updates to package dependency libraries code testing labels Nov 23, 2026
Comment thread tests/unit/test_hmac_plain_http.py Fixed
Comment thread tests/unit/test_hmac_plain_http.py Fixed
MarTrepodi and others added 3 commits November 23, 2026 09:14
The two-URL case checked each host with a substring test on the log
message. CodeQL reads `"<host>" in message` as incomplete URL
sanitisation (py/incomplete-url-substring-sanitization) and raised two
high alerts. Compare the record's formatting argument instead, which is
also stricter: it pins both URLs and their order.

Use a neutral non-loopback host name in the parametrised cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
test(hmac): assert the plain-HTTP warning argument exactly
@MarTrepodi MarTrepodi closed this Nov 23, 2026
@MarTrepodi MarTrepodi reopened this Nov 23, 2026
@MarTrepodi
MarTrepodi merged commit 8cdf57a into main Nov 23, 2026
16 checks passed
@MarTrepodi
MarTrepodi deleted the release/v2.9.0 branch November 23, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment