Skip to content

Conversation

@ysknsid25
Copy link
Contributor

I am a certified librarian. So I realized that I would like to be able to verify ISBNs when registering books.

The ISBN specifications are here.

Signed-off-by: ysknsid25 <[email protected]>
Copilot AI review requested due to automatic review settings March 22, 2025 14:45
@vercel
Copy link

vercel bot commented Mar 22, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
valibot ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 24, 2025 9:58am

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 introduces ISBN validation functionality for the library management system, allowing the verification of both ISBN-10 and ISBN-13 formats when registering books. Key changes include adding new validation logic in the ISBN action, comprehensive test cases for the new functionality, and an update to the API menu to expose the ISBN endpoint.

Reviewed Changes

Copilot reviewed 5 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
library/src/actions/isbn/isbn.test-d.ts Adds TypeScript type tests for ISBN action object
library/src/actions/isbn/isbn.test.ts Provides tests for both valid and invalid ISBN datasets
library/src/actions/isbn/isbn.ts Implements the ISBN validation and related documentation
library/src/actions/isbn/index.ts Exports the ISBN action
website/src/routes/api/menu.md Updates API menu to include the new ISBN endpoint
Files not reviewed (3)
  • website/src/routes/api/(actions)/isbn/index.mdx: Language not supported
  • website/src/routes/api/(schemas)/string/index.mdx: Language not supported
  • website/src/routes/guides/(main-concepts)/pipelines/index.mdx: Language not supported

@fabian-hiller
Copy link
Member

Great idea! Thank you for creating this PR! I will try to review it next week!

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 23, 2025

Open in StackBlitz

npm i https://pkg.pr.new/valibot@1097

commit: 6957e0d

Signed-off-by: ysknsid25 <[email protected]>
@fabian-hiller
Copy link
Member

Sorry for the delay. I will get back to this PR as soon as possible.

@ysknsid25
Copy link
Contributor Author

no problem. take it easy 👍

@fabian-hiller fabian-hiller added this to the v1.2 milestone Apr 20, 2025
@fabian-hiller fabian-hiller modified the milestones: v1.3, v1.2 Nov 22, 2025
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

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


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

@ysknsid25
Copy link
Contributor Author

I fixed copilot's pointing out 👍

@vercel
Copy link

vercel bot commented Nov 23, 2025

@fabian-hiller is attempting to deploy a commit to the Valibot Team on Vercel.

A member of the Team first needs to authorize it.

@fabian-hiller
Copy link
Member

I changed the code to allow spaces instead of hyphens. I also refactored the checksum functions. I believe they are mathematically equivalent, but please let me know if you disagree.

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

Copilot reviewed 36 out of 36 changed files in this pull request and generated no new comments.


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

@fabian-hiller fabian-hiller merged commit 83c07ca into open-circle:main Nov 23, 2025
12 of 13 checks passed
@fabian-hiller
Copy link
Member

v1.2.0 is available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants