Skip to content

Remove external base64-js module #18969

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 8, 2025

Conversation

madsrasmussen
Copy link
Contributor

This PR internalizes the base64-js package, making it no longer available as an external import. It is currently used only as part of the openId module.

Breaking change:
It is no longer possible to import from @umbraco-cms/backoffice/external/base64-js.

Replacement:
Use window.crypto (https://developer.mozilla.org/en-US/docs/Web/API/Crypto) or include base64-js as a dependency in your project.

@Copilot Copilot AI review requested due to automatic review settings April 8, 2025 10:28
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.

Files not reviewed (2)
  • src/Umbraco.Web.UI.Client/package.json: Language not supported
  • src/Umbraco.Web.UI.Client/tsconfig.json: Language not supported
Comments suppressed due to low confidence (1)

src/Umbraco.Web.UI.Client/src/external/openid/crypto_utils.ts:16

  • Ensure that the local module './base64-js/index.js' correctly replicates the API and behavior of the external base64-js package, so that no runtime issues occur.
import { fromByteArray } from './base64-js/index.js';

@nielslyngsoe nielslyngsoe enabled auto-merge (squash) April 8, 2025 11:49
@nielslyngsoe nielslyngsoe merged commit af07c42 into v16/dev Apr 8, 2025
27 checks passed
@nielslyngsoe nielslyngsoe deleted the v16/task/remove-external-base64js branch April 8, 2025 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants