diff --git a/MIGRATING.md b/MIGRATING.md index 83bfc0e..020eca5 100644 --- a/MIGRATING.md +++ b/MIGRATING.md @@ -1,7 +1,7 @@ # TJBotLib Migration Guide ## Migrating from 1.x to 2.x -There have been several significant changes to the 2.x release of TJBotLib that break compatability with the 1.x release. Please use this guide, the new [TJBot API docs](https://ibmtjbot.github.io/docs/tjbot/2.0.0/), and the [updated recipes](https://github.com/ibmtjbot/tjbot/tree/master/recipes) in the `tjbot` repository, to help you migrate your recipes to the new 2.x API. +There have been several significant changes to the 2.x release of TJBotLib that break compatability with the 1.x release. Please use this guide, the new [TJBot API docs](https://ibmtjbot.github.io/docs/tjbot/2.0.1/), and the [updated recipes](https://github.com/ibmtjbot/tjbot/tree/master/recipes) in the `tjbot` repository, to help you migrate your recipes to the new 2.x API. ### ES6 Module TJBot is now packaged as an ES6 module, meaning it can be imported as follows: @@ -62,4 +62,4 @@ There are a few new methods for translation, such as `tj.translatableLanguages() There is a new configuration option, `TJBot.DEFAULT_CONFIG.shine.grbFormat`. If true, TJBot will send colors to the LED in GRB format; if false, TJBot will send colors to the LED in RGB format. ### Documentation enhancements -All TJBotLib code has been commented using JSDoc syntax. Please see the [API docs](https://ibmtjbot.github.io/docs/tjbot/2.0.0/) for a complete documentation reference. +All TJBotLib code has been commented using JSDoc syntax. Please see the [API docs](https://ibmtjbot.github.io/docs/tjbot/2.0.1/) for a complete documentation reference. diff --git a/README.md b/README.md index f968f0b..b3db8da 100644 --- a/README.md +++ b/README.md @@ -123,7 +123,7 @@ The full list of capabilities can be accessed programatically via `TJBot.CAPABIL ## TJBot API -Please see [the API docs](https://ibmtjbot.github.io/docs/tjbot/2.0.0/) for documentation of the TJBot API. +Please see [the API docs](https://ibmtjbot.github.io/docs/tjbot/2.0.1/) for documentation of the TJBot API. > 💡 Please see the [Migration Guide](MIGRATING.md) for guidance on migrating your code to the latest version of the TJBot API. diff --git a/lib/tjbot.js b/lib/tjbot.js index bf3eda5..4d3c0d4 100644 --- a/lib/tjbot.js +++ b/lib/tjbot.js @@ -48,7 +48,7 @@ class TJBot { * TJBot library version * @readonly */ - static VERSION = 'v2.0.0'; + static VERSION = 'v2.0.1'; /** * TJBot capabilities @@ -700,7 +700,7 @@ class TJBot { try { const body = await this._toneAnalyzer.tone(params); - winston.silly(`repsonse from _toneAnalyzer.tone(): ${body}`); + winston.silly(`response from _toneAnalyzer.tone(): ${body}`); return body.result; } catch (err) { winston.error(`the ${TJBot.SERVICES.TONE_ANALYZER} service returned an error.`, err); @@ -730,10 +730,11 @@ class TJBot { // set up the session if needed if (!this._assistantSessionId) { try { + winston.silly(`creating assistant session, sessionId: ${this.configuration.converse.assistantId}`); const body = await this._assistant.createSession({ assistantId: this.configuration.converse.assistantId, }); - winston.silly(`repsonse from _assistant.createSession(): ${body}`); + winston.silly(`response from _assistant.createSession(): ${body}`); this._assistantSessionId = body.result.session_id; } catch (err) { diff --git a/package-lock.json b/package-lock.json index e45b4a1..3a01241 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "tjbot", - "version": "2.0.0", + "version": "2.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "tjbot", - "version": "2.0.0", + "version": "2.0.1", "license": "Apache-2.0", "dependencies": { "bluebird": "^3.7.2", @@ -17,7 +17,7 @@ "mic": "^2.1.2", "node-raspistill": "^1.0.1", "pigpio": "^3.2.3", - "rpi-ws281x-native": "^0.10.0", + "rpi-ws281x-native": "^0.10.1", "semaphore": "^1.1.0", "sleep": "^6.3.0", "sound-player": "^1.0.13", @@ -7326,9 +7326,9 @@ } }, "node_modules/rpi-ws281x-native": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/rpi-ws281x-native/-/rpi-ws281x-native-0.10.0.tgz", - "integrity": "sha512-10feoH/unpKW8OnmRk79/ExcXViuUDs9leiO1shkwstSFUITC0uBmjzjxN4zo2kfNZwvUpgpeeH+Q6GAJ0J71Q==", + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/rpi-ws281x-native/-/rpi-ws281x-native-0.10.1.tgz", + "integrity": "sha512-ckoNf2Ar/Kxkz4IB2e6FoSkOM4oQ1n3kBnZDj58jq5WE14K8UUeBjjG9CBNvvOjD7QWwzj+4HRLWG4nC1OS+WQ==", "hasInstallScript": true, "dependencies": { "node-addon-api": "^3.0.0" @@ -15298,9 +15298,9 @@ } }, "rpi-ws281x-native": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/rpi-ws281x-native/-/rpi-ws281x-native-0.10.0.tgz", - "integrity": "sha512-10feoH/unpKW8OnmRk79/ExcXViuUDs9leiO1shkwstSFUITC0uBmjzjxN4zo2kfNZwvUpgpeeH+Q6GAJ0J71Q==", + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/rpi-ws281x-native/-/rpi-ws281x-native-0.10.1.tgz", + "integrity": "sha512-ckoNf2Ar/Kxkz4IB2e6FoSkOM4oQ1n3kBnZDj58jq5WE14K8UUeBjjG9CBNvvOjD7QWwzj+4HRLWG4nC1OS+WQ==", "requires": { "node-addon-api": "^3.0.0" } diff --git a/package.json b/package.json index 6cdce62..2f4ec3c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tjbot", - "version": "2.0.0", + "version": "2.0.1", "description": "Node.js library for writing TJBot recipes", "main": "index.js", "type": "module",