From 37877857d9bb192715dc06eb14a1514c2b8baf47 Mon Sep 17 00:00:00 2001 From: Toby <135017196+colossal-toby@users.noreply.github.com> Date: Fri, 8 Dec 2023 00:55:31 +1100 Subject: [PATCH 01/23] Fix CI and twilio-run build (#486) * Remove package @types/wrap-ansi * Declare module for wrap-ansi * Create kind-fireants-prove.md --------- Co-authored-by: Andre Lars --- .changeset/kind-fireants-prove.md | 10 ++++++++++ packages/twilio-run/package.json | 1 - packages/twilio-run/src/types.d.ts | 4 +++- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 .changeset/kind-fireants-prove.md diff --git a/.changeset/kind-fireants-prove.md b/.changeset/kind-fireants-prove.md new file mode 100644 index 00000000..40c9722d --- /dev/null +++ b/.changeset/kind-fireants-prove.md @@ -0,0 +1,10 @@ +--- +"@twilio-labs/serverless-api": patch +"twilio-run": patch +"create-twilio-function": patch +"@twilio-labs/plugin-serverless": patch +--- + +FRIDGE-9: Update toolkit to default to node18 + +Fix CI and twilio-run build diff --git a/packages/twilio-run/package.json b/packages/twilio-run/package.json index 2ced79c0..841ea8c5 100644 --- a/packages/twilio-run/package.json +++ b/packages/twilio-run/package.json @@ -41,7 +41,6 @@ "@types/is-ci": "^2.0.0", "@types/qs": "^6.9.4", "@types/semver": "^7.3.6", - "@types/wrap-ansi": "^8.0.1", "body-parser": "^1.18.3", "boxen": "^5.1.2", "chalk": "^2.4.2", diff --git a/packages/twilio-run/src/types.d.ts b/packages/twilio-run/src/types.d.ts index e1f32eec..31a761d4 100644 --- a/packages/twilio-run/src/types.d.ts +++ b/packages/twilio-run/src/types.d.ts @@ -1,3 +1,5 @@ +declare module 'wrap-ansi'; + declare module 'columnify' { function columnify(obj: any, config: any): string; export = columnify; @@ -64,7 +66,7 @@ declare module 'chalk' { /** Return a new Chalk instance. */ - new (options?: Options): Chalk; + new(options?: Options): Chalk; } /** From 83b488cfd15e11570f5757309517396cfe289553 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 7 Dec 2023 16:08:52 +0200 Subject: [PATCH 02/23] Version Packages (#492) * 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/kind-fireants-prove.md | 10 - packages/create-twilio-function/CHANGELOG.md | 166 ++----- packages/create-twilio-function/package.json | 7 +- packages/plugin-assets/README.md | 2 +- packages/plugin-serverless/CHANGELOG.md | 12 + packages/plugin-serverless/README.md | 28 +- packages/plugin-serverless/package.json | 6 +- packages/serverless-api/CHANGELOG.md | 480 ++++++------------- packages/serverless-api/package.json | 2 +- packages/twilio-run/CHANGELOG.md | 11 + packages/twilio-run/package.json | 4 +- 11 files changed, 229 insertions(+), 499 deletions(-) delete mode 100644 .changeset/kind-fireants-prove.md diff --git a/.changeset/kind-fireants-prove.md b/.changeset/kind-fireants-prove.md deleted file mode 100644 index 40c9722d..00000000 --- a/.changeset/kind-fireants-prove.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@twilio-labs/serverless-api": patch -"twilio-run": patch -"create-twilio-function": patch -"@twilio-labs/plugin-serverless": patch ---- - -FRIDGE-9: Update toolkit to default to node18 - -Fix CI and twilio-run build diff --git a/packages/create-twilio-function/CHANGELOG.md b/packages/create-twilio-function/CHANGELOG.md index ed9d27d1..16ed578d 100644 --- a/packages/create-twilio-function/CHANGELOG.md +++ b/packages/create-twilio-function/CHANGELOG.md @@ -1,282 +1,170 @@ # Change Log -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -## [3.4.2](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.4.0...create-twilio-function@3.4.2) (2022-12-01) +## 3.4.3 -**Note:** Version bump only for package create-twilio-function +### Patch Changes +- [#486](https://github.com/twilio-labs/serverless-toolkit/pull/486) [`37877857d9bb192715dc06eb14a1514c2b8baf47`](https://github.com/twilio-labs/serverless-toolkit/commit/37877857d9bb192715dc06eb14a1514c2b8baf47) Thanks [@colossal-toby](https://github.com/colossal-toby)! - FRIDGE-9: Update toolkit to default to node18 + Fix CI and twilio-run build +- Updated dependencies [[`37877857d9bb192715dc06eb14a1514c2b8baf47`](https://github.com/twilio-labs/serverless-toolkit/commit/37877857d9bb192715dc06eb14a1514c2b8baf47)]: + - twilio-run@3.5.4 +All notable changes to this project will be documented in this file. +See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [3.4.1](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.4.0...create-twilio-function@3.4.1) (2022-11-30) +## [3.4.2](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.4.0...create-twilio-function@3.4.2) (2022-12-01) **Note:** Version bump only for package create-twilio-function +## [3.4.1](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.4.0...create-twilio-function@3.4.1) (2022-11-30) - - +**Note:** Version bump only for package create-twilio-function # [3.4.0](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.3.6...create-twilio-function@3.4.0) (2022-11-30) - ### Features -* Add Node16 support as default ([#435](https://github.com/twilio-labs/serverless-toolkit/issues/435)) ([b95f16b](https://github.com/twilio-labs/serverless-toolkit/commit/b95f16bcdac3909b5ee74e5e24f447761f2b9894)) - - - - +- Add Node16 support as default ([#435](https://github.com/twilio-labs/serverless-toolkit/issues/435)) ([b95f16b](https://github.com/twilio-labs/serverless-toolkit/commit/b95f16bcdac3909b5ee74e5e24f447761f2b9894)) ## [3.3.6](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.3.5...create-twilio-function@3.3.6) (2022-10-11) **Note:** Version bump only for package create-twilio-function - - - - ## [3.3.5](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.3.4...create-twilio-function@3.3.5) (2022-08-31) - ### Bug Fixes -* **create-twilio-function:** handle rimraf failing ([#400](https://github.com/twilio-labs/serverless-toolkit/issues/400)) ([b15a1cb](https://github.com/twilio-labs/serverless-toolkit/commit/b15a1cb3c11d3b24e241aaa96b26681e4a689bd6)) - - - - +- **create-twilio-function:** handle rimraf failing ([#400](https://github.com/twilio-labs/serverless-toolkit/issues/400)) ([b15a1cb](https://github.com/twilio-labs/serverless-toolkit/commit/b15a1cb3c11d3b24e241aaa96b26681e4a689bd6)) ## [3.3.4](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.3.3...create-twilio-function@3.3.4) (2022-08-08) **Note:** Version bump only for package create-twilio-function - - - - ## [3.3.3](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.3.3-beta.0...create-twilio-function@3.3.3) (2022-04-27) **Note:** Version bump only for package create-twilio-function - - - - ## [3.3.3-beta.0](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.3.2...create-twilio-function@3.3.3-beta.0) (2022-04-27) **Note:** Version bump only for package create-twilio-function - - - - ## [3.3.2](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.3.1...create-twilio-function@3.3.2) (2022-01-19) **Note:** Version bump only for package create-twilio-function - - - - # [3.3.1](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.3.0...create-twilio-function@3.3.1) (2021-11-03) **Note:** Version bump only for package create-twilio-function - - # [3.3.0](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.2.1...create-twilio-function@3.3.0) (2021-10-15) - ### Bug Fixes -* **create-twilio-function:** adds rootDir to generated tsconfig.json ([#362](https://github.com/twilio-labs/serverless-toolkit/issues/362)) ([86de2ae](https://github.com/twilio-labs/serverless-toolkit/commit/86de2ae8f4b9718a9eb59fc0f8afe347d6552ba4)) - +- **create-twilio-function:** adds rootDir to generated tsconfig.json ([#362](https://github.com/twilio-labs/serverless-toolkit/issues/362)) ([86de2ae](https://github.com/twilio-labs/serverless-toolkit/commit/86de2ae8f4b9718a9eb59fc0f8afe347d6552ba4)) ### Features -* add support for request headers & cookies ([#373](https://github.com/twilio-labs/serverless-toolkit/issues/373)) ([989307d](https://github.com/twilio-labs/serverless-toolkit/commit/989307d0e73b06056ecb571958fbab39b38bfea2)), closes [#293](https://github.com/twilio-labs/serverless-toolkit/issues/293) [#296](https://github.com/twilio-labs/serverless-toolkit/issues/296) [#297](https://github.com/twilio-labs/serverless-toolkit/issues/297) [#314](https://github.com/twilio-labs/serverless-toolkit/issues/314) [#332](https://github.com/twilio-labs/serverless-toolkit/issues/332) - - - - - - +- add support for request headers & cookies ([#373](https://github.com/twilio-labs/serverless-toolkit/issues/373)) ([989307d](https://github.com/twilio-labs/serverless-toolkit/commit/989307d0e73b06056ecb571958fbab39b38bfea2)), closes [#293](https://github.com/twilio-labs/serverless-toolkit/issues/293) [#296](https://github.com/twilio-labs/serverless-toolkit/issues/296) [#297](https://github.com/twilio-labs/serverless-toolkit/issues/297) [#314](https://github.com/twilio-labs/serverless-toolkit/issues/314) [#332](https://github.com/twilio-labs/serverless-toolkit/issues/332) ## [3.2.2-beta.0](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.2.1...create-twilio-function@3.2.2-beta.0) (2021-09-25) **Note:** Version bump only for package create-twilio-function - - ## [3.2.1](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.2.0...create-twilio-function@3.2.1) (2021-07-28) - ### Bug Fixes -* **create-twilio-function:** place runtime-handler in dependencies ([#331](https://github.com/twilio-labs/serverless-toolkit/issues/331)) ([ba84396](https://github.com/twilio-labs/serverless-toolkit/commit/ba843964ba11a3cf5b687f6c1c40787b20d3b492)) - - - - +- **create-twilio-function:** place runtime-handler in dependencies ([#331](https://github.com/twilio-labs/serverless-toolkit/issues/331)) ([ba84396](https://github.com/twilio-labs/serverless-toolkit/commit/ba843964ba11a3cf5b687f6c1c40787b20d3b492)) # [3.2.0](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.1.2...create-twilio-function@3.2.0) (2021-07-19) - ### Features -* **create-twilio-function:** add deployinfo file to gitignore ([#320](https://github.com/twilio-labs/serverless-toolkit/issues/320)) ([5ca27b6](https://github.com/twilio-labs/serverless-toolkit/commit/5ca27b66f91249566893fd1816b03b421414d055)) -* **create-twilio-function:** add runtime-handler to js projects ([#321](https://github.com/twilio-labs/serverless-toolkit/issues/321)) ([6b5bcf4](https://github.com/twilio-labs/serverless-toolkit/commit/6b5bcf41a62f84b39bcdd6868eb34634fde8dda0)) - - - - +- **create-twilio-function:** add deployinfo file to gitignore ([#320](https://github.com/twilio-labs/serverless-toolkit/issues/320)) ([5ca27b6](https://github.com/twilio-labs/serverless-toolkit/commit/5ca27b66f91249566893fd1816b03b421414d055)) +- **create-twilio-function:** add runtime-handler to js projects ([#321](https://github.com/twilio-labs/serverless-toolkit/issues/321)) ([6b5bcf4](https://github.com/twilio-labs/serverless-toolkit/commit/6b5bcf41a62f84b39bcdd6868eb34634fde8dda0)) ## [3.1.2](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.1.1...create-twilio-function@3.1.2) (2021-07-14) - **Note:** Version bump only for package create-twilio-function - ## [3.1.2-rc.0](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.1.1...create-twilio-function@3.1.2-rc.0) (2021-07-14) - ## [3.1.1](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.1.0...create-twilio-function@3.1.1) (2021-06-30) **Note:** Version bump only for package create-twilio-function - - - - # [3.1.0](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.0.1...create-twilio-function@3.1.0) (2021-06-21) - ### Features -* extract runtime-handler and lazyLoading ([#252](https://github.com/twilio-labs/serverless-toolkit/issues/252)) ([#271](https://github.com/twilio-labs/serverless-toolkit/issues/271)) ([0dde2a5](https://github.com/twilio-labs/serverless-toolkit/commit/0dde2a5a74035700e4ef6cf4b1c1189c78e2ff59)) - - - - +- extract runtime-handler and lazyLoading ([#252](https://github.com/twilio-labs/serverless-toolkit/issues/252)) ([#271](https://github.com/twilio-labs/serverless-toolkit/issues/271)) ([0dde2a5](https://github.com/twilio-labs/serverless-toolkit/commit/0dde2a5a74035700e4ef6cf4b1c1189c78e2ff59)) ## [3.0.2-rc.0](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.0.1...create-twilio-function@3.0.2-rc.0) (2021-05-24) **Note:** Version bump only for package create-twilio-function - - - - ## [3.0.1](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.0.0...create-twilio-function@3.0.1) (2021-05-20) **Note:** Version bump only for package create-twilio-function - - - - # [3.0.0](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.0.0-beta.7...create-twilio-function@3.0.0) (2021-05-19) **Note:** Version bump only for package create-twilio-function - - - - # [3.0.0-beta.7](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.0.0-beta.6...create-twilio-function@3.0.0-beta.7) (2021-05-17) - ### Bug Fixes -* **create-twilio-function:** use latest twilio-run version ([#263](https://github.com/twilio-labs/serverless-toolkit/issues/263)) ([1c91668](https://github.com/twilio-labs/serverless-toolkit/commit/1c9166858ea2a2bab978dc37528f4f476f21a677)), closes [#259](https://github.com/twilio-labs/serverless-toolkit/issues/259) - +- **create-twilio-function:** use latest twilio-run version ([#263](https://github.com/twilio-labs/serverless-toolkit/issues/263)) ([1c91668](https://github.com/twilio-labs/serverless-toolkit/commit/1c9166858ea2a2bab978dc37528f4f476f21a677)), closes [#259](https://github.com/twilio-labs/serverless-toolkit/issues/259) ### Features -* **create-twilio-function:** generate default config file ([a8b5d1e](https://github.com/twilio-labs/serverless-toolkit/commit/a8b5d1ee0d4111521698c39537892c106212d68b)), closes [#244](https://github.com/twilio-labs/serverless-toolkit/issues/244) - - - - +- **create-twilio-function:** generate default config file ([a8b5d1e](https://github.com/twilio-labs/serverless-toolkit/commit/a8b5d1ee0d4111521698c39537892c106212d68b)), closes [#244](https://github.com/twilio-labs/serverless-toolkit/issues/244) # [3.0.0-beta.6](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.0.0-beta.5...create-twilio-function@3.0.0-beta.6) (2021-05-13) **Note:** Version bump only for package create-twilio-function - - - - # [3.0.0-beta.5](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.0.0-beta.4...create-twilio-function@3.0.0-beta.5) (2021-05-01) **Note:** Version bump only for package create-twilio-function - - - - # [3.0.0-beta.4](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.0.0-beta.3...create-twilio-function@3.0.0-beta.4) (2021-04-30) - ### chore -* remove Node.js 10 support ([#253](https://github.com/twilio-labs/serverless-toolkit/issues/253)) ([f6192fa](https://github.com/twilio-labs/serverless-toolkit/commit/f6192fad188a787dfbb7d1ed6a32f5d2baa4570c)) - +- remove Node.js 10 support ([#253](https://github.com/twilio-labs/serverless-toolkit/issues/253)) ([f6192fa](https://github.com/twilio-labs/serverless-toolkit/commit/f6192fad188a787dfbb7d1ed6a32f5d2baa4570c)) ### BREAKING CHANGES -* Installing the new version on Node.js 10 will result in an error - - - - +- Installing the new version on Node.js 10 will result in an error # [3.0.0-beta.3](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.0.0-beta.2...create-twilio-function@3.0.0-beta.3) (2021-04-21) **Note:** Version bump only for package create-twilio-function - - - - # [3.0.0-beta.2](https://github.com/twilio-labs/serverless-toolkit/compare/create-twilio-function@3.0.0-beta.1...create-twilio-function@3.0.0-beta.2) (2021-04-21) **Note:** Version bump only for package create-twilio-function - - - - # 3.0.0-beta.1 (2021-04-21) - ### Bug Fixes -* **create-twilio-function:** add early exit for invalid options ([3338e3d](https://github.com/twilio-labs/serverless-toolkit/commit/3338e3daff2b6d7a0931da5064d5088deb92d76d)) - +- **create-twilio-function:** add early exit for invalid options ([3338e3d](https://github.com/twilio-labs/serverless-toolkit/commit/3338e3daff2b6d7a0931da5064d5088deb92d76d)) ### Features -* **create-twilio-function:** adds twilio to default package.json ([#217](https://github.com/twilio-labs/serverless-toolkit/issues/217)) ([6ff8225](https://github.com/twilio-labs/serverless-toolkit/commit/6ff822586abd5c7cb486d03f482733a1a5b36039)) -* **create-twilio-function:** update default Node.js version ([#231](https://github.com/twilio-labs/serverless-toolkit/issues/231)) ([064f8a5](https://github.com/twilio-labs/serverless-toolkit/commit/064f8a50e1bed0521f7845898ec604d7ad47837a)) - - - - +- **create-twilio-function:** adds twilio to default package.json ([#217](https://github.com/twilio-labs/serverless-toolkit/issues/217)) ([6ff8225](https://github.com/twilio-labs/serverless-toolkit/commit/6ff822586abd5c7cb486d03f482733a1a5b36039)) +- **create-twilio-function:** update default Node.js version ([#231](https://github.com/twilio-labs/serverless-toolkit/issues/231)) ([064f8a5](https://github.com/twilio-labs/serverless-toolkit/commit/064f8a50e1bed0521f7845898ec604d7ad47837a)) # 3.0.0-beta.0 (2020-08-27) - ### Bug Fixes -* **create-twilio-function:** add early exit for invalid options ([3338e3d](https://github.com/twilio-labs/serverless-toolkit/commit/3338e3daff2b6d7a0931da5064d5088deb92d76d)) - - - - +- **create-twilio-function:** add early exit for invalid options ([3338e3d](https://github.com/twilio-labs/serverless-toolkit/commit/3338e3daff2b6d7a0931da5064d5088deb92d76d)) # Changelog for `create-twilio-function` diff --git a/packages/create-twilio-function/package.json b/packages/create-twilio-function/package.json index 18e21ae4..6b181d6f 100644 --- a/packages/create-twilio-function/package.json +++ b/packages/create-twilio-function/package.json @@ -1,11 +1,10 @@ { "name": "create-twilio-function", - "version": "3.4.2", + "version": "3.4.3", "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", - "scripts": { - }, + "scripts": {}, "keywords": [ "twilio", "twilio-functions", @@ -37,7 +36,7 @@ "pkg-install": "^1.0.0", "rimraf": "^2.6.3", "terminal-link": "^2.0.0", - "twilio-run": "^3.5.2", + "twilio-run": "^3.5.4", "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 237c0f9c..40ea7888 100644 --- a/packages/plugin-assets/README.md +++ b/packages/plugin-assets/README.md @@ -104,7 +104,7 @@ Upload a new asset to the Assets service ``` USAGE - $ twilio assets:upload [FILE] [-l debug|info|warn|error|none] [-o columns|json|tsv|none] [--silent] [-p ] + $ twilio assets:upload FILE [-l debug|info|warn|error|none] [-o columns|json|tsv|none] [--silent] [-p ] [--protected] [--properties ] ARGUMENTS diff --git a/packages/plugin-serverless/CHANGELOG.md b/packages/plugin-serverless/CHANGELOG.md index 4b7545c6..bca51910 100644 --- a/packages/plugin-serverless/CHANGELOG.md +++ b/packages/plugin-serverless/CHANGELOG.md @@ -1,5 +1,17 @@ # Change Log +## 3.1.4 + +### Patch Changes + +- [#486](https://github.com/twilio-labs/serverless-toolkit/pull/486) [`37877857d9bb192715dc06eb14a1514c2b8baf47`](https://github.com/twilio-labs/serverless-toolkit/commit/37877857d9bb192715dc06eb14a1514c2b8baf47) Thanks [@colossal-toby](https://github.com/colossal-toby)! - FRIDGE-9: Update toolkit to default to node18 + + Fix CI and twilio-run build + +- Updated dependencies [[`37877857d9bb192715dc06eb14a1514c2b8baf47`](https://github.com/twilio-labs/serverless-toolkit/commit/37877857d9bb192715dc06eb14a1514c2b8baf47)]: + - twilio-run@3.5.4 + - create-twilio-function@3.4.3 + ## 3.1.3 ### Patch Changes diff --git a/packages/plugin-serverless/README.md b/packages/plugin-serverless/README.md index 27f33e17..4563c5df 100644 --- a/packages/plugin-serverless/README.md +++ b/packages/plugin-serverless/README.md @@ -166,7 +166,7 @@ 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.3/src/commands/serverless/deploy.js)_ +_See code: [src/commands/serverless/deploy.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.4/src/commands/serverless/deploy.js)_ ## `twilio serverless:dev [DIR]` @@ -246,7 +246,7 @@ 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.3/src/commands/serverless/env/get.js)_ +_See code: [src/commands/serverless/env/get.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.4/src/commands/serverless/env/get.js)_ ## `twilio serverless:env:import` @@ -284,7 +284,7 @@ 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.3/src/commands/serverless/env/import.js)_ +_See code: [src/commands/serverless/env/import.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.4/src/commands/serverless/env/import.js)_ ## `twilio serverless:env:list` @@ -324,7 +324,7 @@ 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.3/src/commands/serverless/env/list.js)_ +_See code: [src/commands/serverless/env/list.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.4/src/commands/serverless/env/list.js)_ ## `twilio serverless:env:set` @@ -364,7 +364,7 @@ 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.3/src/commands/serverless/env/set.js)_ +_See code: [src/commands/serverless/env/set.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.4/src/commands/serverless/env/set.js)_ ## `twilio serverless:env:unset` @@ -403,7 +403,7 @@ 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.3/src/commands/serverless/env/unset.js)_ +_See code: [src/commands/serverless/env/unset.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.4/src/commands/serverless/env/unset.js)_ ## `twilio serverless:init NAME` @@ -411,7 +411,7 @@ Creates a new Twilio Function project ``` USAGE - $ twilio serverless:init [NAME] [-l debug|info|warn|error|none] [-o columns|json|tsv|none] [--silent] [-p ] + $ twilio serverless:init NAME [-l debug|info|warn|error|none] [-o columns|json|tsv|none] [--silent] [-p ] [-a ] [-t ] [--skip-credentials] [--import-credentials] [--template ] [--empty] [--typescript] ARGUMENTS @@ -436,7 +436,7 @@ DESCRIPTION Creates a new Twilio Function project ``` -_See code: [src/commands/serverless/init.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.3/src/commands/serverless/init.js)_ +_See code: [src/commands/serverless/init.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.4/src/commands/serverless/init.js)_ ## `twilio serverless:list [TYPES]` @@ -478,7 +478,7 @@ 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.3/src/commands/serverless/list.js)_ +_See code: [src/commands/serverless/list.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.4/src/commands/serverless/list.js)_ ## `twilio serverless:list-templates` @@ -495,7 +495,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.3/src/commands/serverless/list-templates.js)_ +_See code: [src/commands/serverless/list-templates.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.4/src/commands/serverless/list-templates.js)_ ## `twilio serverless:logs` @@ -535,7 +535,7 @@ 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.3/src/commands/serverless/logs.js)_ +_See code: [src/commands/serverless/logs.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.4/src/commands/serverless/logs.js)_ ## `twilio serverless:new [NAMESPACE]` @@ -559,7 +559,7 @@ 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.3/src/commands/serverless/new.js)_ +_See code: [src/commands/serverless/new.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.4/src/commands/serverless/new.js)_ ## `twilio serverless:promote` @@ -608,7 +608,7 @@ ALIASES $ twilio serverless:activate ``` -_See code: [src/commands/serverless/promote.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.3/src/commands/serverless/promote.js)_ +_See code: [src/commands/serverless/promote.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.4/src/commands/serverless/promote.js)_ ## `twilio serverless:run [DIR]` @@ -692,7 +692,7 @@ ALIASES $ twilio serverless:run ``` -_See code: [src/commands/serverless/start.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.3/src/commands/serverless/start.js)_ +_See code: [src/commands/serverless/start.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.4/src/commands/serverless/start.js)_ ## Contributing diff --git a/packages/plugin-serverless/package.json b/packages/plugin-serverless/package.json index 01936529..11eb5b5a 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.3", + "version": "3.1.4", "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.2", + "create-twilio-function": "^3.4.3", "lodash.camelcase": "^4.3.0", "lodash.kebabcase": "^4.1.1", - "twilio-run": "^3.5.3" + "twilio-run": "^3.5.4" }, "devDependencies": { "@oclif/plugin-help": "^5.1.12", diff --git a/packages/serverless-api/CHANGELOG.md b/packages/serverless-api/CHANGELOG.md index 3c3cc635..b84d31bf 100644 --- a/packages/serverless-api/CHANGELOG.md +++ b/packages/serverless-api/CHANGELOG.md @@ -1,351 +1,245 @@ # Change Log -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -# [5.5.0](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-api@5.4.4...@twilio-labs/serverless-api@5.5.0) (2022-11-30) +## 5.5.1 +### Patch Changes -### Features +- [#486](https://github.com/twilio-labs/serverless-toolkit/pull/486) [`37877857d9bb192715dc06eb14a1514c2b8baf47`](https://github.com/twilio-labs/serverless-toolkit/commit/37877857d9bb192715dc06eb14a1514c2b8baf47) Thanks [@colossal-toby](https://github.com/colossal-toby)! - FRIDGE-9: Update toolkit to default to node18 -* Add Node16 support as default ([#435](https://github.com/twilio-labs/serverless-toolkit/issues/435)) ([b95f16b](https://github.com/twilio-labs/serverless-toolkit/commit/b95f16bcdac3909b5ee74e5e24f447761f2b9894)) -* **packages/twilio-run:** regionalize toolkit config and api ([#433](https://github.com/twilio-labs/serverless-toolkit/issues/433)) ([30d5bdb](https://github.com/twilio-labs/serverless-toolkit/commit/30d5bdbe0e8a08b62406af3500ae8bd2d215df1e)) + Fix CI and twilio-run build +All notable changes to this project will be documented in this file. +See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.5.0](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-api@5.4.4...@twilio-labs/serverless-api@5.5.0) (2022-11-30) +### Features +- Add Node16 support as default ([#435](https://github.com/twilio-labs/serverless-toolkit/issues/435)) ([b95f16b](https://github.com/twilio-labs/serverless-toolkit/commit/b95f16bcdac3909b5ee74e5e24f447761f2b9894)) +- **packages/twilio-run:** regionalize toolkit config and api ([#433](https://github.com/twilio-labs/serverless-toolkit/issues/433)) ([30d5bdb](https://github.com/twilio-labs/serverless-toolkit/commit/30d5bdbe0e8a08b62406af3500ae8bd2d215df1e)) ## [5.4.4](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-api@5.4.3...@twilio-labs/serverless-api@5.4.4) (2022-08-31) - ### Bug Fixes -* fileExists should not require write access by default ([#407](https://github.com/twilio-labs/serverless-toolkit/issues/407)) ([e95e726](https://github.com/twilio-labs/serverless-toolkit/commit/e95e7264f91fe56e7bede89c8c628efb2013e60b)) - - - - +- fileExists should not require write access by default ([#407](https://github.com/twilio-labs/serverless-toolkit/issues/407)) ([e95e726](https://github.com/twilio-labs/serverless-toolkit/commit/e95e7264f91fe56e7bede89c8c628efb2013e60b)) ## [5.4.3](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-api@5.4.2...@twilio-labs/serverless-api@5.4.3) (2022-08-08) - ### Bug Fixes -* **serverless-api:** change file-type package usage ([970ebbd](https://github.com/twilio-labs/serverless-toolkit/commit/970ebbdfa7ee961efbd1ca9cabd6055c43588c28)) - - - - +- **serverless-api:** change file-type package usage ([970ebbd](https://github.com/twilio-labs/serverless-toolkit/commit/970ebbdfa7ee961efbd1ca9cabd6055c43588c28)) ## [5.4.2](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-api@5.4.2-beta.0...@twilio-labs/serverless-api@5.4.2) (2022-04-27) **Note:** Version bump only for package @twilio-labs/serverless-api - - - - ## [5.4.2-beta.0](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-api@5.4.1...@twilio-labs/serverless-api@5.4.2-beta.0) (2022-04-27) **Note:** Version bump only for package @twilio-labs/serverless-api - - - - ## [5.4.1](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-api@5.4.0...@twilio-labs/serverless-api@5.4.1) (2022-01-19) **Note:** Version bump only for package @twilio-labs/serverless-api - - - - # [5.4.0](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-api@5.3.0...@twilio-labs/serverless-api@5.4.0) (2021-11-03) - ### Features -* update node runtime versions available ([#376](https://github.com/twilio-labs/serverless-toolkit/issues/376)) ([e1602db](https://github.com/twilio-labs/serverless-toolkit/commit/e1602db826b5668fb4675036814c2b060680ac50)) - - - - +- update node runtime versions available ([#376](https://github.com/twilio-labs/serverless-toolkit/issues/376)) ([e1602db](https://github.com/twilio-labs/serverless-toolkit/commit/e1602db826b5668fb4675036814c2b060680ac50)) # [5.3.0](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-api@5.2.1...@twilio-labs/serverless-api@5.3.0) (2021-10-15) - ### Features -* **serverless-api:** add support for env SIDs in deploy ([7702dca](https://github.com/twilio-labs/serverless-toolkit/commit/7702dca915d515e558514d6327b0ed4f2c97d7d9)), closes [#340](https://github.com/twilio-labs/serverless-toolkit/issues/340) - - - - +- **serverless-api:** add support for env SIDs in deploy ([7702dca](https://github.com/twilio-labs/serverless-toolkit/commit/7702dca915d515e558514d6327b0ed4f2c97d7d9)), closes [#340](https://github.com/twilio-labs/serverless-toolkit/issues/340) # [5.3.0-beta.0](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-api@5.2.1...@twilio-labs/serverless-api@5.3.0-beta.0) (2021-09-25) - ### Features -* **serverless-api:** add support for env SIDs in deploy ([cf9ee17](https://github.com/twilio-labs/serverless-toolkit/commit/cf9ee1733a46260c29429435c5001804b21d1a0f)), closes [#340](https://github.com/twilio-labs/serverless-toolkit/issues/340) - - - - +- **serverless-api:** add support for env SIDs in deploy ([cf9ee17](https://github.com/twilio-labs/serverless-toolkit/commit/cf9ee1733a46260c29429435c5001804b21d1a0f)), closes [#340](https://github.com/twilio-labs/serverless-toolkit/issues/340) ## [5.2.1](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-api@5.2.0...@twilio-labs/serverless-api@5.2.1) (2021-07-28) - ### Bug Fixes -* packages/serverless-api/package.json to reduce vulnerabilities ([#326](https://github.com/twilio-labs/serverless-toolkit/issues/326)) ([38b8bf7](https://github.com/twilio-labs/serverless-toolkit/commit/38b8bf7529dbd13fc60f952feb8b94fa59f66fad)) -* packages/serverless-api/package.json to reduce vulnerabilities ([#328](https://github.com/twilio-labs/serverless-toolkit/issues/328)) ([e08f56d](https://github.com/twilio-labs/serverless-toolkit/commit/e08f56d887d0e8ea204e716bff369baaf4daea02)) - - - - +- packages/serverless-api/package.json to reduce vulnerabilities ([#326](https://github.com/twilio-labs/serverless-toolkit/issues/326)) ([38b8bf7](https://github.com/twilio-labs/serverless-toolkit/commit/38b8bf7529dbd13fc60f952feb8b94fa59f66fad)) +- packages/serverless-api/package.json to reduce vulnerabilities ([#328](https://github.com/twilio-labs/serverless-toolkit/issues/328)) ([e08f56d](https://github.com/twilio-labs/serverless-toolkit/commit/e08f56d887d0e8ea204e716bff369baaf4daea02)) # [5.2.0](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-api@5.1.1...@twilio-labs/serverless-api@5.2.0) (2021-07-14) - ### Features -* add new env commands ([#290](https://github.com/twilio-labs/serverless-toolkit/issues/290)) ([7d11a03](https://github.com/twilio-labs/serverless-toolkit/commit/7d11a03aa5f02c6ac06147c2796f7e8c9964396e)) - - - - +- add new env commands ([#290](https://github.com/twilio-labs/serverless-toolkit/issues/290)) ([7d11a03](https://github.com/twilio-labs/serverless-toolkit/commit/7d11a03aa5f02c6ac06147c2796f7e8c9964396e)) ## [5.1.1](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-api@5.1.0...@twilio-labs/serverless-api@5.1.1) (2021-06-30) - ### Bug Fixes -* **serverless-api:** do not retry for HTTP client request errors ([#285](https://github.com/twilio-labs/serverless-toolkit/issues/285)) ([ecbf4ab](https://github.com/twilio-labs/serverless-toolkit/commit/ecbf4ab4f5b691b017687663ba068d6f387e35d5)) - - - - +- **serverless-api:** do not retry for HTTP client request errors ([#285](https://github.com/twilio-labs/serverless-toolkit/issues/285)) ([ecbf4ab](https://github.com/twilio-labs/serverless-toolkit/commit/ecbf4ab4f5b691b017687663ba068d6f387e35d5)) # [5.1.0](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-api@5.0.0...@twilio-labs/serverless-api@5.1.0) (2021-06-21) - ### Features -* extract runtime-handler and lazyLoading ([#252](https://github.com/twilio-labs/serverless-toolkit/issues/252)) ([#271](https://github.com/twilio-labs/serverless-toolkit/issues/271)) ([0dde2a5](https://github.com/twilio-labs/serverless-toolkit/commit/0dde2a5a74035700e4ef6cf4b1c1189c78e2ff59)) - - - - +- extract runtime-handler and lazyLoading ([#252](https://github.com/twilio-labs/serverless-toolkit/issues/252)) ([#271](https://github.com/twilio-labs/serverless-toolkit/issues/271)) ([0dde2a5](https://github.com/twilio-labs/serverless-toolkit/commit/0dde2a5a74035700e4ef6cf4b1c1189c78e2ff59)) # [5.1.0-rc.0](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-api@5.0.0...@twilio-labs/serverless-api@5.1.0-rc.0) (2021-05-24) - ### Features -* extract runtime-handler and lazyLoading ([#252](https://github.com/twilio-labs/serverless-toolkit/issues/252)) ([4b11e69](https://github.com/twilio-labs/serverless-toolkit/commit/4b11e693248e44a8c6db4a95cf90e79e00f7db08)) - - - - +- extract runtime-handler and lazyLoading ([#252](https://github.com/twilio-labs/serverless-toolkit/issues/252)) ([4b11e69](https://github.com/twilio-labs/serverless-toolkit/commit/4b11e693248e44a8c6db4a95cf90e79e00f7db08)) # [5.0.0](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-api@5.0.0-beta.6...@twilio-labs/serverless-api@5.0.0) (2021-05-19) **Note:** Version bump only for package @twilio-labs/serverless-api - - - - # [5.0.0-beta.6](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-api@5.0.0-beta.5...@twilio-labs/serverless-api@5.0.0-beta.6) (2021-05-17) - ### Bug Fixes -* **twilio-run:** show service sid if available instead of name ([#265](https://github.com/twilio-labs/serverless-toolkit/issues/265)) ([816a26f](https://github.com/twilio-labs/serverless-toolkit/commit/816a26f7d64ed4193cd02a68abc8667334001771)), closes [#262](https://github.com/twilio-labs/serverless-toolkit/issues/262) - +- **twilio-run:** show service sid if available instead of name ([#265](https://github.com/twilio-labs/serverless-toolkit/issues/265)) ([816a26f](https://github.com/twilio-labs/serverless-toolkit/commit/816a26f7d64ed4193cd02a68abc8667334001771)), closes [#262](https://github.com/twilio-labs/serverless-toolkit/issues/262) ### BREAKING CHANGES -* **twilio-run:** The output of the config info in deployment changed - - - - +- **twilio-run:** The output of the config info in deployment changed # [5.0.0-beta.5](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-api@5.0.0-beta.4...@twilio-labs/serverless-api@5.0.0-beta.5) (2021-05-13) - ### Bug Fixes -* **serverless-api:** fixes assets paths in deployment ([#258](https://github.com/twilio-labs/serverless-toolkit/issues/258)) ([e37ecb3](https://github.com/twilio-labs/serverless-toolkit/commit/e37ecb336eaec74130d98066a63b858d71f26f62)) - - - - +- **serverless-api:** fixes assets paths in deployment ([#258](https://github.com/twilio-labs/serverless-toolkit/issues/258)) ([e37ecb3](https://github.com/twilio-labs/serverless-toolkit/commit/e37ecb336eaec74130d98066a63b858d71f26f62)) # [5.0.0-beta.4](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-api@5.0.0-beta.3...@twilio-labs/serverless-api@5.0.0-beta.4) (2021-04-30) - ### Bug Fixes -* **assets, serverless-api:** uri encode path names for asset versions ([c2b1f3d](https://github.com/twilio-labs/serverless-toolkit/commit/c2b1f3d16ce6af31ef2aaa1d086b3565bbcd1c7d)) - +- **assets, serverless-api:** uri encode path names for asset versions ([c2b1f3d](https://github.com/twilio-labs/serverless-toolkit/commit/c2b1f3d16ce6af31ef2aaa1d086b3565bbcd1c7d)) ### Features -* **plugin-assets:** first version of working assets plugin ([4ee08d3](https://github.com/twilio-labs/serverless-toolkit/commit/4ee08d3ebcb82abe1cb11752d45021f2ca3e03c6)) - - - - +- **plugin-assets:** first version of working assets plugin ([4ee08d3](https://github.com/twilio-labs/serverless-toolkit/commit/4ee08d3ebcb82abe1cb11752d45021f2ca3e03c6)) # [5.0.0-beta.3](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-api@5.0.0-beta.2...@twilio-labs/serverless-api@5.0.0-beta.3) (2021-04-21) **Note:** Version bump only for package @twilio-labs/serverless-api - - - - # [5.0.0-beta.2](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-api@5.0.0-beta.1...@twilio-labs/serverless-api@5.0.0-beta.2) (2021-04-21) **Note:** Version bump only for package @twilio-labs/serverless-api - - - - # 5.0.0-beta.1 (2021-04-21) - -* feat!: introduce rate limiting (#42) ([902e749](https://github.com/twilio-labs/serverless-toolkit/commit/902e749084b96fd6d2ee96e89477aa0da7f94dfc)), closes [#42](https://github.com/twilio-labs/serverless-toolkit/issues/42) [#37](https://github.com/twilio-labs/serverless-toolkit/issues/37) - +- feat!: introduce rate limiting (#42) ([902e749](https://github.com/twilio-labs/serverless-toolkit/commit/902e749084b96fd6d2ee96e89477aa0da7f94dfc)), closes [#42](https://github.com/twilio-labs/serverless-toolkit/issues/42) [#37](https://github.com/twilio-labs/serverless-toolkit/issues/37) ### Bug Fixes -* **activate:** activating with environment variables ([#49](https://github.com/twilio-labs/serverless-toolkit/issues/49)) ([9e05152](https://github.com/twilio-labs/serverless-toolkit/commit/9e05152c9fbb57c403fc2d2a99f9358ca825008d)) -* **api:** update form field names to work with serverless-api ([777dbe4](https://github.com/twilio-labs/serverless-toolkit/commit/777dbe4dfe9e38ff9312619f36893e8a3defacea)) -* **api:** use new uploads API ([#9](https://github.com/twilio-labs/serverless-toolkit/issues/9)) ([998f83a](https://github.com/twilio-labs/serverless-toolkit/commit/998f83a6c52fafd08af2484f4c34bd4b7543b5dc)) -* **assets:** enable protected asset upload ([fdb7ee8](https://github.com/twilio-labs/serverless-toolkit/commit/fdb7ee8aa7f994b5c78869e65287a3669c130f0f)) -* **build:** reject promise on failed build ([afa2f8c](https://github.com/twilio-labs/serverless-toolkit/commit/afa2f8c655596181764df93fa90ab9ad2493336f)), closes [#15](https://github.com/twilio-labs/serverless-toolkit/issues/15) -* **builds:** support more than one fn/asset ([bbdbd82](https://github.com/twilio-labs/serverless-toolkit/commit/bbdbd82696e7d044ea667ac0f97ae041e357b7f6)) -* **client:** fix client service error information ([#10](https://github.com/twilio-labs/serverless-toolkit/issues/10)) ([93950e0](https://github.com/twilio-labs/serverless-toolkit/commit/93950e041efbe24766bfa122e9c0e4b351b1e61a)) -* **content-type:** change content type detection to take hint ([#34](https://github.com/twilio-labs/serverless-toolkit/issues/34)) ([fac52fb](https://github.com/twilio-labs/serverless-toolkit/commit/fac52fb6321bb84806e9ed1d293b673d4e020131)) -* **deploy:** stop creating environments with domain suffix 'undefined' ([#50](https://github.com/twilio-labs/serverless-toolkit/issues/50)) ([ad4817f](https://github.com/twilio-labs/serverless-toolkit/commit/ad4817f753221aa6b7879e0deba23a562f40eb4d)) -* **environments:** fix deploying to production ([#16](https://github.com/twilio-labs/serverless-toolkit/issues/16)) ([fc09142](https://github.com/twilio-labs/serverless-toolkit/commit/fc09142c1b19efd3e628efa74d11c5ee2aca24b6)) -* **functions:** support private functions ([#30](https://github.com/twilio-labs/serverless-toolkit/issues/30)) ([34ecf86](https://github.com/twilio-labs/serverless-toolkit/commit/34ecf869d631e0117b4516e76ffaa85233d1ae53)) -* **logs:** fix typo in debug logs ([eca8f38](https://github.com/twilio-labs/serverless-toolkit/commit/eca8f38e7d0d76d97fd8a06ab2e89e4d4c9014e5)) -* **logs:** redact tokens/passwords/env vars from logs ([59b6d4e](https://github.com/twilio-labs/serverless-toolkit/commit/59b6d4e771cfbd217ca63cbe2ddce9abcbe1756b)) -* **paths:** add path verification ([#31](https://github.com/twilio-labs/serverless-toolkit/issues/31)) ([cd239bd](https://github.com/twilio-labs/serverless-toolkit/commit/cd239bd6178d6256d1314c5fd0861fccfc87e440)) -* **serverless-api:** add request url to API error logs ([#241](https://github.com/twilio-labs/serverless-toolkit/issues/241)) ([4e79890](https://github.com/twilio-labs/serverless-toolkit/commit/4e7989054f9ff2b749ed9c019f1f4b19f679032f)), closes [#167](https://github.com/twilio-labs/serverless-toolkit/issues/167) -* **serverless-api:** explicitly enable credentials ([90a3e63](https://github.com/twilio-labs/serverless-toolkit/commit/90a3e63921ce886dd8aa578c7ad528d0626681a5)) -* **serverless-api:** pagination was broken ([92812b7](https://github.com/twilio-labs/serverless-toolkit/commit/92812b701527cc7509b30d9daf8d75929e333077)) -* **serverless-api:** retries on 429 error for POST request ([4533fcd](https://github.com/twilio-labs/serverless-toolkit/commit/4533fcdd634d492b3b16477ca93d97e7ff9ce9d9)) -* **serverless-api:** use new /Status endpoint for builds ([#239](https://github.com/twilio-labs/serverless-toolkit/issues/239)) ([6624e5d](https://github.com/twilio-labs/serverless-toolkit/commit/6624e5d6f567fbd79f2541fe60b303550f7f2ec8)), closes [#193](https://github.com/twilio-labs/serverless-toolkit/issues/193) -* **serverless-api/logs:** change log polling cache ([2142867](https://github.com/twilio-labs/serverless-toolkit/commit/2142867d252fdbdff4d1bae54b559497517c95ef)) -* **serverless-api/logs:** keeps the most recent logs in log cache ([0f3b317](https://github.com/twilio-labs/serverless-toolkit/commit/0f3b31797dade038f426f1d30d1e60fbcafcb817)) -* **types:** expose friendly_name on environments ([56df438](https://github.com/twilio-labs/serverless-toolkit/commit/56df438ef2ca94f81185a95c124c59b0c0673548)) -* add file name on failing asset upload error ([#47](https://github.com/twilio-labs/serverless-toolkit/issues/47)) ([3c9e9ec](https://github.com/twilio-labs/serverless-toolkit/commit/3c9e9ecea8c06daf3ad04292a944d213d1ccc735)) -* add pagination to list requests ([#1](https://github.com/twilio-labs/serverless-toolkit/issues/1)) ([#13](https://github.com/twilio-labs/serverless-toolkit/issues/13)) ([bd3d3df](https://github.com/twilio-labs/serverless-toolkit/commit/bd3d3df0b6c5d485addbc7141ac0a75d22036c00)) -* change resource paths for nested Windows directories ([#11](https://github.com/twilio-labs/serverless-toolkit/issues/11)) ([8fcd0b3](https://github.com/twilio-labs/serverless-toolkit/commit/8fcd0b382c1f43ba80db7a538d7fb1e5a5b7a098)) -* detect DEBUG flag on client creation ([29853bb](https://github.com/twilio-labs/serverless-toolkit/commit/29853bb3ebc9eb6d65ecb900c2ceb8fab159c1e3)), closes [twilio-labs/twilio-run#50](https://github.com/twilio-labs/twilio-run/issues/50) -* upgrade type-fest from 0.15.1 to 0.16.0 ([65b81a9](https://github.com/twilio-labs/serverless-toolkit/commit/65b81a996b231827c4e42985f76c2b1725351c87)) - +- **activate:** activating with environment variables ([#49](https://github.com/twilio-labs/serverless-toolkit/issues/49)) ([9e05152](https://github.com/twilio-labs/serverless-toolkit/commit/9e05152c9fbb57c403fc2d2a99f9358ca825008d)) +- **api:** update form field names to work with serverless-api ([777dbe4](https://github.com/twilio-labs/serverless-toolkit/commit/777dbe4dfe9e38ff9312619f36893e8a3defacea)) +- **api:** use new uploads API ([#9](https://github.com/twilio-labs/serverless-toolkit/issues/9)) ([998f83a](https://github.com/twilio-labs/serverless-toolkit/commit/998f83a6c52fafd08af2484f4c34bd4b7543b5dc)) +- **assets:** enable protected asset upload ([fdb7ee8](https://github.com/twilio-labs/serverless-toolkit/commit/fdb7ee8aa7f994b5c78869e65287a3669c130f0f)) +- **build:** reject promise on failed build ([afa2f8c](https://github.com/twilio-labs/serverless-toolkit/commit/afa2f8c655596181764df93fa90ab9ad2493336f)), closes [#15](https://github.com/twilio-labs/serverless-toolkit/issues/15) +- **builds:** support more than one fn/asset ([bbdbd82](https://github.com/twilio-labs/serverless-toolkit/commit/bbdbd82696e7d044ea667ac0f97ae041e357b7f6)) +- **client:** fix client service error information ([#10](https://github.com/twilio-labs/serverless-toolkit/issues/10)) ([93950e0](https://github.com/twilio-labs/serverless-toolkit/commit/93950e041efbe24766bfa122e9c0e4b351b1e61a)) +- **content-type:** change content type detection to take hint ([#34](https://github.com/twilio-labs/serverless-toolkit/issues/34)) ([fac52fb](https://github.com/twilio-labs/serverless-toolkit/commit/fac52fb6321bb84806e9ed1d293b673d4e020131)) +- **deploy:** stop creating environments with domain suffix 'undefined' ([#50](https://github.com/twilio-labs/serverless-toolkit/issues/50)) ([ad4817f](https://github.com/twilio-labs/serverless-toolkit/commit/ad4817f753221aa6b7879e0deba23a562f40eb4d)) +- **environments:** fix deploying to production ([#16](https://github.com/twilio-labs/serverless-toolkit/issues/16)) ([fc09142](https://github.com/twilio-labs/serverless-toolkit/commit/fc09142c1b19efd3e628efa74d11c5ee2aca24b6)) +- **functions:** support private functions ([#30](https://github.com/twilio-labs/serverless-toolkit/issues/30)) ([34ecf86](https://github.com/twilio-labs/serverless-toolkit/commit/34ecf869d631e0117b4516e76ffaa85233d1ae53)) +- **logs:** fix typo in debug logs ([eca8f38](https://github.com/twilio-labs/serverless-toolkit/commit/eca8f38e7d0d76d97fd8a06ab2e89e4d4c9014e5)) +- **logs:** redact tokens/passwords/env vars from logs ([59b6d4e](https://github.com/twilio-labs/serverless-toolkit/commit/59b6d4e771cfbd217ca63cbe2ddce9abcbe1756b)) +- **paths:** add path verification ([#31](https://github.com/twilio-labs/serverless-toolkit/issues/31)) ([cd239bd](https://github.com/twilio-labs/serverless-toolkit/commit/cd239bd6178d6256d1314c5fd0861fccfc87e440)) +- **serverless-api:** add request url to API error logs ([#241](https://github.com/twilio-labs/serverless-toolkit/issues/241)) ([4e79890](https://github.com/twilio-labs/serverless-toolkit/commit/4e7989054f9ff2b749ed9c019f1f4b19f679032f)), closes [#167](https://github.com/twilio-labs/serverless-toolkit/issues/167) +- **serverless-api:** explicitly enable credentials ([90a3e63](https://github.com/twilio-labs/serverless-toolkit/commit/90a3e63921ce886dd8aa578c7ad528d0626681a5)) +- **serverless-api:** pagination was broken ([92812b7](https://github.com/twilio-labs/serverless-toolkit/commit/92812b701527cc7509b30d9daf8d75929e333077)) +- **serverless-api:** retries on 429 error for POST request ([4533fcd](https://github.com/twilio-labs/serverless-toolkit/commit/4533fcdd634d492b3b16477ca93d97e7ff9ce9d9)) +- **serverless-api:** use new /Status endpoint for builds ([#239](https://github.com/twilio-labs/serverless-toolkit/issues/239)) ([6624e5d](https://github.com/twilio-labs/serverless-toolkit/commit/6624e5d6f567fbd79f2541fe60b303550f7f2ec8)), closes [#193](https://github.com/twilio-labs/serverless-toolkit/issues/193) +- **serverless-api/logs:** change log polling cache ([2142867](https://github.com/twilio-labs/serverless-toolkit/commit/2142867d252fdbdff4d1bae54b559497517c95ef)) +- **serverless-api/logs:** keeps the most recent logs in log cache ([0f3b317](https://github.com/twilio-labs/serverless-toolkit/commit/0f3b31797dade038f426f1d30d1e60fbcafcb817)) +- **types:** expose friendly_name on environments ([56df438](https://github.com/twilio-labs/serverless-toolkit/commit/56df438ef2ca94f81185a95c124c59b0c0673548)) +- add file name on failing asset upload error ([#47](https://github.com/twilio-labs/serverless-toolkit/issues/47)) ([3c9e9ec](https://github.com/twilio-labs/serverless-toolkit/commit/3c9e9ecea8c06daf3ad04292a944d213d1ccc735)) +- add pagination to list requests ([#1](https://github.com/twilio-labs/serverless-toolkit/issues/1)) ([#13](https://github.com/twilio-labs/serverless-toolkit/issues/13)) ([bd3d3df](https://github.com/twilio-labs/serverless-toolkit/commit/bd3d3df0b6c5d485addbc7141ac0a75d22036c00)) +- change resource paths for nested Windows directories ([#11](https://github.com/twilio-labs/serverless-toolkit/issues/11)) ([8fcd0b3](https://github.com/twilio-labs/serverless-toolkit/commit/8fcd0b382c1f43ba80db7a538d7fb1e5a5b7a098)) +- detect DEBUG flag on client creation ([29853bb](https://github.com/twilio-labs/serverless-toolkit/commit/29853bb3ebc9eb6d65ecb900c2ceb8fab159c1e3)), closes [twilio-labs/twilio-run#50](https://github.com/twilio-labs/twilio-run/issues/50) +- upgrade type-fest from 0.15.1 to 0.16.0 ([65b81a9](https://github.com/twilio-labs/serverless-toolkit/commit/65b81a996b231827c4e42985f76c2b1725351c87)) ### Features -* add region support ([#39](https://github.com/twilio-labs/serverless-toolkit/issues/39)) ([11e674f](https://github.com/twilio-labs/serverless-toolkit/commit/11e674fce011b5a27bc094d2e000e0c60cb95265)) -* add tests for asset error ([#47](https://github.com/twilio-labs/serverless-toolkit/issues/47)) ([63ae1fb](https://github.com/twilio-labs/serverless-toolkit/commit/63ae1fbf5f43e6bda95c0c71b9ee368a4ad7acbd)) -* allow to work behind a proxy by setting the HTTP_PROXY env var ([51a0a3b](https://github.com/twilio-labs/serverless-toolkit/commit/51a0a3b6a208dd2c172d829dadbf9b8760dcdd63)) -* expose createFunctionResource - fix [#3](https://github.com/twilio-labs/serverless-toolkit/issues/3) ([#4](https://github.com/twilio-labs/serverless-toolkit/issues/4)) ([c28e174](https://github.com/twilio-labs/serverless-toolkit/commit/c28e17474b4203f05e0bfb94df17d7d0329c6092)) -* replace projectName with serviceName for consistency ([2e35c8b](https://github.com/twilio-labs/serverless-toolkit/commit/2e35c8b9e5df62235458aa5c33dad716e72e135a)), closes [twilio-labs/twilio-run#17](https://github.com/twilio-labs/twilio-run/issues/17) -* unify error interface & upgrade got ([#29](https://github.com/twilio-labs/serverless-toolkit/issues/29)) ([b27ae79](https://github.com/twilio-labs/serverless-toolkit/commit/b27ae79bf4af763ae80d17b9c7849fe6756abb1e)) -* **client:** adds username and password support ([#51](https://github.com/twilio-labs/serverless-toolkit/issues/51)) ([d3dc471](https://github.com/twilio-labs/serverless-toolkit/commit/d3dc47192753351a68adce7897d6527dff7b54ec)), closes [#41](https://github.com/twilio-labs/serverless-toolkit/issues/41) -* **client:** expose domain in activate command ([d0294b5](https://github.com/twilio-labs/serverless-toolkit/commit/d0294b5c8018ea76b4cb9b51b61f02db100341ab)), closes [twilio-labs/twilio-run#37](https://github.com/twilio-labs/twilio-run/issues/37) -* **deploy:** adds runtime as a flag to the deploy command ([#218](https://github.com/twilio-labs/serverless-toolkit/issues/218)) ([789ec02](https://github.com/twilio-labs/serverless-toolkit/commit/789ec027f1151be156e1fb01b4e4110ca0de9c44)) -* **environments:** make naming of environments predictable ([8f97342](https://github.com/twilio-labs/serverless-toolkit/commit/8f973426b19101dc0472a51caf611e2d61b12fef)), closes [#6](https://github.com/twilio-labs/serverless-toolkit/issues/6) -* **functions:** list function versions & download content ([#52](https://github.com/twilio-labs/serverless-toolkit/issues/52)) ([e32f770](https://github.com/twilio-labs/serverless-toolkit/commit/e32f770a57ee0b77f667e6ebe079c0aa2f67c60e)) -* **logs:** add logs fetching and streaming ([#23](https://github.com/twilio-labs/serverless-toolkit/issues/23)) ([883dbdf](https://github.com/twilio-labs/serverless-toolkit/commit/883dbdfe6a7c9c295149e65ab683d658464ffc6c)) -* **logs:** implements fetch and list of logs ([#12](https://github.com/twilio-labs/serverless-toolkit/issues/12)) ([c36a786](https://github.com/twilio-labs/serverless-toolkit/commit/c36a7868fff87dc596659226a0ff9704bc969eab)) - +- add region support ([#39](https://github.com/twilio-labs/serverless-toolkit/issues/39)) ([11e674f](https://github.com/twilio-labs/serverless-toolkit/commit/11e674fce011b5a27bc094d2e000e0c60cb95265)) +- add tests for asset error ([#47](https://github.com/twilio-labs/serverless-toolkit/issues/47)) ([63ae1fb](https://github.com/twilio-labs/serverless-toolkit/commit/63ae1fbf5f43e6bda95c0c71b9ee368a4ad7acbd)) +- allow to work behind a proxy by setting the HTTP_PROXY env var ([51a0a3b](https://github.com/twilio-labs/serverless-toolkit/commit/51a0a3b6a208dd2c172d829dadbf9b8760dcdd63)) +- expose createFunctionResource - fix [#3](https://github.com/twilio-labs/serverless-toolkit/issues/3) ([#4](https://github.com/twilio-labs/serverless-toolkit/issues/4)) ([c28e174](https://github.com/twilio-labs/serverless-toolkit/commit/c28e17474b4203f05e0bfb94df17d7d0329c6092)) +- replace projectName with serviceName for consistency ([2e35c8b](https://github.com/twilio-labs/serverless-toolkit/commit/2e35c8b9e5df62235458aa5c33dad716e72e135a)), closes [twilio-labs/twilio-run#17](https://github.com/twilio-labs/twilio-run/issues/17) +- unify error interface & upgrade got ([#29](https://github.com/twilio-labs/serverless-toolkit/issues/29)) ([b27ae79](https://github.com/twilio-labs/serverless-toolkit/commit/b27ae79bf4af763ae80d17b9c7849fe6756abb1e)) +- **client:** adds username and password support ([#51](https://github.com/twilio-labs/serverless-toolkit/issues/51)) ([d3dc471](https://github.com/twilio-labs/serverless-toolkit/commit/d3dc47192753351a68adce7897d6527dff7b54ec)), closes [#41](https://github.com/twilio-labs/serverless-toolkit/issues/41) +- **client:** expose domain in activate command ([d0294b5](https://github.com/twilio-labs/serverless-toolkit/commit/d0294b5c8018ea76b4cb9b51b61f02db100341ab)), closes [twilio-labs/twilio-run#37](https://github.com/twilio-labs/twilio-run/issues/37) +- **deploy:** adds runtime as a flag to the deploy command ([#218](https://github.com/twilio-labs/serverless-toolkit/issues/218)) ([789ec02](https://github.com/twilio-labs/serverless-toolkit/commit/789ec027f1151be156e1fb01b4e4110ca0de9c44)) +- **environments:** make naming of environments predictable ([8f97342](https://github.com/twilio-labs/serverless-toolkit/commit/8f973426b19101dc0472a51caf611e2d61b12fef)), closes [#6](https://github.com/twilio-labs/serverless-toolkit/issues/6) +- **functions:** list function versions & download content ([#52](https://github.com/twilio-labs/serverless-toolkit/issues/52)) ([e32f770](https://github.com/twilio-labs/serverless-toolkit/commit/e32f770a57ee0b77f667e6ebe079c0aa2f67c60e)) +- **logs:** add logs fetching and streaming ([#23](https://github.com/twilio-labs/serverless-toolkit/issues/23)) ([883dbdf](https://github.com/twilio-labs/serverless-toolkit/commit/883dbdfe6a7c9c295149e65ab683d658464ffc6c)) +- **logs:** implements fetch and list of logs ([#12](https://github.com/twilio-labs/serverless-toolkit/issues/12)) ([c36a786](https://github.com/twilio-labs/serverless-toolkit/commit/c36a7868fff87dc596659226a0ff9704bc969eab)) ### Reverts -* **environments:** revert back to old unique_name annotation ([af2d876](https://github.com/twilio-labs/serverless-toolkit/commit/af2d876dbd7878747560c0ddb6dcbde107b49d85)) - +- **environments:** revert back to old unique_name annotation ([af2d876](https://github.com/twilio-labs/serverless-toolkit/commit/af2d876dbd7878747560c0ddb6dcbde107b49d85)) ### BREAKING CHANGES -* the function signature of the individual functions changed. If you only use the methods on the client, nothing should have changed. -* **api:** Removes uploadToAws as a function -* projectName is no longer valid and serviceName has to be used instead - - - - +- the function signature of the individual functions changed. If you only use the methods on the client, nothing should have changed. +- **api:** Removes uploadToAws as a function +- projectName is no longer valid and serviceName has to be used instead # 5.0.0-beta.0 (2020-08-27) - -* feat!: introduce rate limiting (#42) ([902e749](https://github.com/twilio-labs/serverless-toolkit/commit/902e749084b96fd6d2ee96e89477aa0da7f94dfc)), closes [#42](https://github.com/twilio-labs/serverless-toolkit/issues/42) [#37](https://github.com/twilio-labs/serverless-toolkit/issues/37) - +- feat!: introduce rate limiting (#42) ([902e749](https://github.com/twilio-labs/serverless-toolkit/commit/902e749084b96fd6d2ee96e89477aa0da7f94dfc)), closes [#42](https://github.com/twilio-labs/serverless-toolkit/issues/42) [#37](https://github.com/twilio-labs/serverless-toolkit/issues/37) ### Bug Fixes -* **activate:** activating with environment variables ([#49](https://github.com/twilio-labs/serverless-toolkit/issues/49)) ([9e05152](https://github.com/twilio-labs/serverless-toolkit/commit/9e05152c9fbb57c403fc2d2a99f9358ca825008d)) -* **api:** update form field names to work with serverless-api ([777dbe4](https://github.com/twilio-labs/serverless-toolkit/commit/777dbe4dfe9e38ff9312619f36893e8a3defacea)) -* **api:** use new uploads API ([#9](https://github.com/twilio-labs/serverless-toolkit/issues/9)) ([998f83a](https://github.com/twilio-labs/serverless-toolkit/commit/998f83a6c52fafd08af2484f4c34bd4b7543b5dc)) -* **assets:** enable protected asset upload ([fdb7ee8](https://github.com/twilio-labs/serverless-toolkit/commit/fdb7ee8aa7f994b5c78869e65287a3669c130f0f)) -* **build:** reject promise on failed build ([afa2f8c](https://github.com/twilio-labs/serverless-toolkit/commit/afa2f8c655596181764df93fa90ab9ad2493336f)), closes [#15](https://github.com/twilio-labs/serverless-toolkit/issues/15) -* **builds:** support more than one fn/asset ([bbdbd82](https://github.com/twilio-labs/serverless-toolkit/commit/bbdbd82696e7d044ea667ac0f97ae041e357b7f6)) -* **client:** fix client service error information ([#10](https://github.com/twilio-labs/serverless-toolkit/issues/10)) ([93950e0](https://github.com/twilio-labs/serverless-toolkit/commit/93950e041efbe24766bfa122e9c0e4b351b1e61a)) -* **content-type:** change content type detection to take hint ([#34](https://github.com/twilio-labs/serverless-toolkit/issues/34)) ([fac52fb](https://github.com/twilio-labs/serverless-toolkit/commit/fac52fb6321bb84806e9ed1d293b673d4e020131)) -* **deploy:** stop creating environments with domain suffix 'undefined' ([#50](https://github.com/twilio-labs/serverless-toolkit/issues/50)) ([ad4817f](https://github.com/twilio-labs/serverless-toolkit/commit/ad4817f753221aa6b7879e0deba23a562f40eb4d)) -* **environments:** fix deploying to production ([#16](https://github.com/twilio-labs/serverless-toolkit/issues/16)) ([fc09142](https://github.com/twilio-labs/serverless-toolkit/commit/fc09142c1b19efd3e628efa74d11c5ee2aca24b6)) -* **functions:** support private functions ([#30](https://github.com/twilio-labs/serverless-toolkit/issues/30)) ([34ecf86](https://github.com/twilio-labs/serverless-toolkit/commit/34ecf869d631e0117b4516e76ffaa85233d1ae53)) -* **logs:** fix typo in debug logs ([eca8f38](https://github.com/twilio-labs/serverless-toolkit/commit/eca8f38e7d0d76d97fd8a06ab2e89e4d4c9014e5)) -* **logs:** redact tokens/passwords/env vars from logs ([59b6d4e](https://github.com/twilio-labs/serverless-toolkit/commit/59b6d4e771cfbd217ca63cbe2ddce9abcbe1756b)) -* add file name on failing asset upload error ([#47](https://github.com/twilio-labs/serverless-toolkit/issues/47)) ([3c9e9ec](https://github.com/twilio-labs/serverless-toolkit/commit/3c9e9ecea8c06daf3ad04292a944d213d1ccc735)) -* **paths:** add path verification ([#31](https://github.com/twilio-labs/serverless-toolkit/issues/31)) ([cd239bd](https://github.com/twilio-labs/serverless-toolkit/commit/cd239bd6178d6256d1314c5fd0861fccfc87e440)) -* **serverless-api:** retries on 429 error for POST request ([4533fcd](https://github.com/twilio-labs/serverless-toolkit/commit/4533fcdd634d492b3b16477ca93d97e7ff9ce9d9)) -* **types:** expose friendly_name on environments ([56df438](https://github.com/twilio-labs/serverless-toolkit/commit/56df438ef2ca94f81185a95c124c59b0c0673548)) -* add pagination to list requests ([#1](https://github.com/twilio-labs/serverless-toolkit/issues/1)) ([#13](https://github.com/twilio-labs/serverless-toolkit/issues/13)) ([bd3d3df](https://github.com/twilio-labs/serverless-toolkit/commit/bd3d3df0b6c5d485addbc7141ac0a75d22036c00)) -* change resource paths for nested Windows directories ([#11](https://github.com/twilio-labs/serverless-toolkit/issues/11)) ([8fcd0b3](https://github.com/twilio-labs/serverless-toolkit/commit/8fcd0b382c1f43ba80db7a538d7fb1e5a5b7a098)) -* detect DEBUG flag on client creation ([29853bb](https://github.com/twilio-labs/serverless-toolkit/commit/29853bb3ebc9eb6d65ecb900c2ceb8fab159c1e3)), closes [twilio-labs/twilio-run#50](https://github.com/twilio-labs/twilio-run/issues/50) -* upgrade type-fest from 0.15.1 to 0.16.0 ([65b81a9](https://github.com/twilio-labs/serverless-toolkit/commit/65b81a996b231827c4e42985f76c2b1725351c87)) - +- **activate:** activating with environment variables ([#49](https://github.com/twilio-labs/serverless-toolkit/issues/49)) ([9e05152](https://github.com/twilio-labs/serverless-toolkit/commit/9e05152c9fbb57c403fc2d2a99f9358ca825008d)) +- **api:** update form field names to work with serverless-api ([777dbe4](https://github.com/twilio-labs/serverless-toolkit/commit/777dbe4dfe9e38ff9312619f36893e8a3defacea)) +- **api:** use new uploads API ([#9](https://github.com/twilio-labs/serverless-toolkit/issues/9)) ([998f83a](https://github.com/twilio-labs/serverless-toolkit/commit/998f83a6c52fafd08af2484f4c34bd4b7543b5dc)) +- **assets:** enable protected asset upload ([fdb7ee8](https://github.com/twilio-labs/serverless-toolkit/commit/fdb7ee8aa7f994b5c78869e65287a3669c130f0f)) +- **build:** reject promise on failed build ([afa2f8c](https://github.com/twilio-labs/serverless-toolkit/commit/afa2f8c655596181764df93fa90ab9ad2493336f)), closes [#15](https://github.com/twilio-labs/serverless-toolkit/issues/15) +- **builds:** support more than one fn/asset ([bbdbd82](https://github.com/twilio-labs/serverless-toolkit/commit/bbdbd82696e7d044ea667ac0f97ae041e357b7f6)) +- **client:** fix client service error information ([#10](https://github.com/twilio-labs/serverless-toolkit/issues/10)) ([93950e0](https://github.com/twilio-labs/serverless-toolkit/commit/93950e041efbe24766bfa122e9c0e4b351b1e61a)) +- **content-type:** change content type detection to take hint ([#34](https://github.com/twilio-labs/serverless-toolkit/issues/34)) ([fac52fb](https://github.com/twilio-labs/serverless-toolkit/commit/fac52fb6321bb84806e9ed1d293b673d4e020131)) +- **deploy:** stop creating environments with domain suffix 'undefined' ([#50](https://github.com/twilio-labs/serverless-toolkit/issues/50)) ([ad4817f](https://github.com/twilio-labs/serverless-toolkit/commit/ad4817f753221aa6b7879e0deba23a562f40eb4d)) +- **environments:** fix deploying to production ([#16](https://github.com/twilio-labs/serverless-toolkit/issues/16)) ([fc09142](https://github.com/twilio-labs/serverless-toolkit/commit/fc09142c1b19efd3e628efa74d11c5ee2aca24b6)) +- **functions:** support private functions ([#30](https://github.com/twilio-labs/serverless-toolkit/issues/30)) ([34ecf86](https://github.com/twilio-labs/serverless-toolkit/commit/34ecf869d631e0117b4516e76ffaa85233d1ae53)) +- **logs:** fix typo in debug logs ([eca8f38](https://github.com/twilio-labs/serverless-toolkit/commit/eca8f38e7d0d76d97fd8a06ab2e89e4d4c9014e5)) +- **logs:** redact tokens/passwords/env vars from logs ([59b6d4e](https://github.com/twilio-labs/serverless-toolkit/commit/59b6d4e771cfbd217ca63cbe2ddce9abcbe1756b)) +- add file name on failing asset upload error ([#47](https://github.com/twilio-labs/serverless-toolkit/issues/47)) ([3c9e9ec](https://github.com/twilio-labs/serverless-toolkit/commit/3c9e9ecea8c06daf3ad04292a944d213d1ccc735)) +- **paths:** add path verification ([#31](https://github.com/twilio-labs/serverless-toolkit/issues/31)) ([cd239bd](https://github.com/twilio-labs/serverless-toolkit/commit/cd239bd6178d6256d1314c5fd0861fccfc87e440)) +- **serverless-api:** retries on 429 error for POST request ([4533fcd](https://github.com/twilio-labs/serverless-toolkit/commit/4533fcdd634d492b3b16477ca93d97e7ff9ce9d9)) +- **types:** expose friendly_name on environments ([56df438](https://github.com/twilio-labs/serverless-toolkit/commit/56df438ef2ca94f81185a95c124c59b0c0673548)) +- add pagination to list requests ([#1](https://github.com/twilio-labs/serverless-toolkit/issues/1)) ([#13](https://github.com/twilio-labs/serverless-toolkit/issues/13)) ([bd3d3df](https://github.com/twilio-labs/serverless-toolkit/commit/bd3d3df0b6c5d485addbc7141ac0a75d22036c00)) +- change resource paths for nested Windows directories ([#11](https://github.com/twilio-labs/serverless-toolkit/issues/11)) ([8fcd0b3](https://github.com/twilio-labs/serverless-toolkit/commit/8fcd0b382c1f43ba80db7a538d7fb1e5a5b7a098)) +- detect DEBUG flag on client creation ([29853bb](https://github.com/twilio-labs/serverless-toolkit/commit/29853bb3ebc9eb6d65ecb900c2ceb8fab159c1e3)), closes [twilio-labs/twilio-run#50](https://github.com/twilio-labs/twilio-run/issues/50) +- upgrade type-fest from 0.15.1 to 0.16.0 ([65b81a9](https://github.com/twilio-labs/serverless-toolkit/commit/65b81a996b231827c4e42985f76c2b1725351c87)) ### Features -* add region support ([#39](https://github.com/twilio-labs/serverless-toolkit/issues/39)) ([11e674f](https://github.com/twilio-labs/serverless-toolkit/commit/11e674fce011b5a27bc094d2e000e0c60cb95265)) -* add tests for asset error ([#47](https://github.com/twilio-labs/serverless-toolkit/issues/47)) ([63ae1fb](https://github.com/twilio-labs/serverless-toolkit/commit/63ae1fbf5f43e6bda95c0c71b9ee368a4ad7acbd)) -* expose createFunctionResource - fix [#3](https://github.com/twilio-labs/serverless-toolkit/issues/3) ([#4](https://github.com/twilio-labs/serverless-toolkit/issues/4)) ([c28e174](https://github.com/twilio-labs/serverless-toolkit/commit/c28e17474b4203f05e0bfb94df17d7d0329c6092)) -* **logs:** add logs fetching and streaming ([#23](https://github.com/twilio-labs/serverless-toolkit/issues/23)) ([883dbdf](https://github.com/twilio-labs/serverless-toolkit/commit/883dbdfe6a7c9c295149e65ab683d658464ffc6c)) -* replace projectName with serviceName for consistency ([2e35c8b](https://github.com/twilio-labs/serverless-toolkit/commit/2e35c8b9e5df62235458aa5c33dad716e72e135a)), closes [twilio-labs/twilio-run#17](https://github.com/twilio-labs/twilio-run/issues/17) -* unify error interface & upgrade got ([#29](https://github.com/twilio-labs/serverless-toolkit/issues/29)) ([b27ae79](https://github.com/twilio-labs/serverless-toolkit/commit/b27ae79bf4af763ae80d17b9c7849fe6756abb1e)) -* **client:** adds username and password support ([#51](https://github.com/twilio-labs/serverless-toolkit/issues/51)) ([d3dc471](https://github.com/twilio-labs/serverless-toolkit/commit/d3dc47192753351a68adce7897d6527dff7b54ec)), closes [#41](https://github.com/twilio-labs/serverless-toolkit/issues/41) -* **client:** expose domain in activate command ([d0294b5](https://github.com/twilio-labs/serverless-toolkit/commit/d0294b5c8018ea76b4cb9b51b61f02db100341ab)), closes [twilio-labs/twilio-run#37](https://github.com/twilio-labs/twilio-run/issues/37) -* **environments:** make naming of environments predictable ([8f97342](https://github.com/twilio-labs/serverless-toolkit/commit/8f973426b19101dc0472a51caf611e2d61b12fef)), closes [#6](https://github.com/twilio-labs/serverless-toolkit/issues/6) -* **functions:** list function versions & download content ([#52](https://github.com/twilio-labs/serverless-toolkit/issues/52)) ([e32f770](https://github.com/twilio-labs/serverless-toolkit/commit/e32f770a57ee0b77f667e6ebe079c0aa2f67c60e)) -* **logs:** implements fetch and list of logs ([#12](https://github.com/twilio-labs/serverless-toolkit/issues/12)) ([c36a786](https://github.com/twilio-labs/serverless-toolkit/commit/c36a7868fff87dc596659226a0ff9704bc969eab)) - +- add region support ([#39](https://github.com/twilio-labs/serverless-toolkit/issues/39)) ([11e674f](https://github.com/twilio-labs/serverless-toolkit/commit/11e674fce011b5a27bc094d2e000e0c60cb95265)) +- add tests for asset error ([#47](https://github.com/twilio-labs/serverless-toolkit/issues/47)) ([63ae1fb](https://github.com/twilio-labs/serverless-toolkit/commit/63ae1fbf5f43e6bda95c0c71b9ee368a4ad7acbd)) +- expose createFunctionResource - fix [#3](https://github.com/twilio-labs/serverless-toolkit/issues/3) ([#4](https://github.com/twilio-labs/serverless-toolkit/issues/4)) ([c28e174](https://github.com/twilio-labs/serverless-toolkit/commit/c28e17474b4203f05e0bfb94df17d7d0329c6092)) +- **logs:** add logs fetching and streaming ([#23](https://github.com/twilio-labs/serverless-toolkit/issues/23)) ([883dbdf](https://github.com/twilio-labs/serverless-toolkit/commit/883dbdfe6a7c9c295149e65ab683d658464ffc6c)) +- replace projectName with serviceName for consistency ([2e35c8b](https://github.com/twilio-labs/serverless-toolkit/commit/2e35c8b9e5df62235458aa5c33dad716e72e135a)), closes [twilio-labs/twilio-run#17](https://github.com/twilio-labs/twilio-run/issues/17) +- unify error interface & upgrade got ([#29](https://github.com/twilio-labs/serverless-toolkit/issues/29)) ([b27ae79](https://github.com/twilio-labs/serverless-toolkit/commit/b27ae79bf4af763ae80d17b9c7849fe6756abb1e)) +- **client:** adds username and password support ([#51](https://github.com/twilio-labs/serverless-toolkit/issues/51)) ([d3dc471](https://github.com/twilio-labs/serverless-toolkit/commit/d3dc47192753351a68adce7897d6527dff7b54ec)), closes [#41](https://github.com/twilio-labs/serverless-toolkit/issues/41) +- **client:** expose domain in activate command ([d0294b5](https://github.com/twilio-labs/serverless-toolkit/commit/d0294b5c8018ea76b4cb9b51b61f02db100341ab)), closes [twilio-labs/twilio-run#37](https://github.com/twilio-labs/twilio-run/issues/37) +- **environments:** make naming of environments predictable ([8f97342](https://github.com/twilio-labs/serverless-toolkit/commit/8f973426b19101dc0472a51caf611e2d61b12fef)), closes [#6](https://github.com/twilio-labs/serverless-toolkit/issues/6) +- **functions:** list function versions & download content ([#52](https://github.com/twilio-labs/serverless-toolkit/issues/52)) ([e32f770](https://github.com/twilio-labs/serverless-toolkit/commit/e32f770a57ee0b77f667e6ebe079c0aa2f67c60e)) +- **logs:** implements fetch and list of logs ([#12](https://github.com/twilio-labs/serverless-toolkit/issues/12)) ([c36a786](https://github.com/twilio-labs/serverless-toolkit/commit/c36a7868fff87dc596659226a0ff9704bc969eab)) ### Reverts -* **environments:** revert back to old unique_name annotation ([af2d876](https://github.com/twilio-labs/serverless-toolkit/commit/af2d876dbd7878747560c0ddb6dcbde107b49d85)) - +- **environments:** revert back to old unique_name annotation ([af2d876](https://github.com/twilio-labs/serverless-toolkit/commit/af2d876dbd7878747560c0ddb6dcbde107b49d85)) ### BREAKING CHANGES -* the function signature of the individual functions changed. If you only use the methods on the client, nothing should have changed. -* **api:** Removes uploadToAws as a function -* projectName is no longer valid and serviceName has to be used instead - - - - +- the function signature of the individual functions changed. If you only use the methods on the client, nothing should have changed. +- **api:** Removes uploadToAws as a function +- projectName is no longer valid and serviceName has to be used instead # Changelog @@ -353,261 +247,197 @@ All notable changes to this project will be documented in this file. See [standa ### [4.0.1](https://github.com/twilio-labs/serverless-api/compare/v4.0.0...v4.0.1) (2020-07-28) - ### Bug Fixes -* upgrade type-fest from 0.15.1 to 0.16.0 ([bfbcdc9](https://github.com/twilio-labs/serverless-api/commit/bfbcdc9b281ea94477f8f2c88c0a9fc7a36a9214)) +- upgrade type-fest from 0.15.1 to 0.16.0 ([bfbcdc9](https://github.com/twilio-labs/serverless-api/commit/bfbcdc9b281ea94477f8f2c88c0a9fc7a36a9214)) ## [4.0.0](https://github.com/twilio-labs/serverless-api/compare/v3.0.0...v4.0.0) (2020-07-06) - ### Features -* add tests for asset error ([#47](https://github.com/twilio-labs/serverless-api/issues/47)) ([581e4ce](https://github.com/twilio-labs/serverless-api/commit/581e4ce7bde33c06e394819f749dc09fee1fdd19)) -* **client:** adds username and password support ([#51](https://github.com/twilio-labs/serverless-api/issues/51)) ([80ffe00](https://github.com/twilio-labs/serverless-api/commit/80ffe008a2db0b2d2aa294328a35e0d3c359a19a)), closes [#41](https://github.com/twilio-labs/serverless-api/issues/41) -* **functions:** list function versions & download content ([#52](https://github.com/twilio-labs/serverless-api/issues/52)) ([045a90a](https://github.com/twilio-labs/serverless-api/commit/045a90a536e850f84388cc5dcc06e6f2c0c7b9b5)) - +- add tests for asset error ([#47](https://github.com/twilio-labs/serverless-api/issues/47)) ([581e4ce](https://github.com/twilio-labs/serverless-api/commit/581e4ce7bde33c06e394819f749dc09fee1fdd19)) +- **client:** adds username and password support ([#51](https://github.com/twilio-labs/serverless-api/issues/51)) ([80ffe00](https://github.com/twilio-labs/serverless-api/commit/80ffe008a2db0b2d2aa294328a35e0d3c359a19a)), closes [#41](https://github.com/twilio-labs/serverless-api/issues/41) +- **functions:** list function versions & download content ([#52](https://github.com/twilio-labs/serverless-api/issues/52)) ([045a90a](https://github.com/twilio-labs/serverless-api/commit/045a90a536e850f84388cc5dcc06e6f2c0c7b9b5)) ### Bug Fixes -* add file name on failing asset upload error ([#47](https://github.com/twilio-labs/serverless-api/issues/47)) ([13fedb2](https://github.com/twilio-labs/serverless-api/commit/13fedb2544acda4d38928fde035eb15783432485)) -* **activate:** activating with environment variables ([#49](https://github.com/twilio-labs/serverless-api/issues/49)) ([62c2af6](https://github.com/twilio-labs/serverless-api/commit/62c2af664e56197034f263a309fd73b50d7f38a9)) -* **deploy:** stop creating environments with domain suffix 'undefined' ([#50](https://github.com/twilio-labs/serverless-api/issues/50)) ([f5dde4c](https://github.com/twilio-labs/serverless-api/commit/f5dde4c55997d6214f8b930a2dc09a0f09c01e66)) +- add file name on failing asset upload error ([#47](https://github.com/twilio-labs/serverless-api/issues/47)) ([13fedb2](https://github.com/twilio-labs/serverless-api/commit/13fedb2544acda4d38928fde035eb15783432485)) +- **activate:** activating with environment variables ([#49](https://github.com/twilio-labs/serverless-api/issues/49)) ([62c2af6](https://github.com/twilio-labs/serverless-api/commit/62c2af664e56197034f263a309fd73b50d7f38a9)) +- **deploy:** stop creating environments with domain suffix 'undefined' ([#50](https://github.com/twilio-labs/serverless-api/issues/50)) ([f5dde4c](https://github.com/twilio-labs/serverless-api/commit/f5dde4c55997d6214f8b930a2dc09a0f09c01e66)) ### [3.1.1](https://github.com/twilio-labs/serverless-api/compare/v3.1.0...v3.1.1) (2020-06-25) - ### Bug Fixes -* **deploy:** stop creating environments with domain suffix 'undefined' ([#50](https://github.com/twilio-labs/serverless-api/issues/50)) ([f5dde4c](https://github.com/twilio-labs/serverless-api/commit/f5dde4c55997d6214f8b930a2dc09a0f09c01e66)) +- **deploy:** stop creating environments with domain suffix 'undefined' ([#50](https://github.com/twilio-labs/serverless-api/issues/50)) ([f5dde4c](https://github.com/twilio-labs/serverless-api/commit/f5dde4c55997d6214f8b930a2dc09a0f09c01e66)) ## [3.1.0](https://github.com/twilio-labs/serverless-api/compare/v3.0.0...v3.1.0) (2020-06-16) - ### Features -* add tests for asset error ([#47](https://github.com/twilio-labs/serverless-api/issues/47)) ([581e4ce](https://github.com/twilio-labs/serverless-api/commit/581e4ce7bde33c06e394819f749dc09fee1fdd19)) - +- add tests for asset error ([#47](https://github.com/twilio-labs/serverless-api/issues/47)) ([581e4ce](https://github.com/twilio-labs/serverless-api/commit/581e4ce7bde33c06e394819f749dc09fee1fdd19)) ### Bug Fixes -* **activate:** activating with environment variables ([#49](https://github.com/twilio-labs/serverless-api/issues/49)) ([62c2af6](https://github.com/twilio-labs/serverless-api/commit/62c2af664e56197034f263a309fd73b50d7f38a9)) -* add file name on failing asset upload error ([#47](https://github.com/twilio-labs/serverless-api/issues/47)) ([13fedb2](https://github.com/twilio-labs/serverless-api/commit/13fedb2544acda4d38928fde035eb15783432485)) +- **activate:** activating with environment variables ([#49](https://github.com/twilio-labs/serverless-api/issues/49)) ([62c2af6](https://github.com/twilio-labs/serverless-api/commit/62c2af664e56197034f263a309fd73b50d7f38a9)) +- add file name on failing asset upload error ([#47](https://github.com/twilio-labs/serverless-api/issues/47)) ([13fedb2](https://github.com/twilio-labs/serverless-api/commit/13fedb2544acda4d38928fde035eb15783432485)) ## [3.0.0](https://github.com/twilio-labs/serverless-api/compare/v2.1.0...v3.0.0) (2020-05-21) - ### âš  BREAKING CHANGES -* the function signature of the individual functions changed. If you only use the methods on the client, nothing should have changed. +- the function signature of the individual functions changed. If you only use the methods on the client, nothing should have changed. ### Features -* introduce rate limiting ([#42](https://github.com/twilio-labs/serverless-api/issues/42)) ([6dc1bc4](https://github.com/twilio-labs/serverless-api/commit/6dc1bc43e7516d816a976ea190e7fc4b35a12f3f)), closes [#37](https://github.com/twilio-labs/serverless-api/issues/37) +- introduce rate limiting ([#42](https://github.com/twilio-labs/serverless-api/issues/42)) ([6dc1bc4](https://github.com/twilio-labs/serverless-api/commit/6dc1bc43e7516d816a976ea190e7fc4b35a12f3f)), closes [#37](https://github.com/twilio-labs/serverless-api/issues/37) ## [2.1.0](https://github.com/twilio-labs/serverless-api/compare/v1.1.0...v2.1.0) (2020-05-18) - ### Features -* add region support ([#39](https://github.com/twilio-labs/serverless-api/issues/39)) ([afe4149](https://github.com/twilio-labs/serverless-api/commit/afe414915932074f64148d94a778d6be8ea22b16)) -* unify error interface & upgrade got ([#29](https://github.com/twilio-labs/serverless-api/issues/29)) ([a94e86e](https://github.com/twilio-labs/serverless-api/commit/a94e86ec3f0aabaea9a5bb8d4572ef83c397b504)) - +- add region support ([#39](https://github.com/twilio-labs/serverless-api/issues/39)) ([afe4149](https://github.com/twilio-labs/serverless-api/commit/afe414915932074f64148d94a778d6be8ea22b16)) +- unify error interface & upgrade got ([#29](https://github.com/twilio-labs/serverless-api/issues/29)) ([a94e86e](https://github.com/twilio-labs/serverless-api/commit/a94e86ec3f0aabaea9a5bb8d4572ef83c397b504)) ### Bug Fixes -* **builds:** support more than one fn/asset ([0461068](https://github.com/twilio-labs/serverless-api/commit/046106827592b33e66a693b5774402255625a749)) -* **content-type:** change content type detection to take hint ([#34](https://github.com/twilio-labs/serverless-api/issues/34)) ([3d96bc0](https://github.com/twilio-labs/serverless-api/commit/3d96bc0520a5aa00d5ee18e2fcc865b4a71a2cd7)) -* **functions:** support private functions ([#30](https://github.com/twilio-labs/serverless-api/issues/30)) ([b58eac0](https://github.com/twilio-labs/serverless-api/commit/b58eac0259419a447f8cb9054428f2fe469165f0)) -* **paths:** add path verification ([#31](https://github.com/twilio-labs/serverless-api/issues/31)) ([ea1a660](https://github.com/twilio-labs/serverless-api/commit/ea1a6603f1e20a8245ed79a4890fe1110cbce41e)) - +- **builds:** support more than one fn/asset ([0461068](https://github.com/twilio-labs/serverless-api/commit/046106827592b33e66a693b5774402255625a749)) +- **content-type:** change content type detection to take hint ([#34](https://github.com/twilio-labs/serverless-api/issues/34)) ([3d96bc0](https://github.com/twilio-labs/serverless-api/commit/3d96bc0520a5aa00d5ee18e2fcc865b4a71a2cd7)) +- **functions:** support private functions ([#30](https://github.com/twilio-labs/serverless-api/issues/30)) ([b58eac0](https://github.com/twilio-labs/serverless-api/commit/b58eac0259419a447f8cb9054428f2fe469165f0)) +- **paths:** add path verification ([#31](https://github.com/twilio-labs/serverless-api/issues/31)) ([ea1a660](https://github.com/twilio-labs/serverless-api/commit/ea1a6603f1e20a8245ed79a4890fe1110cbce41e)) ### Build System -* **npm:** remove shrinkwrap ([#36](https://github.com/twilio-labs/serverless-api/issues/36)) ([2c6fc78](https://github.com/twilio-labs/serverless-api/commit/2c6fc78895f34d20012ad3a82e09d0d3de98064e)) +- **npm:** remove shrinkwrap ([#36](https://github.com/twilio-labs/serverless-api/issues/36)) ([2c6fc78](https://github.com/twilio-labs/serverless-api/commit/2c6fc78895f34d20012ad3a82e09d0d3de98064e)) ### [2.0.1](https://github.com/twilio-labs/serverless-api/compare/v1.1.0...v2.0.1) (2020-04-28) - ### Bug Fixes -* **builds:** support more than one fn/asset ([0461068](https://github.com/twilio-labs/serverless-api/commit/046106827592b33e66a693b5774402255625a749)) - +- **builds:** support more than one fn/asset ([0461068](https://github.com/twilio-labs/serverless-api/commit/046106827592b33e66a693b5774402255625a749)) ## [2.0.0](https://github.com/twilio-labs/serverless-api/compare/v1.1.0...v2.0.0) (2020-04-28) - ### Features -* **[BREAKING CHANGE]** unify error interface & upgrade got ([#29](https://github.com/twilio-labs/serverless-api/issues/29)) ([a94e86e](https://github.com/twilio-labs/serverless-api/commit/a94e86ec3f0aabaea9a5bb8d4572ef83c397b504)) - +- **[BREAKING CHANGE]** unify error interface & upgrade got ([#29](https://github.com/twilio-labs/serverless-api/issues/29)) ([a94e86e](https://github.com/twilio-labs/serverless-api/commit/a94e86ec3f0aabaea9a5bb8d4572ef83c397b504)) ### Bug Fixes -* **[BREAKING CHANGE]** **content-type:** change content type detection to take hint ([#34](https://github.com/twilio-labs/serverless-api/issues/34)) ([3d96bc0](https://github.com/twilio-labs/serverless-api/commit/3d96bc0520a5aa00d5ee18e2fcc865b4a71a2cd7)) -* **functions:** support private functions ([#30](https://github.com/twilio-labs/serverless-api/issues/30)) ([b58eac0](https://github.com/twilio-labs/serverless-api/commit/b58eac0259419a447f8cb9054428f2fe469165f0)) -* **paths:** add path verification ([#31](https://github.com/twilio-labs/serverless-api/issues/31)) ([ea1a660](https://github.com/twilio-labs/serverless-api/commit/ea1a6603f1e20a8245ed79a4890fe1110cbce41e)) - +- **[BREAKING CHANGE]** **content-type:** change content type detection to take hint ([#34](https://github.com/twilio-labs/serverless-api/issues/34)) ([3d96bc0](https://github.com/twilio-labs/serverless-api/commit/3d96bc0520a5aa00d5ee18e2fcc865b4a71a2cd7)) +- **functions:** support private functions ([#30](https://github.com/twilio-labs/serverless-api/issues/30)) ([b58eac0](https://github.com/twilio-labs/serverless-api/commit/b58eac0259419a447f8cb9054428f2fe469165f0)) +- **paths:** add path verification ([#31](https://github.com/twilio-labs/serverless-api/issues/31)) ([ea1a660](https://github.com/twilio-labs/serverless-api/commit/ea1a6603f1e20a8245ed79a4890fe1110cbce41e)) ### Build System -* **npm:** remove shrinkwrap ([#36](https://github.com/twilio-labs/serverless-api/issues/36)) ([2c6fc78](https://github.com/twilio-labs/serverless-api/commit/2c6fc78895f34d20012ad3a82e09d0d3de98064e)) +- **npm:** remove shrinkwrap ([#36](https://github.com/twilio-labs/serverless-api/issues/36)) ([2c6fc78](https://github.com/twilio-labs/serverless-api/commit/2c6fc78895f34d20012ad3a82e09d0d3de98064e)) ## [1.1.0](https://github.com/twilio-labs/serverless-api/compare/v1.0.3...v1.1.0) (2020-02-25) - ### Features -* **logs:** add logs fetching and streaming ([#23](https://github.com/twilio-labs/serverless-api/issues/23)) ([f4f21b4](https://github.com/twilio-labs/serverless-api/commit/f4f21b4)) - - +- **logs:** add logs fetching and streaming ([#23](https://github.com/twilio-labs/serverless-api/issues/23)) ([f4f21b4](https://github.com/twilio-labs/serverless-api/commit/f4f21b4)) ### [1.0.3](https://github.com/twilio-labs/serverless-api/compare/v1.0.2...v1.0.3) (2019-09-25) - ### Bug Fixes -* **build:** reject promise on failed build ([47e03e0](https://github.com/twilio-labs/serverless-api/commit/47e03e0)), closes [#15](https://github.com/twilio-labs/serverless-api/issues/15) -* **environments:** fix deploying to production ([#16](https://github.com/twilio-labs/serverless-api/issues/16)) ([9585237](https://github.com/twilio-labs/serverless-api/commit/9585237)) - - +- **build:** reject promise on failed build ([47e03e0](https://github.com/twilio-labs/serverless-api/commit/47e03e0)), closes [#15](https://github.com/twilio-labs/serverless-api/issues/15) +- **environments:** fix deploying to production ([#16](https://github.com/twilio-labs/serverless-api/issues/16)) ([9585237](https://github.com/twilio-labs/serverless-api/commit/9585237)) ### [1.0.2](https://github.com/twilio-labs/serverless-api/compare/v1.0.1...v1.0.2) (2019-08-05) - - ### [1.0.1](https://github.com/twilio-labs/serverless-api/compare/v1.0.0...v1.0.1) (2019-08-05) - ### Bug Fixes -* add pagination to list requests ([#1](https://github.com/twilio-labs/serverless-api/issues/1)) ([#13](https://github.com/twilio-labs/serverless-api/issues/13)) ([a57f997](https://github.com/twilio-labs/serverless-api/commit/a57f997)) - - +- add pagination to list requests ([#1](https://github.com/twilio-labs/serverless-api/issues/1)) ([#13](https://github.com/twilio-labs/serverless-api/issues/13)) ([a57f997](https://github.com/twilio-labs/serverless-api/commit/a57f997)) ## [1.0.0](https://github.com/twilio-labs/serverless-api/compare/v1.0.0-rc.5...v1.0.0) (2019-08-05) - ### Features -* **logs:** implements fetch and list of logs ([#12](https://github.com/twilio-labs/serverless-api/issues/12)) ([87695cd](https://github.com/twilio-labs/serverless-api/commit/87695cd)) - - +- **logs:** implements fetch and list of logs ([#12](https://github.com/twilio-labs/serverless-api/issues/12)) ([87695cd](https://github.com/twilio-labs/serverless-api/commit/87695cd)) ## [1.0.0-rc.5](https://github.com/twilio-labs/serverless-api/compare/v1.0.0-rc.4...v1.0.0-rc.5) (2019-08-01) - ### Bug Fixes -* change resource paths for nested Windows directories ([#11](https://github.com/twilio-labs/serverless-api/issues/11)) ([9c74b44](https://github.com/twilio-labs/serverless-api/commit/9c74b44)) - - +- change resource paths for nested Windows directories ([#11](https://github.com/twilio-labs/serverless-api/issues/11)) ([9c74b44](https://github.com/twilio-labs/serverless-api/commit/9c74b44)) ## [1.0.0-rc.4](https://github.com/twilio-labs/serverless-api/compare/v1.0.0-rc.3...v1.0.0-rc.4) (2019-07-30) - ### Bug Fixes -* detect DEBUG flag on client creation ([2477d2e](https://github.com/twilio-labs/serverless-api/commit/2477d2e)), closes [twilio-labs/twilio-run#50](https://github.com/twilio-labs/serverless-api/issues/50) - - +- detect DEBUG flag on client creation ([2477d2e](https://github.com/twilio-labs/serverless-api/commit/2477d2e)), closes [twilio-labs/twilio-run#50](https://github.com/twilio-labs/serverless-api/issues/50) ## [1.0.0-rc.3](https://github.com/twilio-labs/serverless-api/compare/v1.0.0-rc.2...v1.0.0-rc.3) (2019-07-30) - ### Bug Fixes -* **assets:** enable protected asset upload ([87db602](https://github.com/twilio-labs/serverless-api/commit/87db602)) - - +- **assets:** enable protected asset upload ([87db602](https://github.com/twilio-labs/serverless-api/commit/87db602)) ## [1.0.0-rc.2](https://github.com/twilio-labs/serverless-api/compare/v1.0.0-rc.1...v1.0.0-rc.2) (2019-07-25) - ### Bug Fixes -* **client:** fix client service error information ([#10](https://github.com/twilio-labs/serverless-api/issues/10)) ([00ba21a](https://github.com/twilio-labs/serverless-api/commit/00ba21a)) - - +- **client:** fix client service error information ([#10](https://github.com/twilio-labs/serverless-api/issues/10)) ([00ba21a](https://github.com/twilio-labs/serverless-api/commit/00ba21a)) ## [1.0.0-rc.1](https://github.com/twilio-labs/serverless-api/compare/v1.0.0-rc.0...v1.0.0-rc.1) (2019-07-25) - ### Bug Fixes -* **api:** update form field names to work with serverless-api ([2282def](https://github.com/twilio-labs/serverless-api/commit/2282def)) - - +- **api:** update form field names to work with serverless-api ([2282def](https://github.com/twilio-labs/serverless-api/commit/2282def)) ## [1.0.0-rc.0](https://github.com/twilio-labs/serverless-api/compare/v1.0.0-alpha.19...v1.0.0-rc.0) (2019-07-24) - ### Bug Fixes -* **api:** use new uploads API ([#9](https://github.com/twilio-labs/serverless-api/issues/9)) ([b349a1e](https://github.com/twilio-labs/serverless-api/commit/b349a1e)) -* **types:** expose friendly_name on environments ([df4cc28](https://github.com/twilio-labs/serverless-api/commit/df4cc28)) - +- **api:** use new uploads API ([#9](https://github.com/twilio-labs/serverless-api/issues/9)) ([b349a1e](https://github.com/twilio-labs/serverless-api/commit/b349a1e)) +- **types:** expose friendly_name on environments ([df4cc28](https://github.com/twilio-labs/serverless-api/commit/df4cc28)) ### Features -* **environments:** make naming of environments predictable ([68c51eb](https://github.com/twilio-labs/serverless-api/commit/68c51eb)), closes [#6](https://github.com/twilio-labs/serverless-api/issues/6) - +- **environments:** make naming of environments predictable ([68c51eb](https://github.com/twilio-labs/serverless-api/commit/68c51eb)), closes [#6](https://github.com/twilio-labs/serverless-api/issues/6) ### BREAKING CHANGES -* **api:** Removes uploadToAws as a function - - +- **api:** Removes uploadToAws as a function ## [1.0.0-alpha.19](https://github.com/twilio-labs/serverless-api/compare/v1.0.0-alpha.18...v1.0.0-alpha.19) (2019-07-20) - ### Bug Fixes -* **logs:** redact tokens/passwords/env vars from logs ([8ca6e3d](https://github.com/twilio-labs/serverless-api/commit/8ca6e3d)) - - +- **logs:** redact tokens/passwords/env vars from logs ([8ca6e3d](https://github.com/twilio-labs/serverless-api/commit/8ca6e3d)) ## [1.0.0-alpha.18](https://github.com/twilio-labs/serverless-api/compare/v1.0.0-alpha.17...v1.0.0-alpha.18) (2019-07-19) - ### Features -* **client:** expose domain in activate command ([8283662](https://github.com/twilio-labs/serverless-api/commit/8283662)), closes [twilio-labs/twilio-run#37](https://github.com/twilio-labs/serverless-api/issues/37) - - +- **client:** expose domain in activate command ([8283662](https://github.com/twilio-labs/serverless-api/commit/8283662)), closes [twilio-labs/twilio-run#37](https://github.com/twilio-labs/serverless-api/issues/37) ## [1.0.0-alpha.17](https://github.com/twilio-labs/serverless-api/compare/v1.0.0-alpha.16...v1.0.0-alpha.17) (2019-07-19) - - ## [1.0.0-alpha.16](https://github.com/twilio-labs/serverless-api/compare/v1.0.0-alpha.15...v1.0.0-alpha.16) (2019-07-18) - ### Bug Fixes -* **logs:** fix typo in debug logs ([e558e79](https://github.com/twilio-labs/serverless-api/commit/e558e79)) - +- **logs:** fix typo in debug logs ([e558e79](https://github.com/twilio-labs/serverless-api/commit/e558e79)) ### Features -* expose createFunctionResource - fix [#3](https://github.com/twilio-labs/serverless-api/issues/3) ([#4](https://github.com/twilio-labs/serverless-api/issues/4)) ([5279169](https://github.com/twilio-labs/serverless-api/commit/5279169)) - - +- expose createFunctionResource - fix [#3](https://github.com/twilio-labs/serverless-api/issues/3) ([#4](https://github.com/twilio-labs/serverless-api/issues/4)) ([5279169](https://github.com/twilio-labs/serverless-api/commit/5279169)) ## [1.0.0-alpha.15](https://github.com/twilio-labs/serverless-api/compare/v1.0.0-alpha.14...v1.0.0-alpha.15) (2019-07-10) - ### Build System -* **npm:** setup git hooks and linters ([d0e404c](https://github.com/twilio-labs/serverless-api/commit/d0e404c)) - +- **npm:** setup git hooks and linters ([d0e404c](https://github.com/twilio-labs/serverless-api/commit/d0e404c)) ### Features -* replace projectName with serviceName for consistency ([c4f955a](https://github.com/twilio-labs/serverless-api/commit/c4f955a)), closes [twilio-labs/twilio-run#17](https://github.com/twilio-labs/serverless-api/issues/17) - +- replace projectName with serviceName for consistency ([c4f955a](https://github.com/twilio-labs/serverless-api/commit/c4f955a)), closes [twilio-labs/twilio-run#17](https://github.com/twilio-labs/serverless-api/issues/17) ### BREAKING CHANGES -* projectName is no longer valid and serviceName has to be used instead +- projectName is no longer valid and serviceName has to be used instead diff --git a/packages/serverless-api/package.json b/packages/serverless-api/package.json index 55b8a8e6..383b1122 100644 --- a/packages/serverless-api/package.json +++ b/packages/serverless-api/package.json @@ -1,6 +1,6 @@ { "name": "@twilio-labs/serverless-api", - "version": "5.5.0", + "version": "5.5.1", "description": "API-wrapper for the Twilio Serverless API", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/packages/twilio-run/CHANGELOG.md b/packages/twilio-run/CHANGELOG.md index 4388c523..5414f878 100644 --- a/packages/twilio-run/CHANGELOG.md +++ b/packages/twilio-run/CHANGELOG.md @@ -1,5 +1,16 @@ # Change Log +## 3.5.4 + +### Patch Changes + +- [#486](https://github.com/twilio-labs/serverless-toolkit/pull/486) [`37877857d9bb192715dc06eb14a1514c2b8baf47`](https://github.com/twilio-labs/serverless-toolkit/commit/37877857d9bb192715dc06eb14a1514c2b8baf47) Thanks [@colossal-toby](https://github.com/colossal-toby)! - FRIDGE-9: Update toolkit to default to node18 + + Fix CI and twilio-run build + +- Updated dependencies [[`37877857d9bb192715dc06eb14a1514c2b8baf47`](https://github.com/twilio-labs/serverless-toolkit/commit/37877857d9bb192715dc06eb14a1514c2b8baf47)]: + - @twilio-labs/serverless-api@5.5.1 + ## 3.5.3 ### Patch Changes diff --git a/packages/twilio-run/package.json b/packages/twilio-run/package.json index 841ea8c5..1d7adf7c 100644 --- a/packages/twilio-run/package.json +++ b/packages/twilio-run/package.json @@ -1,6 +1,6 @@ { "name": "twilio-run", - "version": "3.5.3", + "version": "3.5.4", "bin": { "twilio-functions": "./bin/twilio-run.js", "twilio-run": "./bin/twilio-run.js", @@ -34,7 +34,7 @@ ], "license": "MIT", "dependencies": { - "@twilio-labs/serverless-api": "^5.5.0", + "@twilio-labs/serverless-api": "^5.5.1", "@twilio-labs/serverless-runtime-types": "2.1.0-rc.0", "@types/express": "4.17.7", "@types/inquirer": "^6.0.3", From d8db7681a4833ef48ef0366ad9ab32272a98b7fc Mon Sep 17 00:00:00 2001 From: makserik <15821542+makserik@users.noreply.github.com> Date: Fri, 8 Dec 2023 10:44:49 +0200 Subject: [PATCH 03/23] FRIDGE-734 make serverless-toolkit work with node v18 (#493) * fix(@twilio-labs/plugin-serverless): add node types to the autogenerated tsconfig autogenerated tsconfig lacks types at the moment which causes twilio serverless:init twilio-functions --typescript to fail to start * Create wise-teachers-clean.md * docs: add @makserik as a contributor * fix(create-twilio-function): bump ts from ^4.9.4 to ^5.3.3, fix serverless:init, add plugins testing * Create ten-cobras-fail.md * Delete .changeset/wise-teachers-clean.md * Delete .changeset/ten-cobras-fail.md * Create six-paws-speak.md --- .all-contributorsrc | 54 +++++++------------ .changeset/six-paws-speak.md | 5 ++ .gitignore | 2 + .nvmrc | 2 +- docs/CONTRIBUTING.md | 1 + package.json | 4 +- .../create-twilio-function/create-files.js | 4 +- .../src/create-twilio-function/versions.js | 2 +- 8 files changed, 34 insertions(+), 40 deletions(-) create mode 100644 .changeset/six-paws-speak.md diff --git a/.all-contributorsrc b/.all-contributorsrc index 844f7ee1..57a17dae 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -3,9 +3,7 @@ "projectOwner": "dkundel", "repoType": "github", "repoHost": "https://github.com", - "files": [ - "README.md" - ], + "files": ["README.md"], "imageSize": 100, "commit": true, "contributors": [ @@ -14,79 +12,65 @@ "name": "Dominik Kundel", "avatar_url": "https://avatars3.githubusercontent.com/u/1505101?v=4", "profile": "https://dkundel.com", - "contributions": [ - "code" - ] + "contributions": ["code"] }, { "login": "dbbidclips", "name": "dbbidclips", "avatar_url": "https://avatars1.githubusercontent.com/u/41997517?v=4", "profile": "https://github.com/dbbidclips", - "contributions": [ - "code", - "bug" - ] + "contributions": ["code", "bug"] }, { "login": "ShelbyZ", "name": "Shelby Hagman", "avatar_url": "https://avatars0.githubusercontent.com/u/1033099?v=4", "profile": "https://shagman.codes", - "contributions": [ - "bug", - "code" - ] + "contributions": ["bug", "code"] }, { "login": "jsjoeio", "name": "JavaScript Joe", "avatar_url": "https://avatars3.githubusercontent.com/u/3806031?v=4", "profile": "https://joeprevite.com/", - "contributions": [ - "bug" - ] + "contributions": ["bug"] }, { "login": "stefanjudis", "name": "Stefan Judis", "avatar_url": "https://avatars3.githubusercontent.com/u/962099?v=4", "profile": "https://www.stefanjudis.com/", - "contributions": [ - "bug", - "code" - ] + "contributions": ["bug", "code"] }, { "login": "philnash", "name": "Phil Nash", "avatar_url": "https://avatars3.githubusercontent.com/u/31462?v=4", "profile": "https://philna.sh", - "contributions": [ - "bug", - "code", - "review" - ] + "contributions": ["bug", "code", "review"] }, { "login": "childish-sambino", "name": "childish-sambino", "avatar_url": "https://avatars0.githubusercontent.com/u/47228322?v=4", "profile": "https://github.com/childish-sambino", - "contributions": [ - "code", - "bug" - ] + "contributions": ["code", "bug"] }, { "login": "thinkingserious", "name": "Elmer Thomas", "avatar_url": "https://avatars0.githubusercontent.com/u/146695?v=4", "profile": "http://www.ThinkingSerious.com", - "contributions": [ - "bug", - "doc" - ] + "contributions": ["bug", "doc"] + }, + { + "login": "makserik", + "name": "makserik", + "avatar_url": "https://avatars.githubusercontent.com/u/15821542?v=4", + "profile": "https://github.com/makserik", + "contributions": ["code", "doc"] } - ] + ], + "commitConvention": "angular" } + diff --git a/.changeset/six-paws-speak.md b/.changeset/six-paws-speak.md new file mode 100644 index 00000000..3af9805f --- /dev/null +++ b/.changeset/six-paws-speak.md @@ -0,0 +1,5 @@ +--- +"create-twilio-function": patch +--- + +FRIDGE-734 make serverless-toolkit work with node v18 diff --git a/.gitignore b/.gitignore index 52f45c29..afa6e160 100644 --- a/.gitignore +++ b/.gitignore @@ -72,3 +72,5 @@ dist/ *.twiliodeployinfo packages/serverless-api/docs/ + +.idea diff --git a/.nvmrc b/.nvmrc index da2d3988..3c032078 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -14 \ No newline at end of file +18 diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index 421d5018..e82da97e 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -33,6 +33,7 @@ npm run bootstrap ## Contributing 1. Perform changes. Check out [Working with Workspaces](#working-with-workspaces) for more info +2. If you changed packages/plugins, run `twilio plugins:link ` and then test the plugin locally by running `twilio ` 2. Make sure tests pass by running `npm test` 3. Stage the files you changed by running `git add` with the files you changed. 4. If you have a customer facing change make sure to run `npm run changeset` at the root of the project, select what type of version change it is and which packages are impacted and describe the change. Check out ["How we version"](#how-we-version) for more details. diff --git a/package.json b/package.json index d58d8975..20059b85 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "@changesets/cli": "^2.26.0", "@commitlint/cli": "^9.1.2", "@commitlint/config-conventional": "^10.0.0", + "@twilio/test-dep": "npm:twilio@3.84.0", "@types/jest": "^29.2.4", "all-contributors-cli": "^6.1.2", "commitizen": "^4.2.4", @@ -40,8 +41,7 @@ "prettier": "^2.2.1", "rimraf": "^3.0.2", "ts-jest": "^28.0.8", - "typescript": "^4.9.4", - "@twilio/test-dep": "npm:twilio@3.84.0" + "typescript": "^5.3.3" }, "lint-staged": { "*.{js,jsx,ts,tsx}": [ diff --git a/packages/create-twilio-function/src/create-twilio-function/create-files.js b/packages/create-twilio-function/src/create-twilio-function/create-files.js index b97111ee..05ae54f8 100644 --- a/packages/create-twilio-function/src/create-twilio-function/create-files.js +++ b/packages/create-twilio-function/src/create-twilio-function/create-files.js @@ -126,7 +126,7 @@ function createTsconfigFile(pathName) { JSON.stringify( { compilerOptions: { - target: 'es5', + target: 'es2018', module: 'commonjs', strict: true, esModuleInterop: true, @@ -134,7 +134,9 @@ function createTsconfigFile(pathName) { outDir: 'dist', skipLibCheck: true, sourceMap: true, + types: ['node'], }, + exclude: ['node_modules'], }, null, 2 diff --git a/packages/create-twilio-function/src/create-twilio-function/versions.js b/packages/create-twilio-function/src/create-twilio-function/versions.js index e772cf51..7c5c4fce 100644 --- a/packages/create-twilio-function/src/create-twilio-function/versions.js +++ b/packages/create-twilio-function/src/create-twilio-function/versions.js @@ -7,7 +7,7 @@ module.exports = { ].replace(/[\^~]/, ''), twilioRun: pkgJson.dependencies['twilio-run'], node: '18', - typescript: '^3.8', + typescript: '^5.3.3', serverlessRuntimeTypes: '^1.1', copyfiles: '^2.2.0', }; From 78700f3da7aeb38aed6eec57c0f5747ea48a4565 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 8 Dec 2023 10:58:33 +0200 Subject: [PATCH 04/23] chore: version packages (#495) Co-authored-by: github-actions[bot] --- .changeset/six-paws-speak.md | 5 ----- packages/create-twilio-function/CHANGELOG.md | 6 ++++++ packages/create-twilio-function/package.json | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 .changeset/six-paws-speak.md diff --git a/.changeset/six-paws-speak.md b/.changeset/six-paws-speak.md deleted file mode 100644 index 3af9805f..00000000 --- a/.changeset/six-paws-speak.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-twilio-function": patch ---- - -FRIDGE-734 make serverless-toolkit work with node v18 diff --git a/packages/create-twilio-function/CHANGELOG.md b/packages/create-twilio-function/CHANGELOG.md index 16ed578d..a1910124 100644 --- a/packages/create-twilio-function/CHANGELOG.md +++ b/packages/create-twilio-function/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 3.4.4 + +### Patch Changes + +- [#493](https://github.com/twilio-labs/serverless-toolkit/pull/493) [`d8db7681a4833ef48ef0366ad9ab32272a98b7fc`](https://github.com/twilio-labs/serverless-toolkit/commit/d8db7681a4833ef48ef0366ad9ab32272a98b7fc) Thanks [@makserik](https://github.com/makserik)! - FRIDGE-734 make serverless-toolkit work with node v18 + ## 3.4.3 ### Patch Changes diff --git a/packages/create-twilio-function/package.json b/packages/create-twilio-function/package.json index 6b181d6f..02487595 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.3", + "version": "3.4.4", "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", From b4acf3c67d8152d5b27987984acd34da26a6996a Mon Sep 17 00:00:00 2001 From: makserik <15821542+makserik@users.noreply.github.com> Date: Fri, 8 Dec 2023 12:38:11 +0200 Subject: [PATCH 05/23] chore(@twilio-labs/plugin-serverless): bump create-twilio-function from 3.4.3 to 3.4.4 (#496) * chore(@twilio-labs/plugin-serverless): bump create-twilio-function from 3.4.3 to 3.4.4 * Create poor-mugs-drive.md --- .changeset/poor-mugs-drive.md | 5 +++++ packages/plugin-serverless/package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/poor-mugs-drive.md diff --git a/.changeset/poor-mugs-drive.md b/.changeset/poor-mugs-drive.md new file mode 100644 index 00000000..cbc13e7b --- /dev/null +++ b/.changeset/poor-mugs-drive.md @@ -0,0 +1,5 @@ +--- +"@twilio-labs/plugin-serverless": patch +--- + +chore(@twilio-labs/plugin-serverless): bump create-twilio-function from 3.4.3 to 3.4.4 diff --git a/packages/plugin-serverless/package.json b/packages/plugin-serverless/package.json index 11eb5b5a..886dcb6f 100644 --- a/packages/plugin-serverless/package.json +++ b/packages/plugin-serverless/package.json @@ -10,7 +10,7 @@ "dependencies": { "@oclif/core": "^1.14.2", "@twilio/cli-core": "^7.0.0", - "create-twilio-function": "^3.4.3", + "create-twilio-function": "^3.4.4", "lodash.camelcase": "^4.3.0", "lodash.kebabcase": "^4.1.1", "twilio-run": "^3.5.4" From 212540b5fc05fd71231bfc0f3f4cf7c6839a7e14 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 8 Dec 2023 12:50:31 +0200 Subject: [PATCH 06/23] Version Packages (#497) * chore(@twilio-labs/plugin-serverless): version update in readme * chore: version packages --------- Co-authored-by: github-actions[bot] --- .changeset/poor-mugs-drive.md | 5 ----- packages/plugin-serverless/CHANGELOG.md | 6 ++++++ packages/plugin-serverless/README.md | 26 ++++++++++++------------- packages/plugin-serverless/package.json | 2 +- 4 files changed, 20 insertions(+), 19 deletions(-) delete mode 100644 .changeset/poor-mugs-drive.md diff --git a/.changeset/poor-mugs-drive.md b/.changeset/poor-mugs-drive.md deleted file mode 100644 index cbc13e7b..00000000 --- a/.changeset/poor-mugs-drive.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@twilio-labs/plugin-serverless": patch ---- - -chore(@twilio-labs/plugin-serverless): bump create-twilio-function from 3.4.3 to 3.4.4 diff --git a/packages/plugin-serverless/CHANGELOG.md b/packages/plugin-serverless/CHANGELOG.md index bca51910..22c31cac 100644 --- a/packages/plugin-serverless/CHANGELOG.md +++ b/packages/plugin-serverless/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 3.1.5 + +### Patch Changes + +- [#496](https://github.com/twilio-labs/serverless-toolkit/pull/496) [`b4acf3c67d8152d5b27987984acd34da26a6996a`](https://github.com/twilio-labs/serverless-toolkit/commit/b4acf3c67d8152d5b27987984acd34da26a6996a) Thanks [@makserik](https://github.com/makserik)! - chore(@twilio-labs/plugin-serverless): bump create-twilio-function from 3.4.3 to 3.4.4 + ## 3.1.4 ### Patch Changes diff --git a/packages/plugin-serverless/README.md b/packages/plugin-serverless/README.md index 4563c5df..cd73a319 100644 --- a/packages/plugin-serverless/README.md +++ b/packages/plugin-serverless/README.md @@ -166,7 +166,7 @@ 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.4/src/commands/serverless/deploy.js)_ +_See code: [src/commands/serverless/deploy.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.5/src/commands/serverless/deploy.js)_ ## `twilio serverless:dev [DIR]` @@ -246,7 +246,7 @@ 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.4/src/commands/serverless/env/get.js)_ +_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)_ ## `twilio serverless:env:import` @@ -284,7 +284,7 @@ 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.4/src/commands/serverless/env/import.js)_ +_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)_ ## `twilio serverless:env:list` @@ -324,7 +324,7 @@ 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.4/src/commands/serverless/env/list.js)_ +_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)_ ## `twilio serverless:env:set` @@ -364,7 +364,7 @@ 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.4/src/commands/serverless/env/set.js)_ +_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)_ ## `twilio serverless:env:unset` @@ -403,7 +403,7 @@ 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.4/src/commands/serverless/env/unset.js)_ +_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)_ ## `twilio serverless:init NAME` @@ -436,7 +436,7 @@ DESCRIPTION Creates a new Twilio Function project ``` -_See code: [src/commands/serverless/init.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.4/src/commands/serverless/init.js)_ +_See code: [src/commands/serverless/init.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.5/src/commands/serverless/init.js)_ ## `twilio serverless:list [TYPES]` @@ -478,7 +478,7 @@ 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.4/src/commands/serverless/list.js)_ +_See code: [src/commands/serverless/list.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.5/src/commands/serverless/list.js)_ ## `twilio serverless:list-templates` @@ -495,7 +495,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.4/src/commands/serverless/list-templates.js)_ +_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)_ ## `twilio serverless:logs` @@ -535,7 +535,7 @@ 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.4/src/commands/serverless/logs.js)_ +_See code: [src/commands/serverless/logs.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.5/src/commands/serverless/logs.js)_ ## `twilio serverless:new [NAMESPACE]` @@ -559,7 +559,7 @@ 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.4/src/commands/serverless/new.js)_ +_See code: [src/commands/serverless/new.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.5/src/commands/serverless/new.js)_ ## `twilio serverless:promote` @@ -608,7 +608,7 @@ ALIASES $ twilio serverless:activate ``` -_See code: [src/commands/serverless/promote.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.4/src/commands/serverless/promote.js)_ +_See code: [src/commands/serverless/promote.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.5/src/commands/serverless/promote.js)_ ## `twilio serverless:run [DIR]` @@ -692,7 +692,7 @@ ALIASES $ twilio serverless:run ``` -_See code: [src/commands/serverless/start.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.4/src/commands/serverless/start.js)_ +_See code: [src/commands/serverless/start.js](https://github.com/twilio-labs/serverless-toolkit/blob/v3.1.5/src/commands/serverless/start.js)_ ## Contributing diff --git a/packages/plugin-serverless/package.json b/packages/plugin-serverless/package.json index 886dcb6f..3a2926f0 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.4", + "version": "3.1.5", "author": "Twilio Inc. (https://www.twilio.com/labs)", "contributors": [ "Dominik Kundel " From 6ce8f69f05595bcdeac43387015f0f3bbf973b2e Mon Sep 17 00:00:00 2001 From: makserik <15821542+makserik@users.noreply.github.com> Date: Wed, 24 Jan 2024 11:03:38 +0200 Subject: [PATCH 07/23] chore(@twilio-labs/serverless-runtime-types): node sdk and ts bump (#502) * chore(@twilio-labs/serverless-runtime-types): node sdk and ts bump twilio node sdk and ts versions bump * Create moody-impalas-deliver.md * chore(@twilio-labs/serverless-runtime-types): revert manual version bump fix #483 --- .changeset/moody-impalas-deliver.md | 5 +++++ packages/serverless-runtime-types/package.json | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/moody-impalas-deliver.md diff --git a/.changeset/moody-impalas-deliver.md b/.changeset/moody-impalas-deliver.md new file mode 100644 index 00000000..370ab94e --- /dev/null +++ b/.changeset/moody-impalas-deliver.md @@ -0,0 +1,5 @@ +--- +"@twilio-labs/serverless-runtime-types": major +--- + +chore(@twilio-labs/serverless-runtime-types): node sdk and ts bump diff --git a/packages/serverless-runtime-types/package.json b/packages/serverless-runtime-types/package.json index 96481e7e..e642c965 100644 --- a/packages/serverless-runtime-types/package.json +++ b/packages/serverless-runtime-types/package.json @@ -30,12 +30,12 @@ "dependencies": { "@types/express": "^4.17.11", "@types/qs": "^6.9.4", - "twilio": "^3.60.0" + "twilio": "^4.20.1" }, "devDependencies": { "@types/express": "^4.17.11", "all-contributors-cli": "^6.7.0", - "typescript": "^4.9.4" + "typescript": "^5.3.3" }, "publishConfig": { "access": "public" From deec790edabf4b6164f59c033feda3ef20345d68 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 24 Jan 2024 11:44:00 +0200 Subject: [PATCH 08/23] chore: version packages (#503) Co-authored-by: github-actions[bot] --- .changeset/moody-impalas-deliver.md | 5 - packages/runtime-handler/CHANGELOG.md | 131 +++--------------- packages/runtime-handler/package.json | 4 +- .../serverless-runtime-types/CHANGELOG.md | 126 +++++------------ .../serverless-runtime-types/package.json | 2 +- 5 files changed, 59 insertions(+), 209 deletions(-) delete mode 100644 .changeset/moody-impalas-deliver.md diff --git a/.changeset/moody-impalas-deliver.md b/.changeset/moody-impalas-deliver.md deleted file mode 100644 index 370ab94e..00000000 --- a/.changeset/moody-impalas-deliver.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@twilio-labs/serverless-runtime-types": major ---- - -chore(@twilio-labs/serverless-runtime-types): node sdk and ts bump diff --git a/packages/runtime-handler/CHANGELOG.md b/packages/runtime-handler/CHANGELOG.md index f2b6fbff..b4deeafc 100644 --- a/packages/runtime-handler/CHANGELOG.md +++ b/packages/runtime-handler/CHANGELOG.md @@ -1,220 +1,133 @@ # Change Log +## 1.3.1 + +### Patch Changes + +- Updated dependencies [[`6ce8f69f05595bcdeac43387015f0f3bbf973b2e`](https://github.com/twilio-labs/serverless-toolkit/commit/6ce8f69f05595bcdeac43387015f0f3bbf973b2e)]: + - @twilio-labs/serverless-runtime-types@3.0.0 + All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. # [1.3.0](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio/runtime-handler@1.2.5...@twilio/runtime-handler@1.3.0) (2022-11-30) - ### Features -* **packages/twilio-run:** regionalize toolkit config and api ([#433](https://github.com/twilio-labs/serverless-toolkit/issues/433)) ([30d5bdb](https://github.com/twilio-labs/serverless-toolkit/commit/30d5bdbe0e8a08b62406af3500ae8bd2d215df1e)) - - - - +- **packages/twilio-run:** regionalize toolkit config and api ([#433](https://github.com/twilio-labs/serverless-toolkit/issues/433)) ([30d5bdb](https://github.com/twilio-labs/serverless-toolkit/commit/30d5bdbe0e8a08b62406af3500ae8bd2d215df1e)) ## [1.2.5](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio/runtime-handler@1.2.4...@twilio/runtime-handler@1.2.5) (2022-10-11) **Note:** Version bump only for package @twilio/runtime-handler - - - - ## [1.2.4](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio/runtime-handler@1.2.3...@twilio/runtime-handler@1.2.4) (2022-08-08) **Note:** Version bump only for package @twilio/runtime-handler - - - - ## [1.2.3](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio/runtime-handler@1.2.3-beta.0...@twilio/runtime-handler@1.2.3) (2022-04-27) **Note:** Version bump only for package @twilio/runtime-handler - - - - ## [1.2.3-beta.0](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio/runtime-handler@1.2.2...@twilio/runtime-handler@1.2.3-beta.0) (2022-04-27) **Note:** Version bump only for package @twilio/runtime-handler - - - - ## [1.2.2](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio/runtime-handler@1.2.1...@twilio/runtime-handler@1.2.2) (2022-01-19) - ### Bug Fixes -* **runtime-handler:** corrects types ([024cad1](https://github.com/twilio-labs/serverless-toolkit/commit/024cad10481a08768cbfcfeddb826bb8954d1d28)) - - - - - - +- **runtime-handler:** corrects types ([024cad1](https://github.com/twilio-labs/serverless-toolkit/commit/024cad10481a08768cbfcfeddb826bb8954d1d28)) # [1.2.1](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio/runtime-handler@1.2.0...@twilio/runtime-handler@1.2.1) (2021-11-03) **Note:** Version bump only for package @twilio/runtime-handler - - - - # [1.2.0](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio/runtime-handler@1.1.3...@twilio/runtime-handler@1.2.0) (2021-10-15) - ### Bug Fixes -* **runtime-handler:** fall back to assets/index.html for root path ([54bfeda](https://github.com/twilio-labs/serverless-toolkit/commit/54bfeda7a8bf3b196888f8d2b75c89a8c362afcb)), closes [#371](https://github.com/twilio-labs/serverless-toolkit/issues/371) - +- **runtime-handler:** fall back to assets/index.html for root path ([54bfeda](https://github.com/twilio-labs/serverless-toolkit/commit/54bfeda7a8bf3b196888f8d2b75c89a8c362afcb)), closes [#371](https://github.com/twilio-labs/serverless-toolkit/issues/371) ### Features -* add support for request headers & cookies ([#373](https://github.com/twilio-labs/serverless-toolkit/issues/373)) ([989307d](https://github.com/twilio-labs/serverless-toolkit/commit/989307d0e73b06056ecb571958fbab39b38bfea2)), closes [#293](https://github.com/twilio-labs/serverless-toolkit/issues/293) [#296](https://github.com/twilio-labs/serverless-toolkit/issues/296) [#297](https://github.com/twilio-labs/serverless-toolkit/issues/297) [#314](https://github.com/twilio-labs/serverless-toolkit/issues/314) [#332](https://github.com/twilio-labs/serverless-toolkit/issues/332) -* **twilio-run:** adds json output to twilio-run deploy ([9ae1478](https://github.com/twilio-labs/serverless-toolkit/commit/9ae147816af85a671ed37639e83d0fa105f8ecb2)) - - - - +- add support for request headers & cookies ([#373](https://github.com/twilio-labs/serverless-toolkit/issues/373)) ([989307d](https://github.com/twilio-labs/serverless-toolkit/commit/989307d0e73b06056ecb571958fbab39b38bfea2)), closes [#293](https://github.com/twilio-labs/serverless-toolkit/issues/293) [#296](https://github.com/twilio-labs/serverless-toolkit/issues/296) [#297](https://github.com/twilio-labs/serverless-toolkit/issues/297) [#314](https://github.com/twilio-labs/serverless-toolkit/issues/314) [#332](https://github.com/twilio-labs/serverless-toolkit/issues/332) +- **twilio-run:** adds json output to twilio-run deploy ([9ae1478](https://github.com/twilio-labs/serverless-toolkit/commit/9ae147816af85a671ed37639e83d0fa105f8ecb2)) # [1.2.0-rc.3](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio/runtime-handler@1.2.0-rc.2...@twilio/runtime-handler@1.2.0-rc.3) (2021-08-03) **Note:** Version bump only for package @twilio/runtime-handler - - - - # [1.2.0-rc.2](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio/runtime-handler@1.2.0-rc.1...@twilio/runtime-handler@1.2.0-rc.2) (2021-07-28) - ### Bug Fixes -* **runtime-handler:** using set-cookie now sets cookie header ([#332](https://github.com/twilio-labs/serverless-toolkit/issues/332)) ([6f65bc3](https://github.com/twilio-labs/serverless-toolkit/commit/6f65bc3bb692b8bd0b21d932f66ae394000e51a9)) - +- **runtime-handler:** using set-cookie now sets cookie header ([#332](https://github.com/twilio-labs/serverless-toolkit/issues/332)) ([6f65bc3](https://github.com/twilio-labs/serverless-toolkit/commit/6f65bc3bb692b8bd0b21d932f66ae394000e51a9)) # [1.2.0-beta.0](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio/runtime-handler@1.1.3...@twilio/runtime-handler@1.2.0-beta.0) (2021-09-25) - ### Features -* **twilio-run:** adds json output to twilio-run deploy ([9ae1478](https://github.com/twilio-labs/serverless-toolkit/commit/9ae147816af85a671ed37639e83d0fa105f8ecb2)) - - - - +- **twilio-run:** adds json output to twilio-run deploy ([9ae1478](https://github.com/twilio-labs/serverless-toolkit/commit/9ae147816af85a671ed37639e83d0fa105f8ecb2)) ## [1.1.3](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio/runtime-handler@1.1.2...@twilio/runtime-handler@1.1.3) (2021-07-28) **Note:** Version bump only for package @twilio/runtime-handler - - - # [1.2.0-rc.1](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio/runtime-handler@1.1.1...@twilio/runtime-handler@1.2.0-rc.1) (2021-07-14) - ### Features -* **handler:** update header and cookie support for Response ([#296](https://github.com/twilio-labs/serverless-toolkit/issues/296)) ([e9ef02e](https://github.com/twilio-labs/serverless-toolkit/commit/e9ef02ed9e10635623f462db6f53de3669ffaf0b)) -* **runtime-handler:** handle incoming headers and cookies ([#293](https://github.com/twilio-labs/serverless-toolkit/issues/293)) ([62ff180](https://github.com/twilio-labs/serverless-toolkit/commit/62ff1801db6a121122fcd944a855ad7f038cafe4)) - +- **handler:** update header and cookie support for Response ([#296](https://github.com/twilio-labs/serverless-toolkit/issues/296)) ([e9ef02e](https://github.com/twilio-labs/serverless-toolkit/commit/e9ef02ed9e10635623f462db6f53de3669ffaf0b)) +- **runtime-handler:** handle incoming headers and cookies ([#293](https://github.com/twilio-labs/serverless-toolkit/issues/293)) ([62ff180](https://github.com/twilio-labs/serverless-toolkit/commit/62ff1801db6a121122fcd944a855ad7f038cafe4)) ## [1.1.2](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio/runtime-handler@1.1.1...@twilio/runtime-handler@1.1.2) (2021-07-19) - ### Bug Fixes -* **runtime-handler:** add warning for optional context vars ([#317](https://github.com/twilio-labs/serverless-toolkit/issues/317)) ([47051de](https://github.com/twilio-labs/serverless-toolkit/commit/47051dec50ce477d22bc6be0f87d58950c4a1919)) - - - - +- **runtime-handler:** add warning for optional context vars ([#317](https://github.com/twilio-labs/serverless-toolkit/issues/317)) ([47051de](https://github.com/twilio-labs/serverless-toolkit/commit/47051dec50ce477d22bc6be0f87d58950c4a1919)) ## [1.1.1](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio/runtime-handler@1.1.0...@twilio/runtime-handler@1.1.1) (2021-06-30) - ### Bug Fixes -* **response:** brings Response object to parity with Functions ([#287](https://github.com/twilio-labs/serverless-toolkit/issues/287)) ([0c66d97](https://github.com/twilio-labs/serverless-toolkit/commit/0c66d97a344cf43b2e0c95a12e054fedecc1b027)) - - - - +- **response:** brings Response object to parity with Functions ([#287](https://github.com/twilio-labs/serverless-toolkit/issues/287)) ([0c66d97](https://github.com/twilio-labs/serverless-toolkit/commit/0c66d97a344cf43b2e0c95a12e054fedecc1b027)) # [1.1.0](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio/runtime-handler@1.0.2...@twilio/runtime-handler@1.1.0) (2021-06-21) - ### Bug Fixes -* **twilio-run:** correctly serialize JSON Responses ([#277](https://github.com/twilio-labs/serverless-toolkit/issues/277)) ([a40291d](https://github.com/twilio-labs/serverless-toolkit/commit/a40291dd63332542eed03144ffd7b5c1bd245357)) - +- **twilio-run:** correctly serialize JSON Responses ([#277](https://github.com/twilio-labs/serverless-toolkit/issues/277)) ([a40291d](https://github.com/twilio-labs/serverless-toolkit/commit/a40291dd63332542eed03144ffd7b5c1bd245357)) ### Features -* extract runtime-handler and lazyLoading ([#252](https://github.com/twilio-labs/serverless-toolkit/issues/252)) ([#271](https://github.com/twilio-labs/serverless-toolkit/issues/271)) ([0dde2a5](https://github.com/twilio-labs/serverless-toolkit/commit/0dde2a5a74035700e4ef6cf4b1c1189c78e2ff59)) - - - - +- extract runtime-handler and lazyLoading ([#252](https://github.com/twilio-labs/serverless-toolkit/issues/252)) ([#271](https://github.com/twilio-labs/serverless-toolkit/issues/271)) ([0dde2a5](https://github.com/twilio-labs/serverless-toolkit/commit/0dde2a5a74035700e4ef6cf4b1c1189c78e2ff59)) # [1.1.0-rc.3](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio/runtime-handler@1.0.2...@twilio/runtime-handler@1.1.0-rc.3) (2021-05-24) - ### Features -* extract runtime-handler and lazyLoading ([#252](https://github.com/twilio-labs/serverless-toolkit/issues/252)) ([4b11e69](https://github.com/twilio-labs/serverless-toolkit/commit/4b11e693248e44a8c6db4a95cf90e79e00f7db08)) - - - - +- extract runtime-handler and lazyLoading ([#252](https://github.com/twilio-labs/serverless-toolkit/issues/252)) ([4b11e69](https://github.com/twilio-labs/serverless-toolkit/commit/4b11e693248e44a8c6db4a95cf90e79e00f7db08)) ## [1.0.2](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio/runtime-handler@1.0.2-beta.3...@twilio/runtime-handler@1.0.2) (2021-05-19) **Note:** Version bump only for package @twilio/runtime-handler - - - - ## [1.0.2-beta.3](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio/runtime-handler@1.0.2-beta.2...@twilio/runtime-handler@1.0.2-beta.3) (2021-04-21) **Note:** Version bump only for package @twilio/runtime-handler - - - - ## [1.0.2-beta.2](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio/runtime-handler@1.0.2-beta.1...@twilio/runtime-handler@1.0.2-beta.2) (2021-04-21) **Note:** Version bump only for package @twilio/runtime-handler - - - - ## [1.0.2-beta.1](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio/runtime-handler@1.0.2-beta.0...@twilio/runtime-handler@1.0.2-beta.1) (2021-04-21) **Note:** Version bump only for package @twilio/runtime-handler - - - - ## 1.0.2-beta.0 (2021-04-21) **Note:** Version bump only for package @twilio/runtime-handler - - - - + ## 1.0.1 (2021-04-16) diff --git a/packages/runtime-handler/package.json b/packages/runtime-handler/package.json index 9423317b..6467bb9a 100644 --- a/packages/runtime-handler/package.json +++ b/packages/runtime-handler/package.json @@ -1,6 +1,6 @@ { "name": "@twilio/runtime-handler", - "version": "1.3.0", + "version": "1.3.1", "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": "^2.2.3", + "@twilio-labs/serverless-runtime-types": "^3.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 3861fe1a..7c8755ac 100644 --- a/packages/serverless-runtime-types/CHANGELOG.md +++ b/packages/serverless-runtime-types/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 3.0.0 + +### Major Changes + +- [#502](https://github.com/twilio-labs/serverless-toolkit/pull/502) [`6ce8f69f05595bcdeac43387015f0f3bbf973b2e`](https://github.com/twilio-labs/serverless-toolkit/commit/6ce8f69f05595bcdeac43387015f0f3bbf973b2e) Thanks [@makserik](https://github.com/makserik)! - chore(@twilio-labs/serverless-runtime-types): node sdk and ts bump + All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. @@ -7,166 +13,102 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @twilio-labs/serverless-runtime-types - - - - ## [2.2.3-beta.0](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-runtime-types@2.2.2...@twilio-labs/serverless-runtime-types@2.2.3-beta.0) (2022-04-27) **Note:** Version bump only for package @twilio-labs/serverless-runtime-types - - - - ## [2.2.2](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-runtime-types@2.2.1...@twilio-labs/serverless-runtime-types@2.2.2) (2022-01-19) **Note:** Version bump only for package @twilio-labs/serverless-runtime-types - - - - # [2.2.1](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-runtime-types@2.2.0...@twilio-labs/serverless-runtime-types@2.2.1) (2021-11-03) - ### Documentation -* **runtime-types** add sync alias comments, punctuation nitpicks ([41b3e15](https://github.com/twilio-labs/serverless-toolkit/commit/41b3e1584400db9039f6f941690e935dff26a9a6)) -* **runtime-types** adds TSDoc comments to the Context object ([ceee356](https://github.com/twilio-labs/serverless-toolkit/commit/ceee356224d305ba2f7b45d05da0fb30d48fdf7b)) -* **runtime-types** adds TSDoc comments to RuntimeInstance methods ([9b0fdb7](https://github.com/twilio-labs/serverless-toolkit/commit/9b0fdb7fd291b68a0792ddaff4f4a2c265645277)) -* **runtime-types** adds TSDoc comments to TwilioResponse methods ([c5b3263](https://github.com/twilio-labs/serverless-toolkit/commit/c5b3263b6b86b8d66a67d73980388dad001fc2e4)) - - - - +- **runtime-types** add sync alias comments, punctuation nitpicks ([41b3e15](https://github.com/twilio-labs/serverless-toolkit/commit/41b3e1584400db9039f6f941690e935dff26a9a6)) +- **runtime-types** adds TSDoc comments to the Context object ([ceee356](https://github.com/twilio-labs/serverless-toolkit/commit/ceee356224d305ba2f7b45d05da0fb30d48fdf7b)) +- **runtime-types** adds TSDoc comments to RuntimeInstance methods ([9b0fdb7](https://github.com/twilio-labs/serverless-toolkit/commit/9b0fdb7fd291b68a0792ddaff4f4a2c265645277)) +- **runtime-types** adds TSDoc comments to TwilioResponse methods ([c5b3263](https://github.com/twilio-labs/serverless-toolkit/commit/c5b3263b6b86b8d66a67d73980388dad001fc2e4)) # [2.2.0](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-runtime-types@2.1.2...@twilio-labs/serverless-runtime-types@2.2.0) (2021-10-15) - ### Features -* add support for request headers & cookies ([#373](https://github.com/twilio-labs/serverless-toolkit/issues/373)) ([989307d](https://github.com/twilio-labs/serverless-toolkit/commit/989307d0e73b06056ecb571958fbab39b38bfea2)), closes [#293](https://github.com/twilio-labs/serverless-toolkit/issues/293) [#296](https://github.com/twilio-labs/serverless-toolkit/issues/296) [#297](https://github.com/twilio-labs/serverless-toolkit/issues/297) [#314](https://github.com/twilio-labs/serverless-toolkit/issues/314) [#332](https://github.com/twilio-labs/serverless-toolkit/issues/332) - - - - +- add support for request headers & cookies ([#373](https://github.com/twilio-labs/serverless-toolkit/issues/373)) ([989307d](https://github.com/twilio-labs/serverless-toolkit/commit/989307d0e73b06056ecb571958fbab39b38bfea2)), closes [#293](https://github.com/twilio-labs/serverless-toolkit/issues/293) [#296](https://github.com/twilio-labs/serverless-toolkit/issues/296) [#297](https://github.com/twilio-labs/serverless-toolkit/issues/297) [#314](https://github.com/twilio-labs/serverless-toolkit/issues/314) [#332](https://github.com/twilio-labs/serverless-toolkit/issues/332) # [2.2.0-rc.0](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-runtime-types@2.1.0...@twilio-labs/serverless-runtime-types@2.2.0-rc.0) (2021-07-14) - ### Features -* **runtime-types:** add cookie/header support for types ([#297](https://github.com/twilio-labs/serverless-toolkit/issues/297)) ([e04fbcb](https://github.com/twilio-labs/serverless-toolkit/commit/e04fbcbd89fdda2fe3c55928df5c630cd9989fa9)) - +- **runtime-types:** add cookie/header support for types ([#297](https://github.com/twilio-labs/serverless-toolkit/issues/297)) ([e04fbcb](https://github.com/twilio-labs/serverless-toolkit/commit/e04fbcbd89fdda2fe3c55928df5c630cd9989fa9)) ## [2.1.1](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-runtime-types@2.1.0...@twilio-labs/serverless-runtime-types@2.1.1) (2021-07-19) - ### Bug Fixes -* **runtime-handler:** add warning for optional context vars ([#317](https://github.com/twilio-labs/serverless-toolkit/issues/317)) ([47051de](https://github.com/twilio-labs/serverless-toolkit/commit/47051dec50ce477d22bc6be0f87d58950c4a1919)) - - - - +- **runtime-handler:** add warning for optional context vars ([#317](https://github.com/twilio-labs/serverless-toolkit/issues/317)) ([47051de](https://github.com/twilio-labs/serverless-toolkit/commit/47051dec50ce477d22bc6be0f87d58950c4a1919)) # [2.1.0](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-runtime-types@2.0.0...@twilio-labs/serverless-runtime-types@2.1.0) (2021-06-21) - ### Features -* extract runtime-handler and lazyLoading ([#252](https://github.com/twilio-labs/serverless-toolkit/issues/252)) ([#271](https://github.com/twilio-labs/serverless-toolkit/issues/271)) ([0dde2a5](https://github.com/twilio-labs/serverless-toolkit/commit/0dde2a5a74035700e4ef6cf4b1c1189c78e2ff59)) - - - - +- extract runtime-handler and lazyLoading ([#252](https://github.com/twilio-labs/serverless-toolkit/issues/252)) ([#271](https://github.com/twilio-labs/serverless-toolkit/issues/271)) ([0dde2a5](https://github.com/twilio-labs/serverless-toolkit/commit/0dde2a5a74035700e4ef6cf4b1c1189c78e2ff59)) # [2.1.0-rc.0](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-runtime-types@2.0.0...@twilio-labs/serverless-runtime-types@2.1.0-rc.0) (2021-05-24) - ### Features -* extract runtime-handler and lazyLoading ([#252](https://github.com/twilio-labs/serverless-toolkit/issues/252)) ([4b11e69](https://github.com/twilio-labs/serverless-toolkit/commit/4b11e693248e44a8c6db4a95cf90e79e00f7db08)) - - - - +- extract runtime-handler and lazyLoading ([#252](https://github.com/twilio-labs/serverless-toolkit/issues/252)) ([4b11e69](https://github.com/twilio-labs/serverless-toolkit/commit/4b11e693248e44a8c6db4a95cf90e79e00f7db08)) # [2.0.0](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-runtime-types@2.0.0-beta.3...@twilio-labs/serverless-runtime-types@2.0.0) (2021-05-19) **Note:** Version bump only for package @twilio-labs/serverless-runtime-types - - - - # [2.0.0-beta.3](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-runtime-types@2.0.0-beta.2...@twilio-labs/serverless-runtime-types@2.0.0-beta.3) (2021-04-21) **Note:** Version bump only for package @twilio-labs/serverless-runtime-types - - - - # [2.0.0-beta.2](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/serverless-runtime-types@2.0.0-beta.1...@twilio-labs/serverless-runtime-types@2.0.0-beta.2) (2021-04-21) **Note:** Version bump only for package @twilio-labs/serverless-runtime-types - - - - # 2.0.0-beta.1 (2021-04-21) - ### Bug Fixes -* update to correct type import ([ea0994f](https://github.com/twilio-labs/serverless-toolkit/commit/ea0994f598a550188794d84554e1d11b5edbc198)) -* **deps:** npm is not happy about @types/qs ([0d4e6a8](https://github.com/twilio-labs/serverless-toolkit/commit/0d4e6a894d154996470b9ab4bdd9b72095b7bd94)) -* **types:** add extended sync service types ([e735e81](https://github.com/twilio-labs/serverless-toolkit/commit/e735e81a3872a723b8276506eb046f6d327166c6)) -* **types:** add other values to callback signature ([d024032](https://github.com/twilio-labs/serverless-toolkit/commit/d024032b8200d8c8fba41f557752b5b5a1ba9cf6)) -* **types:** improve types for Twilio Functions ([c7eb678](https://github.com/twilio-labs/serverless-toolkit/commit/c7eb678ff3e8d0fd27ec595945ab944679e54177)) - +- update to correct type import ([ea0994f](https://github.com/twilio-labs/serverless-toolkit/commit/ea0994f598a550188794d84554e1d11b5edbc198)) +- **deps:** npm is not happy about @types/qs ([0d4e6a8](https://github.com/twilio-labs/serverless-toolkit/commit/0d4e6a894d154996470b9ab4bdd9b72095b7bd94)) +- **types:** add extended sync service types ([e735e81](https://github.com/twilio-labs/serverless-toolkit/commit/e735e81a3872a723b8276506eb046f6d327166c6)) +- **types:** add other values to callback signature ([d024032](https://github.com/twilio-labs/serverless-toolkit/commit/d024032b8200d8c8fba41f557752b5b5a1ba9cf6)) +- **types:** improve types for Twilio Functions ([c7eb678](https://github.com/twilio-labs/serverless-toolkit/commit/c7eb678ff3e8d0fd27ec595945ab944679e54177)) ### Features -* add initial release ([b8177f7](https://github.com/twilio-labs/serverless-toolkit/commit/b8177f777b03582d607173e96f1c778e703a90e4)) -* **deploy:** adds runtime as a flag to the deploy command ([#218](https://github.com/twilio-labs/serverless-toolkit/issues/218)) ([789ec02](https://github.com/twilio-labs/serverless-toolkit/commit/789ec027f1151be156e1fb01b4e4110ca0de9c44)) -* **twilio-run:** restructure configuration ([#198](https://github.com/twilio-labs/serverless-toolkit/issues/198)) ([f88d490](https://github.com/twilio-labs/serverless-toolkit/commit/f88d49027980ee4c4d7f630918f860a987f13887)), closes [#166](https://github.com/twilio-labs/serverless-toolkit/issues/166) -* **types:** add Context type ([ce2e171](https://github.com/twilio-labs/serverless-toolkit/commit/ce2e17151520f5722327692f5f3c55f7dbbceef0)) -* **types:** add ServerlessFunctionSignature types ([3d258ba](https://github.com/twilio-labs/serverless-toolkit/commit/3d258ba126cc976d967aa16012960e5185b6e6d2)) - +- add initial release ([b8177f7](https://github.com/twilio-labs/serverless-toolkit/commit/b8177f777b03582d607173e96f1c778e703a90e4)) +- **deploy:** adds runtime as a flag to the deploy command ([#218](https://github.com/twilio-labs/serverless-toolkit/issues/218)) ([789ec02](https://github.com/twilio-labs/serverless-toolkit/commit/789ec027f1151be156e1fb01b4e4110ca0de9c44)) +- **twilio-run:** restructure configuration ([#198](https://github.com/twilio-labs/serverless-toolkit/issues/198)) ([f88d490](https://github.com/twilio-labs/serverless-toolkit/commit/f88d49027980ee4c4d7f630918f860a987f13887)), closes [#166](https://github.com/twilio-labs/serverless-toolkit/issues/166) +- **types:** add Context type ([ce2e171](https://github.com/twilio-labs/serverless-toolkit/commit/ce2e17151520f5722327692f5f3c55f7dbbceef0)) +- **types:** add ServerlessFunctionSignature types ([3d258ba](https://github.com/twilio-labs/serverless-toolkit/commit/3d258ba126cc976d967aa16012960e5185b6e6d2)) ### BREAKING CHANGES -* **twilio-run:** Drops support for .twilio-functions files and internally restructures activate -files to promote - - - - +- **twilio-run:** Drops support for .twilio-functions files and internally restructures activate + files to promote # 2.0.0-beta.0 (2020-08-27) - ### Bug Fixes -* **types:** add extended sync service types ([e735e81](https://github.com/twilio-labs/serverless-toolkit/commit/e735e81a3872a723b8276506eb046f6d327166c6)) -* update to correct type import ([ea0994f](https://github.com/twilio-labs/serverless-toolkit/commit/ea0994f598a550188794d84554e1d11b5edbc198)) -* **types:** add other values to callback signature ([d024032](https://github.com/twilio-labs/serverless-toolkit/commit/d024032b8200d8c8fba41f557752b5b5a1ba9cf6)) -* **types:** improve types for Twilio Functions ([c7eb678](https://github.com/twilio-labs/serverless-toolkit/commit/c7eb678ff3e8d0fd27ec595945ab944679e54177)) - +- **types:** add extended sync service types ([e735e81](https://github.com/twilio-labs/serverless-toolkit/commit/e735e81a3872a723b8276506eb046f6d327166c6)) +- update to correct type import ([ea0994f](https://github.com/twilio-labs/serverless-toolkit/commit/ea0994f598a550188794d84554e1d11b5edbc198)) +- **types:** add other values to callback signature ([d024032](https://github.com/twilio-labs/serverless-toolkit/commit/d024032b8200d8c8fba41f557752b5b5a1ba9cf6)) +- **types:** improve types for Twilio Functions ([c7eb678](https://github.com/twilio-labs/serverless-toolkit/commit/c7eb678ff3e8d0fd27ec595945ab944679e54177)) ### Features -* add initial release ([b8177f7](https://github.com/twilio-labs/serverless-toolkit/commit/b8177f777b03582d607173e96f1c778e703a90e4)) -* **types:** add Context type ([ce2e171](https://github.com/twilio-labs/serverless-toolkit/commit/ce2e17151520f5722327692f5f3c55f7dbbceef0)) -* **types:** add ServerlessFunctionSignature types ([3d258ba](https://github.com/twilio-labs/serverless-toolkit/commit/3d258ba126cc976d967aa16012960e5185b6e6d2)) - - - - +- add initial release ([b8177f7](https://github.com/twilio-labs/serverless-toolkit/commit/b8177f777b03582d607173e96f1c778e703a90e4)) +- **types:** add Context type ([ce2e171](https://github.com/twilio-labs/serverless-toolkit/commit/ce2e17151520f5722327692f5f3c55f7dbbceef0)) +- **types:** add ServerlessFunctionSignature types ([3d258ba](https://github.com/twilio-labs/serverless-toolkit/commit/3d258ba126cc976d967aa16012960e5185b6e6d2)) # Changelog diff --git a/packages/serverless-runtime-types/package.json b/packages/serverless-runtime-types/package.json index e642c965..2a3bb2ff 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": "2.2.3", + "version": "3.0.0", "description": "TypeScript definitions to define globals for the Twilio Serverless runtime", "main": "index.js", "types": "index.d.ts", From ec834d68b95f87dfeb6671e2ded65deb3537cc3c Mon Sep 17 00:00:00 2001 From: makserik <15821542+makserik@users.noreply.github.com> Date: Wed, 24 Jan 2024 17:02:55 +0200 Subject: [PATCH 09/23] fix: npm publish fails (#504) --- .github/workflows/on-merge-main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/on-merge-main.yml b/.github/workflows/on-merge-main.yml index 181ff3cb..51fee15f 100644 --- a/.github/workflows/on-merge-main.yml +++ b/.github/workflows/on-merge-main.yml @@ -35,6 +35,7 @@ jobs: run: | npm run clean npm run build + npm login - name: "Create Pull Request or Publish to npm" uses: changesets/action@v1 with: @@ -43,4 +44,4 @@ jobs: commit: "chore: version packages" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} From 8f0d1047846388c3106ff70ed61f7eb3a0a6033f Mon Sep 17 00:00:00 2001 From: makserik <15821542+makserik@users.noreply.github.com> Date: Wed, 24 Jan 2024 17:32:32 +0200 Subject: [PATCH 10/23] fix: npm fails to publish (#505) * fix: npm fails to publish * Update on-merge-main.yml --- .github/workflows/on-merge-main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/on-merge-main.yml b/.github/workflows/on-merge-main.yml index 51fee15f..cd8c70f4 100644 --- a/.github/workflows/on-merge-main.yml +++ b/.github/workflows/on-merge-main.yml @@ -18,13 +18,13 @@ jobs: steps: - name: Checkout Repo uses: actions/checkout@v3 - - name: Setup Node.js 16 + - name: Setup Node.js 20 uses: actions/setup-node@v3 with: - node-version: 16 - - name: Update npm to 8.x + node-version: 20 + - name: Update npm to 10.x run: | - npm i -g npm@8 + npm i -g npm@10 - name: Install Dependencies run: npm install - name: Setup CI Git User @@ -35,7 +35,7 @@ jobs: run: | npm run clean npm run build - npm login + npm whoami - name: "Create Pull Request or Publish to npm" uses: changesets/action@v1 with: From f456e5397e35e36401d1706c7d05e7f1c87acaff Mon Sep 17 00:00:00 2001 From: makserik <15821542+makserik@users.noreply.github.com> Date: Thu, 25 Jan 2024 10:08:47 +0200 Subject: [PATCH 11/23] Update on-merge-main.yml (#506) --- .github/workflows/on-merge-main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/on-merge-main.yml b/.github/workflows/on-merge-main.yml index cd8c70f4..d2967703 100644 --- a/.github/workflows/on-merge-main.yml +++ b/.github/workflows/on-merge-main.yml @@ -35,7 +35,6 @@ jobs: run: | npm run clean npm run build - npm whoami - name: "Create Pull Request or Publish to npm" uses: changesets/action@v1 with: @@ -45,3 +44,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From 1ee1bdeb3f12f4acb2b3e737032d6b94ae390ec1 Mon Sep 17 00:00:00 2001 From: makserik <15821542+makserik@users.noreply.github.com> Date: Fri, 26 Jan 2024 11:05:49 +0200 Subject: [PATCH 12/23] fix: on-merge-main.yml (#507) * fix: on-merge-main.yml * Update CONTRIBUTING.md * Update CONTRIBUTING.md --- .github/workflows/on-merge-main.yml | 1 - docs/CONTRIBUTING.md | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/on-merge-main.yml b/.github/workflows/on-merge-main.yml index d2967703..c273edbe 100644 --- a/.github/workflows/on-merge-main.yml +++ b/.github/workflows/on-merge-main.yml @@ -44,4 +44,3 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index e82da97e..3638be51 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -46,6 +46,8 @@ npm run bootstrap Version bumps are handled automatically by [this GitHub Action](../.github/workflows/on-merge-main.yml) whenever changes have been merged to `main`. If the automation will detect any changeset files inside the `.changeset` directory it will either open a new Pull Request to bump the version or force-push to the currently open Pull Request. In order to release to `npm` you'll have to merge that Pull Request which will automatically kick off the release. +If the release fails, the issue might be in the NPM token expiring for twilio-labs-ci account. (For example a generic 404 not found response from NPM is usually token expiring) Current expiration is set for January 2026. Internal Slack channel for OSS support can help with the renewal. + ## How we version All packages that are part of this project follow the [SemVer convention](https://semver.org/). Specifically this means the following version changes apply for the following changes: From 9a1f34cc3f2741f67e2ba495d8ab6e212d538233 Mon Sep 17 00:00:00 2001 From: twilio-product-security <67294289+twilio-product-security@users.noreply.github.com> Date: Wed, 13 Mar 2024 02:14:31 -0700 Subject: [PATCH 13/23] [Snyk] Security upgrade @commitlint/cli from 9.1.2 to 17.0.0 (#476) * fix: package.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-YAML-5458867 * chore: upgrade commitlint config --------- Co-authored-by: snyk-bot Co-authored-by: Victor Ayogu --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 20059b85..206bb995 100644 --- a/package.json +++ b/package.json @@ -24,8 +24,8 @@ "devDependencies": { "@changesets/changelog-github": "^0.4.8", "@changesets/cli": "^2.26.0", - "@commitlint/cli": "^9.1.2", - "@commitlint/config-conventional": "^10.0.0", + "@commitlint/cli": "^19.1.0", + "@commitlint/config-conventional": "^19.1.0", "@twilio/test-dep": "npm:twilio@3.84.0", "@types/jest": "^29.2.4", "all-contributors-cli": "^6.1.2", From 467f26c1810c015b6cb8a89e563b00ab58569b2d Mon Sep 17 00:00:00 2001 From: twilio-product-security <67294289+twilio-product-security@users.noreply.github.com> Date: Wed, 13 Mar 2024 03:26:02 -0700 Subject: [PATCH 14/23] fix: packages/twilio-run/package.json to reduce vulnerabilities (#475) The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-YAML-5458867 Co-authored-by: snyk-bot --- packages/twilio-run/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/twilio-run/package.json b/packages/twilio-run/package.json index 1d7adf7c..20f18e2c 100644 --- a/packages/twilio-run/package.json +++ b/packages/twilio-run/package.json @@ -48,7 +48,7 @@ "columnify": "^1.5.4", "common-tags": "^1.8.0", "conf": "^5.0.0", - "cosmiconfig": "^7.0.0", + "cosmiconfig": "^8.0.0", "debug": "^3.1.0", "dotenv": "^6.2.0", "enquirer": "^2.3.6", From 860cc52ab36341d3c55c83692a322e9b3a831289 Mon Sep 17 00:00:00 2001 From: twilio-product-security <67294289+twilio-product-security@users.noreply.github.com> Date: Wed, 13 Mar 2024 03:46:01 -0700 Subject: [PATCH 15/23] fix: packages/twilio-run/package.json to reduce vulnerabilities (#481) The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-SEMVER-3247795 Co-authored-by: snyk-bot --- packages/twilio-run/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/twilio-run/package.json b/packages/twilio-run/package.json index 20f18e2c..8343386d 100644 --- a/packages/twilio-run/package.json +++ b/packages/twilio-run/package.json @@ -47,7 +47,7 @@ "chokidar": "^3.2.3", "columnify": "^1.5.4", "common-tags": "^1.8.0", - "conf": "^5.0.0", + "conf": "^10.0.0", "cosmiconfig": "^8.0.0", "debug": "^3.1.0", "dotenv": "^6.2.0", From 2c95fcf2d66e0ac0aa21255eff2d6cbdc297841b Mon Sep 17 00:00:00 2001 From: twilio-product-security <67294289+twilio-product-security@users.noreply.github.com> Date: Mon, 18 Mar 2024 06:43:23 -0700 Subject: [PATCH 16/23] [Snyk] Security upgrade jest from 28.1.3 to 29.0.0 (#491) * fix: package.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-INFLIGHT-6095116 * fix: update snapshots and tests * fix: update config * fix: update typedoc --------- Co-authored-by: snyk-bot Co-authored-by: Victor Ayogu --- jest.config.base.js | 11 ++- package.json | 5 +- .../tests/install-dependencies.test.js | 7 +- .../tests/success-message.test.js | 12 ++- .../tests/window-size.test.js | 4 +- packages/plugin-assets/tests/init.test.js | 26 +++--- .../__snapshots__/integration.test.ts.snap | 28 +++---- packages/runtime-handler/jest.config.js | 11 ++- packages/serverless-api/jest.config.js | 11 ++- .../__snapshots__/integration.test.ts.snap | 22 ++--- .../__snapshots__/defaultConfig.test.ts.snap | 80 +++++++++---------- packages/twilio-run/jest.config.js | 11 ++- 12 files changed, 123 insertions(+), 105 deletions(-) diff --git a/jest.config.base.js b/jest.config.base.js index d2d482cd..b8e2e92b 100644 --- a/jest.config.base.js +++ b/jest.config.base.js @@ -11,10 +11,13 @@ module.exports = { coverageDirectory: 'coverage', // A set of global variables that need to be available in all test environments - globals: { - 'ts-jest': { - tsconfig: 'tsconfig.test.json', - }, + transform: { + '^.+\\.ts?$': [ + 'ts-jest', + { + tsconfig: 'tsconfig.test.json', + }, + ], }, // The test environment that will be used for testing testEnvironment: 'node', diff --git a/package.json b/package.json index 206bb995..7a982d3b 100644 --- a/package.json +++ b/package.json @@ -34,13 +34,14 @@ "conventional-changelog-cli": "^2.1.0", "cz-conventional-changelog": "^2.1.0", "husky": "^8.0.2", - "jest": "^28.1.3", + "jest": "^29.7.0", "jest-express": "^1.10.1", "lint-staged": "^9.0.0", "npm-run-all": "^4.1.5", "prettier": "^2.2.1", "rimraf": "^3.0.2", - "ts-jest": "^28.0.8", + "ts-jest": "^29.1.2", + "typedoc": "^0.25.12", "typescript": "^5.3.3" }, "lint-staged": { diff --git a/packages/create-twilio-function/tests/install-dependencies.test.js b/packages/create-twilio-function/tests/install-dependencies.test.js index 9c63ddc8..25f78934 100644 --- a/packages/create-twilio-function/tests/install-dependencies.test.js +++ b/packages/create-twilio-function/tests/install-dependencies.test.js @@ -1,13 +1,14 @@ const path = require('path'); +jest.mock('pkg-install'); const pkgInstall = require('pkg-install'); -const { installDependencies } = require('../src/create-twilio-function/install-dependencies'); +const { + installDependencies, +} = require('../src/create-twilio-function/install-dependencies'); const scratchDir = path.join(process.cwd(), 'scratch'); -jest.mock('pkg-install'); - describe('installDependencies', () => { test('it calls `npm install` in the target directory', async () => { pkgInstall.projectInstall.mockResolvedValue({ stdout: 'done' }); diff --git a/packages/create-twilio-function/tests/success-message.test.js b/packages/create-twilio-function/tests/success-message.test.js index 62b19192..e4b1b047 100644 --- a/packages/create-twilio-function/tests/success-message.test.js +++ b/packages/create-twilio-function/tests/success-message.test.js @@ -1,11 +1,11 @@ +jest.mock('pkg-install'); +jest.mock('window-size', () => ({ get: () => ({ width: 80 }) })); + const pkgInstall = require('pkg-install'); const chalk = require('chalk'); const successMessage = require('../src/create-twilio-function/success-message'); -jest.mock('pkg-install'); -jest.mock('window-size', () => ({ get: () => ({ width: 80 }) })); - describe('successMessage', () => { test('creates a success message based on the package manager', async () => { pkgInstall.getPackageManager.mockResolvedValue('yarn'); @@ -15,6 +15,10 @@ describe('successMessage', () => { }; const message = await successMessage(config); expect(message).toEqual(expect.stringContaining('yarn start')); - expect(message).toEqual(expect.stringContaining(chalk`Created {bold ${config.name}} at {bold ${config.path}}`)); + expect(message).toEqual( + expect.stringContaining( + chalk`Created {bold ${config.name}} at {bold ${config.path}}` + ) + ); }); }); diff --git a/packages/create-twilio-function/tests/window-size.test.js b/packages/create-twilio-function/tests/window-size.test.js index c1b9e00f..daefa579 100644 --- a/packages/create-twilio-function/tests/window-size.test.js +++ b/packages/create-twilio-function/tests/window-size.test.js @@ -1,5 +1,3 @@ -const getWindowSize = require('../src/create-twilio-function/window-size'); - jest.mock('window-size', () => ({ get: jest .fn() @@ -16,6 +14,8 @@ jest.mock('window-size', () => ({ }), })); +const getWindowSize = require('../src/create-twilio-function/window-size'); + describe('getWindowSize', () => { it('gets a valid windowSize', () => { const windowSize = getWindowSize(); diff --git a/packages/plugin-assets/tests/init.test.js b/packages/plugin-assets/tests/init.test.js index 75e441e8..6f0073b3 100644 --- a/packages/plugin-assets/tests/init.test.js +++ b/packages/plugin-assets/tests/init.test.js @@ -1,16 +1,3 @@ -const { init } = require('../src/init'); -const path = require('path'); -const fs = require('fs').promises; -const { tmpdir } = require('os'); - -const { - createService, -} = require('@twilio-labs/serverless-api/dist/api/services'); -const { - createEnvironmentFromSuffix, - getEnvironment, -} = require('@twilio-labs/serverless-api/dist/api/environments'); - jest.mock('@twilio-labs/serverless-api/dist/api/services', () => { return { createService: jest.fn().mockResolvedValue('new-service-sid') }; }); @@ -25,6 +12,19 @@ jest.mock('@twilio-labs/serverless-api/dist/api/environments', () => { }; }); +const { init } = require('../src/init'); +const path = require('path'); +const fs = require('fs').promises; +const { tmpdir } = require('os'); + +const { + createService, +} = require('@twilio-labs/serverless-api/dist/api/services'); +const { + createEnvironmentFromSuffix, + getEnvironment, +} = require('@twilio-labs/serverless-api/dist/api/environments'); + const mockLogger = { error: jest.fn(), debug: jest.fn(), diff --git a/packages/runtime-handler/__tests__/dev-runtime/__snapshots__/integration.test.ts.snap b/packages/runtime-handler/__tests__/dev-runtime/__snapshots__/integration.test.ts.snap index 8c462467..9bb4503b 100644 --- a/packages/runtime-handler/__tests__/dev-runtime/__snapshots__/integration.test.ts.snap +++ b/packages/runtime-handler/__tests__/dev-runtime/__snapshots__/integration.test.ts.snap @@ -1,9 +1,9 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`with an express app with forked process function handling Function integration tests basic-twiml.js should match snapshot 1`] = ` -Object { - "body": Object {}, - "headers": Object { +{ + "body": {}, + "headers": { "cache-control": "no-store, no-cache, must-revalidate, proxy-revalidate", "connection": "close", "content-type": "text/xml; charset=utf-8", @@ -13,15 +13,15 @@ Object { "x-powered-by": "Express", }, "statusCode": 200, - "text": "Hello World", + "text": "Hello World", "type": "text/xml", } `; exports[`with an express app with inline function handling Assets integration tests hello.js should match snapshot 1`] = ` -Object { - "body": Object {}, - "headers": Object { +{ + "body": {}, + "headers": { "accept-ranges": "bytes", "cache-control": "no-store, no-cache, must-revalidate, proxy-revalidate", "connection": "close", @@ -39,9 +39,9 @@ Object { `; exports[`with an express app with inline function handling Assets integration tests index.html should match snapshot 1`] = ` -Object { - "body": Object {}, - "headers": Object { +{ + "body": {}, + "headers": { "accept-ranges": "bytes", "cache-control": "no-store, no-cache, must-revalidate, proxy-revalidate", "connection": "close", @@ -58,9 +58,9 @@ Object { `; exports[`with an express app with inline function handling Function integration tests basic-twiml.js should match snapshot 1`] = ` -Object { - "body": Object {}, - "headers": Object { +{ + "body": {}, + "headers": { "cache-control": "no-store, no-cache, must-revalidate, proxy-revalidate", "connection": "close", "content-type": "text/xml; charset=utf-8", @@ -70,7 +70,7 @@ Object { "x-powered-by": "Express", }, "statusCode": 200, - "text": "Hello World", + "text": "Hello World", "type": "text/xml", } `; diff --git a/packages/runtime-handler/jest.config.js b/packages/runtime-handler/jest.config.js index 96cb6866..37f570b7 100644 --- a/packages/runtime-handler/jest.config.js +++ b/packages/runtime-handler/jest.config.js @@ -2,10 +2,13 @@ const base = require('../../jest.config.base.js'); module.exports = { ...base, - globals: { - 'ts-jest': { - tsconfig: './tsconfig.test.json', - }, + transform: { + '^.+\\.ts?$': [ + 'ts-jest', + { + tsconfig: './tsconfig.test.json', + }, + ], }, name: 'runtime-handler', displayName: 'runtime-handler', diff --git a/packages/serverless-api/jest.config.js b/packages/serverless-api/jest.config.js index c1f12360..56904471 100644 --- a/packages/serverless-api/jest.config.js +++ b/packages/serverless-api/jest.config.js @@ -2,10 +2,13 @@ const base = require('../../jest.config.base.js'); module.exports = { ...base, - globals: { - 'ts-jest': { - tsconfig: './tsconfig.test.json', - }, + transform: { + '^.+\\.ts?$': [ + 'ts-jest', + { + tsconfig: './tsconfig.test.json', + }, + ], }, name: 'serverless-api', displayName: 'serverless-api', diff --git a/packages/twilio-run/__tests__/runtime/__snapshots__/integration.test.ts.snap b/packages/twilio-run/__tests__/runtime/__snapshots__/integration.test.ts.snap index 09281a3b..6cbabca8 100644 --- a/packages/twilio-run/__tests__/runtime/__snapshots__/integration.test.ts.snap +++ b/packages/twilio-run/__tests__/runtime/__snapshots__/integration.test.ts.snap @@ -1,23 +1,23 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`with an express app with forked process function handling Function integration tests basic-twiml.js should match snapshot 1`] = ` -Object { - "body": Object {}, - "headers": Object { +{ + "body": {}, + "headers": { "connection": "close", "content-type": "text/xml; charset=utf-8", "x-powered-by": "Express", }, "statusCode": 200, - "text": "Hello World", + "text": "Hello World", "type": "text/xml", } `; exports[`with an express app with inline function handling Assets integration tests hello.js should match snapshot 1`] = ` -Object { - "body": Object {}, - "headers": Object { +{ + "body": {}, + "headers": { "accept-ranges": "bytes", "cache-control": "public, max-age=0", "connection": "close", @@ -32,15 +32,15 @@ Object { `; exports[`with an express app with inline function handling Function integration tests basic-twiml.js should match snapshot 1`] = ` -Object { - "body": Object {}, - "headers": Object { +{ + "body": {}, + "headers": { "connection": "close", "content-type": "text/xml; charset=utf-8", "x-powered-by": "Express", }, "statusCode": 200, - "text": "Hello World", + "text": "Hello World", "type": "text/xml", } `; diff --git a/packages/twilio-run/__tests__/templating/__snapshots__/defaultConfig.test.ts.snap b/packages/twilio-run/__tests__/templating/__snapshots__/defaultConfig.test.ts.snap index e29e1d7c..3085b401 100644 --- a/packages/twilio-run/__tests__/templating/__snapshots__/defaultConfig.test.ts.snap +++ b/packages/twilio-run/__tests__/templating/__snapshots__/defaultConfig.test.ts.snap @@ -2,45 +2,45 @@ exports[`writeDefaultConfigFile default file should match snapshot 1`] = ` "{ - \\"commands\\": {}, - \\"environments\\": {}, - \\"projects\\": {}, - // \\"assets\\": true /* Upload assets. Can be turned off with --no-assets */, - // \\"assetsFolder\\": null /* Specific folder name to be used for static assets */, - // \\"buildSid\\": null /* An existing Build SID to deploy to the new environment */, - // \\"createEnvironment\\": false /* Creates environment if it couldn't find it. */, - // \\"cwd\\": null /* Sets the directory of your existing Serverless project. Defaults to current directory */, - // \\"detailedLogs\\": false /* Toggles detailed request logging by showing request body and query params */, - // \\"edge\\": null /* Twilio API Region */, - // \\"env\\": null /* Path to .env file for environment variables that should be installed */, - // \\"environment\\": \\"dev\\" /* The environment name (domain suffix) you want to use for your deployment. Alternatively you can specify an environment SID starting with ZE. */, - // \\"extendedOutput\\": false /* Show an extended set of properties on the output */, - // \\"force\\": false /* Will run deployment in force mode. Can be dangerous. */, - // \\"forkProcess\\": true /* Disable forking function processes to emulate production environment */, - // \\"functionSid\\": null /* Specific Function SID to retrieve logs for */, - // \\"functions\\": true /* Upload functions. Can be turned off with --no-functions */, - // \\"functionsFolder\\": null /* Specific folder name to be used for static functions */, - // \\"inspect\\": null /* Enables Node.js debugging protocol */, - // \\"inspectBrk\\": null /* Enables Node.js debugging protocol, stops execution until debugger is attached */, - // \\"legacyMode\\": false /* Enables legacy mode, it will prefix your asset paths with /assets */, - // \\"live\\": true /* Always serve from the current functions (no caching) */, - // \\"loadLocalEnv\\": false /* Includes the local environment variables */, - // \\"loadSystemEnv\\": false /* Uses system environment variables as fallback for variables specified in your .env file. Needs to be used with --env explicitly specified. */, - // \\"logCacheSize\\": null /* Tailing the log endpoint will cache previously seen entries to avoid duplicates. The cache is topped at a maximum of 1000 by default. This option can change that. */, - // \\"logLevel\\": \\"info\\" /* Level of logging messages. */, - // \\"logs\\": true /* Toggles request logging */, - // \\"ngrok\\": null /* Uses ngrok to create a public url. Pass a string to set the subdomain (requires a paid-for ngrok account). */, - // \\"outputFormat\\": \\"\\" /* Output the results in a different format */, - // \\"overrideExistingProject\\": false /* Deploys Serverless project to existing service if a naming conflict has been found. */, - // \\"port\\": \\"3000\\" /* Override default port of 3000 */, - // \\"production\\": false /* Promote build to the production environment (no domain suffix). Overrides environment flag */, - // \\"properties\\": null /* Specify the output properties you want to see. Works best on single types */, - // \\"region\\": null /* Twilio API Region */, - \\"runtime\\": \\"node18\\" /* The version of Node.js to deploy the build to. (node18) */, - // \\"serviceName\\": null /* Overrides the name of the Serverless project. Default: the name field in your package.json */, - // \\"serviceSid\\": null /* SID of the Twilio Serverless Service to deploy to */, - // \\"sourceEnvironment\\": null /* SID or suffix of an existing environment you want to deploy from. */, - // \\"tail\\": false /* Continuously stream the logs */, - // \\"template\\": null /* undefined */, + "commands": {}, + "environments": {}, + "projects": {}, + // "assets": true /* Upload assets. Can be turned off with --no-assets */, + // "assetsFolder": null /* Specific folder name to be used for static assets */, + // "buildSid": null /* An existing Build SID to deploy to the new environment */, + // "createEnvironment": false /* Creates environment if it couldn't find it. */, + // "cwd": null /* Sets the directory of your existing Serverless project. Defaults to current directory */, + // "detailedLogs": false /* Toggles detailed request logging by showing request body and query params */, + // "edge": null /* Twilio API Region */, + // "env": null /* Path to .env file for environment variables that should be installed */, + // "environment": "dev" /* The environment name (domain suffix) you want to use for your deployment. Alternatively you can specify an environment SID starting with ZE. */, + // "extendedOutput": false /* Show an extended set of properties on the output */, + // "force": false /* Will run deployment in force mode. Can be dangerous. */, + // "forkProcess": true /* Disable forking function processes to emulate production environment */, + // "functionSid": null /* Specific Function SID to retrieve logs for */, + // "functions": true /* Upload functions. Can be turned off with --no-functions */, + // "functionsFolder": null /* Specific folder name to be used for static functions */, + // "inspect": null /* Enables Node.js debugging protocol */, + // "inspectBrk": null /* Enables Node.js debugging protocol, stops execution until debugger is attached */, + // "legacyMode": false /* Enables legacy mode, it will prefix your asset paths with /assets */, + // "live": true /* Always serve from the current functions (no caching) */, + // "loadLocalEnv": false /* Includes the local environment variables */, + // "loadSystemEnv": false /* Uses system environment variables as fallback for variables specified in your .env file. Needs to be used with --env explicitly specified. */, + // "logCacheSize": null /* Tailing the log endpoint will cache previously seen entries to avoid duplicates. The cache is topped at a maximum of 1000 by default. This option can change that. */, + // "logLevel": "info" /* Level of logging messages. */, + // "logs": true /* Toggles request logging */, + // "ngrok": null /* Uses ngrok to create a public url. Pass a string to set the subdomain (requires a paid-for ngrok account). */, + // "outputFormat": "" /* Output the results in a different format */, + // "overrideExistingProject": false /* Deploys Serverless project to existing service if a naming conflict has been found. */, + // "port": "3000" /* Override default port of 3000 */, + // "production": false /* Promote build to the production environment (no domain suffix). Overrides environment flag */, + // "properties": null /* Specify the output properties you want to see. Works best on single types */, + // "region": null /* Twilio API Region */, + "runtime": "node18" /* The version of Node.js to deploy the build to. (node18) */, + // "serviceName": null /* Overrides the name of the Serverless project. Default: the name field in your package.json */, + // "serviceSid": null /* SID of the Twilio Serverless Service to deploy to */, + // "sourceEnvironment": null /* SID or suffix of an existing environment you want to deploy from. */, + // "tail": false /* Continuously stream the logs */, + // "template": null /* undefined */, }" `; diff --git a/packages/twilio-run/jest.config.js b/packages/twilio-run/jest.config.js index bfe4e2be..85b62ba0 100644 --- a/packages/twilio-run/jest.config.js +++ b/packages/twilio-run/jest.config.js @@ -2,10 +2,13 @@ const base = require('../../jest.config.base.js'); module.exports = { ...base, - globals: { - 'ts-jest': { - tsconfig: './tsconfig.test.json', - }, + transform: { + '^.+\\.ts?$': [ + 'ts-jest', + { + tsconfig: './tsconfig.test.json', + }, + ], }, name: 'twilio-run', displayName: 'twilio-run', From 5d8247be2c70d40341db7da97ed9775902014189 Mon Sep 17 00:00:00 2001 From: twilio-product-security <67294289+twilio-product-security@users.noreply.github.com> Date: Mon, 18 Mar 2024 07:38:12 -0700 Subject: [PATCH 17/23] [Snyk] Security upgrade oclif from 3.17.2 to 4.0.0 (#489) * fix: packages/plugin-serverless/package.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-INFLIGHT-6095116 * fix: update oclif * fix: update oclif --------- Co-authored-by: snyk-bot Co-authored-by: Victor Ayogu --- packages/plugin-serverless/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-serverless/package.json b/packages/plugin-serverless/package.json index 3a2926f0..bb4f6a8d 100644 --- a/packages/plugin-serverless/package.json +++ b/packages/plugin-serverless/package.json @@ -19,7 +19,7 @@ "@oclif/plugin-help": "^5.1.12", "@oclif/test": "^1.2.5", "@twilio/cli-test": "^2.0.2", - "oclif": "^3" + "oclif": "^4.0.0" }, "engines": { "node": ">=14.0.0" From 6d65bea828338a6dd44cb357c324d9b63e74e081 Mon Sep 17 00:00:00 2001 From: makserik <15821542+makserik@users.noreply.github.com> Date: Wed, 20 Mar 2024 11:25:58 +0200 Subject: [PATCH 18/23] FRIDGE-814 upgrade to twilio 4.23.0, fix tests (#509) * FRIDGE-814 upgrade to twilio 4.23.0, fix tests * improvement(@twilio-labs/serverless-runtime-types, @twilio/runtime-handler, twilio-run): Twilio SDK Twilio SDK bump from 3.x to 4.23 with fixes to types, tests BREAKING CHANGE: Underlying Twilio SDK was bumped by a major version, Twilio SDK 3.x to 4.23. This might require changes in how importing this package will work. fix #473 #483 #455 * FRIDGE-814 revert logger.ts * FRIDGE-814 add changeset * improvement(plugin-serverless plugin-assets runtime-handler serverless-api serverless-twilio-runtime change node.js to 18 minimum in required and in docs where necessary BREAKING CHANGE: minimum Node.js now 18 * FRIDGE-814 remove node 16 github actions, make it use npm@10 * FRIDGE-814 replace deprecated npm-run-all with a maintained fork * FRIDGE-814 remove npm-run-all deps and convert commands to regular as the package seems broken on windows * add typescript install explicitly * Revert "FRIDGE-814 remove node 16 github actions, make it use npm@10" This reverts commit 2ca5371bee3506921d5c303c8461a59f31a97877. * remove node 16 * update snapshots * fix snapshots --- .changeset/strong-pugs-battle.md | 7 ++ .github/workflows/nodejs.yml | 2 +- .gitignore | 2 + docs/CONTRIBUTING.md | 4 +- package.json | 2 +- packages/plugin-assets/package.json | 2 +- packages/plugin-serverless/package.json | 2 +- .../utils/requireFromProject.test.ts | 2 +- packages/runtime-handler/package.json | 10 +-- packages/serverless-api/package.json | 2 +- .../serverless-runtime-types/package.json | 2 +- packages/serverless-twilio-runtime/Readme.md | 2 +- .../runtime/internal/response.test.ts | 35 +++++++-- packages/twilio-run/package.json | 10 +-- .../src/runtime/internal/functionRunner.ts | 3 +- .../src/runtime/internal/response.ts | 74 ++++++++++++++++--- packages/twilio-run/src/runtime/route.ts | 15 +++- 17 files changed, 137 insertions(+), 39 deletions(-) create mode 100644 .changeset/strong-pugs-battle.md diff --git a/.changeset/strong-pugs-battle.md b/.changeset/strong-pugs-battle.md new file mode 100644 index 00000000..022e7e9d --- /dev/null +++ b/.changeset/strong-pugs-battle.md @@ -0,0 +1,7 @@ +--- +'@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/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index c9bdd336..71c6cc89 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -16,7 +16,7 @@ jobs: fail-fast: false matrix: os: [macos-latest, windows-latest, ubuntu-latest] - node-version: [ lts/-2, lts/-1, lts/*] + node-version: [ lts/-1, lts/*] steps: - uses: actions/checkout@v3 diff --git a/.gitignore b/.gitignore index afa6e160..9bf6cf7d 100644 --- a/.gitignore +++ b/.gitignore @@ -74,3 +74,5 @@ dist/ packages/serverless-api/docs/ .idea + +**/.DS_Store diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index 3638be51..7e647123 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -14,8 +14,8 @@ If you are planning to contribute something that does not have an open issue yet ## Requirements -Make sure you have Node.js 14 or newer installed. Due to compatibility with Twilio -Functions this project has to support at least Node.js 14.0.0. +Make sure you have Node.js 18 or newer installed. Due to compatibility with Twilio +Functions this project has to support at least Node.js 18.0.0. We are using the npm CLI to manage our project. You'll need at least `npm` version 8 or newer. diff --git a/package.json b/package.json index 7a982d3b..f47b5bf0 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "@changesets/cli": "^2.26.0", "@commitlint/cli": "^19.1.0", "@commitlint/config-conventional": "^19.1.0", - "@twilio/test-dep": "npm:twilio@3.84.0", + "@twilio/test-dep": "npm:twilio@4.23.0", "@types/jest": "^29.2.4", "all-contributors-cli": "^6.1.2", "commitizen": "^4.2.4", diff --git a/packages/plugin-assets/package.json b/packages/plugin-assets/package.json index 2127e35a..02998bb2 100644 --- a/packages/plugin-assets/package.json +++ b/packages/plugin-assets/package.json @@ -23,7 +23,7 @@ "rimraf": "^3.0.2" }, "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "/oclif.manifest.json", diff --git a/packages/plugin-serverless/package.json b/packages/plugin-serverless/package.json index bb4f6a8d..b1935b53 100644 --- a/packages/plugin-serverless/package.json +++ b/packages/plugin-serverless/package.json @@ -22,7 +22,7 @@ "oclif": "^4.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=18.0.0" }, "files": [ "/oclif.manifest.json", diff --git a/packages/runtime-handler/__tests__/dev-runtime/utils/requireFromProject.test.ts b/packages/runtime-handler/__tests__/dev-runtime/utils/requireFromProject.test.ts index fb80fc9c..4b17bd42 100644 --- a/packages/runtime-handler/__tests__/dev-runtime/utils/requireFromProject.test.ts +++ b/packages/runtime-handler/__tests__/dev-runtime/utils/requireFromProject.test.ts @@ -2,7 +2,7 @@ import { join } from 'path'; import { requireFromProject } from '../../../src/dev-runtime/utils/requireFromProject'; const PROJECT_DIR = join(__dirname, '../../../../twilio-run'); - +// only works if test-dep version is different from root package version jest.mock('../../../../twilio-run/node_modules/@twilio/test-dep', () => { const x = jest.genMockFromModule('@twilio/test-dep'); (x as any)['__TYPE__'] = 'PROJECT_BASED'; diff --git a/packages/runtime-handler/package.json b/packages/runtime-handler/package.json index 6467bb9a..c40a1baa 100644 --- a/packages/runtime-handler/package.json +++ b/packages/runtime-handler/package.json @@ -36,22 +36,22 @@ "build": "tsc", "watch": "tsc --watch", "build:noemit": "tsc --noEmit", - "clean": "rimraf ./dist" + "clean": "rimraf ./dist ./node_modules" }, "devDependencies": { + "@twilio/test-dep": "npm:twilio@4.22.0", "@types/common-tags": "^1.8.0", "@types/cookie-parser": "^1.4.2", "@types/debug": "^4.1.4", "@types/express-useragent": "^0.2.21", "@types/jest": "^26.0.24", "@types/lodash.debounce": "^4.0.6", - "@types/node": "^14.0.19", + "@types/node": "^18.0.0", "@types/supertest": "^2.0.8", "npm-run-all": "^4.1.5", "rimraf": "^2.6.3", "supertest": "^3.1.0", - "typescript": "^4.9.4", - "@twilio/test-dep": "npm:twilio@3.80.0" + "typescript": "^4.9.4" }, "bugs": { "url": "https://github.com/twilio-labs/serverless-toolkit/issues" @@ -69,7 +69,7 @@ "nocache": "^2.1.0", "normalize.css": "^8.0.1", "serialize-error": "^7.0.1", - "twilio": "3.80.0" + "twilio": "4.23.0" }, "gitHead": "6db273648ed19474f4125042556b10c051529912" } diff --git a/packages/serverless-api/package.json b/packages/serverless-api/package.json index 383b1122..7d6b1bde 100644 --- a/packages/serverless-api/package.json +++ b/packages/serverless-api/package.json @@ -53,7 +53,7 @@ }, "dependencies": { "@types/mime-types": "^2.1.0", - "@types/node": "^14.17.19", + "@types/node": "^18.0.0", "@types/recursive-readdir": "^2.2.0", "debug": "^4.1.1", "fast-redact": "^1.5.0", diff --git a/packages/serverless-runtime-types/package.json b/packages/serverless-runtime-types/package.json index 2a3bb2ff..72c94185 100644 --- a/packages/serverless-runtime-types/package.json +++ b/packages/serverless-runtime-types/package.json @@ -30,7 +30,7 @@ "dependencies": { "@types/express": "^4.17.11", "@types/qs": "^6.9.4", - "twilio": "^4.20.1" + "twilio": "^4.23.0" }, "devDependencies": { "@types/express": "^4.17.11", diff --git a/packages/serverless-twilio-runtime/Readme.md b/packages/serverless-twilio-runtime/Readme.md index 72dea8a6..8afa3c06 100644 --- a/packages/serverless-twilio-runtime/Readme.md +++ b/packages/serverless-twilio-runtime/Readme.md @@ -8,7 +8,7 @@ Serverless Framework plugin to deploy to the Twilio Runtime. ### Pre-requisites -- Node.js v12.x (this is the runtime version supported by Twilio Functions) +- Node.js v18.x (this is the runtime version supported by Twilio Functions) - Serverless CLI v1.50.0+. You can run npm i -g serverless if you don't already have it. - A Twilio account. If you don't have one you can [sign up quickly](https://www.twilio.com/try-twilio). diff --git a/packages/twilio-run/__tests__/runtime/internal/response.test.ts b/packages/twilio-run/__tests__/runtime/internal/response.test.ts index 18602fc9..472a4bdf 100644 --- a/packages/twilio-run/__tests__/runtime/internal/response.test.ts +++ b/packages/twilio-run/__tests__/runtime/internal/response.test.ts @@ -5,7 +5,9 @@ test('has correct defaults', () => { const response = new Response(); expect(response['body']).toBeNull(); expect(response['statusCode']).toBe(200); - expect(response['headers']).toEqual({}); + expect(response['headers']).toEqual({ + 'Set-Cookie': [], + }); }); test('sets status code, body and headers from constructor', () => { @@ -24,6 +26,7 @@ test('sets status code, body and headers from constructor', () => { 'Access-Control-Allow-Origin': 'example.com', 'Access-Control-Allow-Methods': 'GET,PUT,POST,DELETE', 'Access-Control-Allow-Headers': 'Content-Type', + 'Set-Cookie': [], }); }); @@ -45,7 +48,9 @@ test('sets body correctly', () => { test('sets headers correctly', () => { const response = new Response(); - expect(response['headers']).toEqual({}); + expect(response['headers']).toEqual({ + 'Set-Cookie': [], + }); response.setHeaders({ 'Access-Control-Allow-Origin': 'example.com', 'Access-Control-Allow-Methods': 'GET,PUT,POST,DELETE', @@ -64,26 +69,33 @@ test('sets headers correctly', () => { test('appends a new header correctly', () => { const response = new Response(); - expect(response['headers']).toEqual({}); + expect(response['headers']).toEqual({ + 'Set-Cookie': [], + }); response.appendHeader('Access-Control-Allow-Origin', 'dkundel.com'); expect(response['headers']).toEqual({ 'Access-Control-Allow-Origin': 'dkundel.com', + 'Set-Cookie': [], }); response.appendHeader('Content-Type', 'application/json'); expect(response['headers']).toEqual({ 'Access-Control-Allow-Origin': 'dkundel.com', 'Content-Type': 'application/json', + 'Set-Cookie': [], }); }); test('appends a header correctly with no existing one', () => { const response = new Response(); - expect(response['headers']).toEqual({}); + expect(response['headers']).toEqual({ + 'Set-Cookie': [], + }); // @ts-ignore response['headers'] = undefined; response.appendHeader('Access-Control-Allow-Origin', 'dkundel.com'); expect(response['headers']).toEqual({ 'Access-Control-Allow-Origin': 'dkundel.com', + 'Set-Cookie': [], }); }); @@ -121,7 +133,10 @@ test('calls express response correctly', () => { expect(mockRes.send).toHaveBeenCalledWith(`I'm a teapot!`); expect(mockRes.status).toHaveBeenCalledWith(418); - expect(mockRes.set).toHaveBeenCalledWith({ 'Content-Type': 'text/plain' }); + expect(mockRes.set).toHaveBeenCalledWith({ + 'Content-Type': 'text/plain', + 'Set-Cookie': [], + }); }); test('serializes a response', () => { @@ -134,7 +149,10 @@ test('serializes a response', () => { expect(serialized.body).toEqual("I'm a teapot!"); expect(serialized.statusCode).toEqual(418); - expect(serialized.headers).toEqual({ 'Content-Type': 'text/plain' }); + expect(serialized.headers).toEqual({ + 'Content-Type': 'text/plain', + 'Set-Cookie': [], + }); }); test('serializes a response with content type set to application/json', () => { @@ -149,5 +167,8 @@ test('serializes a response with content type set to application/json', () => { JSON.stringify({ url: 'https://dkundel.com' }) ); expect(serialized.statusCode).toEqual(200); - expect(serialized.headers).toEqual({ 'Content-Type': 'application/json' }); + expect(serialized.headers).toEqual({ + 'Content-Type': 'application/json', + 'Set-Cookie': [], + }); }); diff --git a/packages/twilio-run/package.json b/packages/twilio-run/package.json index 8343386d..fa0ee25c 100644 --- a/packages/twilio-run/package.json +++ b/packages/twilio-run/package.json @@ -35,7 +35,7 @@ "license": "MIT", "dependencies": { "@twilio-labs/serverless-api": "^5.5.1", - "@twilio-labs/serverless-runtime-types": "2.1.0-rc.0", + "@twilio-labs/serverless-runtime-types": "3.0.0", "@types/express": "4.17.7", "@types/inquirer": "^6.0.3", "@types/is-ci": "^2.0.0", @@ -76,7 +76,7 @@ "serialize-error": "^7.0.1", "terminal-link": "^1.3.0", "title": "^3.4.1", - "twilio": "^3.60.0", + "twilio": "^4.23.0", "type-fest": "^0.15.1", "window-size": "^1.1.1", "wrap-ansi": "^7.0.0", @@ -102,7 +102,7 @@ "@types/lodash.kebabcase": "^4.1.6", "@types/lodash.startcase": "^4.4.6", "@types/mock-fs": "^4.10.0", - "@types/node": "^14.0.19", + "@types/node": "^18.0.0", "@types/prompts": "^2.0.1", "@types/supertest": "^2.0.8", "@types/title": "^1.0.5", @@ -113,7 +113,7 @@ "nock": "^12.0.2", "supertest": "^3.1.0", "typescript": "^4.9.4", - "@twilio/test-dep": "npm:twilio@3.60.0" + "@twilio/test-dep": "npm:twilio@4.22.0" }, "files": [ "bin/", @@ -122,7 +122,7 @@ "README.md" ], "engines": { - "node": ">=12.22.1" + "node": ">=18.0.0" }, "gitHead": "6db273648ed19474f4125042556b10c051529912" } diff --git a/packages/twilio-run/src/runtime/internal/functionRunner.ts b/packages/twilio-run/src/runtime/internal/functionRunner.ts index 4f88351a..de98cf66 100644 --- a/packages/twilio-run/src/runtime/internal/functionRunner.ts +++ b/packages/twilio-run/src/runtime/internal/functionRunner.ts @@ -3,6 +3,7 @@ import { serializeError } from 'serialize-error'; import { getRouteMap } from '../internal/route-cache'; import { constructContext, constructGlobalScope, isTwiml } from '../route'; import { Response } from './response'; +import { Headers } from '@twilio/runtime-handler/dist/dev-runtime/types'; const sendDebugMessage = (debugMessage: string, ...debugArgs: any) => { process.send && process.send({ debugMessage, debugArgs }); @@ -10,7 +11,7 @@ const sendDebugMessage = (debugMessage: string, ...debugArgs: any) => { export type Reply = { body?: string | number | boolean | object; - headers?: { [key: string]: number | string }; + headers?: Headers; statusCode: number; }; diff --git a/packages/twilio-run/src/runtime/internal/response.ts b/packages/twilio-run/src/runtime/internal/response.ts index f21442e7..4cd32f03 100644 --- a/packages/twilio-run/src/runtime/internal/response.ts +++ b/packages/twilio-run/src/runtime/internal/response.ts @@ -1,8 +1,13 @@ import { TwilioResponse } from '@twilio-labs/serverless-runtime-types/types'; import { Response as ExpressResponse } from 'express'; import { getDebugFunction } from '../../utils/logger'; +import { + HeaderValue, + Headers, +} from '@twilio/runtime-handler/dist/dev-runtime/types'; const debug = getDebugFunction('twilio-run:response'); +const COOKIE_HEADER = 'Set-Cookie'; type ResponseOptions = { headers?: Headers; @@ -10,11 +15,6 @@ type ResponseOptions = { body?: object | string; }; -type HeaderValue = number | string; -type Headers = { - [key: string]: HeaderValue; -}; - export class Response implements TwilioResponse { private body: null | any; private statusCode: number; @@ -34,21 +34,29 @@ export class Response implements TwilioResponse { if (options && options.headers) { this.headers = options.headers; } + // if Set-Cookie is not already in the headers, then add it as an empty list + const cookieHeader: HeaderValue = this.headers[COOKIE_HEADER]; + if (!(COOKIE_HEADER in this.headers)) { + this.headers[COOKIE_HEADER] = []; + } + if (!Array.isArray(cookieHeader) && typeof cookieHeader !== 'undefined') { + this.headers[COOKIE_HEADER] = [cookieHeader]; + } } - setStatusCode(statusCode: number): Response { + setStatusCode(statusCode: number): TwilioResponse { debug('Setting status code to %d', statusCode); this.statusCode = statusCode; return this; } - setBody(body: object | string): Response { + setBody(body: object | string): TwilioResponse { debug('Setting response body to %o', body); this.body = body; return this; } - setHeaders(headersObject: Headers): Response { + setHeaders(headersObject: Headers): TwilioResponse { debug('Setting headers to: %P', headersObject); if (typeof headersObject !== 'object') { return this; @@ -60,7 +68,31 @@ export class Response implements TwilioResponse { appendHeader(key: string, value: HeaderValue): Response { debug('Appending header for %s', key, value); this.headers = this.headers || {}; - this.headers[key] = value; + let newHeaderValue: HeaderValue = []; + if (key.toLowerCase() === COOKIE_HEADER.toLowerCase()) { + const existingValue: HeaderValue = this.headers[COOKIE_HEADER]; + if (existingValue) { + newHeaderValue = [existingValue, value].flat(); + if (newHeaderValue) { + this.headers[COOKIE_HEADER] = newHeaderValue; + } + } else { + this.headers[COOKIE_HEADER] = Array.isArray(value) ? value : [value]; + } + } else { + const existingValue: HeaderValue = this.headers[key]; + if (existingValue) { + newHeaderValue = [existingValue, value].flat(); + if (newHeaderValue) { + this.headers[key] = newHeaderValue; + } + } else { + this.headers[key] = value; + } + } + if (!(COOKIE_HEADER in this.headers)) { + this.headers[COOKIE_HEADER] = []; + } return this; } @@ -85,4 +117,28 @@ export class Response implements TwilioResponse { headers: this.headers, }; } + + setCookie(key: string, value: string, attributes: string[] = []): Response { + debug('Setting cookie %s=%s', key, value); + const cookie = + `${key}=${value}` + + (attributes.length > 0 ? `;${attributes.join(';')}` : ''); + this.appendHeader(COOKIE_HEADER, cookie); + return this; + } + + removeCookie(key: string): TwilioResponse { + debug('Removing cookie %s', key); + let cookieHeader: HeaderValue = this.headers[COOKIE_HEADER]; + if (!Array.isArray(cookieHeader)) { + cookieHeader = [cookieHeader]; + } + const newCookies: (string | number)[] = cookieHeader.filter( + (cookie: string | number) => + typeof cookie === 'string' && !cookie.startsWith(`${key}=`) + ); + newCookies.push(`${key}=;Max-Age=0`); + this.headers[COOKIE_HEADER] = newCookies; + return this; + } } diff --git a/packages/twilio-run/src/runtime/route.ts b/packages/twilio-run/src/runtime/route.ts index 6616afaa..342fa55a 100644 --- a/packages/twilio-run/src/runtime/route.ts +++ b/packages/twilio-run/src/runtime/route.ts @@ -1,6 +1,7 @@ import { Context, ServerlessCallback, + ServerlessEventObject, ServerlessFunctionSignature, } from '@twilio-labs/serverless-runtime-types/types'; import { fork } from 'child_process'; @@ -22,6 +23,7 @@ import { cleanUpStackTrace } from '../utils/stack-trace/clean-up'; import { Reply } from './internal/functionRunner'; import { Response } from './internal/response'; import * as Runtime from './internal/runtime'; +import * as PATH from 'path'; const RUNNER_PATH = process.env.NODE_ENV === 'test' @@ -32,7 +34,9 @@ const { VoiceResponse, MessagingResponse, FaxResponse } = twiml; const debug = getDebugFunction('twilio-run:route'); -export function constructEvent(req: ExpressRequest): T { +export function constructEvent( + req: ExpressRequest +): T { return { ...req.query, ...req.body }; } @@ -62,7 +66,14 @@ export function constructContext( } const DOMAIN_NAME = url.replace(/^https?:\/\//, ''); const PATH = functionPath; - return { PATH, DOMAIN_NAME, ...env, getTwilioClient }; + return { + ENVIRONMENT_SID: undefined, + SERVICE_SID: undefined, + PATH, + DOMAIN_NAME, + ...env, + getTwilioClient, + }; } export function constructGlobalScope(config: StartCliConfig): void { From feb9686fa6bfa5b49e634e414ff56a61c61cbe89 Mon Sep 17 00:00:00 2001 From: makserik <15821542+makserik@users.noreply.github.com> Date: Wed, 20 Mar 2024 12:47:30 +0200 Subject: [PATCH 19/23] FRIDGE-814 fix chalk (#510) * fix chalk * Create short-donkeys-matter.md --- .changeset/short-donkeys-matter.md | 6 ++++++ packages/create-twilio-function/package.json | 2 +- packages/twilio-run/package.json | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .changeset/short-donkeys-matter.md diff --git a/.changeset/short-donkeys-matter.md b/.changeset/short-donkeys-matter.md new file mode 100644 index 00000000..fc03a114 --- /dev/null +++ b/.changeset/short-donkeys-matter.md @@ -0,0 +1,6 @@ +--- +"twilio-run": patch +"create-twilio-function": patch +--- + +FRIDGE-814 fix chalk diff --git a/packages/create-twilio-function/package.json b/packages/create-twilio-function/package.json index 02487595..6708e531 100644 --- a/packages/create-twilio-function/package.json +++ b/packages/create-twilio-function/package.json @@ -29,7 +29,7 @@ }, "dependencies": { "boxen": "^5.1.2", - "chalk": "^2.4.2", + "chalk": "^4.1.1", "gitignore": "^0.7.0", "inquirer": "^8.1.5", "ora": "^5.4.1", diff --git a/packages/twilio-run/package.json b/packages/twilio-run/package.json index fa0ee25c..cb1ea1c1 100644 --- a/packages/twilio-run/package.json +++ b/packages/twilio-run/package.json @@ -43,7 +43,7 @@ "@types/semver": "^7.3.6", "body-parser": "^1.18.3", "boxen": "^5.1.2", - "chalk": "^2.4.2", + "chalk": "^4.1.1", "chokidar": "^3.2.3", "columnify": "^1.5.4", "common-tags": "^1.8.0", From 7d55d7efc6ce48b19746e38e15b4009cf513004b Mon Sep 17 00:00:00 2001 From: twilio-product-security <67294289+twilio-product-security@users.noreply.github.com> Date: Wed, 20 Mar 2024 04:32:02 -0700 Subject: [PATCH 20/23] [Snyk] Security upgrade lint-staged from 9.5.0 to 10.2.0 (#498) * fix: package.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-ANSIREGEX-1583908 * fix: fix test * fix: update node * fix: update npm * fix: remove node16 * fix: clear cache * Revert "fix: clear cache" This reverts commit e3a5e61ab9fd7ff8323069e922b3010baf16c99c. * fix: use node npm * fix: bump actions --------- Co-authored-by: snyk-bot Co-authored-by: Victor Ayogu Co-authored-by: Victor A <33580233+victoray@users.noreply.github.com> --- .github/workflows/nodejs.yml | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 71c6cc89..0a9f8fc4 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -19,7 +19,7 @@ jobs: node-version: [ lts/-1, lts/*] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: diff --git a/package.json b/package.json index f47b5bf0..49f29be2 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,8 @@ "husky": "^8.0.2", "jest": "^29.7.0", "jest-express": "^1.10.1", - "lint-staged": "^9.0.0", + "lint-staged": "^15.2.2", + "listr": "^0.14.3", "npm-run-all": "^4.1.5", "prettier": "^2.2.1", "rimraf": "^3.0.2", From 7d71f8eaa49dc697c36a2e6cf2ea813960b1a926 Mon Sep 17 00:00:00 2001 From: twilio-product-security <67294289+twilio-product-security@users.noreply.github.com> Date: Wed, 20 Mar 2024 04:51:51 -0700 Subject: [PATCH 21/23] [Snyk] Fix for 1 vulnerabilities (#490) * fix: packages/plugin-assets/package.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-INFLIGHT-6095116 * chore: upgrade rimraf * fix: import sync * Revert "fix: import sync" This reverts commit 9a8d787d2fd5214e3ae0741973bda15d788cb74b. --------- Co-authored-by: snyk-bot Co-authored-by: Victor Ayogu --- packages/plugin-assets/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugin-assets/package.json b/packages/plugin-assets/package.json index 02998bb2..42d365aa 100644 --- a/packages/plugin-assets/package.json +++ b/packages/plugin-assets/package.json @@ -19,8 +19,8 @@ "@oclif/plugin-help": "^5.1.12", "@oclif/test": "^1.2.5", "@twilio/cli-test": "^2.1.1", - "oclif": "^3", - "rimraf": "^3.0.2" + "oclif": "^4.5.4", + "rimraf": "^5.0.5" }, "engines": { "node": ">=18" From 21418aa63e84a4840b258bb8d1d166354a449289 Mon Sep 17 00:00:00 2001 From: makserik <15821542+makserik@users.noreply.github.com> Date: Wed, 20 Mar 2024 16:37:46 +0200 Subject: [PATCH 22/23] chore(@twilio/runtime-handler): revert package.json (#511) * chore(@twilio/runtime-handler): revert package.json * fix main package.json * comment out broken test --- package.json | 2 +- .../utils/requireFromProject.test.ts | 24 +++++++++---------- packages/runtime-handler/package.json | 2 +- .../utils/requireFromProject.test.ts | 23 +++++++++--------- 4 files changed, 26 insertions(+), 25 deletions(-) diff --git a/package.json b/package.json index 49f29be2..77a3ee67 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "@changesets/cli": "^2.26.0", "@commitlint/cli": "^19.1.0", "@commitlint/config-conventional": "^19.1.0", - "@twilio/test-dep": "npm:twilio@4.23.0", + "@twilio/test-dep": "npm:twilio@4.22.0", "@types/jest": "^29.2.4", "all-contributors-cli": "^6.1.2", "commitizen": "^4.2.4", diff --git a/packages/runtime-handler/__tests__/dev-runtime/utils/requireFromProject.test.ts b/packages/runtime-handler/__tests__/dev-runtime/utils/requireFromProject.test.ts index 4b17bd42..35c647ab 100644 --- a/packages/runtime-handler/__tests__/dev-runtime/utils/requireFromProject.test.ts +++ b/packages/runtime-handler/__tests__/dev-runtime/utils/requireFromProject.test.ts @@ -2,12 +2,11 @@ import { join } from 'path'; import { requireFromProject } from '../../../src/dev-runtime/utils/requireFromProject'; const PROJECT_DIR = join(__dirname, '../../../../twilio-run'); -// only works if test-dep version is different from root package version -jest.mock('../../../../twilio-run/node_modules/@twilio/test-dep', () => { - const x = jest.genMockFromModule('@twilio/test-dep'); - (x as any)['__TYPE__'] = 'PROJECT_BASED'; - return x; -}); +// jest.mock('../../../../twilio-run/node_modules/@twilio/test-dep', () => { +// const x = jest.genMockFromModule('@twilio/test-dep'); +// (x as any)['__TYPE__'] = 'PROJECT_BASED'; +// return x; +// }); jest.mock('@twilio/test-dep', () => { const x = jest.genMockFromModule('@twilio/test-dep'); @@ -26,12 +25,13 @@ jest.mock( ); describe('requireFromProject', () => { - test('should return project based by default', () => { - const mod = requireFromProject(PROJECT_DIR, '@twilio/test-dep'); - expect(mod['__TYPE__']).toBe('PROJECT_BASED'); - const mod2 = require('@twilio/test-dep'); - expect(mod2['__TYPE__']).toBe('BUILT_IN'); - }); + // npm hoists the package to root node_modules making this test not possible currently + // test('should return project based by default', () => { + // const mod = requireFromProject(PROJECT_DIR, '@twilio/test-dep'); + // expect(mod['__TYPE__']).toBe('PROJECT_BASED'); + // const mod2 = require('@twilio/test-dep'); + // expect(mod2['__TYPE__']).toBe('BUILT_IN'); + // }); test('should fail for unknown dependency', () => { expect(() => { diff --git a/packages/runtime-handler/package.json b/packages/runtime-handler/package.json index c40a1baa..9e3668a4 100644 --- a/packages/runtime-handler/package.json +++ b/packages/runtime-handler/package.json @@ -36,7 +36,7 @@ "build": "tsc", "watch": "tsc --watch", "build:noemit": "tsc --noEmit", - "clean": "rimraf ./dist ./node_modules" + "clean": "rimraf ./dist" }, "devDependencies": { "@twilio/test-dep": "npm:twilio@4.22.0", diff --git a/packages/twilio-run/__tests__/utils/requireFromProject.test.ts b/packages/twilio-run/__tests__/utils/requireFromProject.test.ts index 9400c306..ef329b78 100644 --- a/packages/twilio-run/__tests__/utils/requireFromProject.test.ts +++ b/packages/twilio-run/__tests__/utils/requireFromProject.test.ts @@ -3,11 +3,11 @@ import { requireFromProject } from '../../src/utils/requireFromProject'; const PROJECT_DIR = join(__dirname, '../../../runtime-handler'); -jest.mock('../../../runtime-handler/node_modules/@twilio/test-dep', () => { - const x = jest.genMockFromModule('@twilio/test-dep'); - (x as any)['__TYPE__'] = 'PROJECT_BASED'; - return x; -}); +// jest.mock('../../../runtime-handler/node_modules/@twilio/test-dep', () => { +// const x = jest.genMockFromModule('@twilio/test-dep'); +// (x as any)['__TYPE__'] = 'PROJECT_BASED'; +// return x; +// }); jest.mock('@twilio/test-dep', () => { const x = jest.genMockFromModule('@twilio/test-dep'); @@ -26,12 +26,13 @@ jest.mock( ); describe('requireFromProject', () => { - test('should return project based by default', () => { - const mod = requireFromProject(PROJECT_DIR, '@twilio/test-dep'); - expect(mod['__TYPE__']).toBe('PROJECT_BASED'); - const mod2 = require('@twilio/test-dep'); - expect(mod2['__TYPE__']).toBe('BUILT_IN'); - }); + // NPM hoists the package under root node_modules making this test not possible currently + // test('should return project based by default', () => { + // const mod = requireFromProject(PROJECT_DIR, '@twilio/test-dep'); + // expect(mod['__TYPE__']).toBe('PROJECT_BASED'); + // const mod2 = require('@twilio/test-dep'); + // expect(mod2['__TYPE__']).toBe('BUILT_IN'); + // }); test('should fail for unknown dependency', () => { expect(() => { 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 23/23] 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",