From d30fb0afcdf60cb3aca8c109993c30feec604b81 Mon Sep 17 00:00:00 2001 From: Christian Sarnataro Date: Thu, 28 Jul 2022 17:09:46 +0200 Subject: [PATCH 1/4] Updated logic to extract the file extension --- src/daemon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon.js b/src/daemon.js index 6fcfbd8..4846c41 100644 --- a/src/daemon.js +++ b/src/daemon.js @@ -130,7 +130,7 @@ export default class Daemon { }) .then(result => result.json()) .then(uploadCommandInfo => { - const projectNameIndex = uploadCommandInfo.commandline.indexOf('{build.project_name}'); + const projectNameIndex = uploadCommandInfo.commandline.lastIndexOf('{build.project_name}'); let ext = uploadCommandInfo.commandline.substring(projectNameIndex + 21, projectNameIndex + 24); const data = compilationResult[ext] || compilationResult.bin; if (!ext || !data) { From 8b5e8429d52965b623e672c57aa0127a520feed9 Mon Sep 17 00:00:00 2001 From: Christian Sarnataro Date: Thu, 28 Jul 2022 17:28:57 +0200 Subject: [PATCH 2/4] Bumped version and updated readme --- README.md | 8 +++++++- package.json | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cb76634..273bd75 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,15 @@ # arduino-create-agent-js-client JS module providing discovery of the [Arduino Create Agent](https://github.com/arduino/arduino-create-agent) and communication with it + ## Changelog -[2.9.0] - 2022-06-06 +[2.9.1-alpha.1] - 2022-07-28 + +### Added +- Added support for ESP boards (experimental) +## Changelog +[2.9.0] - 2022-06-06 ### Added - Added support for "Arduino RP2040 Connect" board ### Changed diff --git a/package.json b/package.json index 31636a9..ebc2efc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "arduino-create-agent-js-client", - "version": "2.9.0", + "version": "2.9.1-alpha.1", "description": "JS module providing discovery of the Arduino Create Plugin and communication with it", "main": "lib/index.js", "module": "es/index.js", From 2e80696d1920eadc6c8cd511ee6680ca95aa42be Mon Sep 17 00:00:00 2001 From: Christian Sarnataro Date: Thu, 18 Aug 2022 10:44:31 +0200 Subject: [PATCH 3/4] Moved changelog in its own file --- README.md | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/README.md b/README.md index a896699..6918c10 100644 --- a/README.md +++ b/README.md @@ -6,31 +6,7 @@ JS module providing discovery of the [Arduino Create Agent](https://github.com/a ## Changelog -[2.9.1-alpha.2] - 2022-08-17 - -### Changed -- The error `No device found` coming from the `arduino-create-agent` is now treated as an error. - -## Changelog -[2.9.1-alpha.1] - 2022-07-28 - -### Added -- Added support for ESP boards (experimental) - -## Changelog -[2.9.0] - 2022-06-06 -### Added -- Added support for "Arduino RP2040 Connect" board -### Changed -- Improved support for Chrome's Web Serial API on ChromeOS. Other operating systems should not be affected. -- Simplified the communication with the Web Serial API via a messaging system which simulates - the [postMessage](https://developer.chrome.com/docs/extensions/reference/runtime/#method-Port-postMessage) function available in the Chrome App Daemon (see `chrome-app-daemon.js`). - - -[2.8.0] - 2022-03-21 -### Added -- Added support (still in Beta) for Chrome's Web Serial API on ChromeOS. - Other operating systems should not be affected. +See [CHANGELOG.MD](CHANGELOG.MD) for more details. ## Installation From 4697375ba5974da3eb72a76523cd030a5282153c Mon Sep 17 00:00:00 2001 From: Christian Sarnataro Date: Thu, 18 Aug 2022 11:52:48 +0200 Subject: [PATCH 4/4] Added CHANGELOG.md --- CHANGELOG.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..23a56b4 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,24 @@ +# Changelog +[2.9.1-alpha.2] - 2022-08-17 + +### Changed +- The error `No device found` coming from the `arduino-create-agent` is now treated as an error. + +[2.9.1-alpha.1] - 2022-07-28 + +### Added +- Added support for ESP boards (experimental) + +[2.9.0] - 2022-06-06 +### Added +- Added support for "Arduino RP2040 Connect" board +### Changed +- Improved support for Chrome's Web Serial API on ChromeOS. Other operating systems should not be affected. +- Simplified the communication with the Web Serial API via a messaging system which simulates + the [postMessage](https://developer.chrome.com/docs/extensions/reference/runtime/#method-Port-postMessage) function available in the Chrome App Daemon (see `chrome-app-daemon.js`). + + +[2.8.0] - 2022-03-21 +### Added +- Added support (still in Beta) for Chrome's Web Serial API on ChromeOS. + Other operating systems should not be affected.