Skip to content

Conversation

@Raiper34
Copy link
Contributor

Fixed unit tests from #796

@Raiper34
Copy link
Contributor Author

All checks passed. Can @jamonholmgren review it and merge it?

trimStart,
upperCase,
upperFirst,
} from 'lodash'
Copy link
Member

@robinheinze robinheinze Nov 17, 2025

Choose a reason for hiding this comment

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

Can we change these to / imports for the sake of bundle size?

i.e.

import camelCase from 'lodash/camelCase'
import kebabCase from 'lodash/kebabCase'
import lowerCase from 'lodash/lowerCase'
...
etc

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure if something special needs to be set, but importing this way does not work camelCase/kebabCase/lowerCase are undefined this way

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@robinheinze it works using require.

Copy link
Member

Choose a reason for hiding this comment

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

Were you using import {} with curly braces when it was undefined or was it a default import like `import camelCase from 'lodash/camelCase'?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Were you using import {} with curly braces when it was undefined or was it a default import like `import camelCase from 'lodash/camelCase'?

Here is the original implementation with your suggestions https://github.com/infinitered/gluegun/compare/c4a4951fb34da11c9529be97de4e725596ec927b..d143665521aae30996eb79d25c36637a93381334 , and here is the output during tests https://app.circleci.com/pipelines/github/infinitered/gluegun/1273/workflows/d48838a4-b033-4f3b-a23b-b8265f0a304a/jobs/2230

Copy link
Member

Choose a reason for hiding this comment

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

Ok, let's just stick with require then`. No problem.

@Raiper34 Raiper34 force-pushed the fix/audit branch 2 times, most recently from cc70313 to c4a4951 Compare November 19, 2025 22:26
@robinheinze robinheinze merged commit 6105111 into infinitered:master Nov 21, 2025
3 checks passed
robinheinze pushed a commit that referenced this pull request Nov 21, 2025
* Upgrade to fix vulnerabilities

* Regenerate print-tools.test.ts

* Fix lodash imports

---------

Co-authored-by: Maryna Boieva <[email protected]>
Co-authored-by: gulanf <[email protected]>
infinitered-circleci pushed a commit that referenced this pull request Nov 21, 2025
## [5.2.1](v5.2.0...v5.2.1) (2025-11-21)

### Bug Fixes

* Upgrade dependencies to solve audits ([#798](#798)) ([ec2541e](ec2541e))
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.

4 participants