Skip to content

npm: bump typescript from 5.9.3 to 6.0.2#333

Open
dependabot[bot] wants to merge 3 commits into
mainfrom
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 3 commits into
mainfrom
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.

fixes #335

@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 2 times, most recently from 978d5a9 to 60f5d29 Compare April 1, 2026 23:53
@skorpy2009
Copy link
Copy Markdown
Member

#335

@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.

@maurerle maurerle force-pushed the dependabot/npm_and_yarn/typescript-6.0.2 branch from d276fde to 8d23f7a Compare May 20, 2026 00:30
@skorpy2009
Copy link
Copy Markdown
Member

/rebase

@skorpy2009 skorpy2009 requested review from MyIgel and skorpy2009 May 22, 2026 23:26
@maurerle maurerle force-pushed the dependabot/npm_and_yarn/typescript-6.0.2 branch from 8d23f7a to 1130e8b Compare May 23, 2026 10:21
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 23, 2026

Preview deployed: https://freifunk.github.io/meshviewer/pr-preview/pr-333/

Updated for commit 0ae3574.

github-actions Bot pushed a commit that referenced this pull request May 23, 2026
@maurerle maurerle force-pushed the dependabot/npm_and_yarn/typescript-6.0.2 branch from 1130e8b to edc5a73 Compare May 23, 2026 11:13
github-actions Bot pushed a commit that referenced this pull request May 23, 2026
@maurerle maurerle force-pushed the dependabot/npm_and_yarn/typescript-6.0.2 branch from edc5a73 to 1bb05ea Compare May 23, 2026 11:16
github-actions Bot pushed a commit that referenced this pull request May 23, 2026
dependabot Bot and others added 2 commits May 23, 2026 15:26
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.9.3 to 6.0.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v5.9.3...v6.0.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
Many modules used a pattern that initialized an object with `undefined`
placeholders and then patched on real implementations afterwards (e.g.
`const self = { add: undefined, render: undefined }; self.add = function(...) {...}`).
Under TS 6's strict checking, those properties infer as literal `undefined`,
which breaks every later assignment and call site. They were rewritten 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.

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/utils/helper.ts: showStat return type fixed to VNode (it always returned a snabbdom VNode; the prior HTMLDivElement type was a cast).
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.
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: Same self-initialization pattern fix. node.ts also factors the config-driven dynamic lookup (nodef["show" + value], node[value]) behind named local types (NodeFieldValue, NodefShowers, NodeRecord).
lib/map/button.ts (was button.js) and lib/map/locationmarker.ts (was locationmarker.js): Migrated to TypeScript. button.ts names the Leaflet-extend shapes once via ButtonBaseThis / ButtonOnAddThis / ButtonControl / ButtonCtor; the only suppression is a single @ts-expect-error on `Map.locate({setView: "untilPan"})` which Leaflet supports at runtime but @types/leaflet only types as boolean. locationmarker.ts is now a proper ES6 class extending L.CircleMarker.
@maurerle maurerle force-pushed the dependabot/npm_and_yarn/typescript-6.0.2 branch from 1bb05ea to 0ae3574 Compare May 23, 2026 13:28
github-actions Bot pushed a commit that referenced this pull request May 23, 2026
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.

migrate typescript to 6

2 participants