Deprecate requireCordovaModule for non-Cordova modules#707
Deprecate requireCordovaModule for non-Cordova modules#707raphinesse merged 4 commits intoapache:masterfrom
requireCordovaModule for non-Cordova modules#707Conversation
|
I just pushed a couple updates that I think are needed:
I am about to include the deprecation warning event in the hotfix proposed in #708. |
|
I just now wanted to push my implementation of this that I just finished. 😞 Would have been good if you let me know that you were working on this @brodybits. |
|
@raphinesse go ahead and push your implementation. I was only doing this to help me with the hotfix. |
7ef7886 to
08458b2
Compare
08458b2 to
74ffd92
Compare
|
This version is not node@4 compatible, I'm afraid. But it should be straightforward to make it compatible. @brodybits If you want to include this in #708, I think I can whip up a commit that makes this node@4 compatible. |
requireCordovaModule for non-Cordova modulesrequireCordovaModule for non-Cordova modules
requireCordovaModule for non-Cordova modulesrequireCordovaModule for non-Cordova modules
|
@brodybits I noticed it and it's fine. The bug is fixed anyway. |
|
I hereby approve this PR with note of a nit that I can think of: In case a user upgrades from Cordova 8, using
Another minor nit is that |
(without test for warning messages as proposed in apacheGH-707 for master)
|
@brodybits Agreed. If we should fork off another 8.x branch from master we would need to apply something similar to #708 there too. |
The use of context.requireCordovaModule() for non-cordova modules was deprecated in favor of node's require() see apache/cordova-lib#707
update require (apache/cordova-lib#707)
update require (apache/cordova-lib#707)
update require (apache/cordova-lib#707)
Addresses the deprecation part of #689.