Skip to content

Commit 494a0d9

Browse files
chore: Bump dependencies (#296)
1 parent 98c9213 commit 494a0d9

28 files changed

+1149
-1217
lines changed

Diff for: .github/workflows/ci.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
node-version: [14.x, 16.x, 18.x] # NOTE: Keep in sync with README.
13-
# See Node.js release schedule: https://nodejs.org/en/about/releases/
14-
# - v14 EOL: Apr 30 2023
15-
# - v16 EOL: Apr 30 2024
12+
node-version: [18.x, 20.x] # NOTE: Keep in sync with README.
13+
# See Node.js release schedule: https://nodejs.org/en/about/previous-releases
1614
# - v18 EOL: Apr 30 2025
15+
# - v20 EOL: Apr 30 2026
1716
steps:
1817
- uses: actions/checkout@v3
1918
- name: Use Node.js ${{ matrix.node-version }}

Diff for: .github/workflows/pr-auditor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: pr-auditor
33
on:
44
pull_request_target:
5-
types: [ closed, edited, opened, synchronize, ready_for_review ]
5+
types: [closed, edited, opened, synchronize, ready_for_review]
66
workflow_dispatch:
77

88
jobs:

Diff for: .tool-versions

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
nodejs 16.7.0
1+
nodejs 20.8.1
2+
pnpm 8.9.2

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
npm install -g @sourcegraph/scip-typescript
1111
```
1212

13-
Currently, Node v14, Node v16 and Node v18 are supported. <!-- Source of truth: .github/workflows/ci.yml -->
13+
Currently, Node v18, Node v20 are supported. <!-- Source of truth: .github/workflows/ci.yml -->
1414

1515
### Indexing a TypeScript project
1616

Diff for: package.json

+19-19
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"tslint": "tslint -p tsconfig.json --format stylish",
1212
"eslint": "eslint --cache '**/*.ts?(x)'",
1313
"build": "node ./node_modules/typescript/bin/tsc -b .",
14-
"test": "uvu -r ts-node/register --ignore dist",
15-
"update-snapshots": "uvu -r ts-node/register --ignore dist --update-snapshots",
14+
"test": "uvu -r tsm --ignore dist",
15+
"update-snapshots": "uvu -r tsm --ignore dist --update-snapshots",
1616
"prepare": "cd snapshots && yarn && cd input/multi-project && yarn && cd ../pnpm-workspaces && pnpm install"
1717
},
1818
"repository": {
@@ -33,31 +33,31 @@
3333
},
3434
"homepage": "https://github.com/sourcegraph/scip-typescript#readme",
3535
"dependencies": {
36-
"commander": "^9.2.0",
37-
"google-protobuf": "^3.20.1",
36+
"commander": "^11.1.0",
37+
"google-protobuf": "^3.21.2",
3838
"pretty-ms": "^7.0.1",
3939
"progress": "^2.0.3",
4040
"typescript": "^4.8.4"
4141
},
4242
"devDependencies": {
43-
"@sourcegraph/eslint-config": "0.33.0",
43+
"@sourcegraph/eslint-config": "0.37.1",
4444
"@sourcegraph/prettierrc": "3.0.3",
4545
"@sourcegraph/tsconfig": "4.0.1",
46-
"@types/diff": "5.0.2",
47-
"@types/google-protobuf": "3.15.6",
48-
"@types/node": "17.0.14",
49-
"@types/pretty-ms": "5.0.1",
50-
"@types/progress": "2.0.5",
51-
"@typescript-eslint/eslint-plugin": "^5.61.0",
52-
"@typescript-eslint/parser": "^5.61.0",
53-
"diff": "^5.0.0",
54-
"eslint": "^7.32.0",
55-
"eslint-plugin-unicorn": "^21.0.0",
56-
"eslint-plugin-unused-imports": "^2.0.0",
57-
"pnpm": "7.20.0",
58-
"prettier": "2.8.8",
46+
"@types/diff": "5.0.9",
47+
"@types/google-protobuf": "3.15.12",
48+
"@types/node": "20.10.5",
5949
"ts-node": "^10.7.0",
50+
"@types/progress": "2.0.7",
51+
"@typescript-eslint/eslint-plugin": "^6.15.0",
52+
"@typescript-eslint/parser": "^6.15.0",
53+
"diff": "^5.1.0",
54+
"eslint": "^8.56.0",
55+
"eslint-plugin-unicorn": "^50.0.1",
56+
"eslint-plugin-unused-imports": "^3.0.0",
57+
"pnpm": "8.12.1",
58+
"prettier": "3.1.1",
6059
"typescript-eslint": "0.0.1-alpha.0",
61-
"uvu": "^0.5.3"
60+
"uvu": "^0.5.6",
61+
"tsm": "^2.3.0"
6262
}
6363
}

Diff for: snapshots/input/pnpm-workspaces/pnpm-lock.yaml

+10-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: snapshots/output/pure-js/src/main.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
// ^ definition pure-js 1.0.0 src/`main.js`/print_fib().(a)
2323
// documentation ```ts\n(parameter) a: any\n```
2424
console.log(fib(a))
25-
// ^^^^^^^ reference typescript 4.8.4 lib/`lib.dom.d.ts`/console.
26-
// ^^^^^^^ reference @types/node 17.0.14 `globals.d.ts`/console.
27-
// ^^^^^^^ reference @types/node 17.0.14 `console.d.ts`/`'node:console'`/global/console/
28-
// ^^^^^^^ reference @types/node 17.0.14 `console.d.ts`/`'node:console'`/global/console.
29-
// ^^^ reference typescript 4.8.4 lib/`lib.dom.d.ts`/Console#log().
30-
// ^^^ reference @types/node 17.0.14 `console.d.ts`/`'node:console'`/global/Console#log().
25+
// ^^^^^^^ reference typescript 4.9.5 lib/`lib.dom.d.ts`/console.
26+
// ^^^^^^^ reference @types/node 20.10.5 `globals.d.ts`/global/console.
27+
// ^^^^^^^ reference @types/node 20.10.5 `console.d.ts`/`"node:console"`/global/console/
28+
// ^^^^^^^ reference @types/node 20.10.5 `console.d.ts`/`"node:console"`/global/console.
29+
// ^^^ reference typescript 4.9.5 lib/`lib.dom.d.ts`/Console#log().
30+
// ^^^ reference @types/node 20.10.5 `console.d.ts`/`"node:console"`/global/Console#log().
3131
// ^^^ reference pure-js 1.0.0 src/`main.js`/fib().
3232
// ^ reference pure-js 1.0.0 src/`main.js`/print_fib().(a)
3333
}

Diff for: snapshots/output/react/src/LoaderInput.tsx

+17-19
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from 'react'
22
// definition react-example 1.0.0 src/`LoaderInput.tsx`/
33
//documentation ```ts\nmodule "LoaderInput.tsx"\n```
4-
// ^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/
5-
// ^^^^^^^ reference @types/react 17.0.52 `index.d.ts`/
4+
// ^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/
5+
// ^^^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/
66

77
/** Takes loading prop, input component as child */
88
interface Props {
@@ -15,15 +15,15 @@
1515
children: React.ReactNode
1616
// ^^^^^^^^ definition react-example 1.0.0 src/`LoaderInput.tsx`/Props#children.
1717
// documentation ```ts\n(property) children: ReactNode\n```
18-
// ^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/
19-
// ^^^^^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/ReactNode#
18+
// ^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/
19+
// ^^^^^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/ReactNode#
2020
}
2121

2222
export const LoaderInput: React.FunctionComponent<Props> = ({
2323
// ^^^^^^^^^^^ definition react-example 1.0.0 src/`LoaderInput.tsx`/LoaderInput.
2424
// documentation ```ts\nvar LoaderInput: FunctionComponent<Props>\n```
25-
// ^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/
26-
// ^^^^^^^^^^^^^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/FunctionComponent#
25+
// ^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/
26+
// ^^^^^^^^^^^^^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/FunctionComponent#
2727
// ^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/Props#
2828
loading,
2929
// ^^^^^^^ definition local 3
@@ -33,36 +33,34 @@
3333
// ^^^^^^^^ definition local 4
3434
// documentation ```ts\n(parameter) children: ReactNode\n```
3535
// ^^^^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/Props#children.
36-
// ^^^^^^^^ reference local 7
3736
}) => (
3837
<div className="hello">
39-
// ^^^ reference @types/react 17.0.52 `index.d.ts`/global/JSX/IntrinsicElements#div.
40-
// ^^^^^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/HTMLAttributes#className.
38+
// ^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/global/JSX/IntrinsicElements#div.
39+
// ^^^^^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/HTMLAttributes#className.
4140
{children}
4241
// ^^^^^^^^ reference local 4
4342
{loading && <p>spinner</p>}
4443
// ^^^^^^^ reference local 3
45-
// ^ reference @types/react 17.0.52 `index.d.ts`/global/JSX/IntrinsicElements#p.
46-
// ^ reference @types/react 17.0.52 `index.d.ts`/global/JSX/IntrinsicElements#p.
44+
// ^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/global/JSX/IntrinsicElements#p.
45+
// ^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/global/JSX/IntrinsicElements#p.
4746
</div>
48-
// ^^^ reference @types/react 17.0.52 `index.d.ts`/global/JSX/IntrinsicElements#div.
47+
// ^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/global/JSX/IntrinsicElements#div.
4948
)
5049

5150
export const LoaderInput2: React.FunctionComponent<Props> = props => {
5251
// ^^^^^^^^^^^^ definition react-example 1.0.0 src/`LoaderInput.tsx`/LoaderInput2.
5352
// documentation ```ts\nvar LoaderInput2: FunctionComponent<Props>\n```
54-
// ^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/
55-
// ^^^^^^^^^^^^^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/FunctionComponent#
53+
// ^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/
54+
// ^^^^^^^^^^^^^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/FunctionComponent#
5655
// ^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/Props#
57-
// ^^^^^ definition local 9
58-
// documentation ```ts\n(parameter) props: PropsWithChildren<Props>\n```
56+
// ^^^^^ definition local 6
57+
// documentation ```ts\n(parameter) props: Props\n```
5958
return <LoaderInput loading={true} key="key" children={props.children} />
6059
// ^^^^^^^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/LoaderInput.
6160
// ^^^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/Props#loading.
62-
// ^^^ reference local 13
61+
// ^^^ reference local 10
6362
// ^^^^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/Props#children.
64-
// ^^^^^ reference local 9
63+
// ^^^^^ reference local 6
6564
// ^^^^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/Props#children.
66-
// ^^^^^^^^ reference local 7
6765
}
6866

Diff for: snapshots/output/react/src/MyTSXElement.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from 'react'
22
// definition react-example 1.0.0 src/`MyTSXElement.tsx`/
33
//documentation ```ts\nmodule "MyTSXElement.tsx"\n```
4-
// ^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/
5-
// ^^^^^^^ reference @types/react 17.0.52 `index.d.ts`/
4+
// ^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/
5+
// ^^^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/
66

77
export interface MyProps {}
88
// ^^^^^^^ definition react-example 1.0.0 src/`MyTSXElement.tsx`/MyProps#
@@ -11,8 +11,8 @@
1111
export const MyTSXElement: React.FunctionComponent<MyProps> = ({}) => (<p></p>)
1212
// ^^^^^^^^^^^^ definition react-example 1.0.0 src/`MyTSXElement.tsx`/MyTSXElement.
1313
// documentation ```ts\nvar MyTSXElement: FunctionComponent<MyProps>\n```
14-
// ^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/
15-
// ^^^^^^^^^^^^^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/FunctionComponent#
14+
// ^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/
15+
// ^^^^^^^^^^^^^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/FunctionComponent#
1616
// ^^^^^^^ reference react-example 1.0.0 src/`MyTSXElement.tsx`/MyProps#
17-
// ^ reference @types/react 17.0.52 `index.d.ts`/global/JSX/IntrinsicElements#p.
18-
// ^ reference @types/react 17.0.52 `index.d.ts`/global/JSX/IntrinsicElements#p.
17+
// ^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/global/JSX/IntrinsicElements#p.
18+
// ^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/global/JSX/IntrinsicElements#p.

Diff for: snapshots/output/react/src/UseMyTSXElement.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from "react";
22
// definition react-example 1.0.0 src/`UseMyTSXElement.tsx`/
33
//documentation ```ts\nmodule "UseMyTSXElement.tsx"\n```
4-
// ^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/
5-
// ^^^^^^^ reference @types/react 17.0.52 `index.d.ts`/
4+
// ^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/
5+
// ^^^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/
66

77
import { MyProps, MyTSXElement } from "./MyTSXElement";
88
// ^^^^^^^ reference react-example 1.0.0 src/`MyTSXElement.tsx`/MyProps#
@@ -12,8 +12,8 @@
1212
export const _: React.FunctionComponent<MyProps> =
1313
// ^ definition react-example 1.0.0 src/`UseMyTSXElement.tsx`/_.
1414
// documentation ```ts\nvar _: FunctionComponent<MyProps>\n```
15-
// ^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/
16-
// ^^^^^^^^^^^^^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/FunctionComponent#
15+
// ^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/
16+
// ^^^^^^^^^^^^^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/FunctionComponent#
1717
// ^^^^^^^ reference react-example 1.0.0 src/`MyTSXElement.tsx`/MyProps#
1818
({}) => (<MyTSXElement></MyTSXElement>)
1919
// ^^^^^^^^^^^^ reference react-example 1.0.0 src/`MyTSXElement.tsx`/MyTSXElement.

Diff for: snapshots/output/syntax/src/accessors.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,6 @@
138138
g(D.length)
139139
// ^ reference syntax 1.0.0 src/`accessors.ts`/g().
140140
// ^ reference syntax 1.0.0 src/`accessors.ts`/D#
141-
// ^^^^^^ reference typescript 4.8.4 lib/`lib.es5.d.ts`/Function#length.
141+
// ^^^^^^ reference typescript 4.9.5 lib/`lib.es5.d.ts`/Function#length.
142142
}
143143

Diff for: snapshots/output/syntax/src/destructuring.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
// ^^^^^ reference syntax 1.0.0 src/`destructuring.ts`/props.
2626
return [props].map(({ a }) => a + b)
2727
// ^^^^^ reference syntax 1.0.0 src/`destructuring.ts`/props.
28-
// ^^^ reference typescript 4.8.4 lib/`lib.es5.d.ts`/Array#map().
28+
// ^^^ reference typescript 4.9.5 lib/`lib.es5.d.ts`/Array#map().
2929
// ^ definition local 10
3030
// documentation ```ts\n(parameter) a: number\n```
3131
// ^ reference syntax 1.0.0 src/`destructuring.ts`/Props#a.
@@ -42,7 +42,7 @@
4242
// ^^^^^ reference syntax 1.0.0 src/`destructuring.ts`/props.
4343
return [[b]].map(([a]) => a.a)
4444
// ^ reference local 15
45-
// ^^^ reference typescript 4.8.4 lib/`lib.es5.d.ts`/Array#map().
45+
// ^^^ reference typescript 4.9.5 lib/`lib.es5.d.ts`/Array#map().
4646
// ^ definition local 21
4747
// documentation ```ts\n(parameter) a: Props\n```
4848
// ^ reference local 21
@@ -58,7 +58,7 @@
5858
// ^^^^^ reference syntax 1.0.0 src/`destructuring.ts`/props.
5959
return [[props]].map(([{ a }]) => a + b.a)
6060
// ^^^^^ reference syntax 1.0.0 src/`destructuring.ts`/props.
61-
// ^^^ reference typescript 4.8.4 lib/`lib.es5.d.ts`/Array#map().
61+
// ^^^ reference typescript 4.9.5 lib/`lib.es5.d.ts`/Array#map().
6262
// ^ definition local 36
6363
// documentation ```ts\n(parameter) a: number\n```
6464
// ^ reference syntax 1.0.0 src/`destructuring.ts`/Props#a.

Diff for: snapshots/output/syntax/src/import.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@
4343
export function dynamicImport(): Promise<void> {
4444
// ^^^^^^^^^^^^^ definition syntax 1.0.0 src/`import.ts`/dynamicImport().
4545
// documentation ```ts\nfunction dynamicImport(): Promise<void>\n```
46-
// ^^^^^^^ reference typescript 4.8.4 lib/`lib.es5.d.ts`/Promise#
47-
// ^^^^^^^ reference typescript 4.8.4 lib/`lib.es2015.iterable.d.ts`/Promise#
48-
// ^^^^^^^ reference typescript 4.8.4 lib/`lib.es2015.promise.d.ts`/Promise.
49-
// ^^^^^^^ reference typescript 4.8.4 lib/`lib.es2015.symbol.wellknown.d.ts`/Promise#
50-
// ^^^^^^^ reference typescript 4.8.4 lib/`lib.es2018.promise.d.ts`/Promise#
46+
// ^^^^^^^ reference typescript 4.9.5 lib/`lib.es5.d.ts`/Promise#
47+
// ^^^^^^^ reference typescript 4.9.5 lib/`lib.es2015.iterable.d.ts`/Promise#
48+
// ^^^^^^^ reference typescript 4.9.5 lib/`lib.es2015.promise.d.ts`/Promise.
49+
// ^^^^^^^ reference typescript 4.9.5 lib/`lib.es2015.symbol.wellknown.d.ts`/Promise#
50+
// ^^^^^^^ reference typescript 4.9.5 lib/`lib.es2018.promise.d.ts`/Promise#
5151
return import('./function').then(c => c.newFunction())
5252
// ^^^^^^^^^^^^ reference syntax 1.0.0 src/`function.ts`/
53-
// ^^^^ reference typescript 4.8.4 lib/`lib.es5.d.ts`/Promise#then().
53+
// ^^^^ reference typescript 4.9.5 lib/`lib.es5.d.ts`/Promise#then().
5454
// ^ definition local 3
5555
// documentation ```ts\n(parameter) c: typeof import("/src/function")\n```
5656
// ^ reference local 3

0 commit comments

Comments
 (0)