Skip to content

Commit

Permalink
Merge branch 'main' into extra-tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Mar 7, 2024
2 parents 0097e95 + 42c5f40 commit ba02d4f
Show file tree
Hide file tree
Showing 28 changed files with 222 additions and 124 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"knip": "^4.0.2",
"prettier": "^3.2.2",
"ts-jest": "^29.1.1",
"typescript": "^5.3.3"
"typescript": "^5.4.2"
},
"pnpm": {
"overrides": {
Expand Down
9 changes: 9 additions & 0 deletions packages/definitions-parser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @definitelytyped/definitions-parser

## 0.1.10

### Patch Changes

- 946d3d4: Update for TS 5.4
- Updated dependencies [946d3d4]
- @definitelytyped/typescript-versions@0.1.1
- @definitelytyped/header-parser@0.2.7

## 0.1.9

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/definitions-parser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@definitelytyped/definitions-parser",
"version": "0.1.9",
"version": "0.1.10",
"description": "Reads the DefinitelyTyped repository and provides an API for querying its metadata",
"homepage": "https://github.com/microsoft/DefinitelyTyped-tools/tree/main/packages/definitions-parser#readme",
"license": "MIT",
Expand Down Expand Up @@ -29,7 +29,7 @@
},
"devDependencies": {
"@types/pacote": "^11.1.8",
"typescript": "^5.3.3"
"typescript": "^5.4.2"
},
"peerDependencies": {
"typescript": "*"
Expand Down
7 changes: 7 additions & 0 deletions packages/dts-critic/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @definitelytyped/dts-critic

## 0.1.8

### Patch Changes

- 946d3d4: Update for TS 5.4
- @definitelytyped/header-parser@0.2.7

## 0.1.7

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/dts-critic/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@definitelytyped/dts-critic",
"version": "0.1.7",
"version": "0.1.8",
"author": "Nathan Shively-Sanders",
"description": "Checks a new .d.ts against the Javascript source and tells you what problems it has",
"publishConfig": {
"access": "public"
},
"dependencies": {
"@definitelytyped/header-parser": "workspace:*",
"typescript": "^5.3.3",
"typescript": "^5.4.2",
"yargs": "^17.7.2"
},
"peerDependencies": {
Expand Down
6 changes: 6 additions & 0 deletions packages/dts-gen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# dts-gen

## 0.10.1

### Patch Changes

- 946d3d4: Update for TS 5.4

## 0.10.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/dts-gen/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dts-gen",
"version": "0.10.0",
"version": "0.10.1",
"description": "TypeScript Definition File Generator",
"author": "Ryan Cavanaugh <[email protected]> (https://www.github.com/RyanCavanaugh)",
"homepage": "https://github.com/microsoft/DefinitelyTyped-tools/tree/main/packages/typescript-packages#readme",
Expand All @@ -26,7 +26,7 @@
"dependencies": {
"dts-dom": "^3.7.0",
"parse-git-config": "^3.0.0",
"typescript": "^5.3.3",
"typescript": "^5.4.2",
"yargs": "^17.7.2"
},
"devDependencies": {
Expand Down
8 changes: 8 additions & 0 deletions packages/dtslint-runner/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @definitelytyped/dtslint-runner

## 0.1.19

### Patch Changes

- Updated dependencies [946d3d4]
- @definitelytyped/definitions-parser@0.1.10
- @definitelytyped/dtslint@0.2.16

## 0.1.18

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/dtslint-runner/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@definitelytyped/dtslint-runner",
"version": "0.1.18",
"version": "0.1.19",
"description": "Run dtslint on DefinitelyTyped packages",
"homepage": "https://github.com/microsoft/DefinitelyTyped-tools/tree/main/packages/dtslint-runner#readme",
"license": "MIT",
Expand Down
7 changes: 6 additions & 1 deletion packages/dtslint-runner/src/post-results.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ async function main() {
if (diffComment) {
newComment += `There were interesting changes:\n`;
if (newComment.length + diffComment.length + checkLogsMessage.length > 65535) {
newComment += `Changes are too big to display here, please check the log.`;
// hardlink directly into the output of this script
const detailedLogUrl = `https://typescript.visualstudio.com/TypeScript/_build/results?buildId=${buildId}&view=logs&j=275f1d19-1bd8-5591-b06b-07d489ea915a&t=40b1ee41-44d6-5bba-aa04-4b76a5c732e5`;
newComment += `Changes are too big to display here, please check [the log](${detailedLogUrl}).`;
console.log("There were interesting changes:\n");
console.log(diffComment);
console.log("\n");
} else {
newComment += diffComment;
}
Expand Down
10 changes: 10 additions & 0 deletions packages/dtslint/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @definitelytyped/dtslint

## 0.2.16

### Patch Changes

- 946d3d4: Update for TS 5.4
- Updated dependencies [946d3d4]
- @definitelytyped/typescript-packages@0.1.1
- @definitelytyped/typescript-versions@0.1.1
- @definitelytyped/header-parser@0.2.7

## 0.2.15

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/dtslint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@definitelytyped/dtslint",
"version": "0.2.15",
"version": "0.2.16",
"description": "Runs tests on TypeScript definition files",
"main": "./dist/index.js",
"bin": "./dist/index.js",
Expand Down Expand Up @@ -45,7 +45,7 @@
"@types/eslint": "^8.56.2",
"@types/semver": "^7.5.5",
"@types/strip-json-comments": "^3.0.0",
"typescript": "^5.3.3"
"typescript": "^5.4.2"
},
"engines": {
"node": ">=18.18.0"
Expand Down
6 changes: 6 additions & 0 deletions packages/eslint-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @definitelytyped/eslint-plugin

## 0.1.10

### Patch Changes

- 946d3d4: Update for TS 5.4

## 0.1.9

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@definitelytyped/eslint-plugin",
"version": "0.1.9",
"version": "0.1.10",
"description": "ESLint rules for DefinitelyTyped",
"main": "./dist/index.js",
"publishConfig": {
Expand Down Expand Up @@ -39,7 +39,7 @@
"glob": "^10.3.10",
"jest-file-snapshot": "^0.5.0",
"strip-ansi": "^6.0.1",
"typescript": "^5.3.3"
"typescript": "^5.4.2"
},
"engines": {
"node": ">=18.18.0"
Expand Down
7 changes: 7 additions & 0 deletions packages/header-parser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @definitelytyped/header-parser

## 0.2.7

### Patch Changes

- Updated dependencies [946d3d4]
- @definitelytyped/typescript-versions@0.1.1

## 0.2.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/header-parser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@definitelytyped/header-parser",
"version": "0.2.6",
"version": "0.2.7",
"description": "",
"author": "Nathan Shively-Sanders <[email protected]>",
"homepage": "https://github.com/microsoft/DefinitelyTyped-tools/tree/main/packages/header-parser#readme",
Expand Down
10 changes: 10 additions & 0 deletions packages/publisher/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @definitelytyped/publisher

## 0.1.10

### Patch Changes

- 946d3d4: Update for TS 5.4
- Updated dependencies [946d3d4]
- @definitelytyped/definitions-parser@0.1.10
- @definitelytyped/header-parser@0.2.7
- @definitelytyped/retag@0.1.10

## 0.1.9

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/publisher/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@definitelytyped/publisher",
"private": true,
"version": "0.1.9",
"version": "0.1.10",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"description": "Publish DefinitelyTyped definitions to NPM",
Expand All @@ -13,7 +13,7 @@
"longjohn": "^0.2.12",
"pacote": "^17.0.5",
"semver": "^7.5.4",
"typescript": "^5.3.3",
"typescript": "^5.4.2",
"yargs": "^17.7.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/publisher/test/generate-packages.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ testo({
"@types/madeira": "^1"
},
"typesPublisherContentHash": "05febc04df55db2687c2ac05a291177c2f4fd90f76d679faaf1b01896fe5600c",
"typeScriptVersion": "4.6"
"typeScriptVersion": "4.7"
}`);
},
basicNotNeededPackageJson() {
Expand Down
8 changes: 8 additions & 0 deletions packages/retag/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @definitelytyped/retag

## 0.1.10

### Patch Changes

- Updated dependencies [946d3d4]
- @definitelytyped/typescript-versions@0.1.1
- @definitelytyped/definitions-parser@0.1.10

## 0.1.9

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/retag/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@definitelytyped/retag",
"private": true,
"version": "0.1.9",
"version": "0.1.10",
"description": "Refresh tags on all DT-published packages in the @types scope.",
"author": "Nathan Shively-Sanders <[email protected]>",
"homepage": "https://github.com/microsoft/DefinitelyTyped-tools/tree/main/packages/retag#readme",
Expand Down
8 changes: 8 additions & 0 deletions packages/typescript-packages/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @definitelytyped/typescript-packages

## 0.1.1

### Patch Changes

- 946d3d4: Update for TS 5.4
- Updated dependencies [946d3d4]
- @definitelytyped/typescript-versions@0.1.1

## 0.1.0

### Minor Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/typescript-packages/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@definitelytyped/typescript-packages",
"version": "0.1.0",
"version": "0.1.1",
"description": "Reexport of all supported TypeScript versions",
"author": "Andrew Branch <[email protected]>",
"homepage": "https://github.com/microsoft/DefinitelyTyped-tools/tree/main/packages/typescript-packages#readme",
Expand All @@ -22,14 +22,14 @@
},
"dependencies": {
"@definitelytyped/typescript-versions": "workspace:*",
"typescript-4.6": "npm:typescript@~4.6.0-0",
"typescript-4.7": "npm:typescript@~4.7.0-0",
"typescript-4.8": "npm:typescript@~4.8.0-0",
"typescript-4.9": "npm:typescript@~4.9.0-0",
"typescript-5.0": "npm:typescript@~5.0.0-0",
"typescript-5.1": "npm:typescript@~5.1.0-0",
"typescript-5.2": "npm:typescript@~5.2.0-0",
"typescript-5.3": "npm:typescript@~5.3.0-0",
"typescript-5.4": "npm:typescript@~5.4.0-0"
"typescript-5.4": "npm:typescript@~5.4.0-0",
"typescript-5.5": "npm:typescript@~5.5.0-0"
}
}
6 changes: 6 additions & 0 deletions packages/typescript-versions/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @definitelytyped/typescript-versions

## 0.1.1

### Patch Changes

- 946d3d4: Update for TS 5.4

## 0.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-versions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@definitelytyped/typescript-versions",
"version": "0.1.0",
"version": "0.1.1",
"description": "List of supported TypeScript versions",
"author": "Andrew Branch <[email protected]>",
"homepage": "https://github.com/microsoft/DefinitelyTyped-tools/tree/main/packages/typescript-versions#readme",
Expand Down
14 changes: 7 additions & 7 deletions packages/typescript-versions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import assert from "assert";
For the RC:
1. Add a new version to the end of `TypeScriptVersion` and `supported`.
1. Add a new version to the end of `supported`.
`supported` now contains the shipped versions, the RC, and the nightly.
2. Add the new version to `packages/typescript-packages/package.json`.
3. Update failing tests.
Expand All @@ -20,10 +20,9 @@ import assert from "assert";
# How to deprecate an old version on Definitely Typed #
1. Move the old version from `TypeScriptVersion` to `UnsupportedTypeScriptVersion`.
2. Move the old version from `shipped` to `unsupported`.
3. Remove the old version from `packages/typescript-packages/package.json`.
4. Update failing tests.
1. Move the old version from `shipped` to `unsupported`.
2. Remove the old version from `packages/typescript-packages/package.json`.
3. Update failing tests.
Currently, it's possible to release a new version and deprecate an old version
at the same time because of the way release schedule overlaps.
Expand All @@ -42,9 +41,9 @@ export type AllTypeScriptVersion = UnsupportedTypeScriptVersion | TypeScriptVers

export namespace TypeScriptVersion {
/** Add to this list when a version actually ships. */
export const shipped = ["4.6", "4.7", "4.8", "4.9", "5.0", "5.1", "5.2", "5.3"] as const;
export const shipped = ["4.7", "4.8", "4.9", "5.0", "5.1", "5.2", "5.3", "5.4"] as const;
/** Add to this list when a version is available as typescript@next */
export const supported = [...shipped, "5.4"] as const;
export const supported = [...shipped, "5.5"] as const;
/** Add to this list when it will no longer be supported on Definitely Typed */
export const unsupported = [
"2.0",
Expand Down Expand Up @@ -73,6 +72,7 @@ export namespace TypeScriptVersion {
"4.3",
"4.4",
"4.5",
"4.6",
] as const;
export const all: readonly AllTypeScriptVersion[] = [...unsupported, ...supported];
export const lowest = supported[0];
Expand Down
Loading

0 comments on commit ba02d4f

Please sign in to comment.