Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Support parallel minor versions #282

Merged
merged 2 commits into from
Mar 30, 2020

Conversation

alloy
Copy link
Member

@alloy alloy commented Mar 27, 2020

Follow-up to microsoft/types-publisher#723.

This was causing CI on DT to fail for DefinitelyTyped/DefinitelyTyped#43179.

I couldn't figure out how to write a test to exercise this code-path. If it’s easy to point out, I’d gladly add test coverage.

@alloy alloy requested a review from sandersn as a code owner March 27, 2020 19:08
src/index.ts Outdated Show resolved Hide resolved
@@ -76,8 +76,7 @@ export function assertDefined<T>(a: T | undefined): T {
}

export async function mapDefinedAsync<T, U>(
arr: Iterable<T>, mapper: (t: T) => Promise<U | undefined>):
Promise<Array<awaited U>> {
arr: Iterable<T>, mapper: (t: T) => Promise<U | undefined>): Promise<U[]> {
Copy link
Member Author

Choose a reason for hiding this comment

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

Running npm install gave me the latest next, rather than the one recorded in the lockfile, and it seems like awaited was recently reverted.

Copy link
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

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

I couldn't figure out what paths should be allowed and disallowed versus which ones currently are allowed/disallowed. Can you give examples?

src/index.ts Outdated Show resolved Hide resolved
@alloy alloy force-pushed the support-minor-versions branch from 32def61 to be2cff8 Compare March 30, 2020 11:07
@alloy
Copy link
Member Author

alloy commented Mar 30, 2020

Currently these are allowed:

react-native
react-native/v42

Whereas this is disallowed:

react-native/v0.42

The above should all be allowed now, but not those with patch components:

react-native/v0.42.1

@sandersn sandersn merged commit fc22009 into microsoft:master Mar 30, 2020
@alloy alloy deleted the support-minor-versions branch March 30, 2020 20:07
@sandersn
Copy link
Member

I published 3.4.1 just now, so Definitely Typed's CI should get the new version next time it runs.

@alloy
Copy link
Member Author

alloy commented Mar 30, 2020

Thanks! 🙏

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants