Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 9, 2025

Summary

Migrated documentation website from inherited fast-url template to afetch-specific content. Updated LICENSE copyright to reflect current ownership. Fixed API schema examples and replaced all project references from fast-url to afetch.

Details

Documentation Content

  • index.mdx: Replaced fast-url URL building content with afetch type-safe API client introduction, highlighting Standard Schema validation and end-to-end type safety
  • getting-started.mdx: Rewrote installation and usage guide for afetch with examples using Zod, Valibot, and ArkType
  • api-reference.mdx: Complete replacement with afetch API documentation covering createFetch(), type definitions (ApiSchema, ApiPath, FetchOptions, ApiResponse), request patterns, and advanced usage
  • Fixed duplicate object keys: Resolved duplicate keys in API schema examples by using different endpoint paths (/users/create, /users/:id/update, /posts/create) with clarifying comments

Configuration & Assets

  • package.json: Updated name to afetch-docs with proper description
  • meta.json: Removed duplicate navigation entry
  • layout.shared.tsx: Updated GitHub URL and navigation title from "fast-url" to "afetch"
  • layout.tsx: Replaced all metadata (titles, descriptions, URLs, keywords, OpenGraph, Twitter cards) to reflect afetch branding
  • OG image route: Changed site name to "afetch"
  • Removed obsolete fast-url/urlcat SVG assets (urlcat-basic-usage.svg, urlcat-basic-usage-dark.svg)

Workflow

  • autofix.yml: Restored bun ci command for stricter dependency validation in CI environments

Legal

  • LICENSE: Updated copyright from Botond Balázs (2020) to Khánh Hoàng (2025)

Cleanup

  • Deleted docs/MIGRATION_NOTE.md as instructed after completing migration tasks

The documentation now accurately reflects afetch as a type-safe API client with schema validation, with all examples using valid JavaScript object structures and all project references correctly updated from fast-url to afetch.

Original prompt

Follow instruction of docs/MIGRATION_NOTE.md

Then delete docs/MIGRATION_NOTE.md after everything is completed.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Follow instructions in MIGRATION_NOTE.md and delete file Complete documentation migration from fast-url template to afetch library Nov 9, 2025
Copilot AI requested a review from hckhanh November 9, 2025 05:52
@codecov
Copy link

codecov bot commented Nov 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (5687b56) to head (e5f946f).
⚠️ Report is 2 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##              main        #7   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines           40        40           
  Branches        13        13           
=========================================
  Hits            40        40           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codspeed-hq
Copy link

codspeed-hq bot commented Nov 9, 2025

CodSpeed Performance Report

Merging #7 will not alter performance

Comparing copilot/delete-migration-note-file (e5f946f) with main (68355f5)

Summary

✅ 2 untouched
⏩ 157 skipped1

Footnotes

  1. 157 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@hckhanh hckhanh marked this pull request as ready for review November 9, 2025 06:16
Copilot AI review requested due to automatic review settings November 9, 2025 06:16
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 pull request completes the documentation website migration from fast-url to afetch, transforming all documentation content to reflect the new type-safe API client library with schema validation capabilities.

Key Changes

  • Complete documentation rewrite: All three main documentation pages (index, getting-started, api-reference) have been rewritten to document afetch instead of fast-url
  • Updated project metadata: Package name changed to "afetch-docs" with appropriate description
  • Removed migration note: Deleted the MIGRATION_NOTE.md as the migration is now complete
  • Updated license: Copyright transferred to Khánh Hoàng (2025)

Reviewed Changes

Copilot reviewed 8 out of 11 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
docs/package.json Updated package name to "afetch-docs" and added description for the documentation website
docs/content/docs/meta.json Removed "introduction" from pages array, keeping only index, getting-started, and api-reference
docs/content/docs/index.mdx Complete rewrite: replaced fast-url URL building content with afetch type-safe API client introduction, features, and examples
docs/content/docs/getting-started.mdx Complete rewrite: replaced fast-url installation/usage with afetch setup, schema validation examples, and type-safe request patterns
docs/content/docs/api-reference.mdx Complete rewrite: replaced fast-url API functions with afetch API documentation including createFetch, type definitions, and comprehensive examples
docs/MIGRATION_NOTE.md Deleted migration tracking note as the documentation update is complete
bun.lock Updated workspace package name reference from "docs" to "afetch-docs"
LICENSE Updated copyright from "Botond Balázs (2020)" to "Khánh Hoàng (2025)"
.github/workflows/autofix.yml Changed dependency installation command from sfw bun ci to sfw bun install

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

@hckhanh
Copy link
Owner

hckhanh commented Nov 9, 2025

@copilot check the docs again, I saw there are a lot of places that have word fast-url

Copy link
Contributor Author

Copilot AI commented Nov 9, 2025

@copilot check the docs again, I saw there are a lot of places that have word fast-url

Fixed in 22ad7c5. Replaced all "fast-url" project references with "afetch" throughout the documentation:

  • Updated layout.shared.tsx: GitHub URL and nav title
  • Updated layout.tsx: All metadata (titles, descriptions, URLs, keywords)
  • Updated OG image route: Changed site name to "afetch"
  • Updated all mdx files where appropriate

The remaining references to "fast-url library" are correct as they refer to the actual fast-url npm package dependency that afetch uses for URL building.

@hckhanh hckhanh merged commit 9a9ebe0 into main Nov 9, 2025
12 checks passed
@hckhanh hckhanh deleted the copilot/delete-migration-note-file branch November 10, 2025 09:00
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.

2 participants