Skip to content

Commit 2056c69

Browse files
committed
Merge remote-tracking branch 'origin/main' into jabaile/optimize-bin
# Conflicts: # _packages/native-preview/bin/tsgo
2 parents 20f4139 + 5e86caf commit 2056c69

801 files changed

Lines changed: 30155 additions & 32588 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.

.dprint.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@
5252
"internal/lsp/lsproto/_generate/*.json",
5353
"internal/lsp/lsproto/_generate/metaModelSchema.mts",
5454
// Needs to be LF to have a working shebang.
55-
"_packages/native-preview/bin/tsgo.js",
55+
"_packages/native-preview/bin/tsgo",
5656
"_packages/native-preview/vendor/**"
5757
],
5858
// Note: if adding new languages, make sure settings.template.json is updated too.
5959
// Also, if updating typescript, update the one in package.json.
6060
"plugins": [
6161
"https://plugins.dprint.dev/typescript-0.96.1.wasm",
62-
"https://plugins.dprint.dev/json-0.21.3.wasm",
62+
"https://plugins.dprint.dev/json-0.22.0.wasm",
6363
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.6.0.wasm",
6464
"https://plugins.dprint.dev/jakebailey/gofumpt-v0.0.12.wasm"
6565
]

.github/workflows/ci.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
docker-images: false
3131
swap-storage: false
3232
dotnet: false
33-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
33+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
3434
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
3535
- uses: ./.github/actions/setup-go
3636

@@ -50,7 +50,7 @@ jobs:
5050
if: ${{ github.repository == 'microsoft/typescript-go' && github.event_name != 'merge_group' }}
5151
runs-on: TypeScript-1ES-GitHub-XL-2
5252
steps:
53-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
53+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
5454
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
5555
with:
5656
node-version: 'lts/*'
@@ -72,7 +72,7 @@ jobs:
7272
extension:
7373
runs-on: ubuntu-latest
7474
steps:
75-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
75+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
7676
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
7777

7878
- run: npm ci
@@ -137,7 +137,7 @@ jobs:
137137
- run: git config --system core.longpaths true
138138
if: ${{ matrix.config.os == 'windows-latest' }}
139139

140-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
140+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
141141
with:
142142
submodules: ${{ !matrix.config.no-submodules }}
143143
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
@@ -231,7 +231,7 @@ jobs:
231231
docker-images: false
232232
swap-storage: false
233233
dotnet: false
234-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
234+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
235235
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
236236
- uses: ./.github/actions/setup-go
237237

@@ -251,7 +251,7 @@ jobs:
251251
format:
252252
runs-on: ubuntu-slim
253253
steps:
254-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
254+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
255255
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
256256
- uses: ./.github/actions/setup-go
257257

@@ -268,7 +268,7 @@ jobs:
268268
docker-images: false
269269
swap-storage: false
270270
dotnet: false
271-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
271+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
272272
with:
273273
submodules: true
274274
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
@@ -307,7 +307,7 @@ jobs:
307307
tidy:
308308
runs-on: ubuntu-slim
309309
steps:
310-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
310+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
311311
- uses: ./.github/actions/setup-go
312312

313313
- run: go mod tidy -diff
@@ -322,7 +322,7 @@ jobs:
322322
docker-images: false
323323
swap-storage: false
324324
dotnet: false
325-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
325+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
326326
with:
327327
submodules: true
328328
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
@@ -349,7 +349,7 @@ jobs:
349349
misc:
350350
runs-on: ubuntu-latest
351351
steps:
352-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
352+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
353353
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
354354
- uses: ./.github/actions/setup-go
355355

@@ -359,6 +359,8 @@ jobs:
359359

360360
- run: npx hereby check:scripts
361361

362+
- run: npx hereby native-preview:check-platforms
363+
362364
required:
363365
runs-on: ubuntu-slim
364366
if: ${{ always() }}

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444

4545
steps:
4646
- name: Checkout repository
47-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
47+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
4848

4949
# Initializes the CodeQL tools for scanning.
5050
- name: Initialize CodeQL

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
docker-images: false
2727
swap-storage: false
2828
dotnet: false
29-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
29+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
3030
with:
3131
submodules: true
3232
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ linters:
9696
- path: internal/fourslash/tests/gen/
9797
linters:
9898
- misspell
99-
- path: 'internal/(repo|testutil|testrunner|vfs|pprof|execute/tsctests|bundled|fswatch)|cmd/tsgo'
99+
- path: 'internal/(repo|testutil|testrunner|vfs|pprof|execute/tsctests|bundled|fswatch|nativepath)|cmd/tsgo'
100100
text: should likely be used instead
101101
- path: '(.+)_test\.go$'
102102
text: should likely be used instead

CHANGES.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,22 @@ const FORWARD = 1,
187187
BACKWARD = 2;
188188
```
189189

190+
#### `arguments` usage within a JS function body no longer implies a `...args: any[]` parameter
191+
```js
192+
function f() {
193+
return arguments[0];
194+
}
195+
f("something"); // Previously allowed, now an error
196+
```
197+
198+
Instead, explicitly use a spread parameter:
199+
```js
200+
function f(...args) {
201+
return args[0];
202+
}
203+
f("something"); // Still allowed
204+
```
205+
190206
### JSDoc Types
191207

192208
#### JSDoc variadic types are now only synonyms for array types.

0 commit comments

Comments
 (0)