Skip to content

Upgrade native bindings to v1.3.0 and add setLogLevel export#63

Merged
JonoPrest merged 2 commits intomainfrom
claude/build-and-version-bump-MV4Pj
Mar 27, 2026
Merged

Upgrade native bindings to v1.3.0 and add setLogLevel export#63
JonoPrest merged 2 commits intomainfrom
claude/build-and-version-bump-MV4Pj

Conversation

@JonoPrest
Copy link
Copy Markdown
Collaborator

@JonoPrest JonoPrest commented Mar 27, 2026

Summary

This PR updates the hypersync-client native bindings from v1.2.0 to v1.3.0 across all supported platforms and adds a new setLogLevel function export to the public API.

Key Changes

  • Version bump: Updated all native binding package versions from 1.2.0 to 1.3.0 in index.js version checks for all 26 supported platform/architecture combinations
  • New API export: Added setLogLevel function export in index.js to expose the underlying Rust logger configuration
  • Type definitions: Added TypeScript declaration for setLogLevel(level: string) function with documentation explaining its usage and constraints
  • Method reordering: Reorganized HypersyncClient class methods in type definitions to group streaming methods together (streamHeight and stream moved before getWithRateLimit)
  • Interface reordering: Reordered type definitions in index.d.ts to place QueryResponseWithRateLimit and RateLimitInfo after QueryResponseData for better logical grouping

Implementation Details

  • The setLogLevel function accepts log level strings like "info", "warn", "debug", "trace", "error" or full filter directives like "hypersync_client=debug"
  • The function must be called before creating any HypersyncClient instances
  • Only the first call takes effect as the logger can only be initialized once per process
  • The RUST_LOG environment variable takes precedence if set

https://claude.ai/code/session_012S4bi3pn9iQ8aT9iMv4s5i

Summary by CodeRabbit

Release Notes v1.3.0

  • New Features

    • Added setLogLevel(level: string) function to configure logging before initializing the client.
  • Chores

    • Updated package version to 1.3.0 across all platform distributions.

@JonoPrest JonoPrest requested a review from JasoonS March 27, 2026 15:01
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 27, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 7c17d3f7-f5a2-4493-85c1-f41f2250f013

📥 Commits

Reviewing files that changed from the base of the PR and between 52ec69a and eef2161.

📒 Files selected for processing (7)
  • index.d.ts
  • index.js
  • npm/darwin-arm64/package.json
  • npm/darwin-x64/package.json
  • npm/linux-arm64-gnu/package.json
  • npm/linux-x64-gnu/package.json
  • npm/linux-x64-musl/package.json

📝 Walkthrough

Walkthrough

Version bump to 1.3.0 across platform-specific packages with native binding version enforcement update, type definition reordering in the TypeScript declarations, and addition of a new setLogLevel function export for logger configuration.

Changes

Cohort / File(s) Summary
Type Definitions & JavaScript Entry Point
index.d.ts, index.js
Added setLogLevel(level: string): void export for Rust logger configuration; reordered HypersyncClient methods and rate-limit type definitions (no signature changes); updated native binding version check from 1.1.0 to 1.3.0.
Platform-Specific Package Manifests
npm/darwin-arm64/package.json, npm/darwin-x64/package.json, npm/linux-arm64-gnu/package.json, npm/linux-x64-gnu/package.json, npm/linux-x64-musl/package.json
Version bumped from 1.2.0 to 1.3.0 across all platform packages; trailing newlines removed.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • JasoonS
  • DZakh

Poem

🐰 Version three point oh, the logs now flow,
With setLogLevel in tow—no guesswork show!
Platform packages aligned in harmony,
Native bindings blessed with consistency! ✨

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/build-and-version-bump-MV4Pj

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@JonoPrest JonoPrest merged commit a78cab8 into main Mar 27, 2026
1 check was pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant