Skip to content

npm: bump typescript from 5.9.3 to 6.0.2#333

Open
dependabot[bot] wants to merge 4 commits intomainfrom
dependabot/npm_and_yarn/typescript-6.0.2
Open

npm: bump typescript from 5.9.3 to 6.0.2#333
dependabot[bot] wants to merge 4 commits intomainfrom
dependabot/npm_and_yarn/typescript-6.0.2

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 1, 2026

Bumps typescript from 5.9.3 to 6.0.2.

Release notes

Sourced from typescript's releases.

TypeScript 6.0

For release notes, check out the release announcement blog post.

Downloads are available on:

TypeScript 6.0 Beta

For release notes, check out the release announcement.

Downloads are available on:

Commits

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Apr 1, 2026
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/typescript-6.0.2 branch from 25378db to 978d5a9 Compare April 1, 2026 23:45
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.9.3 to 6.0.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v5.9.3...v6.0.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-version: 6.0.2
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/typescript-6.0.2 branch from 978d5a9 to 60f5d29 Compare April 1, 2026 23:53
@skorpy2009
Copy link
Copy Markdown
Member

#335

maurerle added 3 commits April 3, 2026 12:45
this adds typing to places where it was missing before:

## Behaviour-preserving refactors (old { foo: undefined } pattern)

That pattern made properties infer as literal undefined, which breaks under strict checking. Many modules were updated to either fully built objects (e.g. container.ts, math.ts, forcegraph/draw.ts, utils/node.ts, sidebar.ts, legend.ts, title.ts, tabs.ts, linklist.ts, nodelist.ts, sorttable.ts) or typed stubs + assignments where needed.

## Notable file changes
lib/utils/version.ts: Rewritten as a class so this and new are correctly typed.
lib/utils/router.ts: Uses ObjectsLinksAndNodes for objects / setData, safer handling of nodeDict, and routeGroup for regex capture data; Target.gotoNode matches real usage (node, nodeDict).
lib/map/button.js → lib/map/button.ts: Migrated with // @ts-nocheck at the top (Leaflet extend typing is awkward without a large Leaflet-specific layer).
lib/forcegraph.ts: Stricter typing for graph state, forceLink.links!(…), MapLink initial x/y, and gotoNode/gotoLink return arrays instead of calling resetView() where a coordinate array is required.
lib/proportions.ts: Stubs, GenericFilter vs Filter in watchFilters, gateway modifier return type, showStat pushed into a VNode[] via cast (it returns HTMLDivElement).
lib/infobox/main.ts: Avoids Node / Link name clashes with DOM/utils/node, uses an InfoboxPanel type and as unknown as for panel instances.
lib/infobox/link.ts and lib/infobox/node.ts: // @ts-nocheck to limit scope while keeping behaviour.
@maurerle
Copy link
Copy Markdown
Member

maurerle commented Apr 3, 2026

I wondered if Cursor AI can help here, as this is mostly typing and code migration without functionality changes.
It turned out well and I tested that it works similar.
But I guess that it would be good to take another look or two before merging.

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github May 1, 2026

A newer version of typescript exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants