Skip to content
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

(iOS) add undeclared dependency underscore #1105

Merged
merged 1 commit into from Jun 4, 2021

Conversation

merceyz
Copy link
Contributor

@merceyz merceyz commented May 6, 2021

Platforms affected

iOS

Motivation and Context

cordova-ios depends on underscore but doesn't declare it as a dependency

const _ = require('underscore');

Description

Added underscore as a dependency

Testing

Ran cordova prepare ios under a strict dependency environment

Checklist

  • I've run the tests to see all new and existing tests pass
  • I added automated test coverage as appropriate for this change
  • Commit is prefixed with (platform) if this change only applies to one platform (e.g. (android))
  • If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)
  • I've updated the documentation if necessary

@plchampigny
Copy link

@NiklasMerz can this be fixed? This is annoying to add underscore dependency manually when using cordova-ios

@NiklasMerz NiklasMerz requested a review from erisu June 1, 2021 08:04
Copy link
Member

@NiklasMerz NiklasMerz left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@breautek
Copy link
Contributor

breautek commented Jun 4, 2021

I'm genuinely surprised how long this went unnoticed. Underscore usage have been in the framework for years, and as far as I can tell it was never added as a dependency.

Thanks for your contribution @merceyz

@breautek breautek merged commit 745367f into apache:master Jun 4, 2021
@merceyz merceyz deleted the merceyz/underscore branch June 4, 2021 16:05
@merceyz
Copy link
Contributor Author

merceyz commented Jun 4, 2021

Hoisting does wonders in hiding these sorts of problems, Yarn PnP is strict on these and threw an error immediately when running yarn cordova prepare ios

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.

None yet

4 participants