Skip to content

Commit 1cb467d

Browse files
authored
Updated logic to extract the file extension (#551)
Updated logic to extract the file extension Moved change log in its own file, updated README file accordingly
1 parent 3e6bf1d commit 1cb467d

File tree

6 files changed

+28
-19
lines changed

6 files changed

+28
-19
lines changed

CHANGELOG.md

+5-10
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
11
# Changelog
2-
[2.9.1-alpha.2] - 2022-08-17
3-
4-
### Changed
5-
- The error `No device found` coming from the `arduino-create-agent` is now treated as an error.
6-
7-
[2.9.1-alpha.1] - 2022-07-28
2+
All notable changes to this project will be documented in this file.
83

4+
## [2.9.1] - 2022-09-06
95
### Added
10-
- Added support for ESP boards (experimental)
6+
- Added support for ESP32 boards
117

12-
[2.9.0] - 2022-06-06
8+
## [2.9.0] - 2022-06-06
139
### Added
1410
- Added support for "Arduino RP2040 Connect" board
1511
### Changed
1612
- Improved support for Chrome's Web Serial API on ChromeOS. Other operating systems should not be affected.
1713
- Simplified the communication with the Web Serial API via a messaging system which simulates
1814
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`).
1915

20-
21-
[2.8.0] - 2022-03-21
16+
## [2.8.0] - 2022-03-21
2217
### Added
2318
- Added support (still in Beta) for Chrome's Web Serial API on ChromeOS.
2419
Other operating systems should not be affected.

LICENSE.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
This file includes licensing information for arduino-create-agent-js-client.
22

33
Copyright (c) 2018
4-
Authors: Alberto Iannaccone, Stefania Mellai, Gabriele Destefanis
4+
Authors: Alberto Iannaccone, Stefania Mellai, Gabriele Destefanis, Christian Sarnataro
55

66
The software is released under the GNU General Public License, which covers the main body
77
of the arduino-create-agent-js-client code. The terms of this license can be found at:

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# arduino-create-agent-js-client
55
JS module providing discovery of the [Arduino Create Agent](https://github.com/arduino/arduino-create-agent) and communication with it
66

7-
87
## Changelog
98
See [CHANGELOG.MD](CHANGELOG.MD) for more details.
109

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "arduino-create-agent-js-client",
3-
"version": "2.9.1-alpha.2",
3+
"version": "2.9.1",
44
"description": "JS module providing discovery of the Arduino Create Plugin and communication with it",
55
"main": "lib/index.js",
66
"module": "es/index.js",

src/socket-daemon.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -392,12 +392,7 @@ export default class SocketDaemon extends Daemon {
392392
this.uploading.next({ status: this.UPLOAD_IN_PROGRESS, msg: `Programming with: ${message.Cmd}` });
393393
break;
394394
case 'Busy':
395-
if (message.Msg && message.Msg.indexOf('No device found') === 0) {
396-
this.uploading.next({ status: this.UPLOAD_ERROR, err: message.Msg });
397-
}
398-
else {
399-
this.uploading.next({ status: this.UPLOAD_IN_PROGRESS, msg: message.Msg });
400-
}
395+
this.uploading.next({ status: this.UPLOAD_IN_PROGRESS, msg: message.Msg });
401396
break;
402397
case 'Error':
403398
this.uploading.next({ status: this.UPLOAD_ERROR, err: message.Msg });

src/web-serial-daemon.js

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/*
2+
* Copyright 2022 ARDUINO SA (http://www.arduino.cc/)
3+
* This file is part of arduino-create-agent-js-client.
4+
* Copyright (c) 2018
5+
* Authors: Alberto Iannaccone, Stefania Mellai, Gabriele Destefanis
6+
*
7+
* This software is released under:
8+
* The GNU General Public License, which covers the main part of
9+
* arduino-create-agent-js-client
10+
* The terms of this license can be found at:
11+
* https://www.gnu.org/licenses/gpl-3.0.en.html
12+
*
13+
* You can be released from the requirements of the above licenses by purchasing
14+
* a commercial license. Buying such a license is mandatory if you want to modify or
15+
* otherwise use the software for commercial activities involving the Arduino
16+
* software without disclosing the source code of your own applications. To purchase
17+
* a commercial license, send an email to [email protected].
18+
*
19+
*/
20+
121
import {
222
distinctUntilChanged, filter, takeUntil
323
} from 'rxjs/operators';

0 commit comments

Comments
 (0)