From b0b019d2d51b55f695e9762e4c4ecff3c3140993 Mon Sep 17 00:00:00 2001 From: Shammel Lee Date: Mon, 4 Nov 2024 17:38:56 -0500 Subject: [PATCH 1/6] Fix small typo (#3268) --- packages/documentation/copy/en/release-notes/TypeScript 3.9.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/documentation/copy/en/release-notes/TypeScript 3.9.md b/packages/documentation/copy/en/release-notes/TypeScript 3.9.md index 57cd8c07c..6b41aad17 100644 --- a/packages/documentation/copy/en/release-notes/TypeScript 3.9.md +++ b/packages/documentation/copy/en/release-notes/TypeScript 3.9.md @@ -138,7 +138,7 @@ Pick `ts-expect-error` if: - you're writing test code where you actually want the type system to error on an operation - you expect a fix to be coming in fairly quickly and you just need a quick workaround -- you're in a reasonably-sized project with a proactive team that wants to remove suppression comments as soon affected code is valid again +- you're in a reasonably-sized project with a proactive team that wants to remove suppression comments as soon as affected code is valid again Pick `ts-ignore` if: From e6e9e24b719221ff3e6da2bd99b1080084721e30 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 5 Nov 2024 00:02:19 +0000 Subject: [PATCH 2/6] Bump the github-actions group with 3 updates (#3262) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/CI.yml | 8 ++++---- .github/workflows/codeql.yml | 8 ++++---- .github/workflows/deploy-prod-static.yml | 4 ++-- .github/workflows/keepalive.yml | 2 +- .github/workflows/publish-packages.yml | 4 ++-- .github/workflows/weekly-stats.yml | 4 ++-- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index fdf6833e2..a837e0b1f 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -23,8 +23,8 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - - uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 with: node-version: "18.x" - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 @@ -80,10 +80,10 @@ jobs: name: changesets runs-on: ubuntu-latest steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: fetch-depth: 0 - - uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 + - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 with: node-version: 'lts/*' - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 050ff4b43..99c204627 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -40,11 +40,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@f779452ac5af1c261dce0346a8f964149f49322b # v3.26.13 + uses: github/codeql-action/init@662472033e021d55d94146f66f6058822b0b39fd # v3.27.0 with: config-file: ./.github/codeql/codeql-configuration.yml # Override language selection by uncommenting this and choosing your languages @@ -54,7 +54,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below). - name: Autobuild - uses: github/codeql-action/autobuild@f779452ac5af1c261dce0346a8f964149f49322b # v3.26.13 + uses: github/codeql-action/autobuild@662472033e021d55d94146f66f6058822b0b39fd # v3.27.0 # ℹī¸ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun @@ -68,4 +68,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@f779452ac5af1c261dce0346a8f964149f49322b # v3.26.13 + uses: github/codeql-action/analyze@662472033e021d55d94146f66f6058822b0b39fd # v3.27.0 diff --git a/.github/workflows/deploy-prod-static.yml b/.github/workflows/deploy-prod-static.yml index 9be99c61c..70a83f537 100644 --- a/.github/workflows/deploy-prod-static.yml +++ b/.github/workflows/deploy-prod-static.yml @@ -26,11 +26,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: # Fetch the full history, to build attribution.json fetch-depth: 0 - - uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 + - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 with: node-version: "18.x" diff --git a/.github/workflows/keepalive.yml b/.github/workflows/keepalive.yml index 6568073c7..3bd232ac0 100644 --- a/.github/workflows/keepalive.yml +++ b/.github/workflows/keepalive.yml @@ -11,7 +11,7 @@ jobs: contents: write steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - run: | if [[ $(git log --format="%H" --since "50 days" | head -c1 | wc -c) == 0 ]]; then git config user.email "typescriptbot@microsoft.com" diff --git a/.github/workflows/publish-packages.yml b/.github/workflows/publish-packages.yml index 28413269a..4d9052d99 100644 --- a/.github/workflows/publish-packages.yml +++ b/.github/workflows/publish-packages.yml @@ -16,12 +16,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: fetch-depth: 0 filter: blob:none token: ${{ secrets.GITHUB_BOT_TOKEN }} - - uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 + - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 with: node-version: "18.x" registry-url: "https://registry.npmjs.org/" diff --git a/.github/workflows/weekly-stats.yml b/.github/workflows/weekly-stats.yml index 524311f7a..55bfe8238 100644 --- a/.github/workflows/weekly-stats.yml +++ b/.github/workflows/weekly-stats.yml @@ -14,8 +14,8 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - - uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 with: node-version: "18.x" From e5e89d22aa7a171fb7b82900c7dee8da8b132ec5 Mon Sep 17 00:00:00 2001 From: Joseph Date: Fri, 8 Nov 2024 04:55:07 +0530 Subject: [PATCH 3/6] Included Bun (#3267) --- packages/typescriptlang-org/src/copy/en/index2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/typescriptlang-org/src/copy/en/index2.ts b/packages/typescriptlang-org/src/copy/en/index2.ts index a6f2eb981..c5ed1049d 100644 --- a/packages/typescriptlang-org/src/copy/en/index2.ts +++ b/packages/typescriptlang-org/src/copy/en/index2.ts @@ -28,7 +28,7 @@ export const indexCopy = { index_2_what_is_js_copy: `TypeScript adds additional syntax to JavaScript to support a tighter integration with your editor. Catch errors early in your editor.`, index_2_trust: "A Result You Can Trust", - index_2_trust_copy: `TypeScript code converts to JavaScript, which runs anywhere JavaScript runs: In a browser, on Node.js or Deno and in your apps.`, + index_2_trust_copy: `TypeScript code converts to JavaScript, which runs anywhere JavaScript runs: In a browser, on Node.js, Deno, Bun and in your apps.`, index_2_scale: "Safety at Scale", index_2_scale_copy: `TypeScript understands JavaScript and uses type inference to give you great tooling without additional code.`, From 078f7eea7504aebaa1fdc878eff922db7a6f5f64 Mon Sep 17 00:00:00 2001 From: JaeYoung <87258182+SaeWooKKang@users.noreply.github.com> Date: Sat, 9 Nov 2024 03:59:31 +0900 Subject: [PATCH 4/6] fix: remove redirection by changing `/play` route to direct routing (#3269) --- packages/typescriptlang-org/src/components/layout/TopNav.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/typescriptlang-org/src/components/layout/TopNav.tsx b/packages/typescriptlang-org/src/components/layout/TopNav.tsx index 6074d31c6..02036b440 100644 --- a/packages/typescriptlang-org/src/components/layout/TopNav.tsx +++ b/packages/typescriptlang-org/src/components/layout/TopNav.tsx @@ -104,7 +104,7 @@ export const SiteNav = (props: Props) => {
  • {i("nav_documentation_short")}
  • {i("nav_handbook")}
  • {i("nav_community")}
  • -
  • {i("nav_playground")}
  • +
  • {i("nav_playground")}
  • {i("nav_tools")}
  • From b1c938612bd1f86954eb16f302317cf3e1725a6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dr=2E=20Galambos=20M=C3=A1t=C3=A9?= Date: Tue, 12 Nov 2024 01:17:59 +0100 Subject: [PATCH 5/6] Covariance and contravariance explanation is wrong (#3272) --- .../copy/en/handbook-v2/Type Manipulation/Generics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/documentation/copy/en/handbook-v2/Type Manipulation/Generics.md b/packages/documentation/copy/en/handbook-v2/Type Manipulation/Generics.md index 152c61812..bffbc2496 100644 --- a/packages/documentation/copy/en/handbook-v2/Type Manipulation/Generics.md +++ b/packages/documentation/copy/en/handbook-v2/Type Manipulation/Generics.md @@ -449,7 +449,7 @@ interface Consumer { consume: (arg: T) => void; } ``` -Then we can use a `Consumer` where a `Consumer` is expected, because any function that is capable of accepting a `Cat` must also be capable of accepting an `Animal`. +Then we can use a `Consumer` where a `Consumer` is expected, because any function that is capable of accepting an `Animal` must also be capable of accepting a `Cat`. This relationship is called *contravariance*: the relationship from `Consumer` to `Consumer` is the same as the relationship from `U` to `T`. Note the reversal of direction as compared to covariance! This is why contravariance "cancels itself out" but covariance doesn't. From 96ebdbacb2323fde16bc4d14412d4e3a61008646 Mon Sep 17 00:00:00 2001 From: "Arijit Roy (azmuth47)" <15376408+arijit192@users.noreply.github.com> Date: Wed, 13 Nov 2024 00:03:13 +0530 Subject: [PATCH 6/6] Fix: wrong typescript announcement link for release version (#3274) --- packages/typescriptlang-org/scripts/getTypeScriptNPMVersions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/typescriptlang-org/scripts/getTypeScriptNPMVersions.js b/packages/typescriptlang-org/scripts/getTypeScriptNPMVersions.js index 826567627..03537e509 100644 --- a/packages/typescriptlang-org/scripts/getTypeScriptNPMVersions.js +++ b/packages/typescriptlang-org/scripts/getTypeScriptNPMVersions.js @@ -110,7 +110,7 @@ const getTypeScriptNPMVersions = async () => { // prettier-ignore let siteReleaseNotesURL = `/docs/handbook/release-notes/typescript-${semver.major(stable)}-${semver.minor(stable)}.html` // prettier-ignore - let releasePostURL = `https://devblogs.microsoft.com/typescript/announcing-typescript-${semver.major(rc)}-${semver.minor(rc)}/` + let releasePostURL = `https://devblogs.microsoft.com/typescript/announcing-typescript-${semver.major(stable)}-${semver.minor(stable)}/` // prettier-ignore let releaseNotesMDPath = `../../documentation/copy/en/release-notes/TypeScript ${semver.major(stable)}.${semver.minor(stable)}.md` // prettier-ignore