Skip to content

Commit 0dde2a5

Browse files
authored
feat: extract runtime-handler and lazyLoading (#252) (#271)
1 parent a5d948e commit 0dde2a5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+2532
-62
lines changed

jest.config.base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = {
1313
// A set of global variables that need to be available in all test environments
1414
globals: {
1515
'ts-jest': {
16-
tsConfig: 'tsconfig.test.json',
16+
tsconfig: 'tsconfig.test.json',
1717
},
1818
},
1919
// The test environment that will be used for testing

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"npmClientArgs": ["--no-package-lock"]
1313
},
1414
"version": {
15-
"allowBranch": ["main", "feature/*"]
15+
"allowBranch": ["main", "features/*"]
1616
}
1717
},
1818
"ignoreChanges": ["**/__fixtures__/**", "**/__tests__/**"],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"lerna": "^3.22.1",
3131
"lint-staged": "^8.2.1",
3232
"npm-run-all": "^4.1.5",
33-
"prettier": "^1.18.2",
33+
"prettier": "^2.2.1",
3434
"rimraf": "^3.0.2",
3535
"ts-jest": "^26.0.0",
3636
"typescript": "^3.9.7"

packages/create-twilio-function/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [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)
7+
8+
**Note:** Version bump only for package create-twilio-function
9+
10+
11+
12+
13+
614
## [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)
715

816
**Note:** Version bump only for package create-twilio-function

packages/create-twilio-function/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-twilio-function",
3-
"version": "3.0.1",
3+
"version": "3.0.2-rc.0",
44
"description": "A CLI tool to generate a new Twilio Function using that can be run locally with twilio-run.",
55
"bin": "./bin/create-twilio-function",
66
"main": "./src/create-twilio-function.js",
@@ -26,6 +26,7 @@
2626
},
2727
"license": "MIT",
2828
"devDependencies": {
29+
"@twilio/runtime-handler": "1.1.0-rc.3",
2930
"jest": "^24.5.0",
3031
"nock": "^11.3.4"
3132
},
@@ -38,7 +39,7 @@
3839
"pkg-install": "^1.0.0",
3940
"rimraf": "^2.6.3",
4041
"terminal-link": "^2.0.0",
41-
"twilio-run": "^3.0.1",
42+
"twilio-run": "3.1.0-rc.0",
4243
"window-size": "^1.1.1",
4344
"wrap-ansi": "^6.0.0",
4445
"yargs": "^12.0.5"

packages/create-twilio-function/src/create-twilio-function/create-files.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const typescriptDeps = {
2929
};
3030
const javaScriptDevDeps = { 'twilio-run': versions.twilioRun };
3131
const typescriptDevDeps = {
32+
'@twilio/runtime-handler': versions.twilioRuntimeHandler,
3233
'twilio-run': versions.twilioRun,
3334
typescript: versions.typescript,
3435
copyfiles: versions.copyfiles,

packages/create-twilio-function/src/create-twilio-function/versions.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ const pkgJson = require('../../package.json');
22

33
module.exports = {
44
twilio: '^3.56',
5+
twilioRuntimeHandler: pkgJson.devDependencies[
6+
'@twilio/runtime-handler'
7+
].replace(/[\^~]/, ''),
58
twilioRun: pkgJson.dependencies['twilio-run'],
69
node: '12',
710
typescript: '^3.8',

packages/plugin-assets/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [1.0.1-rc.0](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/plugin-assets@1.0.0...@twilio-labs/plugin-assets@1.0.1-rc.0) (2021-05-24)
7+
8+
**Note:** Version bump only for package @twilio-labs/plugin-assets
9+
10+
11+
12+
13+
614
# [1.0.0](https://github.com/twilio-labs/serverless-toolkit/compare/@twilio-labs/plugin-assets@0.1.0-beta.2...@twilio-labs/plugin-assets@1.0.0) (2021-05-19)
715

816
**Note:** Version bump only for package @twilio-labs/plugin-assets

packages/plugin-assets/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ OPTIONS
6565
would like to display (JSON output always shows all properties).
6666
```
6767

68-
_See code: [src/commands/assets/init.js](https://github.com/twilio-labs/serverless-toolkit/blob/v1.0.0/src/commands/assets/init.js)_
68+
_See code: [src/commands/assets/init.js](https://github.com/twilio-labs/serverless-toolkit/blob/v1.0.1-rc.0/src/commands/assets/init.js)_
6969

7070
## `twilio assets:list`
7171

@@ -86,7 +86,7 @@ OPTIONS
8686
(JSON output always shows all properties).
8787
```
8888

89-
_See code: [src/commands/assets/list.js](https://github.com/twilio-labs/serverless-toolkit/blob/v1.0.0/src/commands/assets/list.js)_
89+
_See code: [src/commands/assets/list.js](https://github.com/twilio-labs/serverless-toolkit/blob/v1.0.1-rc.0/src/commands/assets/list.js)_
9090

9191
## `twilio assets:upload FILE`
9292

@@ -110,7 +110,7 @@ OPTIONS
110110
(JSON output always shows all properties).
111111
```
112112

113-
_See code: [src/commands/assets/upload.js](https://github.com/twilio-labs/serverless-toolkit/blob/v1.0.0/src/commands/assets/upload.js)_
113+
_See code: [src/commands/assets/upload.js](https://github.com/twilio-labs/serverless-toolkit/blob/v1.0.1-rc.0/src/commands/assets/upload.js)_
114114
<!-- commandsstop -->
115115

116116
## Contributing

packages/plugin-assets/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "@twilio-labs/plugin-assets",
33
"description": "Easily upload assets to a Twilio Assets service",
4-
"version": "1.0.0",
4+
"version": "1.0.1-rc.0",
55
"author": "Twilio Inc. <open-source@twilio.com> (https://www.twilio.com/labs)",
66
"contributors": [
77
"Phil Nash <philnash@twilio.com>"
88
],
99
"dependencies": {
1010
"@oclif/command": "^1.5.19",
1111
"@oclif/config": "^1.13.3",
12-
"@twilio-labs/serverless-api": "^5.0.0",
12+
"@twilio-labs/serverless-api": "5.1.0-rc.0",
1313
"@twilio/cli-core": "^5.22.0",
1414
"inquirer": "^8.0.0",
1515
"ora": "^5.4.0"

0 commit comments

Comments
 (0)