- Fixed node version incompatibility issue due to cheerio package dependency, users with node version less than 18.17, can use without any issues.
- Added support for making cache setup optional for the HTTP client instance.
- Removed caching for the http client instance used in
flex-plugins-api-client
to fix the CORS issue observed for some of the Flex Plugins API, in the browser due to an un-recognized cache header.
- Refactored
flex-plugins-api-client
package to be compatible with the browser JavaScript environment. - Updated
flex-plugins-api-client
to incorporate the latest Flex Plugins API spec.
- Fixed the vulnerabilities found in the packages -
jest
,axios
,axios-cache-adapter
,esm
,rimraf
,@twilio/cli-core
,puppeteer
.
- Fixed the issue with loading remote plugins in localhost which broke after Flex started using partitioned cookies to store Flex JWE token.
- ECONREFUSED error observed in Node versions >= 17 is fixed.
terser-webpack-plugin
issue observed when plugin is built, is fixed.- Issue with the creation of source-map file is addressed.
- 1 critical and 4 high vulnerabilities in packages have been addressed.
- Twilio Serverless build API uses the latest Node runtime version always.
- Webpack is reverted to the latest stable v4 (4.47.0) as many of the dependencies that plugins use are not webpack 5 ready yet.
- Added support for Node v20.
- Added support for Twilio Serverless Node 18 runtime
global is not defined
error in the browser environment by providing a polyfill in webpack configuration
- A bug is fixed which was causing plugin local build failure incase of scss/sass files referenced inside any component.
Flex plugin webpack is upgraded to use webpack 5
package.
Security vulnerabilities in the following packages were addressed by upgrading their versions
- [email protected]
- cheerio@^1.0.0-rc.12
Flex Plugin Builder will scaffold a new plugin compatible with Flex UI 2.x when a plugin is created using create
command.
The switch to create a new Flex UI 1.x compatible plugin is --flexui1
Security vulnerabilities in the following packages were addressed by upgrading their versions
- Flex Plugin Builder now supports Node v16 and Node v18!
NOTE: If you encounter this error:
ERR_OSSL_EVP_UNSUPPORTED
, which happens due to incompatibility between newer version of OpenSSL and Node v18, run the following command:
For MacOs & Linux:
export NODE_OPTIONS=--openssl-legacy-provider
For Windows:
set NODE_OPTIONS=--openssl-legacy-provider
- A bug in the archival process of plugin and plugin-version.
- Modified the markdown formatter syntax for italic which is used by the logger.
- Issue with using the plugin builder from behind a HTTP proxy.
- Address compatibility with @oclif/core v1.19.0
Refer to Twilio Flex Docs to be up-to-date with the latest features being built on the CLI.
Plugin Flex package now uses Twilio CLI 5.0 which has upgraded oclif package version from v1 to v2.
- Twilio CLI 5.0 and oclif v2 support.
- Removed support for Node 12.
- Security fix
Install the Twilio CLI and the Flex Plugins extension as described here. Then go to the plugin directory and run:
$ twilio flex:plugins:upgrade-plugin --install
This script should automatically upgrade your plugin to the latest version.
To manually upgrade to version 6.x, modify your package.json
:
{
"scripts": {
"postinstall": "flex-plugin pre-script-check"
},
"dependencies": {
"flex-plugin-scripts": "^6.0.1",
"react": "16.5.2",
"react-dom": "16.5.2"
},
"devDependencies": {
"@twilio/flex-ui": "^1"
}
}
Version 6 is dropping support for
- Twilio CLI v4 and below. Make sure to upgrade to the latest version of Twilio CLI (v5) to use Flex Plugins CLI 6.x
- Node 12. Version 6.x will only support Node 14.x. You would need to install and use Node 14.x (preferrably LTS version) going forward to run the Flex Plugins CLI commands. This means the plugin would also have to be compatible with Node 14.x version.
An issue was identified by Twilio Security that allowed piggy-backing of additional HTTP parameters on some of the API requests. This issue is now fixed in this version.