Skip to content

feat: replaced siwe to complete remove ethers - #150

Merged
anthony23991 merged 4 commits into
mainfrom
develop
Jul 3, 2026
Merged

anthony23991 merged 4 commits into
mainfrom
develop

Conversation

@anthony23991

Copy link
Copy Markdown
Contributor

No description provided.

* fix(console): deprecated dapps, removed ethers, and enhancements

* fix: yarn

* fix: ci build

* fix: removed fully mapps

* fix: yarn

* fix: vercel build
@vercel

vercel Bot commented Jul 3, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
console Ready Ready Preview Jul 3, 2026 12:06pm

Request Review

@justalab-agents justalab-agents 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.

This PR fixes the PostHog analytics proxy configuration in next.config.js by routing static assets to eu-assets.i.posthog.com and event ingestion to eu.i.posthog.com (replacing the deprecated eu.posthog.com), and removes the fragile build-time IP-fetching logic that was used to set X-Forwarded-For headers. It also consolidates several sparse analytics event types into richer, well-documented payloads with location context fields, and merges DOCS_LINK_CLICKED/DASHBOARD_LINK_CLICKED into a single LINK_CLICKED event. Additionally, the release workflow gains commit-message parsing to automatically select minor vs patch version bumps — though breaking-change commits (feat!:) are silently treated as minor rather than major, which is a gap worth addressing.

TITLE=$(printf '%s' "$COMMIT_MSG" | head -n1)
echo "Commit title: $TITLE"
if printf '%s' "$TITLE" | grep -qE '^feat(\(.+\))?!?:'; then
SPECIFIER=minor

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[WARNING] agentic/bug

The regex for feat commits uses !? after the optional scope, meaning a breaking-change commit (feat!: ... or feat(scope)!: ...) is classified as minor instead of major. The conventional-commit spec states that a ! suffix denotes a breaking change which should bump the major version. The ! should be detected as a separate case that sets SPECIFIER=major before the feat branch, or the regex should differentiate it. Additionally, perf: and refactor: types (commonly treated as patch) and chore: are all silently treated as patch by the fallback, which may or may not be intentional — worth documenting.

Suggested fix:

if printf '%s' "$TITLE" | grep -qE '^(feat|fix)(\(.+\))?!:'; then
  SPECIFIER=major
elif printf '%s' "$TITLE" | grep -qE '^feat(\(.+\))?:'; then
  SPECIFIER=minor
elif printf '%s' "$TITLE" | grep -qE '^fix(\(.+\))?:'; then
  SPECIFIER=patch
else
  SPECIFIER=patch
fi

Comment thread .github/workflows/release.yml Outdated
- name: Release
run: |
npx nx release --specifier=patch --yes
npx nx release --specifier=${{ steps.specifier.outputs.specifier }} --yes

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[WARNING] agentic/security

The step output steps.specifier.outputs.specifier is interpolated directly into the shell command string via ${{ ... }}. Even though the value produced in the run script can only be minor or patch (due to the fixed assignments), GitHub Actions expression injection is a latent risk: if the logic ever changes, or if an attacker can influence the output file ($GITHUB_OUTPUT), the literal string lands unquoted in the shell. The value should be quoted in the shell command to be safe.

Suggested fix:

npx nx release --specifier="${{ steps.specifier.outputs.specifier }}" --yes

Resolve conflicts (develop = complete ethers-free SIWE removal):
- src (sign-in, subname-challenge, siwens.ts): keep develop's viem/siwe impl
- package.json (sdk, siwens, packages/siwens): keep main's published
  versions, drop the removed 'siwe' peerDep, keep '@stablelib/random'
- yarn.lock: regenerated
- release.yml: breaking '!' commits -> major, quote specifier interpolation
@anthony23991
anthony23991 merged commit 5a376ce into main Jul 3, 2026
2 checks passed

This branch was successfully deployed

1 active deployment
Preview 586309a1 Deployed Jul 3, 2026 by vercel[bot]
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