Skip to content

chore(ui-utils): remove unused hash utility#2540

Open
HerrTopi wants to merge 1 commit intomasterfrom
remove-hash-util
Open

chore(ui-utils): remove unused hash utility#2540
HerrTopi wants to merge 1 commit intomasterfrom
remove-hash-util

Conversation

@HerrTopi
Copy link
Copy Markdown
Contributor

@HerrTopi HerrTopi commented May 5, 2026

Summary

  • hash() exported from @instructure/ui-utils has no internal callers — the only importer in the repo is its own test
  • Remove packages/ui-utils/src/hash.ts, its test, the re-export from src/index.ts, and the json-stable-stringify dependency that existed solely to back it

Test plan

  • pnpm install resolves cleanly
  • pnpm run build:types succeeds
  • pnpm run test:vitest ui-utils passes
  • Full pnpm run test:vitest passes

The hash() function exported from @instructure/ui-utils has no
internal callers — only its own test imports it. Drop the module,
its test, the export from the package index, and the
json-stable-stringify dependency that existed solely to support it.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://instructure.design/pr-preview/pr-2540/

Built to branch gh-pages at 2026-05-05 15:51 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@HerrTopi HerrTopi self-assigned this May 5, 2026
@matyasf matyasf self-requested a review May 6, 2026 07:37
export { cloneArray } from './cloneArray'
export { createChainedFunction } from './createChainedFunction'
export { deepEqual } from './deepEqual'
export { hash } from './hash'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This might be used by others, please do not remove it!

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.

2 participants