Skip to content

feat: add JSON parsing with comment support using jsonc-parser#40

Merged
lirantal merged 1 commit intolirantal:mainfrom
yoavain:feat-parse-json-with-comments
Jun 7, 2025
Merged

feat: add JSON parsing with comment support using jsonc-parser#40
lirantal merged 1 commit intolirantal:mainfrom
yoavain:feat-parse-json-with-comments

Conversation

@yoavain
Copy link
Copy Markdown
Collaborator

@yoavain yoavain commented Jun 6, 2025

feat: add JSON parsing with comment support using jsonc-parser

  • Handle JSON with comments
  • Avoid redundant file reads and parsing operations

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Related Issue

#38

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Checklist:

  • I have updated the documentation (if required).
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I added a picture of a cute animal cause it's fun

@yoavain yoavain requested a review from lirantal as a code owner June 6, 2025 12:56
@yoavain yoavain marked this pull request as draft June 6, 2025 12:57
@yoavain yoavain force-pushed the feat-parse-json-with-comments branch from 7c38157 to 729bc9d Compare June 6, 2025 13:00
* Handle JSON with comments
* Avoid redundant file reads and parsing operations
* Added test
@yoavain yoavain force-pushed the feat-parse-json-with-comments branch from 729bc9d to 5a25064 Compare June 6, 2025 13:03
@lirantal lirantal added the enhancement New feature or request label Jun 6, 2025
@yoavain
Copy link
Copy Markdown
Collaborator Author

yoavain commented Jun 6, 2025

Waiting for main branch to be stable.

@lirantal
Copy link
Copy Markdown
Owner

lirantal commented Jun 6, 2025

Looks good to me, let's merge it. Thanks Yoav!
Appreciate the stub file.

p.s. I'm likely going to modularize the MCP server manager code and the files list to sub npm packages so it would be easier to test them separately so don't waste time adding tests to those parts

@lirantal lirantal marked this pull request as ready for review June 6, 2025 13:17
@yoavain
Copy link
Copy Markdown
Collaborator Author

yoavain commented Jun 6, 2025

Sure..
app.test.ts fails on main too

@lirantal
Copy link
Copy Markdown
Owner

lirantal commented Jun 6, 2025 via email

@lirantal lirantal merged commit c17a50b into lirantal:main Jun 7, 2025
3 of 4 checks passed
@yoavain yoavain deleted the feat-parse-json-with-comments branch August 7, 2025 07:36
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