helpscout / hsds-react

Help Scout Design System (HSDS) — React Component Library
MIT License
86 stars 17 forks source link

[HSDS4-31] HSDS utilities process: "is.js" #1031

Closed tinkertrain closed 2 years ago

tinkertrain commented 2 years ago

https://helpscout.atlassian.net/browse/HSDS4-31

Continuing the work to make a transition to a monorepo easier, we start processing the utilities hsds provides, in this PR we deal with is.js

Problem

These are very simple utilities that:

Solution

  1. Use lodash individual libraries instead and make consistent use of them.
  2. Declare one-offs directly where needed.

The tradeoff of bringing more external libraries vs having these utilities in our own "utils" package seems worth it in this case. Since this change makes everything consistent, in HSDS4 we can easily switch back to custom functions if advantageous.

This PR doesn't remove the is.js library or change it in any meaningful way, the changes are HSDS-only

Each change is self contained in a commit for easier revision

cloudflare-pages[bot] commented 2 years ago

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: c57dc08
Status:⚡️  Build in progress...

View logs