From 4432c0264250c13b8993724edf592da63c7c5f6a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 21 Mar 2024 17:49:41 +0200 Subject: [PATCH] Version Packages (#512) * chore(@twilio-labs/plugin-assets): version update in readme * chore(@twilio-labs/plugin-serverless): version update in readme * chore: version packages --------- Co-authored-by: github-actions[bot] --- .changeset/short-donkeys-matter.md | 6 - .changeset/strong-pugs-battle.md | 7 - packages/create-twilio-function/CHANGELOG.md | 9 + packages/create-twilio-function/package.json | 6 +- packages/plugin-assets/README.md | 16 +- packages/plugin-serverless/CHANGELOG.md | 8 + packages/plugin-serverless/README.md | 435 +++++++++--------- packages/plugin-serverless/package.json | 6 +- packages/runtime-handler/CHANGELOG.md | 11 + packages/runtime-handler/package.json | 4 +- .../serverless-runtime-types/CHANGELOG.md | 6 + .../serverless-runtime-types/package.json | 2 +- packages/twilio-run/CHANGELOG.md | 13 + packages/twilio-run/package.json | 6 +- 14 files changed, 287 insertions(+), 248 deletions(-) delete mode 100644 .changeset/short-donkeys-matter.md delete mode 100644 .changeset/strong-pugs-battle.md diff --git a/.changeset/short-donkeys-matter.md b/.changeset/short-donkeys-matter.md deleted file mode 100644 index fc03a114..00000000 --- a/.changeset/short-donkeys-matter.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"twilio-run": patch -"create-twilio-function": patch ---- - -FRIDGE-814 fix chalk diff --git a/.changeset/strong-pugs-battle.md b/.changeset/strong-pugs-battle.md deleted file mode 100644 index 022e7e9d..00000000 --- a/.changeset/strong-pugs-battle.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@twilio-labs/serverless-runtime-types': major -'@twilio/runtime-handler': major -'twilio-run': major ---- - -Twilio SDK from 3.x to 4.23.0. Required Node version bumped to 18 min. diff --git a/packages/create-twilio-function/CHANGELOG.md b/packages/create-twilio-function/CHANGELOG.md index a1910124..d0436667 100644 --- a/packages/create-twilio-function/CHANGELOG.md +++ b/packages/create-twilio-function/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 3.4.5 + +### Patch Changes + +- [#510](https://github.com/twilio-labs/serverless-toolkit/pull/510) [`feb9686fa6bfa5b49e634e414ff56a61c61cbe89`](https://github.com/twilio-labs/serverless-toolkit/commit/feb9686fa6bfa5b49e634e414ff56a61c61cbe89) Thanks [@makserik](https://github.com/makserik)! - FRIDGE-814 fix chalk + +- Updated dependencies [[`feb9686fa6bfa5b49e634e414ff56a61c61cbe89`](https://github.com/twilio-labs/serverless-toolkit/commit/feb9686fa6bfa5b49e634e414ff56a61c61cbe89), [`6d65bea828338a6dd44cb357c324d9b63e74e081`](https://github.com/twilio-labs/serverless-toolkit/commit/6d65bea828338a6dd44cb357c324d9b63e74e081)]: + - twilio-run@4.0.0 + ## 3.4.4 ### Patch Changes diff --git a/packages/create-twilio-function/package.json b/packages/create-twilio-function/package.json index 6708e531..a74b0ca1 100644 --- a/packages/create-twilio-function/package.json +++ b/packages/create-twilio-function/package.json @@ -1,6 +1,6 @@ { "name": "create-twilio-function", - "version": "3.4.4", + "version": "3.4.5", "description": "A CLI tool to generate a new Twilio Function using that can be run locally with twilio-run.", "bin": "./bin/create-twilio-function", "main": "./src/create-twilio-function.js", @@ -24,7 +24,7 @@ }, "license": "MIT", "devDependencies": { - "@twilio/runtime-handler": "^1.3.0", + "@twilio/runtime-handler": "^2.0.0", "nock": "^11.3.4" }, "dependencies": { @@ -36,7 +36,7 @@ "pkg-install": "^1.0.0", "rimraf": "^2.6.3", "terminal-link": "^2.0.0", - "twilio-run": "^3.5.4", + "twilio-run": "^4.0.0", "window-size": "^1.1.1", "wrap-ansi": "^7.0.0", "yargs": "^17.2.1" diff --git a/packages/plugin-assets/README.md b/packages/plugin-assets/README.md index 40ea7888..cf396c44 100644 --- a/packages/plugin-assets/README.md +++ b/packages/plugin-assets/README.md @@ -63,11 +63,11 @@ FLAGS -l=(debug|info|warn|error|none) [default: info] Level of logging messages. -o=(columns|json|tsv|none) [default: columns] Format of command output. -p, --profile= Shorthand identifier for your profile. - --properties= [default: service_sid, sid, domain_name] The asset service environment properties you + --properties= [default: service_sid, sid, domain_name] The asset service environment properties you would like to display (JSON output always shows all properties). - --service-name= A unique name for your asset service. May only contain alphanumeric characters and + --service-name= A unique name for your asset service. May only contain alphanumeric characters and hyphens. - --silent Suppress output and logs. This is a shorthand for "-l none -o none". + --silent Suppress output and logs. This is a shorthand for "-l none -o none". DESCRIPTION Create a new assets service to use as a bucket @@ -88,9 +88,9 @@ FLAGS -l=(debug|info|warn|error|none) [default: info] Level of logging messages. -o=(columns|json|tsv|none) [default: columns] Format of command output. -p, --profile= Shorthand identifier for your profile. - --properties= [default: sid, path, url, visibility] The asset properties you would like to display + --properties= [default: sid, path, url, visibility] The asset properties you would like to display (JSON output always shows all properties). - --silent Suppress output and logs. This is a shorthand for "-l none -o none". + --silent Suppress output and logs. This is a shorthand for "-l none -o none". DESCRIPTION List all the assets in the service @@ -114,10 +114,10 @@ FLAGS -l=(debug|info|warn|error|none) [default: info] Level of logging messages. -o=(columns|json|tsv|none) [default: columns] Format of command output. -p, --profile= Shorthand identifier for your profile. - --properties= [default: sid, path, url, visibility] The asset properties you would like to display + --properties= [default: sid, path, url, visibility] The asset properties you would like to display (JSON output always shows all properties). - --protected Sets the uploaded asset's visibility to 'protected' - --silent Suppress output and logs. This is a shorthand for "-l none -o none". + --protected Sets the uploaded asset's visibility to 'protected' + --silent Suppress output and logs. This is a shorthand for "-l none -o none". DESCRIPTION Upload a new asset to the Assets service diff --git a/packages/plugin-serverless/CHANGELOG.md b/packages/plugin-serverless/CHANGELOG.md index 22c31cac..4614423a 100644 --- a/packages/plugin-serverless/CHANGELOG.md +++ b/packages/plugin-serverless/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 3.1.6 + +### Patch Changes + +- Updated dependencies [[`feb9686fa6bfa5b49e634e414ff56a61c61cbe89`](https://github.com/twilio-labs/serverless-toolkit/commit/feb9686fa6bfa5b49e634e414ff56a61c61cbe89), [`6d65bea828338a6dd44cb357c324d9b63e74e081`](https://github.com/twilio-labs/serverless-toolkit/commit/6d65bea828338a6dd44cb357c324d9b63e74e081)]: + - twilio-run@4.0.0 + - create-twilio-function@3.4.5 + ## 3.1.5 ### Patch Changes diff --git a/packages/plugin-serverless/README.md b/packages/plugin-serverless/README.md index cd73a319..072d93bb 100644 --- a/packages/plugin-serverless/README.md +++ b/packages/plugin-serverless/README.md @@ -83,33 +83,34 @@ USAGE [--environment ] [--to ] [--production] [--create-environment] [--force] [-o ] FLAGS - -c, --config= Location of the config file. Absolute path or relative to current working directory - (cwd) - -l=(debug|info|warn|error|none) [default: info] Level of logging messages. - -l, --log-level= [default: info] Level of logging messages. - -o=(columns|json|tsv|none) [default: columns] Format of command output. - -o, --output-format= Output the results in a different format - -p, --profile= Shorthand identifier for your profile. - -u, --username= A specific API key or account SID to be used for deployment. Uses fields in .env - otherwise - --build-sid= An existing Build SID to deploy to the new environment - --create-environment Creates environment if it couldn't find it. - --cwd= Sets the directory of your existing Serverless project. Defaults to current directory - --env= Path to .env file for environment variables that should be installed - --environment= [default: dev] The environment name (domain suffix) you want to use for your - deployment. Alternatively you can specify an environment SID starting with ZE. - --force Will run deployment in force mode. Can be dangerous. - --from= [Alias for "source-environment"] - --from-build= [Alias for "build-sid"] - --load-system-env Uses system environment variables as fallback for variables specified in your .env - file. Needs to be used with --env explicitly specified. - --password= A specific API secret or auth token for deployment. Uses fields from .env otherwise - --production Promote build to the production environment (no domain suffix). Overrides environment - flag - --service-sid= SID of the Twilio Serverless Service to deploy to - --silent Suppress output and logs. This is a shorthand for "-l none -o none". - --source-environment= SID or suffix of an existing environment you want to deploy from. - --to= [Alias for "environment"] + -c, --config= Location of the config file. Absolute path or relative to current working directory + (cwd) + -l=(debug|info|warn|error|none) [default: info] Level of logging messages. + -l, --log-level= [default: info] Level of logging messages. + -o=(columns|json|tsv|none) [default: columns] Format of command output. + -o, --output-format= Output the results in a different format + -p, --profile= Shorthand identifier for your profile. + -u, --username= A specific API key or account SID to be used for deployment. Uses fields in .env + otherwise + --build-sid= An existing Build SID to deploy to the new environment + --create-environment Creates environment if it couldn't find it. + --cwd= Sets the directory of your existing Serverless project. Defaults to current + directory + --env= Path to .env file for environment variables that should be installed + --environment= [default: dev] The environment name (domain suffix) you want to use for your + deployment. Alternatively you can specify an environment SID starting with ZE. + --force Will run deployment in force mode. Can be dangerous. + --from= [Alias for "source-environment"] + --from-build= [Alias for "build-sid"] + --load-system-env Uses system environment variables as fallback for variables specified in your .env + file. Needs to be used with --env explicitly specified. + --password= A specific API secret or auth token for deployment. Uses fields from .env otherwise + --production Promote build to the production environment (no domain suffix). Overrides + environment flag + --service-sid= SID of the Twilio Serverless Service to deploy to + --silent Suppress output and logs. This is a shorthand for "-l none -o none". + --source-environment= SID or suffix of an existing environment you want to deploy from. + --to= [Alias for "environment"] DESCRIPTION Promotes an existing deployment to a new environment @@ -142,31 +143,31 @@ FLAGS -p, --profile= Shorthand identifier for your profile. -u, --username= A specific API key or account SID to be used for deployment. Uses fields in .env otherwise - --[no-]assets Upload assets. Can be turned off with --no-assets - --assets-folder= Specific folder name to be used for static assets - --cwd= Sets the directory of your existing Serverless project. Defaults to current directory - --env= Path to .env file for environment variables that should be installed - --environment= [default: dev] The environment name (domain suffix) you want to use for your + --[no-]assets Upload assets. Can be turned off with --no-assets + --assets-folder= Specific folder name to be used for static assets + --cwd= Sets the directory of your existing Serverless project. Defaults to current directory + --env= Path to .env file for environment variables that should be installed + --environment= [default: dev] The environment name (domain suffix) you want to use for your deployment. Alternatively you can specify an environment SID starting with ZE. - --force Will run deployment in force mode. Can be dangerous. - --[no-]functions Upload functions. Can be turned off with --no-functions - --functions-folder= Specific folder name to be used for static functions - --load-system-env Uses system environment variables as fallback for variables specified in your .env + --force Will run deployment in force mode. Can be dangerous. + --[no-]functions Upload functions. Can be turned off with --no-functions + --functions-folder= Specific folder name to be used for static functions + --load-system-env Uses system environment variables as fallback for variables specified in your .env file. Needs to be used with --env explicitly specified. - --override-existing-project Deploys Serverless project to existing service if a naming conflict has been found. - --password= A specific API secret or auth token for deployment. Uses fields from .env otherwise - --production Please prefer the "activate" command! Deploys to the production environment (no + --override-existing-project Deploys Serverless project to existing service if a naming conflict has been found. + --password= A specific API secret or auth token for deployment. Uses fields from .env otherwise + --production Please prefer the "activate" command! Deploys to the production environment (no domain suffix). Overrides the value passed via the environment flag. - --runtime= The version of Node.js to deploy the build to. (node18) - --service-sid= SID of the Twilio Serverless Service to deploy to - --silent Suppress output and logs. This is a shorthand for "-l none -o none". - --to= [Alias for "environment"] + --runtime= The version of Node.js to deploy the build to. (node18) + --service-sid= SID of the Twilio Serverless Service to deploy to + --silent Suppress output and logs. This is a shorthand for "-l none -o none". + --to= [Alias for "environment"] DESCRIPTION Deploys existing functions and assets to Twilio ``` -_See code: [src/commands/serverless/deploy.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.5/src/commands/serverless/deploy.js)_ +_See code: [src/commands/serverless/deploy.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.6/src/commands/serverless/deploy.js)_ ## `twilio serverless:dev [DIR]` @@ -182,24 +183,25 @@ ARGUMENTS DIR Root directory to serve local Functions/Assets from FLAGS - -c, --config= Location of the config file. Absolute path or relative to current working directory (cwd) - -f, --load-local-env Includes the local environment variables - -l, --log-level= [default: info] Level of logging messages. - -p, --port= (required) [default: 3000] Override default port of 3000 - --assets-folder= Specific folder name to be used for static assets - --cwd= Alternative way to define the directory to start the server in. Overrides the [dir] - argument passed. - --detailed-logs Toggles detailed request logging by showing request body and query params - --env= Path to .env file for environment variables that should be installed - --[no-]fork-process Disable forking function processes to emulate production environment - --functions-folder= Specific folder name to be used for static functions - --inspect= Enables Node.js debugging protocol - --inspect-brk= Enables Node.js debugging protocol, stops execution until debugger is attached - --legacy-mode Enables legacy mode, it will prefix your asset paths with /assets - --[no-]live Always serve from the current functions (no caching) - --[no-]logs Toggles request logging - --ngrok= Uses ngrok to create a public url. Pass a string to set the subdomain (requires a paid-for - ngrok account). + -c, --config= Location of the config file. Absolute path or relative to current working directory + (cwd) + -f, --load-local-env Includes the local environment variables + -l, --log-level= [default: info] Level of logging messages. + -p, --port= (required) [default: 3000] Override default port of 3000 + --assets-folder= Specific folder name to be used for static assets + --cwd= Alternative way to define the directory to start the server in. Overrides the [dir] + argument passed. + --detailed-logs Toggles detailed request logging by showing request body and query params + --env= Path to .env file for environment variables that should be installed + --[no-]fork-process Disable forking function processes to emulate production environment + --functions-folder= Specific folder name to be used for static functions + --inspect= Enables Node.js debugging protocol + --inspect-brk= Enables Node.js debugging protocol, stops execution until debugger is attached + --legacy-mode Enables legacy mode, it will prefix your asset paths with /assets + --[no-]live Always serve from the current functions (no caching) + --[no-]logs Toggles request logging + --ngrok= Uses ngrok to create a public url. Pass a string to set the subdomain (requires a + paid-for ngrok account). DESCRIPTION Starts local Twilio Functions development server @@ -228,25 +230,25 @@ FLAGS -p, --profile= Shorthand identifier for your profile. -u, --username= A specific API key or account SID to be used for deployment. Uses fields in .env otherwise - --cwd= Sets the directory of your existing Serverless project. Defaults to current directory - --env= Path to .env file for environment variables that should be installed - --environment= [default: dev] The environment name (domain suffix) you want to use for your + --cwd= Sets the directory of your existing Serverless project. Defaults to current directory + --env= Path to .env file for environment variables that should be installed + --environment= [default: dev] The environment name (domain suffix) you want to use for your deployment. Alternatively you can specify an environment SID starting with ZE. - --key= Name of the environment variable - --load-system-env Uses system environment variables as fallback for variables specified in your .env + --key= Name of the environment variable + --load-system-env Uses system environment variables as fallback for variables specified in your .env file. Needs to be used with --env explicitly specified. - --password= A specific API secret or auth token for deployment. Uses fields from .env otherwise - --production Promote build to the production environment (no domain suffix). Overrides environment + --password= A specific API secret or auth token for deployment. Uses fields from .env otherwise + --production Promote build to the production environment (no domain suffix). Overrides environment flag - --service-sid= SID of the Twilio Serverless Service to deploy to - --silent Suppress output and logs. This is a shorthand for "-l none -o none". - --to= [Alias for "environment"] + --service-sid= SID of the Twilio Serverless Service to deploy to + --silent Suppress output and logs. This is a shorthand for "-l none -o none". + --to= [Alias for "environment"] DESCRIPTION Retrieves the value of a specific environment variable ``` -_See code: [src/commands/serverless/env/get.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.5/src/commands/serverless/env/get.js)_ +_See code: [src/commands/serverless/env/get.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.6/src/commands/serverless/env/get.js)_ ## `twilio serverless:env:import` @@ -267,24 +269,24 @@ FLAGS -p, --profile= Shorthand identifier for your profile. -u, --username= A specific API key or account SID to be used for deployment. Uses fields in .env otherwise - --cwd= Sets the directory of your existing Serverless project. Defaults to current directory - --env= Path to .env file for environment variables that should be installed - --environment= [default: dev] The environment name (domain suffix) you want to use for your + --cwd= Sets the directory of your existing Serverless project. Defaults to current directory + --env= Path to .env file for environment variables that should be installed + --environment= [default: dev] The environment name (domain suffix) you want to use for your deployment. Alternatively you can specify an environment SID starting with ZE. - --load-system-env Uses system environment variables as fallback for variables specified in your .env + --load-system-env Uses system environment variables as fallback for variables specified in your .env file. Needs to be used with --env explicitly specified. - --password= A specific API secret or auth token for deployment. Uses fields from .env otherwise - --production Promote build to the production environment (no domain suffix). Overrides environment + --password= A specific API secret or auth token for deployment. Uses fields from .env otherwise + --production Promote build to the production environment (no domain suffix). Overrides environment flag - --service-sid= SID of the Twilio Serverless Service to deploy to - --silent Suppress output and logs. This is a shorthand for "-l none -o none". - --to= [Alias for "environment"] + --service-sid= SID of the Twilio Serverless Service to deploy to + --silent Suppress output and logs. This is a shorthand for "-l none -o none". + --to= [Alias for "environment"] DESCRIPTION Takes a .env file and uploads all environment variables to a given environment ``` -_See code: [src/commands/serverless/env/import.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.5/src/commands/serverless/env/import.js)_ +_See code: [src/commands/serverless/env/import.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.6/src/commands/serverless/env/import.js)_ ## `twilio serverless:env:list` @@ -306,25 +308,25 @@ FLAGS -p, --profile= Shorthand identifier for your profile. -u, --username= A specific API key or account SID to be used for deployment. Uses fields in .env otherwise - --cwd= Sets the directory of your existing Serverless project. Defaults to current directory - --env= Path to .env file for environment variables that should be installed - --environment= [default: dev] The environment name (domain suffix) you want to use for your + --cwd= Sets the directory of your existing Serverless project. Defaults to current directory + --env= Path to .env file for environment variables that should be installed + --environment= [default: dev] The environment name (domain suffix) you want to use for your deployment. Alternatively you can specify an environment SID starting with ZE. - --load-system-env Uses system environment variables as fallback for variables specified in your .env + --load-system-env Uses system environment variables as fallback for variables specified in your .env file. Needs to be used with --env explicitly specified. - --password= A specific API secret or auth token for deployment. Uses fields from .env otherwise - --production Promote build to the production environment (no domain suffix). Overrides environment + --password= A specific API secret or auth token for deployment. Uses fields from .env otherwise + --production Promote build to the production environment (no domain suffix). Overrides environment flag - --service-sid= SID of the Twilio Serverless Service to deploy to - --show-values Show the values of your environment variables - --silent Suppress output and logs. This is a shorthand for "-l none -o none". - --to= [Alias for "environment"] + --service-sid= SID of the Twilio Serverless Service to deploy to + --show-values Show the values of your environment variables + --silent Suppress output and logs. This is a shorthand for "-l none -o none". + --to= [Alias for "environment"] DESCRIPTION Lists all environment variables for a given environment ``` -_See code: [src/commands/serverless/env/list.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.5/src/commands/serverless/env/list.js)_ +_See code: [src/commands/serverless/env/list.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.6/src/commands/serverless/env/list.js)_ ## `twilio serverless:env:set` @@ -345,26 +347,26 @@ FLAGS -p, --profile= Shorthand identifier for your profile. -u, --username= A specific API key or account SID to be used for deployment. Uses fields in .env otherwise - --cwd= Sets the directory of your existing Serverless project. Defaults to current directory - --env= Path to .env file for environment variables that should be installed - --environment= [default: dev] The environment name (domain suffix) you want to use for your + --cwd= Sets the directory of your existing Serverless project. Defaults to current directory + --env= Path to .env file for environment variables that should be installed + --environment= [default: dev] The environment name (domain suffix) you want to use for your deployment. Alternatively you can specify an environment SID starting with ZE. - --key= Name of the environment variable - --load-system-env Uses system environment variables as fallback for variables specified in your .env + --key= Name of the environment variable + --load-system-env Uses system environment variables as fallback for variables specified in your .env file. Needs to be used with --env explicitly specified. - --password= A specific API secret or auth token for deployment. Uses fields from .env otherwise - --production Promote build to the production environment (no domain suffix). Overrides environment + --password= A specific API secret or auth token for deployment. Uses fields from .env otherwise + --production Promote build to the production environment (no domain suffix). Overrides environment flag - --service-sid= SID of the Twilio Serverless Service to deploy to - --silent Suppress output and logs. This is a shorthand for "-l none -o none". - --to= [Alias for "environment"] - --value= Name of the environment variable + --service-sid= SID of the Twilio Serverless Service to deploy to + --silent Suppress output and logs. This is a shorthand for "-l none -o none". + --to= [Alias for "environment"] + --value= Name of the environment variable DESCRIPTION Sets an environment variable with a given key and value ``` -_See code: [src/commands/serverless/env/set.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.5/src/commands/serverless/env/set.js)_ +_See code: [src/commands/serverless/env/set.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.6/src/commands/serverless/env/set.js)_ ## `twilio serverless:env:unset` @@ -385,25 +387,25 @@ FLAGS -p, --profile= Shorthand identifier for your profile. -u, --username= A specific API key or account SID to be used for deployment. Uses fields in .env otherwise - --cwd= Sets the directory of your existing Serverless project. Defaults to current directory - --env= Path to .env file for environment variables that should be installed - --environment= [default: dev] The environment name (domain suffix) you want to use for your + --cwd= Sets the directory of your existing Serverless project. Defaults to current directory + --env= Path to .env file for environment variables that should be installed + --environment= [default: dev] The environment name (domain suffix) you want to use for your deployment. Alternatively you can specify an environment SID starting with ZE. - --key= Name of the environment variable - --load-system-env Uses system environment variables as fallback for variables specified in your .env + --key= Name of the environment variable + --load-system-env Uses system environment variables as fallback for variables specified in your .env file. Needs to be used with --env explicitly specified. - --password= A specific API secret or auth token for deployment. Uses fields from .env otherwise - --production Promote build to the production environment (no domain suffix). Overrides environment + --password= A specific API secret or auth token for deployment. Uses fields from .env otherwise + --production Promote build to the production environment (no domain suffix). Overrides environment flag - --service-sid= SID of the Twilio Serverless Service to deploy to - --silent Suppress output and logs. This is a shorthand for "-l none -o none". - --to= [Alias for "environment"] + --service-sid= SID of the Twilio Serverless Service to deploy to + --silent Suppress output and logs. This is a shorthand for "-l none -o none". + --to= [Alias for "environment"] DESCRIPTION Removes an environment variable for a given key ``` -_See code: [src/commands/serverless/env/unset.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.5/src/commands/serverless/env/unset.js)_ +_See code: [src/commands/serverless/env/unset.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.6/src/commands/serverless/env/unset.js)_ ## `twilio serverless:init NAME` @@ -423,20 +425,20 @@ FLAGS -o=(columns|json|tsv|none) [default: columns] Format of command output. -p, --profile= Shorthand identifier for your profile. -t, --auth-token= Your Twilio account Auth Token - --empty Initialize your new project with empty functions and assets directories - --import-credentials Import credentials from the environment variables TWILIO_ACCOUNT_SID and + --empty Initialize your new project with empty functions and assets directories + --import-credentials Import credentials from the environment variables TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN - --silent Suppress output and logs. This is a shorthand for "-l none -o none". - --skip-credentials Don't ask for Twilio account credentials or import them from the environment - --template= Initialize your new project with a template from + --silent Suppress output and logs. This is a shorthand for "-l none -o none". + --skip-credentials Don't ask for Twilio account credentials or import them from the environment + --template= Initialize your new project with a template from github.com/twilio-labs/function-templates - --typescript Initialize your Serverless project with TypeScript + --typescript Initialize your Serverless project with TypeScript DESCRIPTION Creates a new Twilio Function project ``` -_See code: [src/commands/serverless/init.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.5/src/commands/serverless/init.js)_ +_See code: [src/commands/serverless/init.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.6/src/commands/serverless/init.js)_ ## `twilio serverless:list [TYPES]` @@ -463,22 +465,22 @@ FLAGS -p, --profile= Shorthand identifier for your profile. -u, --username= A specific API key or account SID to be used for deployment. Uses fields in .env otherwise - --cwd= Sets the directory of your existing Serverless project. Defaults to current directory - --env= Path to .env file for environment variables that should be installed - --environment= [default: dev] The environment to list variables for - --extended-output Show an extended set of properties on the output - --load-system-env Uses system environment variables as fallback for variables specified in your .env + --cwd= Sets the directory of your existing Serverless project. Defaults to current directory + --env= Path to .env file for environment variables that should be installed + --environment= [default: dev] The environment to list variables for + --extended-output Show an extended set of properties on the output + --load-system-env Uses system environment variables as fallback for variables specified in your .env file. Needs to be used with --env explicitly specified. - --password= A specific API secret or auth token for deployment. Uses fields from .env otherwise - --service-sid= SID of the Twilio Serverless Service to deploy to - --silent Suppress output and logs. This is a shorthand for "-l none -o none". - --to= [Alias for "environment"] + --password= A specific API secret or auth token for deployment. Uses fields from .env otherwise + --service-sid= SID of the Twilio Serverless Service to deploy to + --silent Suppress output and logs. This is a shorthand for "-l none -o none". + --to= [Alias for "environment"] DESCRIPTION List existing services, environments, variables, deployments for your Twilio Serverless Account ``` -_See code: [src/commands/serverless/list.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.5/src/commands/serverless/list.js)_ +_See code: [src/commands/serverless/list.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.6/src/commands/serverless/list.js)_ ## `twilio serverless:list-templates` @@ -495,7 +497,7 @@ DESCRIPTION Lists the available Twilio Function templates ``` -_See code: [src/commands/serverless/list-templates.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.5/src/commands/serverless/list-templates.js)_ +_See code: [src/commands/serverless/list-templates.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.6/src/commands/serverless/list-templates.js)_ ## `twilio serverless:logs` @@ -518,24 +520,24 @@ FLAGS -p, --profile= Shorthand identifier for your profile. -u, --username= A specific API key or account SID to be used for deployment. Uses fields in .env otherwise - --cwd= Sets the directory of your existing Serverless project. Defaults to current directory - --env= Path to .env file for environment variables that should be installed - --environment= [default: dev] The environment to retrieve the logs for - --function-sid= Specific Function SID to retrieve logs for - --load-system-env Uses system environment variables as fallback for variables specified in your .env + --cwd= Sets the directory of your existing Serverless project. Defaults to current directory + --env= Path to .env file for environment variables that should be installed + --environment= [default: dev] The environment to retrieve the logs for + --function-sid= Specific Function SID to retrieve logs for + --load-system-env Uses system environment variables as fallback for variables specified in your .env file. Needs to be used with --env explicitly specified. - --password= A specific API secret or auth token for deployment. Uses fields from .env otherwise - --production Retrieve logs for the production environment. Overrides the "environment" flag - --service-sid= SID of the Twilio Serverless Service to deploy to - --silent Suppress output and logs. This is a shorthand for "-l none -o none". - --tail Continuously stream the logs - --to= [Alias for "environment"] + --password= A specific API secret or auth token for deployment. Uses fields from .env otherwise + --production Retrieve logs for the production environment. Overrides the "environment" flag + --service-sid= SID of the Twilio Serverless Service to deploy to + --silent Suppress output and logs. This is a shorthand for "-l none -o none". + --tail Continuously stream the logs + --to= [Alias for "environment"] DESCRIPTION Print logs from your Twilio Serverless project ``` -_See code: [src/commands/serverless/logs.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.5/src/commands/serverless/logs.js)_ +_See code: [src/commands/serverless/logs.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.6/src/commands/serverless/logs.js)_ ## `twilio serverless:new [NAMESPACE]` @@ -551,15 +553,15 @@ ARGUMENTS FLAGS -c, --config= Location of the config file. Absolute path or relative to current working directory (cwd) -l, --log-level= [default: info] Level of logging messages. - --cwd= Sets the directory of your existing Serverless project. Defaults to current directory - --env= Path to .env file for environment variables that should be installed + --cwd= Sets the directory of your existing Serverless project. Defaults to current directory + --env= Path to .env file for environment variables that should be installed --template= DESCRIPTION Creates a new Twilio Function based on an existing template ``` -_See code: [src/commands/serverless/new.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.5/src/commands/serverless/new.js)_ +_See code: [src/commands/serverless/new.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.6/src/commands/serverless/new.js)_ ## `twilio serverless:promote` @@ -573,33 +575,34 @@ USAGE [--environment ] [--to ] [--production] [--create-environment] [--force] [-o ] FLAGS - -c, --config= Location of the config file. Absolute path or relative to current working directory - (cwd) - -l=(debug|info|warn|error|none) [default: info] Level of logging messages. - -l, --log-level= [default: info] Level of logging messages. - -o=(columns|json|tsv|none) [default: columns] Format of command output. - -o, --output-format= Output the results in a different format - -p, --profile= Shorthand identifier for your profile. - -u, --username= A specific API key or account SID to be used for deployment. Uses fields in .env - otherwise - --build-sid= An existing Build SID to deploy to the new environment - --create-environment Creates environment if it couldn't find it. - --cwd= Sets the directory of your existing Serverless project. Defaults to current directory - --env= Path to .env file for environment variables that should be installed - --environment= [default: dev] The environment name (domain suffix) you want to use for your - deployment. Alternatively you can specify an environment SID starting with ZE. - --force Will run deployment in force mode. Can be dangerous. - --from= [Alias for "source-environment"] - --from-build= [Alias for "build-sid"] - --load-system-env Uses system environment variables as fallback for variables specified in your .env - file. Needs to be used with --env explicitly specified. - --password= A specific API secret or auth token for deployment. Uses fields from .env otherwise - --production Promote build to the production environment (no domain suffix). Overrides environment - flag - --service-sid= SID of the Twilio Serverless Service to deploy to - --silent Suppress output and logs. This is a shorthand for "-l none -o none". - --source-environment= SID or suffix of an existing environment you want to deploy from. - --to= [Alias for "environment"] + -c, --config= Location of the config file. Absolute path or relative to current working directory + (cwd) + -l=(debug|info|warn|error|none) [default: info] Level of logging messages. + -l, --log-level= [default: info] Level of logging messages. + -o=(columns|json|tsv|none) [default: columns] Format of command output. + -o, --output-format= Output the results in a different format + -p, --profile= Shorthand identifier for your profile. + -u, --username= A specific API key or account SID to be used for deployment. Uses fields in .env + otherwise + --build-sid= An existing Build SID to deploy to the new environment + --create-environment Creates environment if it couldn't find it. + --cwd= Sets the directory of your existing Serverless project. Defaults to current + directory + --env= Path to .env file for environment variables that should be installed + --environment= [default: dev] The environment name (domain suffix) you want to use for your + deployment. Alternatively you can specify an environment SID starting with ZE. + --force Will run deployment in force mode. Can be dangerous. + --from= [Alias for "source-environment"] + --from-build= [Alias for "build-sid"] + --load-system-env Uses system environment variables as fallback for variables specified in your .env + file. Needs to be used with --env explicitly specified. + --password= A specific API secret or auth token for deployment. Uses fields from .env otherwise + --production Promote build to the production environment (no domain suffix). Overrides + environment flag + --service-sid= SID of the Twilio Serverless Service to deploy to + --silent Suppress output and logs. This is a shorthand for "-l none -o none". + --source-environment= SID or suffix of an existing environment you want to deploy from. + --to= [Alias for "environment"] DESCRIPTION Promotes an existing deployment to a new environment @@ -608,7 +611,7 @@ ALIASES $ twilio serverless:activate ``` -_See code: [src/commands/serverless/promote.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.5/src/commands/serverless/promote.js)_ +_See code: [src/commands/serverless/promote.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.6/src/commands/serverless/promote.js)_ ## `twilio serverless:run [DIR]` @@ -624,24 +627,25 @@ ARGUMENTS DIR Root directory to serve local Functions/Assets from FLAGS - -c, --config= Location of the config file. Absolute path or relative to current working directory (cwd) - -f, --load-local-env Includes the local environment variables - -l, --log-level= [default: info] Level of logging messages. - -p, --port= (required) [default: 3000] Override default port of 3000 - --assets-folder= Specific folder name to be used for static assets - --cwd= Alternative way to define the directory to start the server in. Overrides the [dir] - argument passed. - --detailed-logs Toggles detailed request logging by showing request body and query params - --env= Path to .env file for environment variables that should be installed - --[no-]fork-process Disable forking function processes to emulate production environment - --functions-folder= Specific folder name to be used for static functions - --inspect= Enables Node.js debugging protocol - --inspect-brk= Enables Node.js debugging protocol, stops execution until debugger is attached - --legacy-mode Enables legacy mode, it will prefix your asset paths with /assets - --[no-]live Always serve from the current functions (no caching) - --[no-]logs Toggles request logging - --ngrok= Uses ngrok to create a public url. Pass a string to set the subdomain (requires a paid-for - ngrok account). + -c, --config= Location of the config file. Absolute path or relative to current working directory + (cwd) + -f, --load-local-env Includes the local environment variables + -l, --log-level= [default: info] Level of logging messages. + -p, --port= (required) [default: 3000] Override default port of 3000 + --assets-folder= Specific folder name to be used for static assets + --cwd= Alternative way to define the directory to start the server in. Overrides the [dir] + argument passed. + --detailed-logs Toggles detailed request logging by showing request body and query params + --env= Path to .env file for environment variables that should be installed + --[no-]fork-process Disable forking function processes to emulate production environment + --functions-folder= Specific folder name to be used for static functions + --inspect= Enables Node.js debugging protocol + --inspect-brk= Enables Node.js debugging protocol, stops execution until debugger is attached + --legacy-mode Enables legacy mode, it will prefix your asset paths with /assets + --[no-]live Always serve from the current functions (no caching) + --[no-]logs Toggles request logging + --ngrok= Uses ngrok to create a public url. Pass a string to set the subdomain (requires a + paid-for ngrok account). DESCRIPTION Starts local Twilio Functions development server @@ -665,24 +669,25 @@ ARGUMENTS DIR Root directory to serve local Functions/Assets from FLAGS - -c, --config= Location of the config file. Absolute path or relative to current working directory (cwd) - -f, --load-local-env Includes the local environment variables - -l, --log-level= [default: info] Level of logging messages. - -p, --port= (required) [default: 3000] Override default port of 3000 - --assets-folder= Specific folder name to be used for static assets - --cwd= Alternative way to define the directory to start the server in. Overrides the [dir] - argument passed. - --detailed-logs Toggles detailed request logging by showing request body and query params - --env= Path to .env file for environment variables that should be installed - --[no-]fork-process Disable forking function processes to emulate production environment - --functions-folder= Specific folder name to be used for static functions - --inspect= Enables Node.js debugging protocol - --inspect-brk= Enables Node.js debugging protocol, stops execution until debugger is attached - --legacy-mode Enables legacy mode, it will prefix your asset paths with /assets - --[no-]live Always serve from the current functions (no caching) - --[no-]logs Toggles request logging - --ngrok= Uses ngrok to create a public url. Pass a string to set the subdomain (requires a paid-for - ngrok account). + -c, --config= Location of the config file. Absolute path or relative to current working directory + (cwd) + -f, --load-local-env Includes the local environment variables + -l, --log-level= [default: info] Level of logging messages. + -p, --port= (required) [default: 3000] Override default port of 3000 + --assets-folder= Specific folder name to be used for static assets + --cwd= Alternative way to define the directory to start the server in. Overrides the [dir] + argument passed. + --detailed-logs Toggles detailed request logging by showing request body and query params + --env= Path to .env file for environment variables that should be installed + --[no-]fork-process Disable forking function processes to emulate production environment + --functions-folder= Specific folder name to be used for static functions + --inspect= Enables Node.js debugging protocol + --inspect-brk= Enables Node.js debugging protocol, stops execution until debugger is attached + --legacy-mode Enables legacy mode, it will prefix your asset paths with /assets + --[no-]live Always serve from the current functions (no caching) + --[no-]logs Toggles request logging + --ngrok= Uses ngrok to create a public url. Pass a string to set the subdomain (requires a + paid-for ngrok account). DESCRIPTION Starts local Twilio Functions development server @@ -692,7 +697,7 @@ ALIASES $ twilio serverless:run ``` -_See code: [src/commands/serverless/start.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.5/src/commands/serverless/start.js)_ +_See code: [src/commands/serverless/start.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.6/src/commands/serverless/start.js)_ ## Contributing diff --git a/packages/plugin-serverless/package.json b/packages/plugin-serverless/package.json index b1935b53..51032a32 100644 --- a/packages/plugin-serverless/package.json +++ b/packages/plugin-serverless/package.json @@ -1,7 +1,7 @@ { "name": "@twilio-labs/plugin-serverless", "description": "Develop and deploy Twilio Serverless Functions", - "version": "3.1.5", + "version": "3.1.6", "author": "Twilio Inc. (https://www.twilio.com/labs)", "contributors": [ "Dominik Kundel " @@ -10,10 +10,10 @@ "dependencies": { "@oclif/core": "^1.14.2", "@twilio/cli-core": "^7.0.0", - "create-twilio-function": "^3.4.4", + "create-twilio-function": "^3.4.5", "lodash.camelcase": "^4.3.0", "lodash.kebabcase": "^4.1.1", - "twilio-run": "^3.5.4" + "twilio-run": "^4.0.0" }, "devDependencies": { "@oclif/plugin-help": "^5.1.12", diff --git a/packages/runtime-handler/CHANGELOG.md b/packages/runtime-handler/CHANGELOG.md index b4deeafc..b68b54f7 100644 --- a/packages/runtime-handler/CHANGELOG.md +++ b/packages/runtime-handler/CHANGELOG.md @@ -1,5 +1,16 @@ # Change Log +## 2.0.0 + +### Major Changes + +- [#509](https://github.com/twilio-labs/serverless-toolkit/pull/509) [`6d65bea828338a6dd44cb357c324d9b63e74e081`](https://github.com/twilio-labs/serverless-toolkit/commit/6d65bea828338a6dd44cb357c324d9b63e74e081) Thanks [@makserik](https://github.com/makserik)! - Twilio SDK from 3.x to 4.23.0. Required Node version bumped to 18 min. + +### Patch Changes + +- Updated dependencies [[`6d65bea828338a6dd44cb357c324d9b63e74e081`](https://github.com/twilio-labs/serverless-toolkit/commit/6d65bea828338a6dd44cb357c324d9b63e74e081)]: + - @twilio-labs/serverless-runtime-types@4.0.0 + ## 1.3.1 ### Patch Changes diff --git a/packages/runtime-handler/package.json b/packages/runtime-handler/package.json index 9e3668a4..67f21e9a 100644 --- a/packages/runtime-handler/package.json +++ b/packages/runtime-handler/package.json @@ -1,6 +1,6 @@ { "name": "@twilio/runtime-handler", - "version": "1.3.1", + "version": "2.0.0", "description": "Stub runtime for Twilio Functions", "keywords": [ "twilio", @@ -57,7 +57,7 @@ "url": "https://github.com/twilio-labs/serverless-toolkit/issues" }, "dependencies": { - "@twilio-labs/serverless-runtime-types": "^3.0.0", + "@twilio-labs/serverless-runtime-types": "^4.0.0", "@types/express": "4.17.7", "chalk": "^4.1.1", "common-tags": "^1.8.0", diff --git a/packages/serverless-runtime-types/CHANGELOG.md b/packages/serverless-runtime-types/CHANGELOG.md index 7c8755ac..13ad979a 100644 --- a/packages/serverless-runtime-types/CHANGELOG.md +++ b/packages/serverless-runtime-types/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 4.0.0 + +### Major Changes + +- [#509](https://github.com/twilio-labs/serverless-toolkit/pull/509) [`6d65bea828338a6dd44cb357c324d9b63e74e081`](https://github.com/twilio-labs/serverless-toolkit/commit/6d65bea828338a6dd44cb357c324d9b63e74e081) Thanks [@makserik](https://github.com/makserik)! - Twilio SDK from 3.x to 4.23.0. Required Node version bumped to 18 min. + ## 3.0.0 ### Major Changes diff --git a/packages/serverless-runtime-types/package.json b/packages/serverless-runtime-types/package.json index 72c94185..2f525732 100644 --- a/packages/serverless-runtime-types/package.json +++ b/packages/serverless-runtime-types/package.json @@ -1,6 +1,6 @@ { "name": "@twilio-labs/serverless-runtime-types", - "version": "3.0.0", + "version": "4.0.0", "description": "TypeScript definitions to define globals for the Twilio Serverless runtime", "main": "index.js", "types": "index.d.ts", diff --git a/packages/twilio-run/CHANGELOG.md b/packages/twilio-run/CHANGELOG.md index 5414f878..e4a62429 100644 --- a/packages/twilio-run/CHANGELOG.md +++ b/packages/twilio-run/CHANGELOG.md @@ -1,5 +1,18 @@ # Change Log +## 4.0.0 + +### Major Changes + +- [#509](https://github.com/twilio-labs/serverless-toolkit/pull/509) [`6d65bea828338a6dd44cb357c324d9b63e74e081`](https://github.com/twilio-labs/serverless-toolkit/commit/6d65bea828338a6dd44cb357c324d9b63e74e081) Thanks [@makserik](https://github.com/makserik)! - Twilio SDK from 3.x to 4.23.0. Required Node version bumped to 18 min. + +### Patch Changes + +- [#510](https://github.com/twilio-labs/serverless-toolkit/pull/510) [`feb9686fa6bfa5b49e634e414ff56a61c61cbe89`](https://github.com/twilio-labs/serverless-toolkit/commit/feb9686fa6bfa5b49e634e414ff56a61c61cbe89) Thanks [@makserik](https://github.com/makserik)! - FRIDGE-814 fix chalk + +- Updated dependencies [[`6d65bea828338a6dd44cb357c324d9b63e74e081`](https://github.com/twilio-labs/serverless-toolkit/commit/6d65bea828338a6dd44cb357c324d9b63e74e081)]: + - @twilio-labs/serverless-runtime-types@4.0.0 + ## 3.5.4 ### Patch Changes diff --git a/packages/twilio-run/package.json b/packages/twilio-run/package.json index cb1ea1c1..ef13b9ee 100644 --- a/packages/twilio-run/package.json +++ b/packages/twilio-run/package.json @@ -1,6 +1,6 @@ { "name": "twilio-run", - "version": "3.5.4", + "version": "4.0.0", "bin": { "twilio-functions": "./bin/twilio-run.js", "twilio-run": "./bin/twilio-run.js", @@ -35,7 +35,7 @@ "license": "MIT", "dependencies": { "@twilio-labs/serverless-api": "^5.5.1", - "@twilio-labs/serverless-runtime-types": "3.0.0", + "@twilio-labs/serverless-runtime-types": "4.0.0", "@types/express": "4.17.7", "@types/inquirer": "^6.0.3", "@types/is-ci": "^2.0.0", @@ -86,7 +86,7 @@ "ngrok": "^3.3.0" }, "devDependencies": { - "@twilio/runtime-handler": "^1.3.0", + "@twilio/runtime-handler": "^2.0.0", "@types/cheerio": "^0.22.12", "@types/common-tags": "^1.8.0", "@types/debug": "^4.1.4",