feat: add AST-based schema parsing for Prisma >= 6.16.0 compatibility#151
Open
renatocron wants to merge 1 commit into47ng:nextfrom
Open
feat: add AST-based schema parsing for Prisma >= 6.16.0 compatibility#151renatocron wants to merge 1 commit into47ng:nextfrom
renatocron wants to merge 1 commit into47ng:nextfrom
Conversation
Add @mrleebo/prisma-ast based schema parsing to support Prisma 6.16.0+ where DMMF no longer includes field-level documentation. - Add analyseSchema() to parse schema from string - Add analyseSchemaFile() to parse from file or directory - Add findSchemaPath() for auto-detection of schema files - Support multi-file schemas (prismaSchemaFolder) - Maintain backward compatibility with DMMF fallback - Add 17 AST-specific tests including multi-file tests - Export analyseSchema and analyseSchemaFile functions Fixes 47ng#143
|
Is it possible to create a preview package for testing @franky47? I would be happy to try it out with the latest version of Prisma. This seems similar to the approach taken by one of the forks I was browsing (https://github.com/ikbenignace/prisma-field-encryption/tree/feature/prisma-ast), could be worth comparing changes. I think they also started working on the documentation. |
commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add @mrleebo/prisma-ast based schema parsing to support Prisma 6.16.0+ where DMMF no longer includes field-level documentation.
Fixes #142 and it's a new ideia based on #144
Still needs update on docs, but I want feedback from you all