Skip to content

Move "diff" from external to core/utils #18961

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

Conversation

madsrasmussen
Copy link
Contributor

@madsrasmussen madsrasmussen commented Apr 7, 2025

Build on #18955

This PR moves the diff package so it is no longer available as an external import. I have placed this library in utils because it might make sense at one point to use the diffJson for the "Discard Changes" functionality.

Breaking change:
It is no longer possible to import from @umbraco-cms/backoffice/external/diff;

Replacement:
The same functionality can be found in the utils module imported from @umbraco-cms/backoffice/utils;

Notice the Change type has been renamed to UmbDiffChange

import { diffWords, type UmbDiffChange } from '@umbraco-cms/backoffice/utils';

@nielslyngsoe nielslyngsoe merged commit 7246939 into v16/task/uuid-package-local-dependencies Apr 8, 2025
19 checks passed
@nielslyngsoe nielslyngsoe deleted the v16/task/make-diff-a-util branch April 8, 2025 10:12
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