Skip to content

Commit 10842d4

Browse files
committed
Merge remote-tracking branch 'origin/main' into fix/crash-tuple-implied-constraint-inference
2 parents 2f75594 + 0c2c7a3 commit 10842d4

File tree

39,622 files changed

+843535
-437518
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

39,622 files changed

+843535
-437518
lines changed

.github/workflows/accept-baselines-fix-lints.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
20+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2121
with:
2222
token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
23-
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
23+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
2424
with:
2525
node-version: 'lts/*'
2626

.github/workflows/ci.yml

Lines changed: 51 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -29,71 +29,60 @@ jobs:
2929
fail-fast: ${{ github.event_name == 'merge_group' }}
3030
matrix:
3131
config:
32-
# Main builds
32+
# PRs only check the newest and oldest Node versions.
33+
# macOS only ever checks the neest and oldest Node versions, but never in PR runs.
3334
- os: ubuntu-latest
3435
node-version: '24'
3536
bundle: true
36-
37-
# Other builds (skipped in merge queues)
3837
- os: windows-latest
3938
node-version: '24'
4039
bundle: true
4140
skip: ${{ github.event_name == 'merge_group' }}
4241
- os: macos-latest
4342
node-version: '24'
4443
bundle: true
45-
skip: ${{ github.event_name == 'merge_group' }}
44+
skip: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
45+
4646
- os: ubuntu-latest
4747
node-version: '22'
4848
bundle: true
49-
skip: ${{ github.event_name == 'merge_group' }}
49+
skip: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
5050
- os: windows-latest
5151
node-version: '22'
5252
bundle: true
53-
skip: ${{ github.event_name == 'merge_group' }}
54-
# Skip macOS for this version; resources are limited.
55-
# - os: macos-latest
56-
# node-version: '22'
57-
# bundle: true
58-
# skip: ${{ github.event_name == 'merge_group' }}
53+
skip: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
54+
5955
- os: ubuntu-latest
6056
node-version: '20'
6157
bundle: true
62-
skip: ${{ github.event_name == 'merge_group' }}
58+
skip: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
6359
- os: windows-latest
6460
node-version: '20'
6561
bundle: true
66-
skip: ${{ github.event_name == 'merge_group' }}
67-
# Skip macOS for this version; resources are limited.
68-
# - os: macos-latest
69-
# node-version: '20'
70-
# bundle: true
71-
# skip: ${{ github.event_name == 'merge_group' }}
62+
skip: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
63+
7264
- os: ubuntu-latest
7365
node-version: '18'
7466
bundle: true
75-
skip: ${{ github.event_name == 'merge_group' }}
67+
skip: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
7668
- os: windows-latest
7769
node-version: '18'
7870
bundle: true
79-
skip: ${{ github.event_name == 'merge_group' }}
80-
# Skip macOS for this version; resources are limited.
81-
# - os: macos-latest
82-
# node-version: '18'
83-
# bundle: true
84-
# skip: ${{ github.event_name == 'merge_group' }}
71+
skip: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
72+
8573
- os: ubuntu-latest
8674
node-version: '16'
8775
bundle: true
88-
skip: ${{ github.event_name == 'merge_group' }}
76+
skip: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
8977
- os: windows-latest
9078
node-version: '16'
9179
bundle: true
92-
skip: ${{ github.event_name == 'merge_group' }}
80+
skip: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
9381
- os: macos-latest
9482
node-version: '16'
9583
bundle: true
96-
skip: ${{ github.event_name == 'merge_group' }}
84+
skip: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
85+
9786
- os: ubuntu-latest
9887
node-version: '14'
9988
bundle: true
@@ -102,12 +91,9 @@ jobs:
10291
node-version: '14'
10392
bundle: true
10493
skip: ${{ github.event_name == 'merge_group' }}
105-
# No Node 14 on ARM macOS
106-
# - os: macos-latest
107-
# node-version: '14'
108-
# bundle: true
109-
# skip: ${{ github.event_name == 'merge_group' }}
94+
# Node 14 does not support macOS ARM.
11095

96+
# --no-bundle build
11197
- os: ubuntu-latest
11298
node-version: 'lts/*'
11399
bundle: false
@@ -121,9 +107,9 @@ jobs:
121107
name: Test Node ${{ matrix.config.node-version }} on ${{ matrix.config.os }}${{ (!matrix.config.bundle && ' with --no-bundle') || '' }}
122108

123109
steps:
124-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
110+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
125111
- name: Use node version ${{ matrix.config.node-version }}
126-
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
112+
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
127113
with:
128114
node-version: ${{ matrix.config.node-version }}
129115
check-latest: true
@@ -132,7 +118,9 @@ jobs:
132118
- name: Tests
133119
id: test
134120
# run tests, but lint separately
135-
run: npm run test -- --no-lint --bundle=${{ matrix.config.bundle }}
121+
env:
122+
BUNDLE: ${{ matrix.config.bundle }}
123+
run: npm run test -- --no-lint --bundle="$BUNDLE"
136124

137125
- name: Print baseline diff on failure
138126
if: ${{ failure() && steps.test.conclusion == 'failure' }}
@@ -154,8 +142,8 @@ jobs:
154142
contents: read
155143

156144
steps:
157-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
158-
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
145+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
146+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
159147
with:
160148
node-version: 'lts/*'
161149
- run: npm ci
@@ -179,8 +167,8 @@ jobs:
179167
runs-on: ubuntu-latest
180168

181169
steps:
182-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
183-
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
170+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
171+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
184172
with:
185173
node-version: 'lts/*'
186174
- run: npm ci
@@ -192,8 +180,8 @@ jobs:
192180
runs-on: ubuntu-latest
193181

194182
steps:
195-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
196-
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
183+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
184+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
197185
with:
198186
node-version: 'lts/*'
199187
- run: npm ci
@@ -205,13 +193,13 @@ jobs:
205193
runs-on: ubuntu-latest
206194

207195
steps:
208-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
209-
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
196+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
197+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
210198
with:
211199
node-version: 'lts/*'
212200
- run: npm ci
213201

214-
- uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
202+
- uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
215203
with:
216204
path: ~/.cache/dprint
217205
key: ${{ runner.os }}-dprint-${{ hashFiles('package-lock.json', '.dprint.jsonc') }}
@@ -227,8 +215,8 @@ jobs:
227215
runs-on: ubuntu-latest
228216

229217
steps:
230-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
231-
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
218+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
219+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
232220
with:
233221
node-version: 'lts/*'
234222
- run: npm ci
@@ -243,8 +231,8 @@ jobs:
243231
runs-on: ubuntu-latest
244232

245233
steps:
246-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
247-
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
234+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
235+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
248236
with:
249237
node-version: 'lts/*'
250238
- run: npm ci
@@ -256,9 +244,9 @@ jobs:
256244
runs-on: ubuntu-latest
257245

258246
steps:
259-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
247+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
260248

261-
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
249+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
262250
with:
263251
node-version: 'lts/*'
264252
- run: |
@@ -278,10 +266,12 @@ jobs:
278266
id: pack
279267
280268
- name: Smoke test
269+
env:
270+
PACKAGE: ${{ steps.pack.outputs.package }}
281271
run: |
282272
cd "$(mktemp -d)"
283273
npm init --yes
284-
npm install ${{ steps.pack.outputs.package }}
274+
npm install "$PACKAGE"
285275
286276
echo "Testing tsc..."
287277
npx tsc --version
@@ -297,16 +287,16 @@ jobs:
297287
if: github.event_name == 'pull_request'
298288

299289
steps:
300-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
290+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
301291
with:
302292
path: pr
303293

304-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
294+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
305295
with:
306296
path: base
307297
ref: ${{ github.base_ref }}
308298

309-
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
299+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
310300
with:
311301
node-version: 'lts/*'
312302
- run: |
@@ -344,8 +334,8 @@ jobs:
344334
runs-on: ubuntu-latest
345335

346336
steps:
347-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
348-
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
337+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
338+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
349339
with:
350340
node-version: 'lts/*'
351341
- run: npm ci
@@ -360,8 +350,8 @@ jobs:
360350
runs-on: ubuntu-latest
361351

362352
steps:
363-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
364-
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
353+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
354+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
365355
with:
366356
node-version: 'lts/*'
367357
- run: npm ci
@@ -381,8 +371,8 @@ jobs:
381371
runs-on: ubuntu-latest
382372

383373
steps:
384-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
385-
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
374+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
375+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
386376
with:
387377
node-version: 'lts/*'
388378
- run: npm ci

.github/workflows/close-issues.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,15 @@ jobs:
2626
- name: Close issues
2727
env:
2828
GH_TOKEN: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
29+
REPO: ${{ github.repository }}
2930
run: |
3031
DATE=$(date --date='2 days ago' --iso-8601)
3132
3233
close_issues() {
3334
echo "Closing issues marked as '$1'."
34-
for issue in $(gh issue list --limit 100 --label "$1" --repo ${{ github.repository }} --state open --search "updated:<$DATE" --json number --jq '.[].number'); do
35-
echo "Closing https://github.com/${{ github.repository }}/issues/$issue"
36-
gh issue close $issue --repo ${{ github.repository }} --reason "not planned" --comment "This issue has been marked as \"$1\" and has seen no recent activity. It has been automatically closed for house-keeping purposes."
35+
for issue in $(gh issue list --limit 100 --label "$1" --repo "$REPO" --state open --search "updated:<$DATE" --json number --jq '.[].number'); do
36+
echo "Closing https://github.com/$REPO/issues/$issue"
37+
gh issue close $issue --repo "$REPO" --reason "not planned" --comment "This issue has been marked as \"$1\" and has seen no recent activity. It has been automatically closed for house-keeping purposes."
3738
done
3839
}
3940

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ jobs:
4242

4343
steps:
4444
- name: Checkout repository
45-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
45+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4646

4747
# Initializes the CodeQL tools for scanning.
4848
- name: Initialize CodeQL
49-
uses: github/codeql-action/init@1b168cd39490f61582a9beae412bb7057a6b2c4e # v4.31.8
49+
uses: github/codeql-action/init@9e907b5e64f6b83e7804b09294d44122997950d6 # v4.32.3
5050
with:
5151
config-file: ./.github/codeql/codeql-configuration.yml
5252
# Override language selection by uncommenting this and choosing your languages
@@ -56,7 +56,7 @@ jobs:
5656
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5757
# If this step fails, then you should remove it and run the build manually (see below).
5858
- name: Autobuild
59-
uses: github/codeql-action/autobuild@1b168cd39490f61582a9beae412bb7057a6b2c4e # v4.31.8
59+
uses: github/codeql-action/autobuild@9e907b5e64f6b83e7804b09294d44122997950d6 # v4.32.3
6060

6161
# ℹ️ Command-line programs to run using the OS shell.
6262
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -70,4 +70,4 @@ jobs:
7070
# make release
7171

7272
- name: Perform CodeQL Analysis
73-
uses: github/codeql-action/analyze@1b168cd39490f61582a9beae412bb7057a6b2c4e # v4.31.8
73+
uses: github/codeql-action/analyze@9e907b5e64f6b83e7804b09294d44122997950d6 # v4.32.3

.github/workflows/copilot-setup-steps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
# You can define any steps you want, and they will run before the agent starts.
1616
# If you do not check out your code, Copilot will do this for you.
1717
steps:
18-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
19-
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
18+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
19+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
2020
- run: npm ci
2121
# pull dprint caches before network access is blocked
2222
- run: npx hereby check-format || true

.github/workflows/create-cherry-pick-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
if: github.repository == 'microsoft/TypeScript'
4848

4949
steps:
50-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
50+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5151
with:
5252
filter: blob:none # https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/
5353
fetch-depth: 0 # Default is 1; need to set to 0 to get the benefits of blob:none.

.github/workflows/insiders.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
if: github.repository == 'microsoft/TypeScript'
2121

2222
steps:
23-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
24-
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
23+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
24+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
2525
with:
2626
node-version: 'lts/*'
2727
- run: |
@@ -42,8 +42,8 @@ jobs:
4242
if: github.repository == 'microsoft/TypeScript'
4343

4444
steps:
45-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
46-
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
45+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
46+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
4747
with:
4848
node-version: 'lts/*'
4949
# Use NODE_AUTH_TOKEN environment variable to authenticate to this registry.

0 commit comments

Comments
 (0)