Skip to content

Bump all dependencies to latest versions#80

Merged
tomusdrw merged 2 commits intomainfrom
bump-all-deps-latest
Mar 22, 2026
Merged

Bump all dependencies to latest versions#80
tomusdrw merged 2 commits intomainfrom
bump-all-deps-latest

Conversation

@tomusdrw
Copy link
Member

Summary

  • Bump all dependencies to latest versions, including major upgrades: vite 7→8, jsdom 27→29, typescript 5.6→5.9, @typeberry/lib 0.5.1→0.5.10, @fluffylabs/shared-ui 0.4.5→0.6.3, lucide-react 0.562→0.577
  • Set up Google Fonts (Poppins + Inconsolata) per shared-ui v0.5.0+ theme requirements
  • Adapt to @typeberry/lib breaking changes: flattened block sub-namespaces (block.disputes.Xblock.X), removed ServiceStatistics.onTransfersCount, private WorkExecResult constructor → factory method, StateTransition now expects Block.Codec.View
  • Update biome schema version to match CLI 2.4.8

Test plan

  • npm run build passes (tsc + vite)
  • All 152 tests pass
  • npm run qa (biome ci) clean
  • No lucide-react icon renames affect this project

🤖 Generated with Claude Code

tomusdrw and others added 2 commits March 22, 2026 23:33
Upgrade all deps including major bumps: shared-ui 0.4.5→0.6.3,
typeberry/lib 0.5.1→0.5.10, vite 7→8, jsdom 27→29, typescript 5.6→5.9.
Add Google Fonts (Poppins + Inconsolata) per shared-ui v0.5.0+ theme.
Adapt to typeberry/lib breaking changes: flattened block namespaces,
removed ServiceStatistics.onTransfersCount, private WorkExecResult
constructor, and Block.Codec.View in StateTransition.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@netlify
Copy link

netlify bot commented Mar 22, 2026

Deploy Preview for fluffy-codec ready!

Name Link
🔨 Latest commit 279c019
🔍 Latest deploy log https://app.netlify.com/projects/fluffy-codec/deploys/69c06e7afa15b20008b8e178
😎 Deploy Preview https://deploy-preview-80--fluffy-codec.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 22, 2026

📝 Walkthrough

Walkthrough

This PR updates the codebase to use new top-level exports from the @typeberry/lib/block module, replacing previous nested namespace paths (e.g., block.disputes.*, block.tickets.*). Additionally, dependency versions are bumped, Google Fonts are linked in HTML, and the Biome schema is updated to version 2.4.8.

Changes

Cohort / File(s) Summary
Configuration & Dependencies
biome.jsonc, index.html, package.json
Updated Biome schema version to 2.4.8; added Google Fonts preconnect and stylesheet links; bumped npm dependencies including @biomejs/biome, React, Tailwind, TypeScript, and Vite packages.
Constants & Codec References
src/components/constants.ts
Updated KindDescriptor codec properties to reference top-level block.* exports (e.g., block.Culprit.Codec, block.DisputesExtrinsic.Codec) instead of nested namespaces (block.disputes.*, block.assurances.*, etc.).
Example Objects — Namespace Flattening
src/components/examples/objects/availabilityAssurance.ts, credential.ts, culprit.ts, disputesExtrinsic.ts, fault.ts, importSpec.ts, judgement.ts, preimage.ts, refineContext.ts, reportGuarantee.ts, signedTicket.ts, ticket.ts, verdict.ts, workExecResult.ts, workItem.ts, workItemExtrinsicSpec.ts, workPackage.ts, workPackageSpec.ts, workReport.ts, workResult.ts
Updated all example factory functions to construct and return instances using top-level block exports (block.Culprit, block.Ticket, block.WorkItem, etc.) instead of nested namespace paths. Also consolidated multi-line function signatures to single-line format and updated internal helper method references (e.g., block.tryAsTicketAttempt instead of block.tickets.tryAsTicketAttempt).
Example State & STF
src/components/examples/state/recentBlocks.ts, safroleData.ts, statistics.ts, src/components/examples/stf/transition.ts
Updated WorkPackageInfo and ticket construction calls to use top-level block exports; statistics.ts removed onTransfersCount and onTransfersGasUsed from service statistics creation; transition.ts added block re-encoding using codec view with block.reencodeAsView().

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • Examples & updates #68: Introduced the new top-level block exports (e.g., block.Culprit, block.Ticket, block.WorkItem) that this PR updates the codebase to use throughout example modules and constants.
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Bump all dependencies to latest versions' directly and accurately summarizes the main change in the PR—upgrading all project dependencies including major version bumps.
Description check ✅ Passed The description is directly related to the changeset, providing detailed context on the dependency upgrades, breaking changes adapted, and the test plan validation performed.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ 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 bump-all-deps-latest

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

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
index.html (1)

9-14: Consider self-hosting these fonts to avoid third-party runtime dependency.

This works, but loading fonts from Google at runtime (Line 9–Line 14) can create privacy/compliance and CSP friction, and adds an external availability dependency. Prefer bundling/self-hosting (e.g., via local assets or @fontsource) if your deployment has strict privacy/security requirements.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@index.html` around lines 9 - 14, Replace the external Google Fonts links (the
<link> tags loading Poppins and Inconsolata) with a self-hosted solution: either
install and import the fonts via a package like `@fontsource` (e.g.,
`@fontsource/poppins` and `@fontsource/inconsolata`) or add the font files to your
assets and reference them via local CSS `@font-face` rules; update the HTML to
remove the Google CDN <link> tags and ensure your CSS uses the same font-family
names (Poppins, Inconsolata) so existing styles continue to work, and verify CSP
and build pipeline include the new font files.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@index.html`:
- Around line 9-14: Replace the external Google Fonts links (the <link> tags
loading Poppins and Inconsolata) with a self-hosted solution: either install and
import the fonts via a package like `@fontsource` (e.g., `@fontsource/poppins` and
`@fontsource/inconsolata`) or add the font files to your assets and reference them
via local CSS `@font-face` rules; update the HTML to remove the Google CDN <link>
tags and ensure your CSS uses the same font-family names (Poppins, Inconsolata)
so existing styles continue to work, and verify CSP and build pipeline include
the new font files.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4bd2dc1d-310d-4334-86a2-415d1e10dcdb

📥 Commits

Reviewing files that changed from the base of the PR and between c1e1ee8 and 279c019.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (28)
  • biome.jsonc
  • index.html
  • package.json
  • src/components/constants.ts
  • src/components/examples/objects/availabilityAssurance.ts
  • src/components/examples/objects/credential.ts
  • src/components/examples/objects/culprit.ts
  • src/components/examples/objects/disputesExtrinsic.ts
  • src/components/examples/objects/fault.ts
  • src/components/examples/objects/importSpec.ts
  • src/components/examples/objects/judgement.ts
  • src/components/examples/objects/preimage.ts
  • src/components/examples/objects/refineContext.ts
  • src/components/examples/objects/reportGuarantee.ts
  • src/components/examples/objects/signedTicket.ts
  • src/components/examples/objects/ticket.ts
  • src/components/examples/objects/verdict.ts
  • src/components/examples/objects/workExecResult.ts
  • src/components/examples/objects/workItem.ts
  • src/components/examples/objects/workItemExtrinsicSpec.ts
  • src/components/examples/objects/workPackage.ts
  • src/components/examples/objects/workPackageSpec.ts
  • src/components/examples/objects/workReport.ts
  • src/components/examples/objects/workResult.ts
  • src/components/examples/state/recentBlocks.ts
  • src/components/examples/state/safroleData.ts
  • src/components/examples/state/statistics.ts
  • src/components/examples/stf/transition.ts
💤 Files with no reviewable changes (1)
  • src/components/examples/state/statistics.ts

@tomusdrw tomusdrw merged commit 92e886b into main Mar 22, 2026
6 checks passed
@tomusdrw tomusdrw deleted the bump-all-deps-latest branch March 22, 2026 22:43
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