Skip to content

Releases: microsoft/code-push

v2.0.2-beta

27 Jul 13:18
Compare
Choose a tag to compare

This is a small incremental release with small new feature and doc updates.

New Features:

  1. Add ability to use plain integer number for app version #377

v2.0.1-beta

12 Jun 04:57
Compare
Choose a tag to compare

Release 2.0.0 was our first with Mobile Center integration.
This release updates that with a couple minor fixes.

Bug Fixes:

  1. When slashes (/) are specified in the app name, to specify an organization or owner qualifier for the app, it now works properly.

  2. The code-push collaborator add command now outputs a better message clarifying that with Mobile Center integration adding a collaborator works a little differently, sending an email invite to the collaborator which they must then accept to get access.

v1.12.9-beta

14 Mar 00:32
Compare
Choose a tag to compare

This is a small incremental release with a needed bugfix. Thank you @max-mironov for your contributions this release!

New Features:

  1. Release build type for Cordova builds. When the release-cordova command is executed with the new isReleaseBuildType flag alongside the build flag, a release build will be performed instead of a debug build.

Bug Fixes:

  1. Fix the command-line parsing of boolean flags that was regressed in 1.12.8-beta.

v1.12.8-beta

25 Feb 01:46
Compare
Choose a tag to compare

This release introduces more user control over how versions are released and promoted, as well as multiple bug fixes. It is available now on NPM and can be installed by running npm i -g code-push-cli@latest.

New Features:

  1. Promoting specific versions. The code-push promote command will now accept a --label/-l parameter to promote a specific label from one deployment to the other, as opposed to the latest version. This was a highly requested feature!
  2. Saving bundles and sourcemaps. Add a --outputDir/-o parameter to the release-react command to write the bundle and sourcemap to a specified directory. This should help make debugging easier, as well as allowing integration with crash reporting solutions.
  3. Customizing the node environment. Allow arguments to node to be specified when running the release-react command. For example, out-of-memory issues for very large apps can be overcome by running a command like env NODE_ARGS="--max-old-space-size=4096" code-push release-react APP_NAME ios. Thanks @zk!

Bug Fixes:

  1. Display an error message when running code-push debug android while multiple devices are active.
  2. Make the confirmation prompt more severe on app rm and deployment rm commands, to further prevent accidental deletion.
  3. Improve the robustness of the release-react command on Android when parsing gradle files.
  4. Check that the app and deployment exist before building releases, as opposed to after.

v1.12.6-beta

30 Sep 20:11
Compare
Choose a tag to compare

Bug Fixes

  • Fix an issue where users would see a 500 or 502 error message when attempting to make a release when their session was expired

v1.12.5-beta

23 Sep 19:13
Compare
Choose a tag to compare

New Features (CLI)

This release adds a --noDuplicateReleaseError flag that causes the CLI to generate a warning instead of an error when the user attempts to publish an update that is identical to the latest release. This is useful for continuous integration scenarios where it is expected that small modifications may trigger releases where no production code has changed.

New Features (Management SDK)

Improved error handling in the management SDK, including error codes that identify different categories of errors.

Bug Fixes

  • Fix an issue where in some cases, access keys were not validated when logging in
  • Fix an issue where in some cases, error messages were not displayed when access keys were invalid
  • Remove 'authentication failed' error message when attempting to logout after a previous failure
  • Add a descriptive error message when there is a network failure preventing connection to the CodePush server, and prevent a null de-referencing error when this happens

v1.12.3-beta

04 Aug 22:10
Compare
Choose a tag to compare

New Features

This release adds a new gradle file parameter (--gradleFile or -g) to the release-react command. It allows Android users to specify a custom path to the build.gradle file that the command reads to infer the targetBinaryVersion of the release. Huge thanks to @mtunique for adding this feature!

Bug Fixes

App versions are no longer implicitly converted to numbers. For example, 8.10 will no longer be incorrectly parsed as 8.1.

v1.12.1-beta

01 Jul 23:45
Compare
Choose a tag to compare

This release simply improves the performance of the app ls command for users with a large number of apps registered with the CodePush service.

v1.12.0-beta

21 Jun 21:45
Compare
Choose a tag to compare

This is a feature-packed release which addresses a handful of commonly requested user stories. Thanks to everyone for the amazing feedback! It is available now on NPM and can be installed by running npm i -g code-push-cli@latest.

New Features (General)

  1. CodePush integration can now be easily diagnosed directly from our CLI We've added a lot of debug logs to the CodePush plugins to help make it easier to understand how it's behaving and why. However, viewing these logs requires using a different tool between iOS and Android (e.g. logcat), and potentially between Cordova and React Native. To simplify the need to quickly identify the source of an issue with your app's CodePush integration, the CLI now includes a new debug command which lets you view all of the CodePush plugin's logs directly within the CLI.

    View the docs for more details.

    screen shot 2016-06-21 at 10 15 42 am
  2. Access key expiration can now be configured The access-key add command now supports an additional --ttl parameter, which lets you specify how long an access key should be usable for, which gives you greater control over the impact that a key can have, in case you forget to explicitly delete it. By default, new keys will expire in 60 days, but you can change this to whatever fits your desired policy and/or use case (e.g. 6m, 2y).

    # Create a temporary key to use for CI that will expire in 2 weeks
    code-push access-key add "CI Environment" --ttl 2w

    Additionally, as part of our efforts to improve security, the value of an access key will no longer be displayed in the CLI (since we are now hashing them in the database), so make sure to persist the value somewhere safe!

  3. Access keys can now be renamed The CLI now includes a new access-key patch command which lets you modify the name and/or TTL (see #2) of an existing access key.

    # Rename the VSTS key to reflect its purpose more generically
    code-push access-key patch "VSTS Integration" --name "CI Key"
  4. Login sessions are now managed separately from access keys The CLI includes a new session ls command, which allows you to view all of the current login sessions associated with your account. Additionally, the new session rm command allows you to revoke a login session that you don't want to be usable anymore. This functionality was previously available via the access-key ls and access-key rm commands, however, we believe that separating the concepts of login sessions and access keys provides a simplified experience, and makes it easier to spotting unidentified and/or undesired login sessions.

    screen shot 2016-06-21 at 2 48 07 pm
  5. Azure Active Directory is now a supported authentication provider Users who want to be able to register/login with their work and/or school account, can now use Azure Active Directory in addition to the existing GitHub and Microsoft support.

    screen shot 2016-06-21 at 2 45 34 pm

New Features (Android)

  1. The release-react command will now automatically infer the target binary version of a CodePush release when your build.gradle file is referencing its versionName via a property in your grade.properties file.

    Example build.gradle file:

    android {
        defaultConfig {
            versionName VERSION_NAME
        }
    }

    Corresponding gradle.properties file:

    VERSION_NAME=1.2.3

New Features (iOS)

  1. The release-react command supports two new parameters to allow customizing which Info.plist file is used to infer the target binary version of a CodePush release: --plistFile and --plistFilePrefix. We hope these allow more apps to release updates without needing to explicitly specify the --targetBinaryVersion parameter.

    # Release a new update, targeting it at the binary version 
    # specified in the STAGING-Info.plist file
    code-push release-react foo ios --pre STAGING

v1.11.0-beta

18 May 22:36
Compare
Choose a tag to compare

This release introduces support for connecting to the CodePush server via a proxy, and includes a few improvements to the release-* commands. It is available now on NPM and can be installed by running npm i -g code-push-cli@latest.

New Features

  1. Proxied connections The code-push login command will now check for the presence of a system-wide proxy, and use it to connect to the CodePush server. If you don't want the CLI to use this behavior, you can specify the --noProxy parameter to connect directly to CodePush. Additionally, if you'd like to use a proxy connection to CodePush, which isn't configured system-wide, you can specify the --proxy parameter.

    # Ignore any system proxy settings
    code-push login --noProxy
    
    # Specify an explicit proxy server
    code-push login --proxy https://foo.bar:4563
  2. PhoneGap support The release-cordova command now supports automatically preparing/building your app if you have the PhoneGap CLI installed as opposed to requiring Cordova.

Bug Fixes

  1. The release-react command now correctly generates your JS bundle file on machines with case-sensitive file systems (e.g. Linux).