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

Add TOML support with BaseTomlService #9438

Merged
merged 4 commits into from
Aug 16, 2023

Conversation

jNullj
Copy link
Collaborator

@jNullj jNullj commented Aug 4, 2023

Add base toml service to enable fetch of toml files
Add spec file for the new toml service for automated testing
This was added to allow a new way to retrive python version from pyproject.toml as described in issue #9410

Note: this adds a new dependency smol-toml which requires nodejs 18 or newer. i was testing this in nodejs 20 on my machine.
Note: when parsed, toml dates are a new extended date object (TomlDate) due to limitations in native js date, read more here.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 4, 2023

Messages
📖 ✨ Thanks for your contribution to Shields, @jNullj!

Generated by 🚫 dangerJS against 576caee

@socket-security
Copy link

New dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
smol-toml 1.1.1 None +0 70.6 kB cyyynthia

@jNullj jNullj force-pushed the feat/9410/toml-support branch 2 times, most recently from d2c7d01 to 68c33f0 Compare August 4, 2023 10:57
@jNullj
Copy link
Collaborator Author

jNullj commented Aug 4, 2023

Seems to fail due to node16 in github workflow.
I will keep this draft until #9385 is merged

@chris48s chris48s changed the title Add TOML support with [BaseTomlService] Add TOML support with BaseTomlService Aug 10, 2023
@chris48s chris48s added the core Server, BaseService, GitHub auth, Shared helpers label Aug 10, 2023
@chris48s
Copy link
Member

Thanks. I've now merged the node 18 PR so you can update this branch to finish it off.

I've removed [BaseTomlService] from the PR title. The base classes are just covered in the core tests - there are no service tests to run.

I'll have a proper look over this at the weekend

Add base toml service to enable fetch of toml files
Add spec file for the new toml service for automated testing
This was added to allow a new way to retrive python version from pyproject.toml as described in issue badges#9410
@jNullj jNullj marked this pull request as ready for review August 11, 2023 09:37
Copy link
Member

@chris48s chris48s left a comment

Choose a reason for hiding this comment

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

Couple of comments, but this is mostly there. Thanks

core/base-service/base-toml.js Outdated Show resolved Hide resolved
core/base-service/base-toml.spec.js Outdated Show resolved Hide resolved
@jNullj jNullj marked this pull request as draft August 13, 2023 22:17
jNullj and others added 3 commits August 14, 2023 01:29
@jNullj jNullj marked this pull request as ready for review August 13, 2023 23:07
@jNullj jNullj requested a review from chris48s August 13, 2023 23:08
@chris48s chris48s added this pull request to the merge queue Aug 16, 2023
Merged via the queue into badges:master with commit 61b8446 Aug 16, 2023
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Server, BaseService, GitHub auth, Shared helpers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants