Skip to content

overlay: replace jsonpath by the more recent (and typed) jsonpathly #673

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

Merged
merged 1 commit into from
Mar 13, 2025

Conversation

paulRbr
Copy link
Member

@paulRbr paulRbr commented Mar 13, 2025

The currently used jsonpath lib is pretty old and unmaintained (last
commits 4 years ago), and even more problematic it causes issues to
upgrade our github action as that lib has an inconsistant use of
'require' and doesn't seem to work well with the packaging
step (rollup) of the github action.

Hopefully this upgrade (and change of lib) should let us a clean
upgrade of the GH action to an ESM version 🤞

As I re-wrote the way we apply overlays I also took the opportunity to fix #588 in this change.

@paulRbr paulRbr self-assigned this Mar 13, 2025
Copy link
Member

@Polo2 Polo2 left a comment

Choose a reason for hiding this comment

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

Thanks for this json-bump, I left two small comments at first sight, and as discussed, we'll need more refacto to clarify what happens when overlay action is executed.

@paulRbr paulRbr force-pushed the upgrade-jsonpath-with-esm-mode branch from 6a2c4a1 to b5e9baf Compare March 13, 2025 15:29
Copy link
Member

@Polo2 Polo2 left a comment

Choose a reason for hiding this comment

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

Thanks for pair review session, glad to approve with small clarification suggestions.

@paulRbr paulRbr force-pushed the upgrade-jsonpath-with-esm-mode branch 2 times, most recently from 6fca347 to d45e037 Compare March 13, 2025 16:19
The currently used `jsonpath` lib is pretty old and unmaintained (last
commits 4 years ago), and even more problematic it causes issues to
[upgrade our github action](bump-sh/github-action#508) as that lib has an inconsistant use of
'require' and doesn't seem to work well with the packaging
step (rollup) of the github action.

Hopefully this upgrade (and change of lib) should let us a clean
upgrade of the GH action to an ESM version 🤞
@paulRbr paulRbr force-pushed the upgrade-jsonpath-with-esm-mode branch from d45e037 to 2597c4c Compare March 13, 2025 16:20
@paulRbr paulRbr enabled auto-merge March 13, 2025 16:20
@paulRbr paulRbr merged commit c218eba into bump-sh:main Mar 13, 2025
9 checks passed
@paulRbr paulRbr deleted the upgrade-jsonpath-with-esm-mode branch March 13, 2025 16:27
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.

"bump overlay" should log a warning when JSONPath doesn't match anything
2 participants