From b91a856c27882aad731bd719751bd8175b89d96e Mon Sep 17 00:00:00 2001 From: hidekita Date: Sun, 29 Aug 2021 00:08:25 +0900 Subject: [PATCH 1/7] change package name and versions --- .../binding-wotfirestore-browser-bundle/README.md | 15 ++++++++------- .../binding-wotfirestore-browser-bundle/index.js | 2 +- .../package-lock.json | 4 ++-- .../package.json | 6 +++--- packages/binding-wotfirestore/README.md | 10 +++++----- packages/binding-wotfirestore/package-lock.json | 4 ++-- packages/binding-wotfirestore/package.json | 8 ++++---- 7 files changed, 25 insertions(+), 24 deletions(-) diff --git a/packages/binding-wotfirestore-browser-bundle/README.md b/packages/binding-wotfirestore-browser-bundle/README.md index cbb7e568d..c001e5941 100644 --- a/packages/binding-wotfirestore-browser-bundle/README.md +++ b/packages/binding-wotfirestore-browser-bundle/README.md @@ -2,27 +2,28 @@ Bundle to run Firestore Binding as browser-side library. -## Supported bindings +## Supported bindings + HTTP / HTTPS / WebSockets -## Embedding Firestore Binding library in HTML +## Embedding Firestore Binding library in HTML Include the following script tag in your html ```js - + ``` You can access all binding-wotfirestore functionality through the "BindingWoTFirestore" global object: ```js -var WoTFirestoreClientFactory = BindingWoTFirestore.WoTFirestoreClientFactory; -var WoTFirestoreCodec = BindingWoTFirestore.WoTFirestoreCodec; -var WoTFirestoreServer = BindingWoTFirestore.WoTFirestoreServer; +var WoTFirestoreClientFactory = BindingWoTFirestore.WoTFirestoreClientFactory +var WoTFirestoreCodec = BindingWoTFirestore.WoTFirestoreCodec +var WoTFirestoreServer = BindingWoTFirestore.WoTFirestoreServer ``` ## Using binding-wotfirestore browser bundle library in web frameworks Install browser-bundle in your project by running -* `npm install @hidetak/binding-wotfirestore-browser-bundle` +- `npm install @node-wot/binding-wotfirestore-browser-bundle` diff --git a/packages/binding-wotfirestore-browser-bundle/index.js b/packages/binding-wotfirestore-browser-bundle/index.js index 2aad050e9..910569c92 100644 --- a/packages/binding-wotfirestore-browser-bundle/index.js +++ b/packages/binding-wotfirestore-browser-bundle/index.js @@ -1,6 +1,6 @@ "use strict"; -const BindingWoTFirestore = require("@hidetak/binding-wotfirestore"); +const BindingWoTFirestore = require("@node-wot/binding-wotfirestore"); if (typeof window !== "undefined") { window.BindingWoTFirestore = BindingWoTFirestore; diff --git a/packages/binding-wotfirestore-browser-bundle/package-lock.json b/packages/binding-wotfirestore-browser-bundle/package-lock.json index c8ac22d9d..cde43cccf 100644 --- a/packages/binding-wotfirestore-browser-bundle/package-lock.json +++ b/packages/binding-wotfirestore-browser-bundle/package-lock.json @@ -1,6 +1,6 @@ { - "name": "@hidetak/binding-wotfirestore-browser-bundle", - "version": "0.0.5", + "name": "@node-wot/binding-wotfirestore-browser-bundle", + "version": "0.7.8", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/binding-wotfirestore-browser-bundle/package.json b/packages/binding-wotfirestore-browser-bundle/package.json index 27aa6fe16..a183924ae 100644 --- a/packages/binding-wotfirestore-browser-bundle/package.json +++ b/packages/binding-wotfirestore-browser-bundle/package.json @@ -1,6 +1,6 @@ { - "name": "@hidetak/binding-wotfirestore-browser-bundle", - "version": "0.0.5", + "name": "@node-wot/binding-wotfirestore-browser-bundle", + "version": "0.7.8", "description": "A binding-wotfirestore bundle that can run in a web browser", "repository": "https://github.com/hidetak/thingweb.node-wot", "author": "hidetak", @@ -17,7 +17,7 @@ "tinyify": "^2.5.2" }, "dependencies": { - "@hidetak/binding-wotfirestore": "0.0.5" + "@node-wot/binding-wotfirestore": "0.7.8" }, "scripts": { "build": "browserify -r vm:vm2 index.js --external coffee-script -o dist/binding-wotfirestore-bundle.js" diff --git a/packages/binding-wotfirestore/README.md b/packages/binding-wotfirestore/README.md index 774ea808b..692dfd96b 100644 --- a/packages/binding-wotfirestore/README.md +++ b/packages/binding-wotfirestore/README.md @@ -58,7 +58,7 @@ To prepare for creating a nodejs app, execute `npm install`. After executing `npm init`, install the following modules. - `npm install @node-wot/core` -- `npm install @hidetak/binding-wotfirestore` +- `npm install @node-wot/binding-wotfirestore` ### Creating configuration file @@ -92,10 +92,10 @@ The ThingDescription registered by `example-server.js`. // example-client.js const Servient = require('@node-wot/core').Servient const WoTFirestoreClientFactory = - require('@hidetak/binding-wotfirestore').WoTFirestoreClientFactory + require('@node-wot/binding-wotfirestore').WoTFirestoreClientFactory const Helpers = require('@node-wot/core').Helpers const WoTFirestoreCodec = - require('@hidetak/binding-wotfirestore').WoTFirestoreCodec + require('@node-wot/binding-wotfirestore').WoTFirestoreCodec const firestoreConfig = require('./firestore-config.json') @@ -138,9 +138,9 @@ The server example produces a thing that allows for setting a property `count`. // example-server.js const Servient = require('@node-wot/core').Servient const WoTFirestoreServer = - require('@hidetak/binding-wotfirestore').WoTFirestoreServer + require('@node-wot/binding-wotfirestore').WoTFirestoreServer const WoTFirestoreCodec = - require('@hidetak/binding-wotfirestore').WoTFirestoreCodec + require('@node-wot/binding-wotfirestore').WoTFirestoreCodec const firestoreConfig = require('./firestore-config.json') diff --git a/packages/binding-wotfirestore/package-lock.json b/packages/binding-wotfirestore/package-lock.json index 2ea4f0b3a..e2480d78e 100644 --- a/packages/binding-wotfirestore/package-lock.json +++ b/packages/binding-wotfirestore/package-lock.json @@ -1,6 +1,6 @@ { - "name": "@hidetak/binding-wotfirestore", - "version": "0.0.5", + "name": "@node-wot/binding-wotfirestore", + "version": "0.7.8", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/binding-wotfirestore/package.json b/packages/binding-wotfirestore/package.json index 5521e706b..4cc9a35b8 100644 --- a/packages/binding-wotfirestore/package.json +++ b/packages/binding-wotfirestore/package.json @@ -1,6 +1,6 @@ { - "name": "@hidetak/binding-wotfirestore", - "version": "0.0.5", + "name": "@node-wot/binding-wotfirestore", + "version": "0.7.8", "description": "Firestore binding for node-wot", "repository": "https://github.com/hidetak/thingweb.node-wot", "main": "dist/wotfirestore.js", @@ -14,8 +14,8 @@ "author": "hidetak", "license": "EPL-2.0", "dependencies": { - "@node-wot/core": "0.7.7", - "@node-wot/td-tools": "0.7.7", + "@node-wot/core": "0.7.8", + "@node-wot/td-tools": "0.7.8", "buffer": "^5.5.0", "firebase": "^7.24.0", "uuid": "^7.0.3" From 4d6b5b1fd5ef358e1f035995d6c2c5d7a9fe22da Mon Sep 17 00:00:00 2001 From: sebastiankb Date: Tue, 31 Aug 2021 15:22:25 +0200 Subject: [PATCH 2/7] add M-Bus to the protocol list --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 795122931..932966e2d 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ Please also see the additional [notices](NOTICE.md) and [how to contribute](CONT * [OPC-UA](https://github.com/eclipse/thingweb.node-wot/blob/master/packages/binding-opcua/README.md) :heavy_plus_sign: (Client only) * [NETCONF](https://github.com/eclipse/thingweb.node-wot/blob/master/packages/binding-netconf/README.md) :heavy_plus_sign: (Client only) * [Modbus](https://github.com/eclipse/thingweb.node-wot/tree/master/packages/binding-modbus) :heavy_plus_sign: (Client only) +* [M-Bus](https://github.com/eclipse/thingweb.node-wot/tree/master/packages/binding-mbus) :heavy_plus_sign: (Client only) Note: More protocols can be easily added by implementing `ProtocolClient`, `ProtocolClientFactory`, and `ProtocolServer` interface. From f398f79a3f567f2eebd7f260b25735a1cd896543 Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Tue, 31 Aug 2021 15:31:03 +0200 Subject: [PATCH 3/7] feat: limit to LTS and current --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ee9dab509..81654a22d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,7 +10,7 @@ jobs: strategy: matrix: os: [macos-latest, ubuntu-latest, windows-latest] - node-version: [10.x, 12.x, 14.x, 15.x] + node-version: [14.x, 16.x] steps: - name: Checkout From a505635fa02684e3320cf2b720a90e71ba448314 Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Wed, 1 Sep 2021 08:53:35 +0200 Subject: [PATCH 4/7] docs: add firestore to the protocol list --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 932966e2d..963867f50 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ Please also see the additional [notices](NOTICE.md) and [how to contribute](CONT * [CoAP](https://github.com/eclipse/thingweb.node-wot/blob/master/packages/binding-coap/README.md) :heavy_check_mark: * [CoAPS](https://github.com/eclipse/thingweb.node-wot/blob/master/packages/binding-coap/README.md) :heavy_check_mark: * [MQTT](https://github.com/eclipse/thingweb.node-wot/blob/master/packages/binding-mqtt/README.md) :heavy_check_mark: +* [Firestore](https://github.com/eclipse/thingweb.node-wot/tree/master/packages/binding-wotfirestore/README.md) :heavy_check_mark: * [Websocket](https://github.com/eclipse/thingweb.node-wot/tree/master/packages/binding-websockets) :heavy_plus_sign: (Server only) * [OPC-UA](https://github.com/eclipse/thingweb.node-wot/blob/master/packages/binding-opcua/README.md) :heavy_plus_sign: (Client only) * [NETCONF](https://github.com/eclipse/thingweb.node-wot/blob/master/packages/binding-netconf/README.md) :heavy_plus_sign: (Client only) From 8ae8ec412256b7c607bb2cebb66650608b546a40 Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Wed, 1 Sep 2021 09:35:40 +0200 Subject: [PATCH 5/7] chore: align versions --- packages/binding-wotfirestore-browser-bundle/package.json | 2 +- packages/binding-wotfirestore/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/binding-wotfirestore-browser-bundle/package.json b/packages/binding-wotfirestore-browser-bundle/package.json index a183924ae..5c7d8b22e 100644 --- a/packages/binding-wotfirestore-browser-bundle/package.json +++ b/packages/binding-wotfirestore-browser-bundle/package.json @@ -1,6 +1,6 @@ { "name": "@node-wot/binding-wotfirestore-browser-bundle", - "version": "0.7.8", + "version": "0.8.0", "description": "A binding-wotfirestore bundle that can run in a web browser", "repository": "https://github.com/hidetak/thingweb.node-wot", "author": "hidetak", diff --git a/packages/binding-wotfirestore/package.json b/packages/binding-wotfirestore/package.json index 6882f9292..e5bac0e6f 100644 --- a/packages/binding-wotfirestore/package.json +++ b/packages/binding-wotfirestore/package.json @@ -1,6 +1,6 @@ { "name": "@node-wot/binding-wotfirestore", - "version": "0.7.8", + "version": "0.8.0", "description": "Firestore binding for node-wot", "repository": "https://github.com/hidetak/thingweb.node-wot", "main": "dist/wotfirestore.js", From 665d514f9f58ffff8e6d2e72b9fee8c11a622ec4 Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Wed, 1 Sep 2021 09:39:31 +0200 Subject: [PATCH 6/7] chore: align version --- packages/binding-wotfirestore-browser-bundle/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/binding-wotfirestore-browser-bundle/package.json b/packages/binding-wotfirestore-browser-bundle/package.json index 5c7d8b22e..bdb2a01cf 100644 --- a/packages/binding-wotfirestore-browser-bundle/package.json +++ b/packages/binding-wotfirestore-browser-bundle/package.json @@ -17,7 +17,7 @@ "tinyify": "^2.5.2" }, "dependencies": { - "@node-wot/binding-wotfirestore": "0.7.8" + "@node-wot/binding-wotfirestore": "0.8.0" }, "scripts": { "build": "browserify -r vm:vm2 index.js --external coffee-script -o dist/binding-wotfirestore-bundle.js" From d484ea1050226dc022b6a12e9530276d937d7815 Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Wed, 1 Sep 2021 09:53:35 +0200 Subject: [PATCH 7/7] docs: lift the minimum version to LTS 14+ older versions might still work but are no longer tested --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 963867f50..0d4bfed8e 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ cs.addCodec(new MyCodec("application/myType")); ## Prerequisites ### To use with Node.js All systems require: -* [NodeJS](https://nodejs.org/) version 10+ (e.g., 10.13.0 LTS) +* [NodeJS](https://nodejs.org/) version 14+ #### Linux Meet the [node-gyp](https://github.com/nodejs/node-gyp#installation) requirements: