From d075381ed81ab693697b28dbf4ced6ac4cfa6677 Mon Sep 17 00:00:00 2001 From: simonetassi Date: Wed, 6 Nov 2024 18:42:07 +0100 Subject: [PATCH 1/5] docs(readme): remove browsers versions --- README.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/README.md b/README.md index 9634c7495..324d4454c 100644 --- a/README.md +++ b/README.md @@ -90,12 +90,6 @@ npm i @node-wot/core @node-wot/binding-http --save #### Browser To use node-wot as a browser-side JavaScript Library, the browser needs to support ECMAScript 2015. -Supported browsers include: - -- Microsoft Edge 15 and later -- Firefox 54 and later -- Chrome 58 and later -- Safari 10 and later Using a browser with only ES5 support (e.g., IE 11) might be possible if you add polyfills. If you want to use node-wot as a library in your browser application, you can install the `@node-wot/browser-bundle` as following: From 2c88b9c7207dc2b8217a38912ad8bb8e792809ea Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Fri, 8 Nov 2024 11:26:29 +0100 Subject: [PATCH 2/5] refactor: Use interface for consume --- packages/core/src/wot-impl.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/wot-impl.ts b/packages/core/src/wot-impl.ts index 2228bad35..7d8782b42 100644 --- a/packages/core/src/wot-impl.ts +++ b/packages/core/src/wot-impl.ts @@ -28,7 +28,7 @@ import { inspect } from "util"; const { debug } = createLoggers("core", "wot-impl"); class ThingDiscoveryProcess implements WoT.ThingDiscoveryProcess { - constructor(private directory: ConsumedThing, public filter?: WoT.ThingFilter) { + constructor(private directory: WoT.ConsumedThing, public filter?: WoT.ThingFilter) { this.filter = filter; this.done = false; } @@ -101,7 +101,7 @@ export default class WoTImpl { } /** @inheritDoc */ - async consume(td: WoT.ThingDescription): Promise { + async consume(td: WoT.ThingDescription): Promise { try { const thing = parseTD(JSON.stringify(td), true); const newThing: ConsumedThing = new ConsumedThing(this.srv, thing as ThingModel); From bf9084cd4b2e1122411cab7919a2e39fef48b0aa Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Fri, 8 Nov 2024 11:41:46 +0100 Subject: [PATCH 3/5] chore: fix version consistency --- package-lock.json | 7 ++++--- packages/binding-file/package.json | 2 +- packages/binding-mbus/package.json | 2 +- packages/binding-netconf/package.json | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index f0eb81123..28dee3f05 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9972,6 +9972,7 @@ "version": "5.5.11", "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.11.tgz", "integrity": "sha512-3bjO7UwWfA2CV7lmwYMBzj4fQ6Cq+ftHc2MvUe+WMS7wcdJ1LosDWmdjPQanYp2dBRj572p7PeU81JUxHKOcBA==", + "license": "Apache-2.0", "dependencies": { "symbol-observable": "1.0.1" }, @@ -12183,7 +12184,7 @@ "license": "EPL-2.0 OR W3C-20150513", "dependencies": { "@node-wot/core": "0.8.17", - "rxjs": "^5.5.11" + "rxjs": "5.5.11" } }, "packages/binding-http": { @@ -12243,7 +12244,7 @@ "dependencies": { "@node-wot/core": "0.8.17", "node-mbus": "^2.2.4", - "rxjs": "^5.5.11" + "rxjs": "5.5.11" } }, "packages/binding-modbus": { @@ -12276,7 +12277,7 @@ "@node-wot/core": "0.8.17", "case-1.5.3": "npm:case@^1.5.3", "node-netconf": "^1.1.2", - "rxjs": "^5.5.11", + "rxjs": "5.5.11", "url-parse": "^1.5.8" }, "devDependencies": { diff --git a/packages/binding-file/package.json b/packages/binding-file/package.json index f5d2d74ef..418ecb180 100644 --- a/packages/binding-file/package.json +++ b/packages/binding-file/package.json @@ -15,7 +15,7 @@ "types": "dist/file.d.ts", "dependencies": { "@node-wot/core": "0.8.17", - "rxjs": "^5.5.11" + "rxjs": "5.5.11" }, "scripts": { "build": "tsc -b", diff --git a/packages/binding-mbus/package.json b/packages/binding-mbus/package.json index caf3b10f2..390d7757d 100644 --- a/packages/binding-mbus/package.json +++ b/packages/binding-mbus/package.json @@ -16,7 +16,7 @@ "dependencies": { "@node-wot/core": "0.8.17", "node-mbus": "^2.2.4", - "rxjs": "^5.5.11" + "rxjs": "5.5.11" }, "scripts": { "build": "tsc -b", diff --git a/packages/binding-netconf/package.json b/packages/binding-netconf/package.json index d5ee0f01f..a7f73b2e7 100644 --- a/packages/binding-netconf/package.json +++ b/packages/binding-netconf/package.json @@ -17,7 +17,7 @@ "@node-wot/core": "0.8.17", "case-1.5.3": "npm:case@^1.5.3", "node-netconf": "^1.1.2", - "rxjs": "^5.5.11", + "rxjs": "5.5.11", "url-parse": "^1.5.8" }, "scripts": { From 38e6abb54170bc749828609c3e440e4cf42065a6 Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Thu, 5 Dec 2024 10:08:27 +0100 Subject: [PATCH 4/5] Update SSE details fixes https://github.com/eclipse-thingweb/node-wot/issues/1337 --- packages/binding-http/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/binding-http/README.md b/packages/binding-http/README.md index 750a20168..b4c13aaec 100644 --- a/packages/binding-http/README.md +++ b/packages/binding-http/README.md @@ -359,7 +359,7 @@ servient.start().then(async (WoT) => { | SubProtocols | HTTP Producer | HTTP Consumer | | :----------- | :-----------: | :-----------: | | longpoll | Y | Y | -| sse | Y | Y | +| sse
DetailsNote: `contentType` should target payload in the data field (e.g., `application/json` if sending JSON etc.)
| N | Y | | websub | N | N | | Sec. Schemes | HTTP Producer | HTTP Consumer | From bf1982a75cf0ce6cd5fafd8c004da8f2c8ad1de3 Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Thu, 5 Dec 2024 15:23:00 +0100 Subject: [PATCH 5/5] format: run format --- packages/binding-http/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/binding-http/README.md b/packages/binding-http/README.md index b4c13aaec..b87a274d8 100644 --- a/packages/binding-http/README.md +++ b/packages/binding-http/README.md @@ -356,11 +356,11 @@ servient.start().then(async (WoT) => { | subscribeevent | Y | Y | | unsubscribeevent | ? | ? | -| SubProtocols | HTTP Producer | HTTP Consumer | -| :----------- | :-----------: | :-----------: | -| longpoll | Y | Y | -| sse
DetailsNote: `contentType` should target payload in the data field (e.g., `application/json` if sending JSON etc.)
| N | Y | -| websub | N | N | +| SubProtocols | HTTP Producer | HTTP Consumer | +| :----------------------------------------------------------------------------------------------------------------------------------------------------------- | :-----------: | :-----------: | +| longpoll | Y | Y | +| sse
DetailsNote: `contentType` should target payload in the data field (e.g., `application/json` if sending JSON etc.)
| N | Y | +| websub | N | N | | Sec. Schemes | HTTP Producer | HTTP Consumer | | :----------- | :-----------: | :-----------: |