chore: release 4.2.0#453
Merged
Merged
Conversation
Minor bump covering the two changes merged since 4.1.0: - #452 (closes #451): additive response fields reconciling in-place upstream spec drift — Event.settlement_sources and WS MarketLifecyclePayload strike_type / cap_strike / custom_strike. - #448: cryptography dependency ceiling widened <49 -> <50. Additive-minor per the 4.1.0 precedent (MarginPosition.subaccount, also a spec-required response field, shipped in a minor with the same direct- construction note). No breaking changes. Bumps pyproject.toml + kalshi.__version__ to 4.2.0 and adds the CHANGELOG entry. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Code Review — chore: release 4.2.0Overview: Clean release bump merging two already-landed PRs (#448, #452). Only the three expected files are touched: What's correct
Minor observations (no blockers)
VerdictLGTM. The diff is exactly what it should be for a release PR. The two concerns above are polish-level, not blockers. Safe to merge once CI is green. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Minor version bump
4.1.0→4.2.0covering the two changes merged since 4.1.0.Event.settlement_sourcesand WSMarketLifecyclePayload.{strike_type, cap_strike, custom_strike}.cryptographydependency ceiling widened<49→<50.Why minor (not major or patch)
Follows the 4.1.0 precedent: that release added
MarginPosition.subaccount— a spec-required response field — as a minor, with a note that direct constructors must now include it.Event.settlement_sourcesis the identical case, so it's additive-minor with the same note, not a breaking-major (those are reserved for real API breaks, e.g. the SCM rename in 4.0.0). New readable model surface rules out a patch.Changes
pyproject.tomlversion→4.2.0kalshi/__init__.py__version__→4.2.0CHANGELOG.md— new## 4.2.0 — 2026-06-19entry (Added: the new fields; Changed: cryptography cap + the held-at-104-ops spec note)Verification
uv run ruff check .— cleanuv run mypy kalshi/— cleanimport kalshi; kalshi.__version__→4.2.0, matchespyproject.tomlNote
A
docs: 100% accuracy pass for v4.2.0pass (mentioning the new fields indocs/resources/events.mdand the WS lifecycle docs) typically follows as a separate PR, per the 4.0.0/4.1.0 cadence — not included here to keep this PR to the release bump.🤖 Generated with Claude Code