Skip to content

V1 cleanup#192

Merged
jolestar merged 3 commits intomainfrom
v1_cleanup
Jan 4, 2026
Merged

V1 cleanup#192
jolestar merged 3 commits intomainfrom
v1_cleanup

Conversation

@jolestar
Copy link
Contributor

@jolestar jolestar commented Jan 4, 2026

No description provided.

Copilot AI review requested due to automatic review settings January 4, 2026 12:56
@vercel
Copy link

vercel bot commented Jan 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
x402x-web Ready Ready Preview, Comment Jan 4, 2026 0:57am

@jolestar jolestar linked an issue Jan 4, 2026 that may be closed by this pull request
6 tasks
@cloudflare-workers-and-pages
Copy link

Deploying x402-exec with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7c6e3e5
Status: ✅  Deploy successful!
Preview URL: https://d50d52c2.x402-exec.pages.dev
Branch Preview URL: https://v1-cleanup.x402-exec.pages.dev

View logs

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR performs a major cleanup by removing deprecated v1 dependencies and updating all references from the deprecated @x402x/core package to the new @x402x/extensions package. The changes align the codebase with the v2 architecture where the core SDK functionality has been reorganized into more appropriately named packages.

  • Renamed package references from @x402x/core to @x402x/extensions across documentation
  • Removed deprecated x402 git submodules (deps/x402 and deps/x402_upstream_main)
  • Updated API type definitions to reflect v2 requirements

Reviewed changes

Copilot reviewed 9 out of 15 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
web/frontend/src/content/docs/reference-networks.mdx Updated package reference from @x402x/core to @x402x/extensions for getNetworkConfig
web/frontend/src/content/docs/contracts-hooks.mdx Updated import statement from @x402x/core to @x402x/extensions for TransferHook
web/frontend/public/llms.txt Updated package references throughout the documentation from @x402x/core to @x402x/extensions, removed outdated install instruction
typescript/README.md Complete rewrite of README to reflect v2 architecture with new package structure (@x402x/extensions, @x402x/client, @x402x/facilitator-sdk)
facilitator/README.md Updated package references from @x402x/core to @x402x/extensions in comments
examples/showcase/client/src/hooks/usePayment.ts Changed x402Version field from optional to required in PaymentResponse interface
deps/x402_upstream_main Removed deprecated submodule
deps/x402 Removed deprecated submodule
.gitmodules Removed references to deprecated x402 submodules

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

accepts?: PaymentRequirements[];
error?: string;
x402Version?: number; // v2-only: must be 2
x402Version: number; // v2-only: must be 2
Copy link

Copilot AI Jan 4, 2026

Choose a reason for hiding this comment

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

The x402Version field should remain optional (using ?) rather than being made required. Making it required is a breaking change that could cause issues with existing code that doesn't include this field in the response. If you need to ensure v2 responses, consider handling this validation in the consuming code rather than at the type level.

Suggested change
x402Version: number; // v2-only: must be 2
x402Version?: number; // v2-only: must be 2

Copilot uses AI. Check for mistakes.
@jolestar jolestar merged commit 055de75 into main Jan 4, 2026
14 checks passed
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.

Deprecate x402 v1 support (facilitator + SDK + docs)

2 participants