Github user nikhilkh commented on a diff in the pull request:

    https://github.com/apache/cordova-lib/pull/394#discussion_r53380925
  
    --- Diff: cordova-lib/src/platforms/platforms.js ---
    @@ -48,11 +48,17 @@ function getPlatformApi(platform, platformRootDir) {
         var PlatformApi;
         try {
             // First we need to find whether platform exposes its' API via js 
module
    -        // If it has, then we have to require it and extend BasePlatformApi
    -        // with platform's API.
    +        // If it does, then we require and instantiate it.
             var platformApiModule = path.join(platformRootDir, 'cordova', 
'Api.js');
             PlatformApi = require(platformApiModule);
         } catch (err) {
    +        // Check if platform already compatible w/ PlatformApi and show 
deprecation warning
    +        if (err && err.code === 'MODULE_NOT_FOUND' && 
platforms[platform].apiCompatibleSince) {
    +            events.emit('warn', 'The support for cordova-' + platform + ' 
via PlatformApi polyfill ' +
    --- End diff --
    
    instead of leaking internal implementation detail we should consider 
re-phrasing this as:
    "Using this version of cordova CLI with older version of cordova-<platform> 
is being deprecated. Consider upgrading to..."


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to