-
Notifications
You must be signed in to change notification settings - Fork 18
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(usePantry): Make versions
take (PlainObject | string) | (PlainObject | string)[]
.
#192
Conversation
…inObject | string)[]`.
Seems like a solid addition with no trade-offs I can think of, but maybe @jhheider can imagine some |
Seems like the PIP CI is having issues (definitely not related to it, because it only applies to |
yeah pip has had problems every build recently. We should probably pin all these builds to known buildable versions |
@mxcl Except the PIP one, every other test seems to pass. |
Yep we can merge if @jhheider agrees with me that this seems safe and good |
@mxcl I added additional tests (to confirm it works) for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code change looks good. We should try to keep style changes out of logic changes.
Yeah, we discussed at length on discord. I think this gives us some great options without altering existing parsing. |
I've applied these changes. As for style stuff, I've Deno autoformatting enabled, so it formatted that. |
Anything else? |
If mxcl is ok with all the autoformating, I'm ok with the logic. |
Oh no, I didn't see the Deno permissions. I think I've to remove that test for now. |
Can we add the permission we need? Better to test than not. |
Just added that |
Seems like permissions aren't just enough. Doing |
versions
to be (PlainObject | string) | (PlainObject | string)[]
.versions
take (PlainObject | string) | (PlainObject | string)[]
.
@jhheider Can you try again please? |
It's not cool, but we'll live. In general, in open source, you adopt the project’s styling, you don’t impose your own. |
I actually didn't even know that I had autoformatting enabled before @jhheider mentioned the styling |
Makes the
versions
key to support a combination ofPlainObject
andstring
OR an Array of typeArray<PlainObject | string>
.For example:
As well as:
This all, while keeping full backwards compatibility! (hopefully)