deathandmayhem / jolly-roger

Dead men tell no tales!
MIT License
18 stars 5 forks source link

Bump typescript from 5.4.5 to 5.5.2 #2188

Open dependabot[bot] opened 1 week ago

dependabot[bot] commented 1 week ago

Bumps typescript from 5.4.5 to 5.5.2.

Release notes

Sourced from typescript's releases.

TypeScript 5.5

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

TypeScript 5.5 RC

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

TypeScript 5.5 Beta

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

Commits
  • ce2e60e Update LKG
  • f3b21a2 šŸ¤– Pick PR #58931 (Defer creation of barebonesLibSourc...) into release-5.5 (#...
  • 7b1620b šŸ¤– Pick PR #58811 (fix(58801): "Move to file" on globa...) into release-5.5 (#...
  • 5367ae1 Bump version to 5.5.2 and LKG
  • 02132e5 šŸ¤– Pick PR #58895 (Fix global when typescript.js loade...) into release-5.5 (#...
  • 45b1e3c šŸ¤– Pick PR #58872 (Fix declaration emit crash) into release-5.5 (#58874)
  • 17933ee šŸ¤– Pick PR #58810 (Fixed declaration emit issue relate...) into release-5.5 (#...
  • 552b07e šŸ¤– Pick PR #58786 (Fixed declaration emit crash relate...) into release-5.5 (#...
  • 39c9eeb Pick #58857 to release-5.5 (#58858)
  • 2b0009c šŸ¤– Pick PR #58846 (Ensure the updates with crashes rev...) into release-5.5 (#...
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

Dependabot will merge this PR once CI passes on it, as requested by @ebroder.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 1 week ago

One of your CI runs failed on this pull request, so Dependabot won't merge it.

Dependabot will still automatically merge this pull request if you amend it and your tests pass.

ebroder commented 1 week ago
Error: imports/server/subscribers.ts(91,7): error TS2532: Object is possibly 'undefined'.
Error: imports/server/subscribers.ts(102,7): error TS2532: Object is possibly 'undefined'.
Error: imports/server/subscribers.ts(146,7): error TS2532: Object is possibly 'undefined'.
Error: imports/server/subscribers.ts(152,7): error TS2532: Object is possibly 'undefined'.

It's unhappy with some code of the form

      if (!Object.prototype.hasOwnProperty.call(counters[name], user)) {
        counters[name]![user] = 0;
      }

      counters[name]![user] += 1;

which, fair, not sure why that wasn't an issue before.

Error: node_modules/@types/node/globals.d.ts(126,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'AbortSignal' must be of type '{ new (): AbortSignal; prototype: AbortSignal; abort(reason?: any): AbortSignal; any(signals: AbortSignal[]): AbortSignal; timeout(milliseconds: number): AbortSignal; }', but here has type '{ new (): AbortSignal; prototype: AbortSignal; abort(reason?: any): AbortSignal; timeout(milliseconds: number): AbortSignal; }'.

No idea what this is about - we're not using AbortSignal anywhere so it must be purely an issue with the type declarations. (Possibly interacting with TS's built-in declarations?)

/home/runner/work/jolly-roger/jolly-roger/imports/lib/puzzle-sort-and-group.ts
Error:   213:29  error  This assertion is unnecessary since it does not change the type of the expression  @typescript-eslint/no-unnecessary-type-assertion
Error:   241:10  error  This assertion is unnecessary since it does not change the type of the expression  @typescript-eslint/no-unnecessary-type-assertion

This is a side effect of a new TS 5.5 feature and is kind of exciting! TS is now able to tell that .filter((x) => x !== undefined) drops undefined from the union of types in the array.