Skip to content

secondsky/claude-skills / plugins/hono-routing/skills/hono-routing

hono-routing

Verified

Type-safe Hono APIs with routing, middleware, RPC. Use for request validation, Zod/Valibot validators, or encountering middleware type inference, validation hook, RPC errors.

scripts/check-versions.sh

View on GitHub
#!/bin/bash

# Hono Skill - Package Version Checker
# Verifies that all package versions are current

echo "πŸ” Checking Hono skill package versions..."
echo ""

# Color codes
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
NC='\033[0m' # No Color

# Counter for outdated packages
OUTDATED=0

# Function to check package version
check_package() {
    local package=$1
    local current_version=$2

    echo -n "Checking $package... "

    # Get latest version from npm
    latest=$(npm view "$package" version 2>/dev/null)

    if [ $? -ne 0 ]; then
        echo -e "${RED}ERROR${NC} (package not found)"
        return 1
    fi

    if [ "$current_version" == "$latest" ]; then
        echo -e "${GREEN}βœ“${NC} $current_version (latest)"
    else
        echo -e "${YELLOW}⚠${NC} $current_version β†’ $latest (update available)"
        ((OUTDATED++))
    fi
}

echo "Core Dependencies:"
echo "─────────────────"
check_package "hono" "4.12.12"
echo ""

echo "Validation Libraries:"
echo "────────────────────"
check_package "zod" "4.3.6"
check_package "valibot" "1.1.0"
echo ""

echo "Hono Validators:"
echo "───────────────"
check_package "@hono/zod-validator" "0.7.4"
check_package "@hono/valibot-validator" "0.6.1"
check_package "@hono/typia-validator" "0.1.2"
check_package "@hono/arktype-validator" "2.0.1"
echo ""

echo "Summary:"
echo "────────"
if [ $OUTDATED -eq 0 ]; then
    echo -e "${GREEN}βœ“${NC} All packages are up to date!"
else
    echo -e "${YELLOW}⚠${NC} $OUTDATED package(s) have updates available"
    echo ""
    echo "To update, run:"
    echo "  npm install hono@latest"
    echo "  npm install zod@latest valibot@latest"
    echo "  npm install @hono/zod-validator@latest @hono/valibot-validator@latest"
fi

echo ""
echo "Last checked: $(date)"
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall