Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: arduino/arduino-iot-js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.2.1
Choose a base ref
...
head repository: arduino/arduino-iot-js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Dec 14, 2018

  1. Copy the full SHA
    9784b7d View commit details
  2. Merge pull request #6 from arduino/resubscribe-topics

    Re-subscribe to all topics subscribed previously after a connection loss
    eclipse1985 authored Dec 14, 2018
    Copy the full SHA
    e1f4636 View commit details
  3. 0.2.2

    Fabrizio Mirabito committed Dec 14, 2018
    Copy the full SHA
    5dfe8f6 View commit details

Commits on Dec 17, 2018

  1. Copy the full SHA
    8f9deb5 View commit details

Commits on Dec 18, 2018

  1. Merge pull request #7 from arduino/cleanup-disconnect

    Clean up the properties callbacks upon disconnect
    eclipse1985 authored Dec 18, 2018
    Copy the full SHA
    f58ad37 View commit details
  2. 0.2.3

    Fabrizio Mirabito committed Dec 18, 2018
    Copy the full SHA
    2fee57d View commit details

Commits on Dec 19, 2018

  1. Copy the full SHA
    223e24b View commit details
  2. Copy the full SHA
    87a16f9 View commit details
  3. Copy the full SHA
    275bcdb View commit details

Commits on Dec 21, 2018

  1. Copy the full SHA
    4dcdc37 View commit details

Commits on Jan 4, 2019

  1. Copy the full SHA
    7425161 View commit details

Commits on Jan 8, 2019

  1. Merge pull request #8 from arduino/single-connection

    Single connection
    eclipse1985 authored Jan 8, 2019
    Copy the full SHA
    2de29a1 View commit details
  2. 0.3.0

    Fabrizio Mirabito committed Jan 8, 2019
    Copy the full SHA
    6b34719 View commit details
  3. 0.3.1

    Fabrizio Mirabito committed Jan 8, 2019
    Copy the full SHA
    0d0ee6a View commit details

Commits on Jan 23, 2019

  1. Add support for CloudProtocol v2

    Add support for CloudProtocol v2 by using CBOR label names for SenML
    objects property names. This is required to support
    arduino-libraries/ArduinoCloudThing#6 (the same change
    on the ArduinoCloudThing library for sketches).
    xowor committed Jan 23, 2019
    Copy the full SHA
    15dc357 View commit details
  2. Copy the full SHA
    7ca0d13 View commit details
  3. Copy the full SHA
    1a48772 View commit details

Commits on Feb 4, 2019

  1. Copy the full SHA
    f645028 View commit details
  2. Copy the full SHA
    3907380 View commit details
  3. Merge pull request #19 from arduino/numeric-cbor-labels

     Add support for CloudProtocol v2
    eclipse1985 authored Feb 4, 2019
    Copy the full SHA
    88b7a4c View commit details
  4. 0.3.2

    Fabrizio Mirabito committed Feb 4, 2019
    Copy the full SHA
    2f0aabf View commit details

Commits on Feb 8, 2019

  1. Copy the full SHA
    6f0a915 View commit details
  2. Copy the full SHA
    3d0737a View commit details
  3. Copy the full SHA
    991a9a9 View commit details

Commits on Feb 20, 2019

  1. Merge pull request #24 from arduino/sendpropertyasdevice-cloudprotocolv2

    Add CloudProtocl v2 support to sendPropertyAsDevice
    eclipse1985 authored Feb 20, 2019
    Copy the full SHA
    a015e27 View commit details
  2. 0.4.0

    Fabrizio Mirabito committed Feb 20, 2019
    Copy the full SHA
    45b7994 View commit details

Commits on Feb 26, 2019

  1. use arduino cbor-js

    Stefania committed Feb 26, 2019
    Copy the full SHA
    3b7282e View commit details
  2. keep numeric type for cbor keys

    Stefania committed Feb 26, 2019
    Copy the full SHA
    5da220b View commit details
  3. updated dependency

    Stefania committed Feb 26, 2019
    Copy the full SHA
    9df2228 View commit details
  4. 0.4.1

    Stefania committed Feb 26, 2019
    Copy the full SHA
    0195f6f View commit details

Commits on Feb 27, 2019

  1. updated dep

    Stefania committed Feb 27, 2019
    Copy the full SHA
    6ff416b View commit details

Commits on Apr 23, 2019

  1. Copy the full SHA
    b5e70ed View commit details

Commits on May 4, 2019

  1. Copy the full SHA
    6613ce6 View commit details

Commits on May 7, 2019

  1. Merge pull request #73 from ilcato/multi-value-properties

    Multi value properties decode management
    Luca Barbetti authored May 7, 2019
    Copy the full SHA
    b79e782 View commit details

Commits on May 14, 2019

  1. Merge pull request #77 from arduino/multi-value-properties

    Multi value properties
    Luca Barbetti authored May 14, 2019
    Copy the full SHA
    71a611f View commit details
  2. 0.4.2

    Fabrizio Mirabito committed May 14, 2019
    Copy the full SHA
    c8d803e View commit details
  3. 0.4.3

    Fabrizio Mirabito committed May 14, 2019
    Copy the full SHA
    3ef46f5 View commit details

Commits on Jun 11, 2019

  1. Bump js-yaml from 3.12.2 to 3.13.1

    Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.12.2 to 3.13.1.
    - [Release notes](https://github.com/nodeca/js-yaml/releases)
    - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
    - [Commits](nodeca/js-yaml@3.12.2...3.13.1)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jun 11, 2019
    Copy the full SHA
    1b5b72d View commit details
  2. Copy the full SHA
    5866ea2 View commit details

Commits on Jun 18, 2019

  1. Fix error decoding non existing property

    If a property is sent from the device to the cloud when the property is non existing on the cloud an error was raised.
    ilcato committed Jun 18, 2019
    Copy the full SHA
    6816692 View commit details

Commits on Jun 19, 2019

  1. Fix check expression

    ilcato committed Jun 19, 2019
    Copy the full SHA
    6a4c023 View commit details
  2. Merge pull request #97 from ilcato/master

    Fix error decoding non existing property
    Stefania authored Jun 19, 2019
    Copy the full SHA
    49142be View commit details
  3. Merge pull request #91 from arduino/dependabot/npm_and_yarn/handlebar…

    …s-4.1.2
    
    Bump handlebars from 4.1.0 to 4.1.2
    Stefania authored Jun 19, 2019
    Copy the full SHA
    bc858f5 View commit details
  4. Merge pull request #90 from arduino/dependabot/npm_and_yarn/js-yaml-3…

    ….13.1
    
    Bump js-yaml from 3.12.2 to 3.13.1
    Stefania authored Jun 19, 2019
    Copy the full SHA
    abdaadd View commit details
  5. updated dependencies

    Stefania committed Jun 19, 2019
    Copy the full SHA
    e5dec72 View commit details
  6. 0.4.4

    Stefania committed Jun 19, 2019
    Copy the full SHA
    e0687ec View commit details

Commits on Jun 25, 2019

  1. Copy the full SHA
    96c6875 View commit details

Commits on Jun 27, 2019

  1. Merge pull request #100 from ilcato/master

    Added method for removing property value callback
    Stefania authored Jun 27, 2019
    Copy the full SHA
    1d37dd6 View commit details
  2. 0.4.5

    Stefania committed Jun 27, 2019
    Copy the full SHA
    570dd9c View commit details

Commits on Jul 11, 2019

  1. [Security] Bump lodash from 4.17.11 to 4.17.14

    Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.14. **This update includes security fixes.**
    - [Release notes](https://github.com/lodash/lodash/releases)
    - [Commits](lodash/lodash@4.17.11...4.17.14)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    dependabot-preview[bot] authored Jul 11, 2019
    Copy the full SHA
    aabeddf View commit details
19 changes: 0 additions & 19 deletions .babelrc

This file was deleted.

12 changes: 0 additions & 12 deletions .editorconfig

This file was deleted.

31 changes: 26 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,28 @@
module.exports = {
"extends": "airbnb-base",
"env": {
"browser": true,
"jest": true
}
env: {
es6: true,
},
ignorePatterns: ['node_modules/*', 'lib/*', 'es/*'],
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
],
parserOptions: {
sourceType: 'module',
project: './tsconfig.json',
ecmaVersion: 2018,
},
rules: {
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/no-use-before-define': 'warn',
'@typescript-eslint/camelcase': 'warn',
'@typescript-eslint/no-empty-interface': 'warn',
'@typescript-eslint/no-empty-function': 'warn',
'@typescript-eslint/no-namespace': 'warn',
'prefer-rest-params': 'warn',
'no-else-return': 'error',
},
};
38 changes: 38 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release Lib

on:
push:
tags:
- '*'

jobs:
test:
runs-on: ubuntu-latest
env:
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}

steps:
- name: Disable EOL conversions
run: git config --global core.autocrlf false

- name: Checkout
uses: actions/checkout@master
with:
ref: ${{ github.ref }}
fetch-depth: 0

- name: Integration tests
uses: actions/setup-node@v3
with:
node-version: "18.x"
cache: "yarn"

- run: yarn
- run: yarn lint
- run: yarn test
env:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}

- run: yarn build
- run: npm publish
36 changes: 36 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "[PR] Run Tests"

on:
pull_request:
types: [opened, synchronize, ready_for_review, reopened]
push:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest
env:
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
steps:
- name: Disable EOL conversions
run: git config --global core.autocrlf false

- name: Checkout
uses: actions/checkout@master
with:
ref: ${{ github.ref }}
fetch-depth: 0

- name: Integration tests
uses: actions/setup-node@v3
with:
node-version: "18.x"
cache: "yarn"

- run: yarn
- run: yarn lint
- run: yarn test
env:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
64 changes: 64 additions & 0 deletions .github/workflows/verify-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: "[PR] Verify App Version"

on:
pull_request:
types: [opened, synchronize, ready_for_review, reopened]

jobs:
get-current-version:
name: Get Current Version
runs-on: ubuntu-latest
if: ${{ github.base_ref == 'master' }}
outputs:
version: ${{ steps.get_version.outputs.version }}
steps:
- uses: actions/checkout@v1

- id: get_version
name: Get version
run: |
version=$(node -p 'require("./package.json").version')
echo "::set-output name=version::${version}"
get-master-version:
name: Get Master Version
runs-on: ubuntu-latest
if: ${{ github.base_ref == 'master' }}
outputs:
version: ${{ steps.get_version.outputs.version }}
steps:
- uses: actions/checkout@v1
with:
ref: master

- id: get_version
name: Get version
run: |
version=$(node -p 'require("./package.json").version')
echo "::set-output name=version::${version}"
verify:
name: Verify versions
if: ${{ github.base_ref == 'master' }}
needs: [get-current-version, get-master-version]
runs-on: ubuntu-latest
steps:
- id: verify_versions
name: Verify versions
shell: bash
run: |
verlte() {
[ "$1" = "`echo -e "$1\n$2" | sort -V | head -n1`" ]
}
verlt() {
[ "$1" = "$2" ] && return 1 || verlte $1 $2
}
if verlt ${{ needs.get-master-version.outputs.version }} ${{ needs.get-current-version.outputs.version }} ; then
echo 'Version is ok!'
else
echo 'Must bump app version' && exit 1
fi
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -2,4 +2,5 @@ node_modules
lib
dist
es
.tmp
.tmp
misc
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//registry.npmjs.org/:_authToken=${REPO_ACCESS_TOKEN}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16.15.0
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"printWidth": 120,
"singleQuote": true,
"trailingComma": "es5"
}
4 changes: 2 additions & 2 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
This file includes licensing information for arduino-iot-js.

Copyright (c) 2018
Authors: Fabrizio Mirabito
Copyright (c) 2023
Authors: Fabrizio Mirabito, Francesco Pirrotta

The software is released under the GNU General Public License, which covers the main body
of the [insert app name] code. The terms of this license can be found at:
Loading