Closed erisu closed 5 years ago
I want to point out that this update script never checked or verified the provided project path. If the path is incorrect but does exist, it will still wipe out the contents of that folder. So, do not accidentally put in the wrong folder or you might end up loosing something you did not intend to delete.
I want to point out that this update script never checked or verified the provided project path. [...]
That does not sound so good. Unfortunately I cannot tell for sure what is the corresponding behavior on the other platforms.
I would favor raising one or more issues to track both the behavior and level of consistency between the supported platforms.
I think it should be OK to continue with this change now, and deal with that behavior whenever we can.
I cannot tell whether or not this may be a breaking change. In case of any doubt, I would favor targeting this change for the next major release.
And a nit that I do not favor unchecked items in the checklist. I personally do strikethrough on the items that are not needed, not sure if we have any consensus about this.
I also agree that this does not sound good. Fixing the behavior or discussing the removal of this process can be separate issue ticket, as you pointed out. It might be easier if users just remove and add back the platform.
I also agree that we can continue on as the purpose of this PR is achieved. The issue I raised would be out of scope from this ticket. It just happened to have been discovered while working on this.
Anyways, I feel that this is not a major change and could be a minor release. I did not remove dependencies as it never existed in the package.json
.
Also, I believe these changes only affect non-CLI workflow. I didn't see update.js
required in the CLI workflow.
Regarding fixing the update script: IIRC, cordova-android and cordova-ios do not even support update
. If we want to provide an update mechanism, we should probably just implement a generic delete/create in the CLI and remove it from the platforms altogether.
@raphinesse I never tried the CLI route. What I tested was the non-CLI, Platform-centric, use cases. If the Platform-centric use cases were removed, then we could simplify and make a generic remove and add process.
Platforms affected
browser
Motivation and Context
Remove
Q
Efforts: https://github.com/apache/cordova/issues/7Description
This repo did not have the
Q
dependency defined explicit inpackage.json
but was still usingQ
that would have been a sub-dependency ofcordova-common
.This PR removes the only usage of
Q
.Testing
npm t
Update with Good Project Path
Update with Bad Path