Skip to content

Commit fd08eab

Browse files
authored
Merge branch 'main' into remove-react
2 parents b350681 + b0ee413 commit fd08eab

File tree

117 files changed

+75252
-22749
lines changed

Some content is hidden

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

117 files changed

+75252
-22749
lines changed

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,9 @@
6161
#*.PDF diff=astextplain
6262
#*.rtf diff=astextplain
6363
#*.RTF diff=astextplain
64+
65+
###############################################################################
66+
# Show manual patches in the language stats
67+
###############################################################################
68+
*.jsonc linguist-detectable
69+
*.kdl linguist-detectable

.github/workflows/ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,13 @@ jobs:
66
runs-on: ubuntu-latest
77

88
steps:
9-
- uses: actions/checkout@v4
10-
with:
11-
submodules: true # Ensures submodules are cloned
12-
13-
14-
- uses: actions/setup-node@v5
9+
- uses: actions/checkout@v6
10+
- uses: actions/setup-node@v6
1511
with:
1612
node-version: "lts/*"
1713
cache: npm
1814

1915
- run: npm ci
2016
- run: npm run build
2117
- run: npm test
18+
- run: npx tsgo

.github/workflows/codeowners-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v6
1818
- name: Run Codeowners merge check
1919
uses: OSS-Docs-Tools/[email protected]
2020
if: github.repository == 'microsoft/TypeScript-DOM-lib-generator'

.github/workflows/codeql.yml

Lines changed: 83 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,100 @@
1-
name: 'Code Scanning - Action'
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL Advanced"
213

314
on:
415
push:
5-
branches:
6-
- main
16+
branches: [ "main" ]
717
pull_request:
8-
branches:
9-
- main
18+
branches: [ "main" ]
1019
schedule:
11-
# ┌───────────── minute (0 - 59)
12-
# │ ┌───────────── hour (0 - 23)
13-
# │ │ ┌───────────── day of the month (1 - 31)
14-
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
15-
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
16-
# │ │ │ │ │
17-
# │ │ │ │ │
18-
# │ │ │ │ │
19-
# * * * * *
20-
- cron: '30 1 * * 0'
21-
22-
permissions:
23-
contents: read
24-
25-
# Ensure scripts are run with pipefail. See:
26-
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
27-
defaults:
28-
run:
29-
shell: bash
20+
- cron: '19 8 * * 6'
3021

3122
jobs:
32-
CodeQL-Build:
33-
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
34-
runs-on: ubuntu-latest
35-
if: github.repository == 'microsoft/TypeScript-DOM-lib-generator'
36-
23+
analyze:
24+
name: Analyze (${{ matrix.language }})
25+
# Runner size impacts CodeQL analysis time. To learn more, please see:
26+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
27+
# - https://gh.io/supported-runners-and-hardware-resources
28+
# - https://gh.io/using-larger-runners (GitHub.com only)
29+
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
30+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
3731
permissions:
3832
# required for all workflows
3933
security-events: write
4034

41-
steps:
42-
- name: Checkout repository
43-
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
35+
# required to fetch internal or private CodeQL packs
36+
packages: read
37+
38+
# only required for workflows in private repositories
39+
actions: read
40+
contents: read
4441

45-
# Initializes the CodeQL tools for scanning.
46-
- name: Initialize CodeQL
47-
uses: github/codeql-action/init@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3.29.5
48-
with:
49-
config-file: ./.github/codeql/codeql-configuration.yml
50-
# Override language selection by uncommenting this and choosing your languages
51-
# with:
52-
# languages: go, javascript, csharp, python, cpp, java
42+
strategy:
43+
fail-fast: false
44+
matrix:
45+
include:
46+
- language: actions
47+
build-mode: none
48+
- language: javascript-typescript
49+
build-mode: none
50+
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift'
51+
# Use `c-cpp` to analyze code written in C, C++ or both
52+
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
53+
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
54+
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
55+
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
56+
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
57+
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
58+
steps:
59+
- name: Checkout repository
60+
uses: actions/checkout@v6
5361

54-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55-
# If this step fails, then you should remove it and run the build manually (see below).
56-
- name: Autobuild
57-
uses: github/codeql-action/autobuild@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3.29.5
62+
# Add any setup steps before running the `github/codeql-action/init` action.
63+
# This includes steps like installing compilers or runtimes (`actions/setup-node`
64+
# or others). This is typically only required for manual builds.
65+
# - name: Setup runtime (example)
66+
# uses: actions/setup-example@v1
5867

59-
# ℹ️ Command-line programs to run using the OS shell.
60-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
68+
# Initializes the CodeQL tools for scanning.
69+
- name: Initialize CodeQL
70+
uses: github/codeql-action/init@v4
71+
with:
72+
languages: ${{ matrix.language }}
73+
build-mode: ${{ matrix.build-mode }}
74+
# If you wish to specify custom queries, you can do so here or in a config file.
75+
# By default, queries listed here will override any specified in a config file.
76+
# Prefix the list here with "+" to use these queries and those in the config file.
6177

62-
# ✏️ If the Autobuild fails above, remove it and uncomment the following
63-
# three lines and modify them (or add more) to build your code if your
64-
# project uses a compiled language
78+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
79+
# queries: security-extended,security-and-quality
6580

66-
#- run: |
67-
# make bootstrap
68-
# make release
81+
# If the analyze step fails for one of the languages you are analyzing with
82+
# "We were unable to automatically build your code", modify the matrix above
83+
# to set the build mode to "manual" for that language. Then modify this step
84+
# to build your code.
85+
# ℹ️ Command-line programs to run using the OS shell.
86+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
87+
- if: matrix.build-mode == 'manual'
88+
shell: bash
89+
run: |
90+
echo 'If you are using a "manual" build mode for one or more of the' \
91+
'languages you are analyzing, replace this with the commands to build' \
92+
'your code, for example:'
93+
echo ' make bootstrap'
94+
echo ' make release'
95+
exit 1
6996
70-
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3.29.5
97+
- name: Perform CodeQL Analysis
98+
uses: github/codeql-action/analyze@v4
99+
with:
100+
category: "/language:${{matrix.language}}"

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v6
1919
with:
2020
submodules: true # Ensures submodules are cloned
2121

22-
- uses: actions/setup-node@v5
22+
- uses: actions/setup-node@v6
2323
with:
2424
node-version: "lts/*"
2525
cache: npm

.github/workflows/test_typescript.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v4
17-
with:
18-
submodules: true # Ensures submodules are cloned
19-
16+
- uses: actions/checkout@v6
2017

21-
- uses: actions/setup-node@v5
18+
- uses: actions/setup-node@v6
2219
with:
2320
node-version: "lts/*"
2421
cache: npm

.github/workflows/update-core-deps.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@ jobs:
1111
update-webref:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
15-
with:
16-
submodules: true # Ensure submodules are checked out
14+
- uses: actions/checkout@v6
1715

18-
- name: Update submodules
19-
run: git submodule update --init --remote
20-
- uses: actions/setup-node@v5
16+
- uses: actions/setup-node@v6
2117
with:
2218
node-version: "lts/*"
2319
cache: npm
@@ -31,6 +27,8 @@ jobs:
3127
# This prevents annoying change when contributors run `npm i` on their local machine.
3228
# Example: https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1463
3329
- run: npm i
30+
- name: Update MDN Data
31+
run: node scripts/fetch-mdn.js
3432
- id: build
3533
run: npm run generate
3634
continue-on-error: true
@@ -41,7 +39,7 @@ jobs:
4139
- id: git-diff
4240
run: git diff --quiet HEAD baselines
4341
continue-on-error: true
44-
- uses: peter-evans/create-pull-request@v7
42+
- uses: peter-evans/create-pull-request@v8
4543
if: ${{ steps.git-diff.outcome == 'failure' }}
4644
with:
4745
commit-message: "🤖 Update core dependencies"

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)