feat(usePantry): Make versions take (PlainObject | string) | (PlainObject | string)[].#192
feat(usePantry): Make versions take (PlainObject | string) | (PlainObject | string)[].#192jhheider merged 7 commits intopkgxdev:mainfrom rustdevbtw:main
versions take (PlainObject | string) | (PlainObject | string)[].#192Conversation
…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 |
jhheider
left a comment
There was a problem hiding this comment.
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
versionskey to support a combination ofPlainObjectandstringOR an Array of typeArray<PlainObject | string>.For example:
As well as:
This all, while keeping full backwards compatibility! (hopefully)