Skip to content
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

feat(managers/custom): generic manager for json files #32784

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

RahulGautamSingh
Copy link
Collaborator

@RahulGautamSingh RahulGautamSingh commented Nov 28, 2024

Changes

  • Implement a new custom manager which uses jsonata queries to extract the deps info from a package file. Details are similar to regex manager implementation, except that we do not need to explicitly handle the recursive matching as that is already handled by the jsonata query language.
  • Added tests
  • Added docs

Context

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

@RahulGautamSingh RahulGautamSingh changed the title feat(custom-managers: generic manager for json files feat(managers/custom): generic manager for json files Nov 28, 2024
@RahulGautamSingh RahulGautamSingh marked this pull request as draft November 28, 2024 14:20
@RahulGautamSingh RahulGautamSingh marked this pull request as ready for review November 28, 2024 14:30
@RahulGautamSingh RahulGautamSingh marked this pull request as draft November 28, 2024 14:41
@RahulGautamSingh RahulGautamSingh marked this pull request as ready for review November 28, 2024 15:14
lib/modules/manager/custom/jsonata/index.spec.ts Dismissed Show dismissed Hide dismissed
lib/modules/manager/custom/jsonata/index.spec.ts Dismissed Show dismissed Hide dismissed
Copy link
Collaborator

@rarkins rarkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I definitely want to see an example of this working on a real repo

@RahulGautamSingh
Copy link
Collaborator Author

I definitely want to see an example of this working on a real repo

Test run on renovate repo, targeting the package.json and extracting dependencies, devDependencies, optionalDependencies
Rahul-renovate-testing#2

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