v1.6.0-beta
This release primarily introduces client-side support for the new rollout release feature in the CLI, as well as some key bug fixes. It is now available on NPM and can be updated immediately by running cordova plugin add cordova-plugin-code-push@latest
.
New Features
-
Added client-side support for the new release rollout feature in the CLI This version of the Cordova SDK is required in order to begin taking advantage of this new capability, so make sure to upgrade your apps before attempting to release updates with a rollout percentage. More details
code-push release-cordova MyApp ios --rollout 25%
-
Better diagnostic logging when calling
checkForUpdate
andsync
, so that it's easier to understand what the CodePush runtime is doing and whether any errors were encountered. When in doubt, always check the Safari and/or Chrome dev tools console for info!
Bug Fixes
- The
sync
method can no longer be called multiple times concurrently. Whensync
is called while a previous call is outstanding, the second one will complete by firing anIN_PROGRESS
status to thesyncStatusCallback
(if provided). Being able to callsync
concurrently could have led to some subtle bugs, so this change simply ensures that your app can't get into an odd state if you accidentally callsync
multiple times. - We updated some of our
d.ts
files to accommodate Cordova devs using TypeScript with CodePush