diff --git a/README.md b/README.md index 795122931..0d4bfed8e 100644 --- a/README.md +++ b/README.md @@ -52,10 +52,12 @@ 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) * [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. @@ -89,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: 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 067e511c9..069d12eac 100644 --- a/packages/binding-wotfirestore-browser-bundle/package-lock.json +++ b/packages/binding-wotfirestore-browser-bundle/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hidetak/binding-wotfirestore-browser-bundle", - "version": "0.0.5", + "version": "0.8.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hidetak/binding-wotfirestore-browser-bundle", - "version": "0.0.5", + "version": "0.8.0", "license": "EPL-2.0", "devDependencies": { "browserify": "^17.0.0", diff --git a/packages/binding-wotfirestore-browser-bundle/package.json b/packages/binding-wotfirestore-browser-bundle/package.json index 27aa6fe16..bdb2a01cf 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.8.0", "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.8.0" }, "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 58eeb8c7b..20901a84d 100644 --- a/packages/binding-wotfirestore/package-lock.json +++ b/packages/binding-wotfirestore/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hidetak/binding-wotfirestore", - "version": "0.0.5", + "version": "0.8.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hidetak/binding-wotfirestore", - "version": "0.0.5", + "version": "0.8.0", "license": "EPL-2.0", "dependencies": { "buffer": "^5.5.0", diff --git a/packages/binding-wotfirestore/package.json b/packages/binding-wotfirestore/package.json index 24368d01f..e5bac0e6f 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.8.0", "description": "Firestore binding for node-wot", "repository": "https://github.com/hidetak/thingweb.node-wot", "main": "dist/wotfirestore.js",