Skip to content

docs: install instructions pin ^0.5.2, which cannot resolve to the current 0.6.1 release - #35

Open
boleklebovski wants to merge 1 commit into
FhenixProtocol:masterfrom
boleklebovski:docs/bump-cofhe-versions-0-6-1
Open

docs: install instructions pin ^0.5.2, which cannot resolve to the current 0.6.1 release#35
boleklebovski wants to merge 1 commit into
FhenixProtocol:masterfrom
boleklebovski:docs/bump-cofhe-versions-0-6-1

Conversation

@boleklebovski

Copy link
Copy Markdown

Problem

Every install command and version table in the client-SDK docs pins the CoFHE packages at ^0.5.2 (and @fhenixprotocol/cofhe-contracts at ^0.1.3). All five @cofhe/* packages are now published at 0.6.1, and the contracts package at 0.1.4.

Because these are 0.x versions, the caret range is narrower than people expect: ^0.5.2 means >=0.5.2 <0.6.0, so it can never resolve to 0.6.1. Anyone following the docs installs a full minor line behind, and no warning is produced.

Verified against two independent registry mirrors (jsDelivr and unpkg):

Package Docs pin Latest published
@cofhe/sdk ^0.5.2 0.6.1
@cofhe/hardhat-plugin ^0.5.2 0.6.1
@cofhe/hardhat-3-plugin 0.5.2 0.6.1
@cofhe/foundry-plugin ^0.5.2 0.6.1
@cofhe/mock-contracts ^0.5.2 0.6.1
@fhenixprotocol/cofhe-contracts ^0.1.3 0.1.4

Fix

Bump the documented ranges to ^0.6.1 / ^0.1.4 across the install commands and version tables.

The contracts bump is required rather than cosmetic: @cofhe/hardhat-plugin@0.6.1 declares a peer dependency of @fhenixprotocol/cofhe-contracts >=0.1.4, and @cofhe/foundry-plugin@0.6.1 and @cofhe/mock-contracts@0.6.1 both pin it to exactly 0.1.4. So the "keep all three aligned" note in the Foundry reference stays true only if the tuple moves together.

Two smaller things ride along, both on lines already being touched:

  • client-sdk/introduction/installation.mdx stated "@fhenixprotocol/cofhe-contracts@0.1.3 requires @cofhe/sdk version >= 0.5.1. Latest published is 0.5.2." — the last sentence is now wrong. Replaced with the pinning relationship I could verify from the published manifests.
  • The @cofhe/sdk link in the compatibility table pointed at releases/tag/v0.5.2, which 404s — this repo tags releases as @cofhe/sdk@<version>, not v<version>, so that link has never resolved. Repointed at the real 0.6.1 release tag (verified 200).

Scope note

I deliberately left the Minimum Compatible Version column in compatibility.mdx untouched. Bumping "current" is a fact I can verify from the registry; deciding the lowest still-supported version is your call, not mine. I also left the historical note in fhe-library/reference/fhe-sol/utility.mdx about the rename in cofhe-contracts@v0.1.3, since that is a statement about the past.

Docs-only: 7 files, no code or config touched.

The documented install ranges pin ^0.5.2, which semver excludes 0.6.x, so
readers install a full minor behind the published packages.

Signed-off-by: boleklebovski <160799963+boleklebovski@users.noreply.github.com>
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