Skip to content

Commit 0f5de80

Browse files
committed
chore: update tsgo
1 parent 4489498 commit 0f5de80

File tree

45 files changed

+234
-144
lines changed

Some content is hidden

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

45 files changed

+234
-144
lines changed

go.mod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,16 @@ require (
4747

4848
require (
4949
github.com/google/go-cmp v0.7.0 // indirect
50+
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
5051
github.com/mattn/go-colorable v0.1.13 // indirect
5152
github.com/mattn/go-isatty v0.0.20 // indirect
53+
github.com/zeebo/xxh3 v1.0.2 // indirect
5254
golang.org/x/mod v0.26.0 // indirect
5355
)
5456

5557
require (
5658
github.com/dlclark/regexp2 v1.11.5 // indirect
5759
github.com/go-json-experiment/json v0.0.0-20250811204210-4789234c3ea1
58-
github.com/microsoft/typescript-go v0.0.0-20250814234431-ae2bacc8a459 // indirect
60+
github.com/microsoft/typescript-go v0.0.0-20250827194408-bcb8510f109a // indirect
5961
golang.org/x/text v0.28.0
6062
)

go.sum

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,23 @@ github.com/go-json-experiment/json v0.0.0-20250811204210-4789234c3ea1 h1:KaJSg7E
88
github.com/go-json-experiment/json v0.0.0-20250811204210-4789234c3ea1/go.mod h1:TiCD2a1pcmjd7YnhGH0f/zKNcCD06B029pHhzV23c2M=
99
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
1010
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
11+
github.com/klauspost/cpuid/v2 v2.0.9 h1:lgaqFMSdTdQYdZ04uHyN2d/eKdOMyi2YLSvlQIBFYa4=
12+
github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
1113
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
1214
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
1315
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
1416
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
1517
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
16-
github.com/microsoft/typescript-go v0.0.0-20250814234431-ae2bacc8a459 h1:i9XPvR7BvGGkaYZfb2Ah6YlcGMK85JaxgEBXHoejjB0=
17-
github.com/microsoft/typescript-go v0.0.0-20250814234431-ae2bacc8a459/go.mod h1:A7HQr1XidFhXZBSB1VVWqMjfrisXlWDPeNwMLxj6mDc=
18+
github.com/microsoft/typescript-go v0.0.0-20250827194408-bcb8510f109a h1:CDBRuWqR59hrdJw7R6T+rIvlCzFvc8fZmt+h7BddimA=
19+
github.com/microsoft/typescript-go v0.0.0-20250827194408-bcb8510f109a/go.mod h1:A7HQr1XidFhXZBSB1VVWqMjfrisXlWDPeNwMLxj6mDc=
1820
github.com/peter-evans/patience v0.3.0 h1:rX0JdJeepqdQl1Sk9c9uvorjYYzL2TfgLX1adqYm9cA=
1921
github.com/peter-evans/patience v0.3.0/go.mod h1:Kmxu5sY1NmBLFSStvXjX1wS9mIv7wMcP/ubucyMOAu0=
2022
github.com/tailscale/hujson v0.0.0-20250605163823-992244df8c5a h1:a6TNDN9CgG+cYjaeN8l2mc4kSz2iMiCDQxPEyltUV/I=
2123
github.com/tailscale/hujson v0.0.0-20250605163823-992244df8c5a/go.mod h1:EbW0wDK/qEUYI0A5bqq0C2kF8JTQwWONmGDBbzsxxHo=
24+
github.com/zeebo/assert v1.3.0 h1:g7C04CbJuIDKNPFHmsk4hwZDO5O+kntRxzaUoNXj+IQ=
25+
github.com/zeebo/assert v1.3.0/go.mod h1:Pq9JiuJQpG8JLJdtkwrJESF0Foym2/D9XMU5ciN/wJ0=
26+
github.com/zeebo/xxh3 v1.0.2 h1:xZmwmqxHZA8AI603jOQ0tMqmBr9lPeFwGg6d+xy9DC0=
27+
github.com/zeebo/xxh3 v1.0.2/go.mod h1:5NWz9Sef7zIDm2JHfFlcQvNekmcEl9ekUZQQKCYaDcA=
2228
golang.org/x/mod v0.26.0 h1:EGMPT//Ezu+ylkCijjPc+f4Aih7sZvaAr+O3EHBxvZg=
2329
golang.org/x/mod v0.26.0/go.mod h1:/j6NAhSk8iQ723BGAUyoAcn7SlD7s15Dp9Nd/SfeaFQ=
2430
golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw=

internal/utils/create_program.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"fmt"
77

88
"github.com/microsoft/typescript-go/shim/bundled"
9-
"github.com/microsoft/typescript-go/shim/collections"
109
"github.com/microsoft/typescript-go/shim/compiler"
1110
"github.com/microsoft/typescript-go/shim/core"
1211
"github.com/microsoft/typescript-go/shim/tsoptions"
@@ -16,8 +15,8 @@ import (
1615

1716
func CreateCompilerHost(cwd string, fs vfs.FS) compiler.CompilerHost {
1817
defaultLibraryPath := bundled.LibPath()
19-
var extendedConfigCache collections.SyncMap[tspath.Path, *tsoptions.ExtendedConfigCacheEntry]
20-
return compiler.NewCompilerHost(cwd, fs, defaultLibraryPath, &extendedConfigCache,nil)
18+
var extendedConfigCache tsoptions.ExtendedConfigCache
19+
return compiler.NewCompilerHost(cwd, fs, defaultLibraryPath, extendedConfigCache, nil)
2120
}
2221

2322
func CreateProgram(singleThreaded bool, fs vfs.FS, cwd string, tsconfigPath string, host compiler.CompilerHost) (*compiler.Program, error) {

internal/utils/overlay_vfs.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ type OverlayVFS struct {
1616
VirtualFiles map[string]string
1717
}
1818

19+
// Chtimes implements vfs.FS.
20+
func (vfs *OverlayVFS) Chtimes(path string, aTime time.Time, mTime time.Time) error {
21+
panic("unimplemented")
22+
}
23+
1924
var _ vfs.FS = (*OverlayVFS)(nil)
2025

2126
func (vfs *OverlayVFS) UseCaseSensitiveFileNames() bool {

shim/ast/go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ module github.com/microsoft/typescript-go/shim/ast
22

33
go 1.25
44

5-
require github.com/microsoft/typescript-go v0.0.0-20250814234431-ae2bacc8a459
5+
require github.com/microsoft/typescript-go v0.0.0-20250827194408-bcb8510f109a
66

77
require (
88
github.com/go-json-experiment/json v0.0.0-20250811204210-4789234c3ea1 // indirect
9+
golang.org/x/sync v0.16.0 // indirect
910
golang.org/x/text v0.28.0 // indirect
1011
)

shim/ast/go.sum

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ github.com/go-json-experiment/json v0.0.0-20250811204210-4789234c3ea1 h1:KaJSg7E
22
github.com/go-json-experiment/json v0.0.0-20250811204210-4789234c3ea1/go.mod h1:TiCD2a1pcmjd7YnhGH0f/zKNcCD06B029pHhzV23c2M=
33
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
44
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
5-
github.com/microsoft/typescript-go v0.0.0-20250814234431-ae2bacc8a459 h1:i9XPvR7BvGGkaYZfb2Ah6YlcGMK85JaxgEBXHoejjB0=
6-
github.com/microsoft/typescript-go v0.0.0-20250814234431-ae2bacc8a459/go.mod h1:A7HQr1XidFhXZBSB1VVWqMjfrisXlWDPeNwMLxj6mDc=
5+
github.com/microsoft/typescript-go v0.0.0-20250827194408-bcb8510f109a h1:CDBRuWqR59hrdJw7R6T+rIvlCzFvc8fZmt+h7BddimA=
6+
github.com/microsoft/typescript-go v0.0.0-20250827194408-bcb8510f109a/go.mod h1:A7HQr1XidFhXZBSB1VVWqMjfrisXlWDPeNwMLxj6mDc=
7+
golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw=
8+
golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
79
golang.org/x/text v0.28.0 h1:rhazDwis8INMIwQ4tpjLDzUhx6RlXqZNPEM0huQojng=
810
golang.org/x/text v0.28.0/go.mod h1:U8nCwOR8jO/marOQ0QbDiOngZVEBB7MAiitBuMjXiNU=
911
gotest.tools/v3 v3.5.2 h1:7koQfIKdy+I8UTetycgUqXWSDwpgv193Ka+qRsmBY8Q=

shim/ast/shim.go

Lines changed: 23 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

shim/bundled/go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ module github.com/microsoft/typescript-go/shim/bundled
22

33
go 1.25
44

5-
require github.com/microsoft/typescript-go v0.0.0-20250814234431-ae2bacc8a459
5+
require github.com/microsoft/typescript-go v0.0.0-20250827194408-bcb8510f109a
66

77
require (
88
github.com/dlclark/regexp2 v1.11.5 // indirect
99
github.com/go-json-experiment/json v0.0.0-20250811204210-4789234c3ea1 // indirect
10+
golang.org/x/sync v0.16.0 // indirect
1011
golang.org/x/text v0.28.0 // indirect
1112
)

shim/bundled/go.sum

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ github.com/go-json-experiment/json v0.0.0-20250811204210-4789234c3ea1 h1:KaJSg7E
44
github.com/go-json-experiment/json v0.0.0-20250811204210-4789234c3ea1/go.mod h1:TiCD2a1pcmjd7YnhGH0f/zKNcCD06B029pHhzV23c2M=
55
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
66
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
7-
github.com/microsoft/typescript-go v0.0.0-20250814234431-ae2bacc8a459 h1:i9XPvR7BvGGkaYZfb2Ah6YlcGMK85JaxgEBXHoejjB0=
8-
github.com/microsoft/typescript-go v0.0.0-20250814234431-ae2bacc8a459/go.mod h1:A7HQr1XidFhXZBSB1VVWqMjfrisXlWDPeNwMLxj6mDc=
7+
github.com/microsoft/typescript-go v0.0.0-20250827194408-bcb8510f109a h1:CDBRuWqR59hrdJw7R6T+rIvlCzFvc8fZmt+h7BddimA=
8+
github.com/microsoft/typescript-go v0.0.0-20250827194408-bcb8510f109a/go.mod h1:A7HQr1XidFhXZBSB1VVWqMjfrisXlWDPeNwMLxj6mDc=
9+
golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw=
10+
golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
911
golang.org/x/sys v0.35.0 h1:vz1N37gP5bs89s7He8XuIYXpyY0+QlsKmzipCbUtyxI=
1012
golang.org/x/sys v0.35.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
1113
golang.org/x/text v0.28.0 h1:rhazDwis8INMIwQ4tpjLDzUhx6RlXqZNPEM0huQojng=

shim/checker/go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ module github.com/microsoft/typescript-go/shim/checker
22

33
go 1.25
44

5-
require github.com/microsoft/typescript-go v0.0.0-20250814234431-ae2bacc8a459
5+
require github.com/microsoft/typescript-go v0.0.0-20250827194408-bcb8510f109a
66

77
require (
88
github.com/dlclark/regexp2 v1.11.5 // indirect
99
github.com/go-json-experiment/json v0.0.0-20250811204210-4789234c3ea1 // indirect
10+
golang.org/x/sync v0.16.0 // indirect
1011
golang.org/x/text v0.28.0 // indirect
1112
)

0 commit comments

Comments
 (0)