Giter VIP home page Giter VIP logo

Comments (4)

raphinesse avatar raphinesse commented on May 31, 2024 1

After #706, I'm beginning to think we should consider rolling out the deprecation step even earlier than the next major.

from cordova-lib.

brodybits avatar brodybits commented on May 31, 2024 1

I would personally favor starting the deprecation now and limiting requireCordovaModule to Cordova modules in the next major.

from cordova-lib.

brodybits avatar brodybits commented on May 31, 2024

Shouldn't we consider dropping support for requireCordovaModule('cordova-lib') or requireCordovaModule('*/cordova-lib') altogether?

from cordova-lib.

raphinesse avatar raphinesse commented on May 31, 2024

Shouldn't we consider dropping support for requireCordovaModule('cordova-lib') or requireCordovaModule('*/cordova-lib') altogether?

I'm not sure what you mean by requireCordovaModule('*/cordova-lib'). After #709, The argument for requireCordovaModule must be either the name of a Cordova package (cordova-*) or a path to a module in a Cordova package (cordova-*/**).

In case you meant we should drop the method altogether: I actually considered that. But as long as the predominant usage of cordova-lib & Co. is through a globally installed package cordova I think we need a means for people to require modules from the currently executing version of Cordova. Which is exactly what requireCordovaModule provides.


That being said, I would prefer that people require cordova-lib or cordova as a dependency in their projects and use only that to build them. That way regular require would pick up the right versions of everything and it would be perfectly clear which version of Cordova is required to build a project.

from cordova-lib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.