Skip to content

Updated logic to extract the file extension #551

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Sep 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
# 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
All notable changes to this project will be documented in this file.

## [2.9.1] - 2022-09-06
### Added
- Added support for ESP boards (experimental)
- Added support for ESP32 boards

[2.9.0] - 2022-06-06
## [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
## [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.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
This file includes licensing information for arduino-create-agent-js-client.

Copyright (c) 2018
Authors: Alberto Iannaccone, Stefania Mellai, Gabriele Destefanis
Authors: Alberto Iannaccone, Stefania Mellai, Gabriele Destefanis, Christian Sarnataro

The software is released under the GNU General Public License, which covers the main body
of the arduino-create-agent-js-client code. The terms of this license can be found at:
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# 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
See [CHANGELOG.MD](CHANGELOG.MD) for more details.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "arduino-create-agent-js-client",
"version": "2.9.1-alpha.2",
"version": "2.9.1",
"description": "JS module providing discovery of the Arduino Create Plugin and communication with it",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down
7 changes: 1 addition & 6 deletions src/socket-daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,12 +392,7 @@ export default class SocketDaemon extends Daemon {
this.uploading.next({ status: this.UPLOAD_IN_PROGRESS, msg: `Programming with: ${message.Cmd}` });
break;
case 'Busy':
if (message.Msg && message.Msg.indexOf('No device found') === 0) {
this.uploading.next({ status: this.UPLOAD_ERROR, err: message.Msg });
}
else {
this.uploading.next({ status: this.UPLOAD_IN_PROGRESS, msg: message.Msg });
}
this.uploading.next({ status: this.UPLOAD_IN_PROGRESS, msg: message.Msg });
break;
case 'Error':
this.uploading.next({ status: this.UPLOAD_ERROR, err: message.Msg });
Expand Down
20 changes: 20 additions & 0 deletions src/web-serial-daemon.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright 2022 ARDUINO SA (http://www.arduino.cc/)
* This file is part of arduino-create-agent-js-client.
* Copyright (c) 2018
* Authors: Alberto Iannaccone, Stefania Mellai, Gabriele Destefanis
*
* This software is released under:
* The GNU General Public License, which covers the main part of
* arduino-create-agent-js-client
* The terms of this license can be found at:
* https://www.gnu.org/licenses/gpl-3.0.en.html
*
* You can be released from the requirements of the above licenses by purchasing
* a commercial license. Buying such a license is mandatory if you want to modify or
* otherwise use the software for commercial activities involving the Arduino
* software without disclosing the source code of your own applications. To purchase
* a commercial license, send an email to [email protected].
*
*/

import {
distinctUntilChanged, filter, takeUntil
} from 'rxjs/operators';
Expand Down