Skip to content

Add support for core 5.0.0#301

Closed
pankhur94 wants to merge 2 commits intomainfrom
pankhur94/upgrade-to-support-core@5.0.0
Closed

Add support for core 5.0.0#301
pankhur94 wants to merge 2 commits intomainfrom
pankhur94/upgrade-to-support-core@5.0.0

Conversation

@pankhur94
Copy link
Copy Markdown
Contributor

@pankhur94 pankhur94 commented May 29, 2025

Updating to support core 5.0 since this is causing core-* mismatches in preparing of next version for our viewer.

@pankhur94 pankhur94 changed the title add support for core@5.0.0 Add support for core 5.0.0 May 29, 2025
@pankhur94 pankhur94 marked this pull request as ready for review May 29, 2025 19:39
import { getConfig, getMockTokenResponse, setupMockAuthServer, stubTokenCrypto } from "./helpers/testHelper";
/* eslint-disable @typescript-eslint/naming-convention */
const assert = chai.assert;
const assert: Chai.AssertStatic = chai.assert;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whats the need for the explicit typing?

you could probably do the following

const { assert, expect } = chai;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried this but this does not work because ts does not track types through namespace destructuring. expect works fine because it does not call a method directly and is generally chained unlike assert.

@aruniverse aruniverse self-requested a review May 29, 2025 20:46
@aruniverse
Copy link
Copy Markdown
Member

I initially approved this thinking we could avoid a major version bump; but after reading iTwin/viewer#366 i think we should just bite the bullet and clean up our deps and do a major

  • lets drop support for 3.x and 4.x
  • and move the direct dep on core-common to a dev dep snce its only used as types
  • for browser-auth, lets bump oidc-client-ts to the the latest major
  • for electron-auth, lets drop older versions of electron like @GytisCepk mentioned in Add support for Electron 34, 35 and 36 #300
  • for service, we should be able to drop dep on core-geom, and update jwks-rsa to latest major

maybe we split some of these into separate pr, targeting different pkgs

@pankhur94
Copy link
Copy Markdown
Contributor Author

closed in favour of #305 and #306.

@pankhur94 pankhur94 closed this Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants