Skip to content

Releases: sourcegraph/scip-typescript

v0.3.14

02 Oct 06:37
Compare
Choose a tag to compare

Fixes the distribution to not mix ESM and CommonJS modules

v0.3.13

01 Oct 12:36
Compare
Choose a tag to compare

Emit references to object properties (#373)

Given the following example:

type MyType = { myProperty: number }
function myFunc(): MyType {
  return { myProperty: 42 };
}

Previously we'd fail to produce a reference to myProperty in the body of myFunc. Now we properly link the two together. This fixes a fair amount of issues around navigating through object literals.

Emit enclosing_range for calls in constructors (#372)

We now emit enclosing_range data for calls in constructors, which we were missing before.

v0.3.10

11 Jul 09:44
d56d117
Compare
Choose a tag to compare

Skip indexing large files

Previously, scip-typescript indexed all files regardless of file size. This could result in scip-typescript stalling progress to index very large files that were (frequently) auto-generated. This commit changes the default behavior to skip indexing files that are larger than 1mb, and makes this threshold configurable via the new --max-file-byte-size flag.

  • Skip indexing large files above 1mb, add option --max-file-byte-size by @olafurpg in #271

Documentation

The readme now has a troubleshooting section for out of memory (OOM) issues https://github.com/sourcegraph/scip-typescript#dealing-with-out-of-memory-issues-oom

Dependency updates

  • chore(deps): update typescript-eslint monorepo to ^5.59.1 by @renovate in #255
  • chore(deps): update dependency prettier to v2.8.8 by @renovate in #254
  • chore(deps): update typescript-eslint monorepo to ^5.59.2 by @renovate in #257
  • chore(deps): update typescript-eslint monorepo to ^5.59.8 by @renovate in #260
  • chore(deps): update typescript-eslint monorepo to ^5.59.9 by @renovate in #261
  • chore(deps): update typescript-eslint monorepo to ^5.60.1 by @renovate in #265
  • chore(deps): update typescript-eslint monorepo to ^5.61.0 by @renovate in #268

Full Changelog: v0.3.9...v0.3.10

v0.3.9

26 Apr 10:33
Compare
Choose a tag to compare

Code navigation for constructors

Add definitions and references for constructors by @SuperAuguste in #250

Previously, it was not possible to do "Find references" on constructors in cases like below

export class SuperConstructor {
  constructor(public readonly property: number) {}
//^^^^^^^^^^^ <--- "Find references" had no results here
}
export function useConstructor(): SuperConstructor {
  return new SuperConstructor(10)
//           ^^^^^^^^^^^^^^^^ <--- "Go to definition" went to the class instead of constructor
}

This release fixes this issue for both "Find references" and "Go to definition". Big kudos to @SuperAuguste for fixing important issue in his first contribution to scip-typescript 👏🏻

New Contributors

Full Changelog: v0.3.8...v0.3.9

scip-typescript v0.3.8

20 Apr 13:31
Compare
Choose a tag to compare

Improved "Find references" for properties of object literals

Previously, "find references" did not show meaningful results for the property hello in the object literal below

interface Messages {
  hello: string
}
function frenchMessages(): Messages {
  return { hello: "Bonjour" }
}

This releases fixes this issue specifically for return statements inside functions. Note that this issue can manifest in many other ways that we are planning to fix in future releases. Please report issues if you observe cases where "go to definition" or "find references" doesn't match what you see in VS Code or WebStorm.

What's Changed

  • chore(deps): update dependency prettier to v2.8.7 by @renovate in #241
  • chore(deps): update typescript-eslint monorepo to ^5.57.0 by @renovate in #242
  • chore(deps): update typescript-eslint monorepo to ^5.57.1 by @renovate in #246
  • Infer symbol relationship for object literals property in return statement by @olafurpg in #248

Full Changelog: v0.3.7...v0.3.8

v0.3.7

16 Mar 10:55
Compare
Choose a tag to compare

What's Changed

  • Don't throw error when failing to parse tsconfig.json by @olafurpg in #232
  • chore(deps): update typescript-eslint monorepo to ^5.54.0 by @renovate in #235
  • chore(deps): update typescript-eslint monorepo to ^5.54.1 by @renovate in #238
  • Gracefully handle incomplete package.json files by @olafurpg in #239

Full Changelog: v0.3.6...v0.3.7

scip-typescript v0.3.6

13 Feb 18:25
Compare
Choose a tag to compare

What's Changed

  • chore(deps): update dependency prettier to v2.8.0 by @renovate in #210
  • chore(deps): update typescript-eslint monorepo to ^5.45.0 by @renovate in #211
  • chore(deps): update typescript-eslint monorepo to ^5.45.1 by @renovate in #214
  • chore(deps): update dependency prettier to v2.8.1 by @renovate in #215
  • chore(deps): update dependency @sourcegraph/eslint-config to v0.33.0 by @renovate in #216
  • Update dependency @types/react to v17.0.52 by @renovate in #199
  • Add support for pnpm by @valerybugakov in #219
  • Update ChangeLog and bump version for releasing 0.3.3. by @valerybugakov in #221
  • Update ChangeLog and bump version for releasing 0.3.4. by @valerybugakov in #222
  • chore(deps): update typescript-eslint monorepo to ^5.48.0 by @renovate in #217
  • chore(deps): update dependency prettier to v2.8.2 by @renovate in #224
  • chore(deps): update dependency prettier to v2.8.3 by @renovate in #226
  • chore(deps): update typescript-eslint monorepo to ^5.50.0 by @renovate in #227
  • chore(deps): update typescript-eslint monorepo to ^5.51.0 by @renovate in #230
  • chore(deps): update dependency prettier to v2.8.4 by @renovate in #231

Full Changelog: v0.3.3...v0.3.6

scip-typescript v0.3.3

28 Nov 14:01
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.3.1...v0.3.3

scip-typescript v0.3.1

19 Oct 08:41
Compare
Choose a tag to compare

Improved code navigation for object destructuring patterns

  • Emit correct occurrences for destructured objects by @olafurpg in #185

Full Changelog: v0.3.0...v0.3.1

scip-typescript v0.3.0

18 Oct 11:27
Compare
Choose a tag to compare

"Go to definition" now works for import statements

Previously, "go to definition" didn't work correctly for string literals like "./something" in statements like import { Something } from "./something"`. This issue is now fixed.

Full Changelog: v0.2.11...v0.3.0