Skip to content

Commit 90385b5

Browse files
committed
Merge upstream main into watch-invalidation-refactor
2 parents 6a7f06d + 1ac2d5a commit 90385b5

124 files changed

Lines changed: 8014 additions & 1282 deletions

File tree

Some content is hidden

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

‎.github/skills/api-client/SKILL.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: api-client
3+
description: Instructions for working on the API client in ./packages/typescript
4+
---
5+
6+
## Code comments
7+
8+
The user may tell you to reference Strada (the old TypeScript codebase) for implementation, but your code comments should not acknowledge that this codebase is a port of anything else. Comments should stand on their own and describe the code in the current codebase. Never say "Mirrors TypeScript's 'foo' function" or "...like the classic API's 'Bar' type."
9+
10+
## Unnecessary spread and `exactOptionalPropertyTypes`
11+
12+
Never write code like `...(options ? { snapshot: options.snapshot } : {})`. All optional properties should tolerate `undefined`. If `--exactOptionalPropertyTypes` is forcing you to write code this way, fix the offending type. Rewriting as `if (options) foo.snapshot = options.snapshot` is not an acceptable workaround; always fix the type. As a rule, object types used in input positions should always define optional properties with `prop?: T | undefined` so this isn't a problem.

‎.github/workflows/ci.yml‎

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,16 @@ jobs:
9393
os: windows
9494
coverage: true
9595
skip: ${{ github.event_name == 'merge_group' }}
96+
- runner: ubuntu-26.04-arm
97+
name: 'linux arm64'
98+
os: linux
99+
coverage: true
100+
skip: ${{ github.event_name == 'merge_group' }}
101+
- runner: windows-11-arm
102+
name: 'windows arm64'
103+
os: windows
104+
coverage: true
105+
skip: ${{ github.event_name == 'merge_group' }}
96106
- runner: macos-latest
97107
os: macos
98108
coverage: true
@@ -148,7 +158,7 @@ jobs:
148158
- name: Benchmarks
149159
run: npx hereby test:benchmarks
150160
- run: git add .
151-
- uses: codecov/codecov-action@0b35c9ecc4f0529d0eb674914510c22f85b196b4 # v7.1.0
161+
- uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
152162
if: ${{ always() && matrix.config.coverage && github.event_name != 'merge_group' }}
153163
with:
154164
use_oidc: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) }}
@@ -214,8 +224,9 @@ jobs:
214224
- run: npx hereby test:extension
215225
- run: npx hereby test:tools
216226
- run: npx hereby test:api
227+
- run: npx hereby test:benchmarks:api
217228
- run: git add .
218-
- uses: codecov/codecov-action@0b35c9ecc4f0529d0eb674914510c22f85b196b4 # v7.1.0
229+
- uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
219230
if: ${{ always() && matrix.config.coverage && github.event_name != 'merge_group' }}
220231
with:
221232
use_oidc: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) }}
@@ -283,12 +294,6 @@ jobs:
283294
- uses: ./.github/actions/setup-go
284295
- run: npm ci
285296
- run: npx hereby generate
286-
- run: npx hereby generate:enums
287-
- run: npx hereby generate:ast
288-
- run: npx hereby generate:vendor
289-
- run: node ./tsc/internal/lsp/lsproto/_generate/fetchModel.mts
290-
- run: node ./tsc/internal/lsp/lsproto/_generate/generate.mts
291-
- run: npx hereby generate:extension
292297
- run: npx hereby check:scripts
293298
- run: git add .
294299
- run: git diff --staged --exit-code --stat

‎.github/workflows/codeql.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ jobs:
2424
node-version: 24
2525
- uses: ./.github/actions/setup-go
2626
- run: npm ci
27-
- uses: github/codeql-action/init@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
27+
- uses: github/codeql-action/init@1c5b675653bb5c22dbe9b12b556ec555138e09fd # v4.38.1
2828
with:
2929
languages: go, javascript-typescript
3030
config-file: ./.github/codeql/codeql-configuration.yml
3131
- run: npx hereby build
32-
- uses: github/codeql-action/analyze@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
32+
- uses: github/codeql-action/analyze@1c5b675653bb5c22dbe9b12b556ec555138e09fd # v4.38.1

‎.github/workflows/scorecard.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ jobs:
5555

5656
# Upload the results to GitHub's code scanning dashboard.
5757
- name: 'Upload to code-scanning'
58-
uses: github/codeql-action/upload-sarif@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
58+
uses: github/codeql-action/upload-sarif@1c5b675653bb5c22dbe9b12b556ec555138e09fd # v4.38.1
5959
with:
6060
sarif_file: results.sarif

‎CONTRIBUTING.md‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,20 @@ npx hereby build # Build the native compiler into built/local/tsc
103103
npx hereby test # Run compiler and language-service Go tests
104104
npx hereby test:all # Also run benchmarks, tools, and API tests
105105
npx hereby lint # Run custom golangci-lint for both Go modules
106-
npx hereby generate # Regenerate compiler sources and bundled assets
106+
npx hereby generate:go # Run the generators also exposed through go generate
107+
npx hereby generate # Regenerate all sources, assets, localization, and vendored files
107108
npx hereby format # Format Go, TypeScript, JSON, and YAML
108109
npx hereby check:format # Check formatting without changing files
109110
npx hereby tidy # Tidy both modules and synchronize go.work
110111
```
111112

113+
Generation is owned by `Herebyfile.mjs`; Go directives forward to the same
114+
`generate:*` tasks for compatibility. Use a subtask such as
115+
`npx hereby generate:diagnostics` to run one generator group, and pass `--force`
116+
to bypass incremental caches. `generate` includes every generator and fetches
117+
the pinned LSP model when its local cache is missing or stale. Use
118+
`generate:go` for the narrower scope of `go generate ./...` in the `tsc` module.
119+
112120
Package-specific commands:
113121

114122
```bash

0 commit comments

Comments
 (0)