-
Notifications
You must be signed in to change notification settings - Fork 1
Add GitHub Copilot instructions configuration #87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,242 @@ | ||||||
| # Copilot Coding Agent Instructions | ||||||
|
|
||||||
| ## Project Overview | ||||||
|
|
||||||
| **fast-url** is a high-performance TypeScript/JavaScript library for building URLs safely and conveniently. It's a fork of [urlcat](https://github.com/balazsbotond/urlcat) with a focus on performance and simplicity. | ||||||
|
|
||||||
| ### Key Features | ||||||
| - Lightweight with minimal dependencies (only fast-querystring) | ||||||
| - Type-safe with full TypeScript definitions | ||||||
| - URL-safe with automatic parameter escaping | ||||||
| - Unicode-aware using `codePointAt` for proper Unicode handling | ||||||
| - Multiple ways to build URLs for different use cases | ||||||
|
|
||||||
| ### Tech Stack | ||||||
| - **Language**: TypeScript | ||||||
| - **Runtime**: Node.js (with support for Bun and Deno) | ||||||
| - **Build Tool**: tsdown (powered by rolldown) | ||||||
| - **Testing**: Vitest with coverage reporting | ||||||
| - **Linting/Formatting**: Biome | ||||||
| - **Benchmarking**: CodSpeed | ||||||
| - **Package Manager**: Bun (but npm/pnpm also work) | ||||||
|
|
||||||
| ## Building the Project | ||||||
|
|
||||||
| ### Prerequisites | ||||||
| - Node.js (reasonably recent version) | ||||||
| - Bun installed (recommended) or npm | ||||||
|
|
||||||
| ### Installation | ||||||
| ```bash | ||||||
| # Clone the repository | ||||||
| git clone [email protected]:hckhanh/fast-url.git | ||||||
| cd fast-url | ||||||
|
|
||||||
| # Install dependencies | ||||||
| bun install | ||||||
| # OR | ||||||
| npm install | ||||||
| ``` | ||||||
|
|
||||||
| ### Build Commands | ||||||
| ```bash | ||||||
| # Build the library (outputs to dist/) | ||||||
| bun run build | ||||||
| # OR | ||||||
| npm run build | ||||||
| ``` | ||||||
|
|
||||||
| The build process uses tsdown to compile TypeScript and bundle the library. Output appears in the `dist/` directory. | ||||||
|
|
||||||
| ## Running Tests | ||||||
|
|
||||||
| ### Test Commands | ||||||
| ```bash | ||||||
| # Run all tests | ||||||
| bun test | ||||||
| # OR | ||||||
| npm test | ||||||
|
|
||||||
| # Run tests with coverage | ||||||
| bun run test --coverage | ||||||
|
||||||
| bun run test --coverage | |
| bun test --coverage |
Copilot
AI
Nov 12, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is incorrect. The package.json file has no production dependencies. The query string functionality is implemented locally in src/querystring/stringify.ts and src/querystring/node.ts, not imported from fast-querystring. This section should either be removed or corrected to state 'No production dependencies'.
| - **fast-querystring**: The only production dependency, used for query string building | |
| - None (all query string functionality is implemented locally) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The claim that fast-querystring is a dependency is incorrect. The package.json file shows no 'dependencies' section at all, meaning there are zero production dependencies. The query string functionality is implemented in the local
src/querystring/directory, not via an external package.