Skip to content

chore: update toolkit to Compact 0.31.0#1555

Merged
gilescope merged 18 commits into
mainfrom
ozgb-update-compactc-0.31.0
Jun 2, 2026
Merged

chore: update toolkit to Compact 0.31.0#1555
gilescope merged 18 commits into
mainfrom
ozgb-update-compactc-0.31.0

Conversation

@ozgb

@ozgb ozgb commented May 21, 2026

Copy link
Copy Markdown
Contributor

Overview

Bumps COMPACTC_VERSION from 0.30.0 to 0.31.0 so the toolkit pulls the
latest compactc release, enabling QA to test against Compact 0.31.0.

🗹 TODO before merging

📌 Submission Checklist

  • All commits are signed off (git commit -s) for the DCO
  • Changes are backward-compatible (or flagged if breaking)
  • Pull request description explains why the change is needed
  • Self-reviewed the diff
  • I have included a change file, or skipped for this reason:
  • If the changes introduce a new feature, I have bumped the node minor version
  • Update documentation (if relevant)
  • Updated AGENTS.md if build commands, architecture, or workflows changed
  • No new todos introduced

🧪 Testing Evidence

Please describe any additional testing aside from CI:

  • Additional tests are provided (if possible)

🔱 Fork Strategy

  • Node Runtime Update
  • Node Client Update
  • Other:
  • N/A

Links

Closes #1535

Bumps COMPACTC_VERSION from 0.30.0 to 0.31.0 so the toolkit pulls the
latest compactc release, enabling QA to test against Compact 0.31.0.

Closes #1535

Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>
@ozgb ozgb requested a review from a team as a code owner May 21, 2026 12:25
Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9a8176cd9d

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread changes/toolkit/changed/update-compactc-0.31.0.md Outdated
@ozgb ozgb marked this pull request as draft May 21, 2026 12:27
@gilescope gilescope mentioned this pull request May 23, 2026
16 tasks
ozgb added 12 commits May 26, 2026 13:19
The `toolkit-js` workspace previously named its sibling packages by ledger
version (`v7/`, `v8/`) and dispatched on `LEDGER_VERSION`. The axis that
actually varies between variants is the `@midnight-ntwrk/compact-js` line —
which tracks the `compactc` compiler — and multiple `compactc` versions can
target the same ledger version (e.g. `0.30.x` and `0.31.x` both target
ledger 8), which the old scheme could not represent.

- `v7/` → `compact-0.29/` (compact-js `2.4.3`)
- `v8/` → `compact-0.30/` (compact-js `2.5.0`, reverted from in-place 2.5.1 bump)
- Added `compact-0.31/` (compact-js `2.5.1`)
- Env var: `COMPACTC_VERSION` (default `0.31`), replaces `LEDGER_VERSION`;
  accepts either `<major>.<minor>` or full `<major>.<minor>.<patch>` form.

Assisted-by: Claude:claude-4.7-opus
Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>
Missed staging the in-place `name` edits when committing the directory
renames. Without this, the `compact-0.29`/`compact-0.30` workspace packages
still declare their old `node-toolkit-v7`/`v8` names while the root manifest
already references the new ones, so `npm install` would fail to link them.

Assisted-by: Claude:claude-4.7-opus
Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>
…ions

Deploy.test.ts was skipped because the bare compact-js-command import resolved to whichever compact-js line npm hoisted, not the variant pinned for the active compactc version.

- Extract the resolution hook from bin.ts into a shared compactc-resolver module so the CLI and tests dispatch identically.
- Add a vitest setup file that installs the hook for the active COMPACTC_VERSION, so the test (and the config it loads) resolves compact-js*/compact-runtime against the matching variant.
- Add scripts/test-all-compactc.sh (npm run test:compat) which recompiles the test contract and runs the suite once per supported version, since the generated managed/ output is version-specific.
- Route per-version test artifacts (intent/output-ps/zswap) to ignored paths.

Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>
…port

Assisted-By: Claude:claude-opus-4.8
Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>
The --network flag was removed from toolkit.js in the latest version

Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>
Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>
Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>
Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>
@ozgb ozgb marked this pull request as ready for review June 1, 2026 13:04

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 41a388ae70

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread util/toolkit/src/toolkit_js/mod.rs
Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a5fe1641c3

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread util/toolkit-js/package.json
Comment thread util/toolkit-js/test/setup-compactc-resolver.ts
- Run npm run build:variants in the test script to ensure dynamic resolution works
- Fix variant detection in toolkit integration tests

Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9303896ffb

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread util/toolkit/src/cli_parsers.rs
Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>
Comment thread util/toolkit/src/toolkit_js/mod.rs Outdated
LGLO
LGLO previously approved these changes Jun 2, 2026
@gilescope gilescope enabled auto-merge June 2, 2026 12:15
Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>
@gilescope gilescope added this pull request to the merge queue Jun 2, 2026
Merged via the queue into main with commit 3e3560e Jun 2, 2026
37 checks passed
@gilescope gilescope deleted the ozgb-update-compactc-0.31.0 branch June 2, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Toolkit to Compact 0.31.0

3 participants