chore(release): 2.0.0 - #121
Merged
Merged
Conversation
Major release. Spreads, indicators, rig counts, Energy Intelligence by-* methods, subscriptions, published types and fail-envelope errors now match what production sends; several old signatures and types could not work against the live API and are removed, changed or deprecated. Adds the spreads and indicators history/all methods, the subscriptions lifecycle and typed fuel-surcharge clients. Full breaking-change list in CHANGELOG.md. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015ao5paex73xXvuM424Libo
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Bumps the version to 2.0.0 in all four places that carry it (
package.json,package-lock.jsonroot entries,src/version.ts, and the pin intests/release-readiness.test.ts) and adds the## [2.0.0] - 2026-09-14CHANGELOG section as the first heading, which the release-readiness guard requires.Why a major
Approved by Karl 2026-09-13 ("approve node 2.0 and include 112"). Several resources were typed and called in ways production never supported, and correcting them changes signatures and return types. The CHANGELOG section lists every breaking change with its migration; in brief:
client.spreads/client.indicators([P2] spreads and indicators resources are typed against a shape the API does not send, and omit required parameters #112, PR fix(spreads,indicators): send required params and type the payloads production returns (#112) #119): untypedget/historical/allremoved; required selectors; return types match the wire;congressionalTrades()removed.client.rigCounts([P1][bug] client.rigCounts types describe none of the live payloads, and historical() returns undefined #108, PR fix(rig-counts): type client.rigCounts as the payloads production returns (#108) #113):latest()value iscount;historical()returns a page envelope (it returnedundefined).client.ei([P2][bug] RigCountRecord describes fields the API never returns, and covers two different endpoint shapes #104/[P2][bug] Six EI by-* methods omit the query param their route requires, and the API answers the failure with HTTP 200 #105, PRs fix(ei): type rig-count reports as the payloads production returns (#104) #109/fix(ei): make the six by-* methods send their required filter and return the page (#105) #110): report types; the sixby*methods require their filter and return records + paginationmeta.subscriptions.list()([P1][Sprint 1][Subscriptions] Complete get, update, pause, and resume lifecycle #78, PR feat(subscriptions): add get, update, pause and resume (#78) #115): throws on an unmappable body instead of resolving[].CategoriesResponsereshaped.error.message/error.code.Plus additions (spreads/indicators history and
allmethods, subscriptionsget/update/pause/resume, typed fuel-surcharge clients) and fixes (timeout through body read, pagination past the 500-row cap, path encoding, streaming lifecycle,.d.ctsfor CommonJS).Verification (local, this branch)
npm test→ 56 files, 919 passed, 1 skipped (includesrelease-readiness: package, runtime and changelog versions agree at 2.0.0)tsc --noEmitclean ·npm run lint(--max-warnings=0) clean ·npm run buildclean (37.d.ctsemitted)check:secrets,storefront:check(40 surfaces),snippets:checkpasssmoke:packagedid not pass locally, for an environmental reason: it builds, packs, installs the tarball and validates storefront claims, then calls the live/v1/demo/pricesendpoint, which answered 429 because this workstation's IP had already made 486 demo requests that day. CI'sExact package ESM and CJS smokejob runs the same script from a runner IP and is the gate for this PR;publish.ymlruns it again before publishing.mainat26e5694passed Test, Live API Tests and Docs deploynpm publish runs on the GitHub release event after merge.
🤖 Generated with Claude Code
https://claude.ai/code/session_015ao5paex73xXvuM424Libo