Skip to content

Commit abc566f

Browse files
Update Yarn dependencies
This especially brings Typescript 5.9.3 and support for es2024.
1 parent 891eb42 commit abc566f

15 files changed

Lines changed: 1814 additions & 1266 deletions

snapshots/output/pure-js/src/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ function print_fib(a) {
1818
// ^^^^^^^^^ definition pure-js 1.0.0 src/`main.js`/print_fib().
1919
// ^ definition pure-js 1.0.0 src/`main.js`/print_fib().(a)
2020
console.log(fib(a))
21-
//^^^^^^^ reference typescript 5.6.2 lib/`lib.dom.d.ts`/console.
21+
//^^^^^^^ reference typescript 5.9.3 lib/`lib.dom.d.ts`/console.
2222
//^^^^^^^ reference @types/node 20.16.10 `globals.d.ts`/global/console.
2323
//^^^^^^^ reference @types/node 20.16.10 `console.d.ts`/`"node:console"`/global/console/
2424
//^^^^^^^ reference @types/node 20.16.10 `console.d.ts`/`"node:console"`/global/console.
25-
// ^^^ reference typescript 5.6.2 lib/`lib.dom.d.ts`/Console#log().
25+
// ^^^ reference typescript 5.9.3 lib/`lib.dom.d.ts`/Console#log().
2626
// ^^^ reference @types/node 20.16.10 `console.d.ts`/`"node:console"`/global/Console#log().
2727
// ^^^ reference pure-js 1.0.0 src/`main.js`/fib().
2828
// ^ reference pure-js 1.0.0 src/`main.js`/print_fib().(a)

snapshots/output/syntax/src/accessors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,6 @@ function f() {
115115
g(D.length)
116116
//^ reference syntax 1.0.0 src/`accessors.ts`/g().
117117
// ^ reference syntax 1.0.0 src/`accessors.ts`/D#
118-
// ^^^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Function#length.
118+
// ^^^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Function#length.
119119
}
120120

snapshots/output/syntax/src/decorators.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ function MyDecorator(value: Configuration) {
1010
// ^^^^^^^^^^^^^ reference syntax 1.0.0 src/`reusable-types.ts`/Configuration#
1111
return function (target: Function) {
1212
// ^^^^^^ definition local 2
13-
// ^^^^^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Function#
14-
// ^^^^^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Function.
15-
// ^^^^^^^^ reference typescript 5.6.2 lib/`lib.es2015.core.d.ts`/Function#
16-
// ^^^^^^^^ reference typescript 5.6.2 lib/`lib.es2015.symbol.wellknown.d.ts`/Function#
13+
// ^^^^^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Function#
14+
// ^^^^^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Function.
15+
// ^^^^^^^^ reference typescript 5.9.3 lib/`lib.es2015.core.d.ts`/Function#
16+
// ^^^^^^^^ reference typescript 5.9.3 lib/`lib.es2015.symbol.wellknown.d.ts`/Function#
1717
console.log(`MyDecorator is called with value: ${value}`)
18-
// ^^^^^^^ reference typescript 5.6.2 lib/`lib.dom.d.ts`/console.
18+
// ^^^^^^^ reference typescript 5.9.3 lib/`lib.dom.d.ts`/console.
1919
// ^^^^^^^ reference @types/node 20.16.10 `globals.d.ts`/global/console.
2020
// ^^^^^^^ reference @types/node 20.16.10 `console.d.ts`/`"node:console"`/global/console/
2121
// ^^^^^^^ reference @types/node 20.16.10 `console.d.ts`/`"node:console"`/global/console.
22-
// ^^^ reference typescript 5.6.2 lib/`lib.dom.d.ts`/Console#log().
22+
// ^^^ reference typescript 5.9.3 lib/`lib.dom.d.ts`/Console#log().
2323
// ^^^ reference @types/node 20.16.10 `console.d.ts`/`"node:console"`/global/Console#log().
2424
// ^^^^^ reference syntax 1.0.0 src/`decorators.ts`/MyDecorator().(value)
2525
}

snapshots/output/syntax/src/destructuring.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function objectDestructuring(): number[] {
1818
// ^^^^^ reference syntax 1.0.0 src/`destructuring.ts`/props.
1919
return [props].map(({ a }) => a + b)
2020
// ^^^^^ reference syntax 1.0.0 src/`destructuring.ts`/props.
21-
// ^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Array#map().
21+
// ^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Array#map().
2222
// ^ definition local 10
2323
// ^ reference syntax 1.0.0 src/`destructuring.ts`/Props#a.
2424
// ^ reference local 10
@@ -32,7 +32,7 @@ export function arrayDestructuring(): number[] {
3232
// ^^^^^ reference syntax 1.0.0 src/`destructuring.ts`/props.
3333
return [[b]].map(([a]) => a.a)
3434
// ^ reference local 15
35-
// ^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Array#map().
35+
// ^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Array#map().
3636
// ^ definition local 21
3737
// ^ reference local 21
3838
// ^ reference syntax 1.0.0 src/`destructuring.ts`/Props#a.
@@ -45,7 +45,7 @@ export function nestedDestructuring(): number[] {
4545
// ^^^^^ reference syntax 1.0.0 src/`destructuring.ts`/props.
4646
return [[props]].map(([{ a }]) => a + b.a)
4747
// ^^^^^ reference syntax 1.0.0 src/`destructuring.ts`/props.
48-
// ^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Array#map().
48+
// ^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Array#map().
4949
// ^ definition local 36
5050
// ^ reference syntax 1.0.0 src/`destructuring.ts`/Props#a.
5151
// ^ reference local 36

snapshots/output/syntax/src/import.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ export function useEverything(): string {
4141

4242
export function dynamicImport(): Promise<void> {
4343
// ^^^^^^^^^^^^^ definition syntax 1.0.0 src/`import.ts`/dynamicImport().
44-
// ^^^^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Promise#
45-
// ^^^^^^^ reference typescript 5.6.2 lib/`lib.es2015.iterable.d.ts`/Promise#
46-
// ^^^^^^^ reference typescript 5.6.2 lib/`lib.es2015.promise.d.ts`/Promise.
47-
// ^^^^^^^ reference typescript 5.6.2 lib/`lib.es2015.symbol.wellknown.d.ts`/Promise#
48-
// ^^^^^^^ reference typescript 5.6.2 lib/`lib.es2018.promise.d.ts`/Promise#
44+
// ^^^^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Promise#
45+
// ^^^^^^^ reference typescript 5.9.3 lib/`lib.es2015.iterable.d.ts`/Promise#
46+
// ^^^^^^^ reference typescript 5.9.3 lib/`lib.es2015.promise.d.ts`/Promise.
47+
// ^^^^^^^ reference typescript 5.9.3 lib/`lib.es2015.symbol.wellknown.d.ts`/Promise#
48+
// ^^^^^^^ reference typescript 5.9.3 lib/`lib.es2018.promise.d.ts`/Promise#
4949
return import('./function').then(c => c.newFunction())
5050
// ^^^^^^^^^^^^ reference syntax 1.0.0 src/`function.ts`/
51-
// ^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Promise#then().
51+
// ^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Promise#then().
5252
// ^ definition local 3
5353
// ^ reference local 3
5454
// ^^^^^^^^^^^ reference syntax 1.0.0 src/`function.ts`/newFunction().

snapshots/output/syntax/src/inheritance.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ export class Subclass
4848
// relationship implementation reference syntax 1.0.0 src/`overload.d.ts`/Overloader#onLiteral().
4949
// ^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/Subclass#onLiteral().(param)
5050
throw new Error('Method not implemented.' + param)
51-
// ^^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Error#
52-
// ^^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Error.
51+
// ^^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Error#
52+
// ^^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Error.
5353
// ^^^^^ reference syntax 1.0.0 src/`inheritance.ts`/Subclass#onLiteral().(param)
5454
}
5555
property = 'property'
@@ -60,29 +60,29 @@ export class Subclass
6060
// relationship implementation reference syntax 1.0.0 src/`inheritance.ts`/IntermediateSuperclass#overrideMethod().
6161
// relationship implementation reference syntax 1.0.0 src/`inheritance.ts`/Superclass#overrideMethod().
6262
throw new Error('Method not implemented.')
63-
// ^^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Error#
64-
// ^^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Error.
63+
// ^^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Error#
64+
// ^^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Error.
6565
}
6666
public intermediateOverrideMethod(): string {
6767
// ^^^^^^^^^^^^^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/Subclass#intermediateOverrideMethod().
6868
// relationship implementation reference syntax 1.0.0 src/`inheritance.ts`/IntermediateSuperclass#intermediateOverrideMethod().
6969
throw new Error('Method not implemented.')
70-
// ^^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Error#
71-
// ^^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Error.
70+
// ^^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Error#
71+
// ^^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Error.
7272
}
7373
public interfaceMethod(): string {
7474
// ^^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/Subclass#interfaceMethod().
7575
// relationship implementation reference syntax 1.0.0 src/`reusable-types.ts`/Superinterface#interfaceMethod().
7676
throw new Error('Method not implemented.')
77-
// ^^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Error#
78-
// ^^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Error.
77+
// ^^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Error#
78+
// ^^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Error.
7979
}
8080
public intermediateInterfaceMethod(): string {
8181
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/Subclass#intermediateInterfaceMethod().
8282
// relationship implementation reference syntax 1.0.0 src/`inheritance.ts`/IntermediateSuperinterface#intermediateInterfaceMethod().
8383
throw new Error('Method not implemented.')
84-
// ^^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Error#
85-
// ^^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Error.
84+
// ^^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Error#
85+
// ^^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Error.
8686
}
8787
}
8888
export const objectLiteralImplementation: Superinterface = {
@@ -93,8 +93,8 @@ export const objectLiteralImplementation: Superinterface = {
9393
interfaceMethod: (): string => {
9494
//^^^^^^^^^^^^^^^ reference syntax 1.0.0 src/`reusable-types.ts`/Superinterface#interfaceMethod().
9595
throw new Error('Function not implemented.')
96-
// ^^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Error#
97-
// ^^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Error.
96+
// ^^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Error#
97+
// ^^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Error.
9898
},
9999
}
100100

snapshots/output/syntax/src/local.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ export function local(): string {
1717
// ^ definition local 12
1818
// ^ reference local 12
1919
// ^ reference local 8
20-
// ^^^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/String#length.
20+
// ^^^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/String#length.
2121
// ^ reference local 12
2222
c += d
2323
// ^ reference local 8
2424
// ^ reference local 12
2525
c2 += c.length
2626
// ^^ reference local 9
2727
// ^ reference local 8
28-
// ^^^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/String#length.
28+
// ^^^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/String#length.
2929
}
3030
return [c, c2].reduce((previousValue, currentValue, currentIndex) => {
3131
// ^ reference local 8
3232
// ^^ reference local 9
33-
// ^^^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Array#reduce().
33+
// ^^^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Array#reduce().
3434
// ^^^^^^^^^^^^^ definition local 16
3535
// ^^^^^^^^^^^^ definition local 17
3636
// ^^^^^^^^^^^^ definition local 18

snapshots/output/syntax/src/object-literals-arrow-function.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export function genericArrow(): Foobar[] {
5353
// ^^^^^^^^^^^^ definition syntax 1.0.0 src/`object-literals-arrow-function.ts`/genericArrow().
5454
// ^^^^^^ reference syntax 1.0.0 src/`object-literals-arrow-function.ts`/Foobar#
5555
return [1].map<Foobar>(n => ({ foobar: n + 1 }))
56-
// ^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Array#map().
56+
// ^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Array#map().
5757
// ^^^^^^ reference syntax 1.0.0 src/`object-literals-arrow-function.ts`/Foobar#
5858
// ^ definition local 18
5959
// ^^^^^^ reference syntax 1.0.0 src/`object-literals-arrow-function.ts`/Foobar#foobar.
@@ -65,7 +65,7 @@ export function genericArrowOption(): Option<Foobar>[] {
6565
// ^^^^^^ reference syntax 1.0.0 src/`reusable-types.ts`/Option#
6666
// ^^^^^^ reference syntax 1.0.0 src/`object-literals-arrow-function.ts`/Foobar#
6767
return [1].map<Option<Foobar>>(n => ({ value: { foobar: n + 1 } }))
68-
// ^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Array#map().
68+
// ^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Array#map().
6969
// ^^^^^^ reference syntax 1.0.0 src/`reusable-types.ts`/Option#
7070
// ^^^^^^ reference syntax 1.0.0 src/`object-literals-arrow-function.ts`/Foobar#
7171
// ^ definition local 22
@@ -80,7 +80,7 @@ export function genericArrow2(): Foobar[] {
8080
// navigation to `foobar` below does not work with tsserver or scip-java
8181
// because `map` is missing an explicit `map<Foobar>` annotation.
8282
return [1].map(n => ({ foobar: n + 1 }))
83-
// ^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Array#map().
83+
// ^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Array#map().
8484
// ^ definition local 26
8585
// ^^^^^^ reference syntax 1.0.0 src/`object-literals-arrow-function.ts`/foobar0:
8686
// ^ reference local 26

snapshots/output/syntax/src/object-literals-call-signatures.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export function returnStatementInsideArgumentExpression(): Configuration[] {
7474
// ^^^^^^^^^^^^^ reference syntax 1.0.0 src/`reusable-types.ts`/Configuration#
7575
if (1 == 1) {
7676
return [1].map<Configuration>((number: number): Configuration => {
77-
// ^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Array#map().
77+
// ^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Array#map().
7878
// ^^^^^^^^^^^^^ reference syntax 1.0.0 src/`reusable-types.ts`/Configuration#
7979
// ^^^^^^ definition local 3
8080
// ^^^^^^^^^^^^^ reference syntax 1.0.0 src/`reusable-types.ts`/Configuration#
@@ -88,12 +88,12 @@ export function returnStatementInsideArgumentExpression(): Configuration[] {
8888
property2: incremented.toString(),
8989
// ^^^^^^^^^ reference syntax 1.0.0 src/`reusable-types.ts`/Strings#property2.
9090
// ^^^^^^^^^^^ reference local 6
91-
// ^^^^^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Number#toString().
91+
// ^^^^^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Number#toString().
9292
}
9393
})
9494
} else {
9595
return [1].map<Configuration>(number => {
96-
// ^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Array#map().
96+
// ^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Array#map().
9797
// ^^^^^^^^^^^^^ reference syntax 1.0.0 src/`reusable-types.ts`/Configuration#
9898
// ^^^^^^ definition local 10
9999
const incremented = number + 1
@@ -106,7 +106,7 @@ export function returnStatementInsideArgumentExpression(): Configuration[] {
106106
property2: incremented.toString(),
107107
// ^^^^^^^^^ reference syntax 1.0.0 src/`reusable-types.ts`/Strings#property2.
108108
// ^^^^^^^^^^^ reference local 13
109-
// ^^^^^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Number#toString().
109+
// ^^^^^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Number#toString().
110110
}
111111
})
112112
}

snapshots/output/syntax/src/object-literals.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import { Configuration } from './reusable-types'
77
function random(): number {
88
// ^^^^^^ definition syntax 1.0.0 src/`object-literals.ts`/random().
99
return Math.random()
10-
// ^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Math#
11-
// ^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Math.
12-
// ^^^^ reference typescript 5.6.2 lib/`lib.es2015.core.d.ts`/Math#
13-
// ^^^^ reference typescript 5.6.2 lib/`lib.es2015.symbol.wellknown.d.ts`/Math#
14-
// ^^^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Math#random().
10+
// ^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Math#
11+
// ^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Math.
12+
// ^^^^ reference typescript 5.9.3 lib/`lib.es2015.core.d.ts`/Math#
13+
// ^^^^ reference typescript 5.9.3 lib/`lib.es2015.symbol.wellknown.d.ts`/Math#
14+
// ^^^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Math#random().
1515
}
1616

1717
export function handleArrayLiteral(): Configuration[] {
@@ -72,11 +72,11 @@ export function returnStatement(): Configuration {
7272
// ^^^ definition syntax 1.0.0 src/`object-literals.ts`/`'1'0`:
7373
if (random() > Number.parseInt(i)) {
7474
// ^^^^^^ reference syntax 1.0.0 src/`object-literals.ts`/random().
75-
// ^^^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Number#
76-
// ^^^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Number.
77-
// ^^^^^^ reference typescript 5.6.2 lib/`lib.es5.d.ts`/Number#
78-
// ^^^^^^ reference typescript 5.6.2 lib/`lib.es2020.number.d.ts`/Number#
79-
// ^^^^^^^^ reference typescript 5.6.2 lib/`lib.es2015.core.d.ts`/NumberConstructor#parseInt().
75+
// ^^^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Number#
76+
// ^^^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Number.
77+
// ^^^^^^ reference typescript 5.9.3 lib/`lib.es5.d.ts`/Number#
78+
// ^^^^^^ reference typescript 5.9.3 lib/`lib.es2020.number.d.ts`/Number#
79+
// ^^^^^^^^ reference typescript 5.9.3 lib/`lib.es2015.core.d.ts`/NumberConstructor#parseInt().
8080
// ^ reference local 8
8181
return {
8282
property: 41,

0 commit comments

Comments
 (0)