@seriousme/opifex 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,21 @@
1
+ # Changelog
2
+
3
+ ## [Unreleased]
4
+
5
+ ### Changed
6
+
7
+ ## [v1.2.0] 01-11-2024
8
+
9
+ ### Changed
10
+
11
+ - added support for NodeJS < 22.0.6 by adding transpiled Javascript in `/dist`
12
+
13
+ ## [v1.1.0] 01-11-2024
14
+
15
+ ### Changed
16
+
17
+ - added support for NodeJS >= 22.0.6 using --experimental-strip-types
18
+
19
+ ## [v1.0.0] 09-10-2022
20
+
21
+ Initial version
package/deno.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "name": "@seriousme/opifex",
3
- "version": "1.2.0",
4
3
  "exports": {
5
4
  "./server": "./server/mod.ts",
6
5
  "./client": "./client/mod.ts"
package/deno.lock CHANGED
@@ -1,22 +1,9 @@
1
1
  {
2
2
  "version": "4",
3
3
  "specifiers": {
4
- "jsr:@std/assert@1.0.2": "1.0.2",
5
- "jsr:@std/internal@^1.0.1": "1.0.1",
6
4
  "npm:@types/node@*": "22.5.4",
7
5
  "npm:@types/node@^22.8.6": "22.8.6"
8
6
  },
9
- "jsr": {
10
- "@std/assert@1.0.2": {
11
- "integrity": "ccacec332958126deaceb5c63ff8b4eaf9f5ed0eac9feccf124110435e59e49c",
12
- "dependencies": [
13
- "jsr:@std/internal"
14
- ]
15
- },
16
- "@std/internal@1.0.1": {
17
- "integrity": "6f8c7544d06a11dd256c8d6ba54b11ed870aac6c5aeafff499892662c57673e6"
18
- }
19
- },
20
7
  "npm": {
21
8
  "@types/node@22.5.4": {
22
9
  "integrity": "sha512-FDuKUJQm/ju9fT/SeX/6+gBzoPzlVCzfzmGkwKvRHQVxi4BntVbyIwf6a4Xn62mrvndLiml6z/UBXIdEVjQLXg==",
@@ -35,9 +22,6 @@
35
22
  }
36
23
  },
37
24
  "workspace": {
38
- "dependencies": [
39
- "jsr:@std/assert@1.0.2"
40
- ],
41
25
  "packageJson": {
42
26
  "dependencies": [
43
27
  "npm:@types/node@^22.8.6"
package/node/README.md CHANGED
@@ -5,7 +5,9 @@ Opifex on Deno see the [instructions](../deno/README.md)
5
5
 
6
6
  ## Playing around
7
7
 
8
- Make sure you have NodeJS with a version > 22.6.0 installed.
8
+ Make sure you have NodeJS with a version > 22.6.0 installed if you want to run
9
+ Typescript directly. Alternatively there is a version transpiled to Javascript
10
+ in the `/dist` folder which should work on any supported version of NodeJS.
9
11
 
10
12
  ### Server
11
13
 
@@ -24,10 +24,10 @@ export function wrapNodeSocket(socket: Socket): SockConn {
24
24
  });
25
25
  socket.on("error", (err: unknown) => controller.error(err));
26
26
  socket.on("end", () => {
27
- // unlock the last BYOB read request
28
- controller.byobRequest?.respond(1);
29
- // and close the controller
27
+ // close the controller
30
28
  controller.close();
29
+ // and unlock the last BYOB read request
30
+ controller.byobRequest?.respond(0);
31
31
  });
32
32
  },
33
33
  pull: () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seriousme/opifex",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "MQTT client & server for Deno & NodeJS",
5
5
  "type": "module",
6
6
  "scripts": {