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

Drop support for 2.0 2.7 #264

Merged
merged 2 commits into from
Nov 7, 2019
Merged

Drop support for 2.0 2.7 #264

merged 2 commits into from
Nov 7, 2019

Conversation

sandersn
Copy link
Member

@sandersn sandersn commented Nov 7, 2019

I still need to update package-lock.json when I install the shipping
version of definitelytyped-header-parser.
@@ -230,7 +237,7 @@ function assertPathIsNotBanned(dirPath: string) {
}
}

function getTypeScriptVersionFromComment(text: string): TypeScriptVersion | undefined {
function getTypeScriptVersionFromComment(text: string): AllTypeScriptVersion | undefined {
Copy link
Member Author

Choose a reason for hiding this comment

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

  1. allow parsing any typescript version

@@ -192,7 +197,9 @@ async function testTypesVersion(
if (minVersionFromComment !== undefined && inTypesVersionDirectory) {
throw new Error(`Already in the \`ts${lowVersion}\` directory, don't need \`// TypeScript Version\`.`);
}
const minVersion = lowVersion || minVersionFromComment || TypeScriptVersion.lowest;
const minVersion = lowVersion
|| minVersionFromComment && TypeScriptVersion.isSupported(minVersionFromComment) && minVersionFromComment
Copy link
Member Author

Choose a reason for hiding this comment

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

  1. but filter out unsupported versions.

@sandersn sandersn merged commit 411f043 into master Nov 7, 2019
@sandersn sandersn deleted the drop-support-for-2.0--2.7 branch November 7, 2019 17:12
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.

1 participant