Skip to content

Commit

Permalink
Resimplify typesVersions format
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sandersn committed Nov 30, 2022
1 parent e9eb6b4 commit 614a7b2
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
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 614a7b2

Please sign in to comment.