Versioning

No matter how hard you work to design your component, there comes a time when you'll need to release another version to fix bugs, handle new use cases, or add additional language support. This page explains how component plug-ins handle versioning so you can add capabilities while minimizing disruption for your users.

Overview

When you create the component plug-in manifest you define one version for the entire plug-in (in plugin-info) and separate versions for each component. Both version values use the semver standard (e.g.: 2.1.3). There's no direct dependency between the two version types.

Component Plug-in Versions

The plug-in version must be incremented with each release (no matter how minor) in order for the newer version to be deployed over prior releases. During development you can deploy with the same version as long as the filename of the plug-in remains the same. We recommend including the plug-in version in the package filename to help distinguish between different files.

Component Versions

Each component in your plug-in has it's own versions. There can be multiple versions of a component in the same plug-in (though you can only have one instance of each major version). The following sections will help you decide when and how to make different version changes to your component.

Backward Compatibility

We work hard to ensure that customer applications keep working even when they upgrade Appian. We call this being backward compatible. The same principle applies when you release new versions of your component plug-in.

The right way to think about what this compatibility looks like for your component is:

  1. Imagine a customer already uses your component in an interface
  2. The customer installs your updated plug-in
  3. The customer does not have to modify their interface
  4. The interface does not have errors or undesirable behavior changes in their exising interfaces

The promise of compatibility is core to the Appian platform. It's important for your component to keep that promise by using the appropriate versioning option when you make a change.

Major Versions

Use major versions when your component changes won't be compatible with prior versions. For example:

  • Adding a new required parameter (existing interfaces won't have this parameter populated)
  • Changing the default value of a parameter (e.g.: the default was false, but now you want it to be true)
  • Changing the expected format of a parameter or adding stricter validations
  • Changing the behavior of the component in a functional way (e.g.: replacing a text field with a dropdown may seem more efficient, but existing users might rely on the text field's flexibility)
  • Updating the minimum required version of Appian or the SDK version

Add a major version by making a copy of your component. Copy the component tag in your manifest file and increment the major version number (e.g.: 1.1.3 –> 2.0.0). Copy the content in the component version folder to a matching folder name (e.g.: v2). Leave the original version unchanged and make your (incompatible) updates to the new version only.

When you deploy a new major version of your component, any interfaces using your component will keep using the existing version and their behavior won't change. Just like standard Appian functions and components, we'll indicate to the designer that it's an old version by changing the display name (e.g.: mapField_v1). Going forward, designers will use the new version of the component by default.

There's no limit to the number of major versions you can create for your component. Keep in mind that with each major version, designers have to manually update existing interfaces to use the new version. If your change doesn't impact backward compatibiliy it's better to make a less-disruptive minor version update.

Note: You can't change the rule name of a component using versions. Any rule name change will be treated as a new component. Keep the old component in the plug-in to make sure existing customer applications that rely on it don't break.

Minor Versions

Use minor versions when you add functionality that is compatible with prior versions of your plug-in. For example:

  • Adding an entirely new component (or "changing the name" of a component by adding a new one)
  • Adding a new optional parameter
  • Adding additional language/internationalization support

Add a minor version by incrementing the minor version number for an existing component in your manifest (e.g.: 1.1.3 –> 1.2.0). Don't create a copy of the component tag or contents. Make your (compatible) updates to the existing component.

When you deploy a new minor version of your component, Appian automatically starts using the new version in all interfaces. There's no change to existing component references like there is with a major version change. Designers don't need to take any action to update existing interfaces unless they want to take advantage of new functionality.

Patch Versions

Use patch versions when you fix bugs or update non-functional behavior that is compatible with prior versions of your plug-in. For example:

  • Fixing a bug so that the component works as the user expects (without breaking compatibility)
  • Changing the behavior of the component in a non-functional way (e.g.: improving performance)

Patch versions are created and deployed the same way as minor versions, just increment the patch version number (e.g.: 1.1.3 –> 1.1.4) instead of the minor version number.

SDK Versions

In addition to a plug-in version and component versions, you also define an SDK version for each component which indicates the minimum JavaScript API version your component requires. Changing the SDK version should only be done as a major version release of your component, but beyond that there's no impact on your plug-in releases.

Open in Github Built: Wed, Aug 17, 2022 (01:05:05 PM)

On This Page

FEEDBACK