Skip to content

Commit e129f20

Browse files
committed
Update baselines
1 parent 3003264 commit e129f20

File tree

42 files changed

+880
-187
lines changed

Some content is hidden

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

42 files changed

+880
-187
lines changed

testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsCjsFromJs(module=node20).symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
=== foo.cjs ===
44
exports.foo = "foo"
55
>exports.foo : Symbol(foo, Decl(foo.cjs, 0, 0))
6-
>exports : Symbol("foo", Decl(foo.cjs, 0, 0))
6+
>exports : Symbol("./foo.cjs", Decl(foo.cjs, 0, 0))
77
>foo : Symbol(foo, Decl(foo.cjs, 0, 0))
88

99
=== bar.ts ===

testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsCjsFromJs(module=node20).symbols.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
exports.foo = "foo"
66
>exports.foo : Symbol(foo, Decl(foo.cjs, 0, 0))
77
->exports : Symbol(foo, Decl(foo.cjs, 0, 0))
8-
+>exports : Symbol("foo", Decl(foo.cjs, 0, 0))
8+
+>exports : Symbol("./foo.cjs", Decl(foo.cjs, 0, 0))
99
>foo : Symbol(foo, Decl(foo.cjs, 0, 0))
1010

1111
=== bar.ts ===

testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsCjsFromJs(module=node20).types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
exports.foo = "foo"
55
>exports.foo = "foo" : "foo"
66
>exports.foo : "foo"
7-
>exports : typeof import("foo")
7+
>exports : typeof import("./foo.cjs")
88
>foo : "foo"
99
>"foo" : "foo"
1010

testdata/baselines/reference/submodule/conformance/nodeModulesDeclarationEmitDynamicImportWithPackageExports(module=node20).symbols

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,85 +16,85 @@ export {};
1616
// esm format file
1717
export const a = await import("package/cjs");
1818
>a : Symbol(a, Decl(other.ts, 1, 12))
19-
>"package/cjs" : Symbol("index", Decl(index.cts, 0, 0))
19+
>"package/cjs" : Symbol("./index.cts", Decl(index.cts, 0, 0))
2020

2121
export const b = await import("package/mjs");
2222
>b : Symbol(b, Decl(other.ts, 2, 12))
23-
>"package/mjs" : Symbol("index", Decl(index.mts, 0, 0))
23+
>"package/mjs" : Symbol("./index.mts", Decl(index.mts, 0, 0))
2424

2525
export const c = await import("package");
2626
>c : Symbol(c, Decl(other.ts, 3, 12))
27-
>"package" : Symbol("index", Decl(index.ts, 0, 0))
27+
>"package" : Symbol(".", Decl(index.ts, 0, 0))
2828

2929
export const f = await import("inner");
3030
>f : Symbol(f, Decl(other.ts, 4, 12))
31-
>"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0))
31+
>"inner" : Symbol("inner", Decl(index.d.ts, 0, 0))
3232

3333
=== other2.ts ===
3434
// esm format file
3535
export const d = await import("inner/cjs");
3636
>d : Symbol(d, Decl(other2.ts, 1, 12))
37-
>"inner/cjs" : Symbol("node_modules/inner/index", Decl(index.d.cts, 0, 0))
37+
>"inner/cjs" : Symbol("inner/cjs", Decl(index.d.cts, 0, 0))
3838

3939
export const e = await import("inner/mjs");
4040
>e : Symbol(e, Decl(other2.ts, 2, 12))
41-
>"inner/mjs" : Symbol("node_modules/inner/index", Decl(index.d.mts, 0, 0))
41+
>"inner/mjs" : Symbol("inner/mjs", Decl(index.d.mts, 0, 0))
4242

4343
=== other.mts ===
4444
// esm format file
4545
export const a = await import("package/cjs");
4646
>a : Symbol(a, Decl(other.mts, 1, 12))
47-
>"package/cjs" : Symbol("index", Decl(index.cts, 0, 0))
47+
>"package/cjs" : Symbol("package/cjs", Decl(index.cts, 0, 0))
4848

4949
export const b = await import("package/mjs");
5050
>b : Symbol(b, Decl(other.mts, 2, 12))
51-
>"package/mjs" : Symbol("index", Decl(index.mts, 0, 0))
51+
>"package/mjs" : Symbol("package/mjs", Decl(index.mts, 0, 0))
5252

5353
export const c = await import("package");
5454
>c : Symbol(c, Decl(other.mts, 3, 12))
55-
>"package" : Symbol("index", Decl(index.ts, 0, 0))
55+
>"package" : Symbol("package", Decl(index.ts, 0, 0))
5656

5757
export const f = await import("inner");
5858
>f : Symbol(f, Decl(other.mts, 4, 12))
59-
>"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0))
59+
>"inner" : Symbol("inner", Decl(index.d.ts, 0, 0))
6060

6161
=== other2.mts ===
6262
// esm format file
6363
export const d = await import("inner/cjs");
6464
>d : Symbol(d, Decl(other2.mts, 1, 12))
65-
>"inner/cjs" : Symbol("node_modules/inner/index", Decl(index.d.cts, 0, 0))
65+
>"inner/cjs" : Symbol("inner/cjs", Decl(index.d.cts, 0, 0))
6666

6767
export const e = await import("inner/mjs");
6868
>e : Symbol(e, Decl(other2.mts, 2, 12))
69-
>"inner/mjs" : Symbol("node_modules/inner/index", Decl(index.d.mts, 0, 0))
69+
>"inner/mjs" : Symbol("inner/mjs", Decl(index.d.mts, 0, 0))
7070

7171
=== other.cts ===
7272
// cjs format file, no TLA
7373
export const a = import("package/cjs");
7474
>a : Symbol(a, Decl(other.cts, 1, 12))
75-
>"package/cjs" : Symbol("index", Decl(index.cts, 0, 0))
75+
>"package/cjs" : Symbol("./index.cts", Decl(index.cts, 0, 0))
7676

7777
export const b = import("package/mjs");
7878
>b : Symbol(b, Decl(other.cts, 2, 12))
79-
>"package/mjs" : Symbol("index", Decl(index.mts, 0, 0))
79+
>"package/mjs" : Symbol("./index.mts", Decl(index.mts, 0, 0))
8080

8181
export const c = import("package");
8282
>c : Symbol(c, Decl(other.cts, 3, 12))
83-
>"package" : Symbol("index", Decl(index.ts, 0, 0))
83+
>"package" : Symbol(".", Decl(index.ts, 0, 0))
8484

8585
export const f = import("inner");
8686
>f : Symbol(f, Decl(other.cts, 4, 12))
87-
>"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0))
87+
>"inner" : Symbol("inner", Decl(index.d.ts, 0, 0))
8888

8989
=== other2.cts ===
9090
// cjs format file, no TLA
9191
export const d = import("inner/cjs");
9292
>d : Symbol(d, Decl(other2.cts, 1, 12))
93-
>"inner/cjs" : Symbol("node_modules/inner/index", Decl(index.d.cts, 0, 0))
93+
>"inner/cjs" : Symbol("inner/cjs", Decl(index.d.cts, 0, 0))
9494

9595
export const e = import("inner/mjs");
9696
>e : Symbol(e, Decl(other2.cts, 2, 12))
97-
>"inner/mjs" : Symbol("node_modules/inner/index", Decl(index.d.mts, 0, 0))
97+
>"inner/mjs" : Symbol("inner/mjs", Decl(index.d.mts, 0, 0))
9898

9999
=== node_modules/inner/index.d.ts ===
100100
// cjs format file
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
--- old.nodeModulesDeclarationEmitDynamicImportWithPackageExports(module=node20).symbols
2+
+++ new.nodeModulesDeclarationEmitDynamicImportWithPackageExports(module=node20).symbols
3+
@@= skipped -15, +15 lines =@@
4+
// esm format file
5+
export const a = await import("package/cjs");
6+
>a : Symbol(a, Decl(other.ts, 1, 12))
7+
->"package/cjs" : Symbol("index", Decl(index.cts, 0, 0))
8+
+>"package/cjs" : Symbol("./index.cts", Decl(index.cts, 0, 0))
9+
10+
export const b = await import("package/mjs");
11+
>b : Symbol(b, Decl(other.ts, 2, 12))
12+
->"package/mjs" : Symbol("index", Decl(index.mts, 0, 0))
13+
+>"package/mjs" : Symbol("./index.mts", Decl(index.mts, 0, 0))
14+
15+
export const c = await import("package");
16+
>c : Symbol(c, Decl(other.ts, 3, 12))
17+
->"package" : Symbol("index", Decl(index.ts, 0, 0))
18+
+>"package" : Symbol(".", Decl(index.ts, 0, 0))
19+
20+
export const f = await import("inner");
21+
>f : Symbol(f, Decl(other.ts, 4, 12))
22+
->"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0))
23+
+>"inner" : Symbol("inner", Decl(index.d.ts, 0, 0))
24+
25+
=== other2.ts ===
26+
// esm format file
27+
export const d = await import("inner/cjs");
28+
>d : Symbol(d, Decl(other2.ts, 1, 12))
29+
->"inner/cjs" : Symbol("node_modules/inner/index", Decl(index.d.cts, 0, 0))
30+
+>"inner/cjs" : Symbol("inner/cjs", Decl(index.d.cts, 0, 0))
31+
32+
export const e = await import("inner/mjs");
33+
>e : Symbol(e, Decl(other2.ts, 2, 12))
34+
->"inner/mjs" : Symbol("node_modules/inner/index", Decl(index.d.mts, 0, 0))
35+
+>"inner/mjs" : Symbol("inner/mjs", Decl(index.d.mts, 0, 0))
36+
37+
=== other.mts ===
38+
// esm format file
39+
export const a = await import("package/cjs");
40+
>a : Symbol(a, Decl(other.mts, 1, 12))
41+
->"package/cjs" : Symbol("index", Decl(index.cts, 0, 0))
42+
+>"package/cjs" : Symbol("package/cjs", Decl(index.cts, 0, 0))
43+
44+
export const b = await import("package/mjs");
45+
>b : Symbol(b, Decl(other.mts, 2, 12))
46+
->"package/mjs" : Symbol("index", Decl(index.mts, 0, 0))
47+
+>"package/mjs" : Symbol("package/mjs", Decl(index.mts, 0, 0))
48+
49+
export const c = await import("package");
50+
>c : Symbol(c, Decl(other.mts, 3, 12))
51+
->"package" : Symbol("index", Decl(index.ts, 0, 0))
52+
+>"package" : Symbol("package", Decl(index.ts, 0, 0))
53+
54+
export const f = await import("inner");
55+
>f : Symbol(f, Decl(other.mts, 4, 12))
56+
->"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0))
57+
+>"inner" : Symbol("inner", Decl(index.d.ts, 0, 0))
58+
59+
=== other2.mts ===
60+
// esm format file
61+
export const d = await import("inner/cjs");
62+
>d : Symbol(d, Decl(other2.mts, 1, 12))
63+
->"inner/cjs" : Symbol("node_modules/inner/index", Decl(index.d.cts, 0, 0))
64+
+>"inner/cjs" : Symbol("inner/cjs", Decl(index.d.cts, 0, 0))
65+
66+
export const e = await import("inner/mjs");
67+
>e : Symbol(e, Decl(other2.mts, 2, 12))
68+
->"inner/mjs" : Symbol("node_modules/inner/index", Decl(index.d.mts, 0, 0))
69+
+>"inner/mjs" : Symbol("inner/mjs", Decl(index.d.mts, 0, 0))
70+
71+
=== other.cts ===
72+
// cjs format file, no TLA
73+
export const a = import("package/cjs");
74+
>a : Symbol(a, Decl(other.cts, 1, 12))
75+
->"package/cjs" : Symbol("index", Decl(index.cts, 0, 0))
76+
+>"package/cjs" : Symbol("./index.cts", Decl(index.cts, 0, 0))
77+
78+
export const b = import("package/mjs");
79+
>b : Symbol(b, Decl(other.cts, 2, 12))
80+
->"package/mjs" : Symbol("index", Decl(index.mts, 0, 0))
81+
+>"package/mjs" : Symbol("./index.mts", Decl(index.mts, 0, 0))
82+
83+
export const c = import("package");
84+
>c : Symbol(c, Decl(other.cts, 3, 12))
85+
->"package" : Symbol("index", Decl(index.ts, 0, 0))
86+
+>"package" : Symbol(".", Decl(index.ts, 0, 0))
87+
88+
export const f = import("inner");
89+
>f : Symbol(f, Decl(other.cts, 4, 12))
90+
->"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0))
91+
+>"inner" : Symbol("inner", Decl(index.d.ts, 0, 0))
92+
93+
=== other2.cts ===
94+
// cjs format file, no TLA
95+
export const d = import("inner/cjs");
96+
>d : Symbol(d, Decl(other2.cts, 1, 12))
97+
->"inner/cjs" : Symbol("node_modules/inner/index", Decl(index.d.cts, 0, 0))
98+
+>"inner/cjs" : Symbol("inner/cjs", Decl(index.d.cts, 0, 0))
99+
100+
export const e = import("inner/mjs");
101+
>e : Symbol(e, Decl(other2.cts, 2, 12))
102+
->"inner/mjs" : Symbol("node_modules/inner/index", Decl(index.d.mts, 0, 0))
103+
+>"inner/mjs" : Symbol("inner/mjs", Decl(index.d.mts, 0, 0))
104+
105+
=== node_modules/inner/index.d.ts ===
106+
// cjs format file

0 commit comments

Comments
 (0)