Skip to content

Commit

Permalink
Resimplify types versions (#63425)
Browse files Browse the repository at this point in the history
* Resimplify typesVersions format

Matches microsoft/DefinitelyTyped-tools#572

The current, less-obvious format works around a bug in Typescript 4.9
and earlier. That's fixed in 4.9, and was in any case only relevant when node types
needed to refer to 4.9 before it had shipped.

* [README] 🤖 Update support window diagram

https://github.com/DefinitelyTyped/DefinitelyTyped/actions/runs/3579117597

Co-authored-by: github/workflows/support-window.yml <bot@typescriptlang.org>
  • Loading branch information
sandersn and github/workflows/support-window.yml committed Nov 30, 2022
1 parent 7019c85 commit b9199da
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 12 deletions.
3 changes: 2 additions & 1 deletion docs/support-window.json
Expand Up @@ -37,5 +37,6 @@
"4.5": "2021-11-17T18:34:54.786Z",
"4.6": "2022-02-28T23:51:05.546Z",
"4.7": "2022-05-24T18:38:10.371Z",
"4.8": "2022-08-25T23:05:19.632Z"
"4.8": "2022-08-25T23:05:19.632Z",
"4.9": "2022-11-15T18:52:52.188Z"
}
2 changes: 1 addition & 1 deletion docs/support-window.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -27,7 +27,7 @@
"@definitelytyped/definitions-parser": "latest",
"@definitelytyped/dtslint": "latest",
"@definitelytyped/dtslint-runner": "latest",
"@definitelytyped/header-parser": "^0.0.100",
"@definitelytyped/header-parser": "latest",
"@definitelytyped/utils": "latest",
"@octokit/core": "^3.5.1",
"@octokit/rest": "^16.0.0",
Expand Down
4 changes: 2 additions & 2 deletions types/dom-mediacapture-record/package.json
Expand Up @@ -2,10 +2,10 @@
"private": true,
"types": "index",
"typesVersions": {
"<4.9.0-0": {
"<=4.8": {
"*": [
"ts4.8/*"
]
}
}
}
}
2 changes: 1 addition & 1 deletion types/googletag/package.json
Expand Up @@ -2,6 +2,6 @@
"private": true,
"types": "index",
"typesVersions": {
"<4.3.0-0": { "*": ["ts4.2/*"] }
"<=4.2": { "*": ["ts4.2/*"] }
}
}
2 changes: 1 addition & 1 deletion types/har-format/package.json
Expand Up @@ -2,6 +2,6 @@
"private": true,
"types": "index",
"typesVersions": {
"<4.4.0-0": { "*": ["ts4.3/*"] }
"<=4.3": { "*": ["ts4.3/*"] }
}
}
4 changes: 2 additions & 2 deletions types/lodash/package.json
Expand Up @@ -2,8 +2,8 @@
"private": true,
"types": "index",
"typesVersions": {
"<4.3.0-0": {
"<=4.2": {
"*": ["ts4.2/*"]
}
}
}
}
2 changes: 1 addition & 1 deletion types/node/package.json
Expand Up @@ -2,6 +2,6 @@
"private": true,
"types": "index",
"typesVersions": {
"<4.9.0-0": { "*": ["ts4.8/*"] }
"<=4.8": { "*": ["ts4.8/*"] }
}
}
2 changes: 1 addition & 1 deletion types/node/v14/package.json
Expand Up @@ -2,6 +2,6 @@
"private": true,
"types": "index",
"typesVersions": {
"<4.9.0-0": { "*": ["ts4.8/*"] }
"<=4.8": { "*": ["ts4.8/*"] }
}
}
2 changes: 1 addition & 1 deletion types/node/v16/package.json
Expand Up @@ -2,6 +2,6 @@
"private": true,
"types": "index",
"typesVersions": {
"<4.9.0-0": { "*": ["ts4.8/*"] }
"<=4.8": { "*": ["ts4.8/*"] }
}
}

0 comments on commit b9199da

Please sign in to comment.