Skip to content

Commit

Permalink
Release/0.20.0 (#1989)
Browse files Browse the repository at this point in the history
* fix(core): matchRoute to work bwd compatible

* chore(cli): limit allowed botName chars to 25

* chore(react): remove experimental from react-lts to reduce bundle size

* chore(intent/ner): allow compatibility of new nlp with lts

* chore: bump all packages to v0.20.0-rc.0

* chore(dialogflow): fix missing property in session

* chore: bump and publish packages to v0.20.0

* chore: update CHANGELOG.md
  • Loading branch information
vanbasten17 authored Oct 28, 2021
1 parent b08fb86 commit 5f6527e
Show file tree
Hide file tree
Showing 67 changed files with 5,889 additions and 11,513 deletions.
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,42 @@ All notable changes to Botonic will be documented in this file.
</summary>
</details>

## [0.20.0] - 2021-10-28

**NOTE**: At this moment, Botonic `v0.20.0` will be in `Mainteinance LTS` status and will be maintained in [`master-lts` branch](https://github.com/hubtype/botonic/tree/master-lts) until further notice.
Currently we are working on Botonic 1.0 which will come with several improvements and hence all its commits from now on will reside in [`master`](https://github.com/hubtype/botonic/tree/master).

### Added

- [@botonic/core](https://www.npmjs.com/package/@botonic/core)

- Plugins now can be accessed within plugins' [`pre` and `post` calls](https://github.com/hubtype/botonic/pull/1975).

* [@botonic/plugin-contentful](https://www.npmjs.com/package/@botonic/plugin-contentful)

- Added [new components](https://github.com/hubtype/botonic/pull/1900) to allow creating custom models with contentful.

- [@botonic/react](https://www.npmjs.com/package/@botonic/react)

- Allow `hostId` [to be changed at runtime](https://github.com/hubtype/botonic/pull/1976).

### Changed

- [@botonic/core](https://www.npmjs.com/package/@botonic/core)

- Distribute `@botonic/core` library with CJS and ESM versions to improve tree-shaking functionalities. [#1826](https://github.com/hubtype/botonic/pull/1826)
- Refactored `@botonic/core` from JS to TS. Reviewed and improved functionalities like `retries`, `redirects`, `dynamic routes` and `empty actions`. [#1937](https://github.com/hubtype/botonic/pull/1937) Feel free to check [tests](https://github.com/hubtype/botonic/pull/1937/files#diff-4a6b294c08198652053f71e9a4fe32ef57f7b06ab9a5648e8fc9b16d0777868c) for further information.

### Fixed

- [@botonic/plugin-dialogflow](https://www.npmjs.com/package/@botonic/plugin-dialogflow)
- Allow to pass [custom data](https://github.com/hubtype/botonic/pull/1987) to dialogflow queries. Big thanks to external contributor [herrlegno](https://github.com/herrlegno).

* [@botonic/react](https://www.npmjs.com/package/@botonic/react)

- Fixed bug regarding emoji panel and cover component [unable to be scrolled](https://github.com/hubtype/botonic/pull/1968). Big thanks to external contributor [TD-LiXiang](https://github.com/TD-LiXiang).
- Fixed `deviceAdapter` behavior with [improved device detection](https://github.com/hubtype/botonic/pull/1988).

## [0.19.0] - 2021-07-29

### Added
Expand Down Expand Up @@ -726,3 +762,4 @@ All notable changes to Botonic will be documented in this file.
[0.17.0]: https://github.com/hubtype/botonic/releases/tag/v0.17.0
[0.18.0]: https://github.com/hubtype/botonic/releases/tag/v0.18.0
[0.19.0]: https://github.com/hubtype/botonic/releases/tag/v0.19.0
[0.20.0]: https://github.com/hubtype/botonic/releases/tag/v0.20.0
20 changes: 10 additions & 10 deletions packages/botonic-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $ npm install -g @botonic/cli
$ botonic COMMAND
running command...
$ botonic (-v|--version|version)
@botonic/cli/1.0.0-dev.1 darwin-x64 node-v12.22.3
@botonic/cli/0.20.0 darwin-x64 node-v14.18.1
$ botonic --help [COMMAND]
USAGE
$ botonic COMMAND
Expand Down Expand Up @@ -67,7 +67,7 @@ EXAMPLES
Deploying to AWS...
```

_See code: [lib/commands/deploy.js](https://github.com/hubtype/botonic/blob/v1.0.0-dev.1/lib/commands/deploy.js)_
_See code: [lib/commands/deploy.js](https://github.com/hubtype/botonic/blob/v0.20.0/lib/commands/deploy.js)_

## `botonic destroy [PROVIDER]`

Expand All @@ -82,7 +82,7 @@ EXAMPLE
Destroying AWS stack...
```

_See code: [lib/commands/destroy.js](https://github.com/hubtype/botonic/blob/v1.0.0-dev.1/lib/commands/destroy.js)_
_See code: [lib/commands/destroy.js](https://github.com/hubtype/botonic/blob/v0.20.0/lib/commands/destroy.js)_

## `botonic help [COMMAND]`

Expand All @@ -99,7 +99,7 @@ OPTIONS
--all see all commands in CLI
```

_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.2/src/commands/help.ts)_
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.3/src/commands/help.ts)_

## `botonic login`

Expand All @@ -113,7 +113,7 @@ OPTIONS
-p, --path=path Path to botonic project. Defaults to current dir.
```

_See code: [lib/commands/login.js](https://github.com/hubtype/botonic/blob/v1.0.0-dev.1/lib/commands/login.js)_
_See code: [lib/commands/login.js](https://github.com/hubtype/botonic/blob/v0.20.0/lib/commands/login.js)_

## `botonic logout`

Expand All @@ -127,7 +127,7 @@ OPTIONS
-p, --path=path Path to botonic project. Defaults to current dir.
```

_See code: [lib/commands/logout.js](https://github.com/hubtype/botonic/blob/v1.0.0-dev.1/lib/commands/logout.js)_
_See code: [lib/commands/logout.js](https://github.com/hubtype/botonic/blob/v0.20.0/lib/commands/logout.js)_

## `botonic new NAME [PROJECTNAME]`

Expand All @@ -147,7 +147,7 @@ EXAMPLE
✨ test_bot was successfully created!
```

_See code: [lib/commands/new.js](https://github.com/hubtype/botonic/blob/v1.0.0-dev.1/lib/commands/new.js)_
_See code: [lib/commands/new.js](https://github.com/hubtype/botonic/blob/v0.20.0/lib/commands/new.js)_

## `botonic serve`

Expand All @@ -165,7 +165,7 @@ EXAMPLE
> Project is running at http://localhost:8080/
```

_See code: [lib/commands/serve.js](https://github.com/hubtype/botonic/blob/v1.0.0-dev.1/lib/commands/serve.js)_
_See code: [lib/commands/serve.js](https://github.com/hubtype/botonic/blob/v0.20.0/lib/commands/serve.js)_

## `botonic test`

Expand All @@ -192,7 +192,7 @@ EXAMPLE
Ran all test suites.
```

_See code: [lib/commands/test.js](https://github.com/hubtype/botonic/blob/v1.0.0-dev.1/lib/commands/test.js)_
_See code: [lib/commands/test.js](https://github.com/hubtype/botonic/blob/v0.20.0/lib/commands/test.js)_

## `botonic train`

Expand All @@ -210,5 +210,5 @@ EXAMPLE
TRAINING MODEL...
```

_See code: [lib/commands/train.js](https://github.com/hubtype/botonic/blob/v1.0.0-dev.1/lib/commands/train.js)_
_See code: [lib/commands/train.js](https://github.com/hubtype/botonic/blob/v0.20.0/lib/commands/train.js)_
<!-- commandsstop -->
2 changes: 1 addition & 1 deletion packages/botonic-cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/botonic-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@botonic/cli",
"description": "Build Chatbots Using React",
"version": "1.0.0-dev.1",
"version": "0.20.0",
"license": "MIT",
"bin": {
"botonic": "./bin/run"
},
"bugs": "https://github.com/hubtype/botonic/issues",
"dependencies": {
"@botonic/pulumi": "dev",
"@botonic/pulumi": "1.0.0-dev.0",
"@oclif/command": "^1.8.0",
"@oclif/config": "^1.17.0",
"@oclif/plugin-help": "^3.2.2",
Expand Down
6 changes: 6 additions & 0 deletions packages/botonic-cli/src/commands/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,12 @@ Deploying to AWS...
message: 'Bot name:',
},
]).then((inp: any) => {
const MAX_ALLOWED_CHARS_FOR_BOT_NAME = 25
if (inp.bot_name.length > MAX_ALLOWED_CHARS_FOR_BOT_NAME) {
throw new Error(
`Maximum allowed chars for bot name is ${MAX_ALLOWED_CHARS_FOR_BOT_NAME} chars. Please, give a shorter name.`
)
}
return this.botonicApiService.saveBot(inp.bot_name).then(
({}) => this.deploy(),
err =>
Expand Down
2 changes: 1 addition & 1 deletion packages/botonic-core/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/botonic-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@botonic/core",
"version": "1.0.0-dev.0",
"version": "0.20.0",
"license": "MIT",
"description": "Build Chatbots using React",
"main": "./lib/cjs/index.js",
Expand Down
1 change: 1 addition & 0 deletions packages/botonic-core/src/routing/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ export class Router {
): MatchedValue {
let value: any = null
if (Object.keys(input).indexOf(prop) > -1) value = input[prop]
else if (prop === 'text') value = input.data
else if (prop === 'input') value = input
else if (prop === 'session') value = session
else if (prop === 'request') value = { input, session, lastRoutePath }
Expand Down
2 changes: 1 addition & 1 deletion packages/botonic-nlp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/botonic-nlp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@botonic/nlp",
"version": "0.19.0",
"version": "0.20.0",
"main": "lib/index.js",
"license": "MIT",
"types": "lib/index.d.ts",
Expand Down
Loading

0 comments on commit 5f6527e

Please sign in to comment.