Skip to content

chore: Bump dependencies #296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x] # NOTE: Keep in sync with README.
# See Node.js release schedule: https://nodejs.org/en/about/releases/
# - v14 EOL: Apr 30 2023
# - v16 EOL: Apr 30 2024
node-version: [18.x, 20.x] # NOTE: Keep in sync with README.
# See Node.js release schedule: https://nodejs.org/en/about/previous-releases
# - v18 EOL: Apr 30 2025
# - v20 EOL: Apr 30 2026
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-auditor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: pr-auditor
on:
pull_request_target:
types: [ closed, edited, opened, synchronize, ready_for_review ]
types: [closed, edited, opened, synchronize, ready_for_review]
workflow_dispatch:

jobs:
Expand Down
3 changes: 2 additions & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
nodejs 16.7.0
nodejs 20.8.1
pnpm 8.9.2
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
npm install -g @sourcegraph/scip-typescript
```

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

### Indexing a TypeScript project

Expand Down
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"tslint": "tslint -p tsconfig.json --format stylish",
"eslint": "eslint --cache '**/*.ts?(x)'",
"build": "node ./node_modules/typescript/bin/tsc -b .",
"test": "uvu -r ts-node/register --ignore dist",
"update-snapshots": "uvu -r ts-node/register --ignore dist --update-snapshots",
"test": "uvu -r tsm --ignore dist",
"update-snapshots": "uvu -r tsm --ignore dist --update-snapshots",
"prepare": "cd snapshots && yarn && cd input/multi-project && yarn && cd ../pnpm-workspaces && pnpm install"
},
"repository": {
Expand All @@ -33,31 +33,31 @@
},
"homepage": "https://github.com/sourcegraph/scip-typescript#readme",
"dependencies": {
"commander": "^9.2.0",
"google-protobuf": "^3.20.1",
"commander": "^11.1.0",
"google-protobuf": "^3.21.2",
"pretty-ms": "^7.0.1",
"progress": "^2.0.3",
"typescript": "^4.8.4"
},
"devDependencies": {
"@sourcegraph/eslint-config": "0.33.0",
"@sourcegraph/eslint-config": "0.37.1",
"@sourcegraph/prettierrc": "3.0.3",
"@sourcegraph/tsconfig": "4.0.1",
"@types/diff": "5.0.2",
"@types/google-protobuf": "3.15.6",
"@types/node": "17.0.14",
"@types/pretty-ms": "5.0.1",
"@types/progress": "2.0.5",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"diff": "^5.0.0",
"eslint": "^7.32.0",
"eslint-plugin-unicorn": "^21.0.0",
"eslint-plugin-unused-imports": "^2.0.0",
"pnpm": "7.20.0",
"prettier": "2.8.8",
"@types/diff": "5.0.9",
"@types/google-protobuf": "3.15.12",
"@types/node": "20.10.5",
"ts-node": "^10.7.0",
"@types/progress": "2.0.7",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"diff": "^5.1.0",
"eslint": "^8.56.0",
"eslint-plugin-unicorn": "^50.0.1",
"eslint-plugin-unused-imports": "^3.0.0",
"pnpm": "8.12.1",
"prettier": "3.1.1",
"typescript-eslint": "0.0.1-alpha.0",
"uvu": "^0.5.3"
"uvu": "^0.5.6",
"tsm": "^2.3.0"
}
}
18 changes: 10 additions & 8 deletions snapshots/input/pnpm-workspaces/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions snapshots/output/pure-js/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
// ^ definition pure-js 1.0.0 src/`main.js`/print_fib().(a)
// documentation ```ts\n(parameter) a: any\n```
console.log(fib(a))
// ^^^^^^^ reference typescript 4.8.4 lib/`lib.dom.d.ts`/console.
// ^^^^^^^ reference @types/node 17.0.14 `globals.d.ts`/console.
// ^^^^^^^ reference @types/node 17.0.14 `console.d.ts`/`'node:console'`/global/console/
// ^^^^^^^ reference @types/node 17.0.14 `console.d.ts`/`'node:console'`/global/console.
// ^^^ reference typescript 4.8.4 lib/`lib.dom.d.ts`/Console#log().
// ^^^ reference @types/node 17.0.14 `console.d.ts`/`'node:console'`/global/Console#log().
// ^^^^^^^ reference typescript 4.9.5 lib/`lib.dom.d.ts`/console.
// ^^^^^^^ reference @types/node 20.10.5 `globals.d.ts`/global/console.
// ^^^^^^^ reference @types/node 20.10.5 `console.d.ts`/`"node:console"`/global/console/
// ^^^^^^^ reference @types/node 20.10.5 `console.d.ts`/`"node:console"`/global/console.
// ^^^ reference typescript 4.9.5 lib/`lib.dom.d.ts`/Console#log().
// ^^^ reference @types/node 20.10.5 `console.d.ts`/`"node:console"`/global/Console#log().
// ^^^ reference pure-js 1.0.0 src/`main.js`/fib().
// ^ reference pure-js 1.0.0 src/`main.js`/print_fib().(a)
}
Expand Down
36 changes: 17 additions & 19 deletions snapshots/output/react/src/LoaderInput.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
// definition react-example 1.0.0 src/`LoaderInput.tsx`/
//documentation ```ts\nmodule "LoaderInput.tsx"\n```
// ^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/
// ^^^^^^^ reference @types/react 17.0.52 `index.d.ts`/
// ^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/
// ^^^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/

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

export const LoaderInput: React.FunctionComponent<Props> = ({
// ^^^^^^^^^^^ definition react-example 1.0.0 src/`LoaderInput.tsx`/LoaderInput.
// documentation ```ts\nvar LoaderInput: FunctionComponent<Props>\n```
// ^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/
// ^^^^^^^^^^^^^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/FunctionComponent#
// ^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/
// ^^^^^^^^^^^^^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/FunctionComponent#
// ^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/Props#
loading,
// ^^^^^^^ definition local 3
Expand All @@ -33,36 +33,34 @@
// ^^^^^^^^ definition local 4
// documentation ```ts\n(parameter) children: ReactNode\n```
// ^^^^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/Props#children.
// ^^^^^^^^ reference local 7
}) => (
<div className="hello">
// ^^^ reference @types/react 17.0.52 `index.d.ts`/global/JSX/IntrinsicElements#div.
// ^^^^^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/HTMLAttributes#className.
// ^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/global/JSX/IntrinsicElements#div.
// ^^^^^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/HTMLAttributes#className.
{children}
// ^^^^^^^^ reference local 4
{loading && <p>spinner</p>}
// ^^^^^^^ reference local 3
// ^ reference @types/react 17.0.52 `index.d.ts`/global/JSX/IntrinsicElements#p.
// ^ reference @types/react 17.0.52 `index.d.ts`/global/JSX/IntrinsicElements#p.
// ^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/global/JSX/IntrinsicElements#p.
// ^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/global/JSX/IntrinsicElements#p.
</div>
// ^^^ reference @types/react 17.0.52 `index.d.ts`/global/JSX/IntrinsicElements#div.
// ^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/global/JSX/IntrinsicElements#div.
)

export const LoaderInput2: React.FunctionComponent<Props> = props => {
// ^^^^^^^^^^^^ definition react-example 1.0.0 src/`LoaderInput.tsx`/LoaderInput2.
// documentation ```ts\nvar LoaderInput2: FunctionComponent<Props>\n```
// ^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/
// ^^^^^^^^^^^^^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/FunctionComponent#
// ^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/
// ^^^^^^^^^^^^^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/FunctionComponent#
// ^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/Props#
// ^^^^^ definition local 9
// documentation ```ts\n(parameter) props: PropsWithChildren<Props>\n```
// ^^^^^ definition local 6
// documentation ```ts\n(parameter) props: Props\n```
return <LoaderInput loading={true} key="key" children={props.children} />
// ^^^^^^^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/LoaderInput.
// ^^^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/Props#loading.
// ^^^ reference local 13
// ^^^ reference local 10
// ^^^^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/Props#children.
// ^^^^^ reference local 9
// ^^^^^ reference local 6
// ^^^^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/Props#children.
// ^^^^^^^^ reference local 7
}

12 changes: 6 additions & 6 deletions snapshots/output/react/src/MyTSXElement.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
// definition react-example 1.0.0 src/`MyTSXElement.tsx`/
//documentation ```ts\nmodule "MyTSXElement.tsx"\n```
// ^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/
// ^^^^^^^ reference @types/react 17.0.52 `index.d.ts`/
// ^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/
// ^^^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/

export interface MyProps {}
// ^^^^^^^ definition react-example 1.0.0 src/`MyTSXElement.tsx`/MyProps#
Expand All @@ -11,8 +11,8 @@
export const MyTSXElement: React.FunctionComponent<MyProps> = ({}) => (<p></p>)
// ^^^^^^^^^^^^ definition react-example 1.0.0 src/`MyTSXElement.tsx`/MyTSXElement.
// documentation ```ts\nvar MyTSXElement: FunctionComponent<MyProps>\n```
// ^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/
// ^^^^^^^^^^^^^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/FunctionComponent#
// ^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/
// ^^^^^^^^^^^^^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/FunctionComponent#
// ^^^^^^^ reference react-example 1.0.0 src/`MyTSXElement.tsx`/MyProps#
// ^ reference @types/react 17.0.52 `index.d.ts`/global/JSX/IntrinsicElements#p.
// ^ reference @types/react 17.0.52 `index.d.ts`/global/JSX/IntrinsicElements#p.
// ^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/global/JSX/IntrinsicElements#p.
// ^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/global/JSX/IntrinsicElements#p.
8 changes: 4 additions & 4 deletions snapshots/output/react/src/UseMyTSXElement.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from "react";
// definition react-example 1.0.0 src/`UseMyTSXElement.tsx`/
//documentation ```ts\nmodule "UseMyTSXElement.tsx"\n```
// ^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/
// ^^^^^^^ reference @types/react 17.0.52 `index.d.ts`/
// ^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/
// ^^^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/

import { MyProps, MyTSXElement } from "./MyTSXElement";
// ^^^^^^^ reference react-example 1.0.0 src/`MyTSXElement.tsx`/MyProps#
Expand All @@ -12,8 +12,8 @@
export const _: React.FunctionComponent<MyProps> =
// ^ definition react-example 1.0.0 src/`UseMyTSXElement.tsx`/_.
// documentation ```ts\nvar _: FunctionComponent<MyProps>\n```
// ^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/
// ^^^^^^^^^^^^^^^^^ reference @types/react 17.0.52 `index.d.ts`/React/FunctionComponent#
// ^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/
// ^^^^^^^^^^^^^^^^^ reference @types/react 18.2.39 `ts5.0`/`index.d.ts`/React/FunctionComponent#
// ^^^^^^^ reference react-example 1.0.0 src/`MyTSXElement.tsx`/MyProps#
({}) => (<MyTSXElement></MyTSXElement>)
// ^^^^^^^^^^^^ reference react-example 1.0.0 src/`MyTSXElement.tsx`/MyTSXElement.
Expand Down
2 changes: 1 addition & 1 deletion snapshots/output/syntax/src/accessors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,6 @@
g(D.length)
// ^ reference syntax 1.0.0 src/`accessors.ts`/g().
// ^ reference syntax 1.0.0 src/`accessors.ts`/D#
// ^^^^^^ reference typescript 4.8.4 lib/`lib.es5.d.ts`/Function#length.
// ^^^^^^ reference typescript 4.9.5 lib/`lib.es5.d.ts`/Function#length.
}

6 changes: 3 additions & 3 deletions snapshots/output/syntax/src/destructuring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
// ^^^^^ reference syntax 1.0.0 src/`destructuring.ts`/props.
return [props].map(({ a }) => a + b)
// ^^^^^ reference syntax 1.0.0 src/`destructuring.ts`/props.
// ^^^ reference typescript 4.8.4 lib/`lib.es5.d.ts`/Array#map().
// ^^^ reference typescript 4.9.5 lib/`lib.es5.d.ts`/Array#map().
// ^ definition local 10
// documentation ```ts\n(parameter) a: number\n```
// ^ reference syntax 1.0.0 src/`destructuring.ts`/Props#a.
Expand All @@ -42,7 +42,7 @@
// ^^^^^ reference syntax 1.0.0 src/`destructuring.ts`/props.
return [[b]].map(([a]) => a.a)
// ^ reference local 15
// ^^^ reference typescript 4.8.4 lib/`lib.es5.d.ts`/Array#map().
// ^^^ reference typescript 4.9.5 lib/`lib.es5.d.ts`/Array#map().
// ^ definition local 21
// documentation ```ts\n(parameter) a: Props\n```
// ^ reference local 21
Expand All @@ -58,7 +58,7 @@
// ^^^^^ reference syntax 1.0.0 src/`destructuring.ts`/props.
return [[props]].map(([{ a }]) => a + b.a)
// ^^^^^ reference syntax 1.0.0 src/`destructuring.ts`/props.
// ^^^ reference typescript 4.8.4 lib/`lib.es5.d.ts`/Array#map().
// ^^^ reference typescript 4.9.5 lib/`lib.es5.d.ts`/Array#map().
// ^ definition local 36
// documentation ```ts\n(parameter) a: number\n```
// ^ reference syntax 1.0.0 src/`destructuring.ts`/Props#a.
Expand Down
12 changes: 6 additions & 6 deletions snapshots/output/syntax/src/import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@
export function dynamicImport(): Promise<void> {
// ^^^^^^^^^^^^^ definition syntax 1.0.0 src/`import.ts`/dynamicImport().
// documentation ```ts\nfunction dynamicImport(): Promise<void>\n```
// ^^^^^^^ reference typescript 4.8.4 lib/`lib.es5.d.ts`/Promise#
// ^^^^^^^ reference typescript 4.8.4 lib/`lib.es2015.iterable.d.ts`/Promise#
// ^^^^^^^ reference typescript 4.8.4 lib/`lib.es2015.promise.d.ts`/Promise.
// ^^^^^^^ reference typescript 4.8.4 lib/`lib.es2015.symbol.wellknown.d.ts`/Promise#
// ^^^^^^^ reference typescript 4.8.4 lib/`lib.es2018.promise.d.ts`/Promise#
// ^^^^^^^ reference typescript 4.9.5 lib/`lib.es5.d.ts`/Promise#
// ^^^^^^^ reference typescript 4.9.5 lib/`lib.es2015.iterable.d.ts`/Promise#
// ^^^^^^^ reference typescript 4.9.5 lib/`lib.es2015.promise.d.ts`/Promise.
// ^^^^^^^ reference typescript 4.9.5 lib/`lib.es2015.symbol.wellknown.d.ts`/Promise#
// ^^^^^^^ reference typescript 4.9.5 lib/`lib.es2018.promise.d.ts`/Promise#
return import('./function').then(c => c.newFunction())
// ^^^^^^^^^^^^ reference syntax 1.0.0 src/`function.ts`/
// ^^^^ reference typescript 4.8.4 lib/`lib.es5.d.ts`/Promise#then().
// ^^^^ reference typescript 4.9.5 lib/`lib.es5.d.ts`/Promise#then().
// ^ definition local 3
// documentation ```ts\n(parameter) c: typeof import("/src/function")\n```
// ^ reference local 3
Expand Down
Loading