@pluv/platform-node 0.15.0 → 0.16.0

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.
@@ -1,18 +1,18 @@
1
1
 
2
- > @pluv/platform-node@0.15.0 build /home/runner/work/pluv/pluv/packages/platform-node
2
+ > @pluv/platform-node@0.16.0 build /home/runner/work/pluv/pluv/packages/platform-node
3
3
  > tsup src/index.ts --format esm,cjs --dts
4
4
 
5
5
  CLI Building entry: src/index.ts
6
6
  CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.0.1
7
+ CLI tsup v8.0.2
8
8
  CLI Target: es6
9
9
  ESM Build start
10
10
  CJS Build start
11
11
  ESM dist/index.mjs 6.17 KB
12
- ESM ⚡️ Build success in 79ms
12
+ ESM ⚡️ Build success in 83ms
13
13
  CJS dist/index.js 7.99 KB
14
- CJS ⚡️ Build success in 79ms
14
+ CJS ⚡️ Build success in 86ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 4794ms
16
+ DTS ⚡️ Build success in 4507ms
17
17
  DTS dist/index.d.mts 2.77 KB
18
18
  DTS dist/index.d.ts 2.77 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @pluv/platform-node
2
2
 
3
+ ## 0.16.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [4280220]
8
+ - @pluv/io@0.16.0
9
+ - @pluv/types@0.16.0
10
+
3
11
  ## 0.15.0
4
12
 
5
13
  ### Patch Changes
package/README.md CHANGED
@@ -5,12 +5,12 @@
5
5
  <br />
6
6
  <img src="https://github.com/pluv-io/pluv/blob/master/assets/pluv-icon-192x192.png?raw=true" alt="Pluv.IO" width="180" style="border-radius:16px" />
7
7
  <br />
8
- Pluv.IO (preview)
8
+ <a href="https://pluv.io/docs/introduction">Pluv.IO (preview)</a>
9
9
  <br />
10
10
  </h1>
11
11
 
12
12
  <h3 align="center">Multi-platform, E2E type-safe realtime packages</h3>
13
- <h4 align="center">💕 Inspired by <a href="https://trpc.io">trpc</a> 💕 Built with <a href="https://docs.yjs.dev/">yjs</a> 💕</h4>
13
+ <h4 align="center">💕 Inspired by <a href="https://trpc.io">trpc</a> 💕 <a href="https://docs.yjs.dev/">yjs</a> 💕 and <a href="https://developers.cloudflare.com/">Cloudflare</a> 💕 </h4>
14
14
 
15
15
  <p align="center">
16
16
  <a href="https://www.npmjs.com/package/@pluv/platform-node">
@@ -19,14 +19,10 @@
19
19
  <a href="https://github.com/pluv-io/pluv/blob/master/LICENSE">
20
20
  <img alt="GitHub" src="https://img.shields.io/github/license/pluv-io/pluv" alt="License MIT" />
21
21
  </a>
22
- <img src="https://badgen.net/badge/-/TypeScript?icon=typescript&label&labelColor=blue&color=555555" alt="TypeScript" />
23
22
  <a href="https://commitizen.github.io/cz-cli/">
24
23
  <img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg" alt="Commitizen friendly" />
25
24
  </a>
26
- </p>
27
-
28
- <p align="center">
29
- <img src="https://github.com/pluv-io/pluv/blob/master/assets/demo-events.gif?raw=true" alt="Demo" />
25
+ <img src="https://badgen.net/badge/-/TypeScript?icon=typescript&label&labelColor=blue&color=555555" alt="TypeScript" />
30
26
  </p>
31
27
 
32
28
  ## `@pluv/platform-node`
package/dist/index.js CHANGED
@@ -156,14 +156,14 @@ var import_util = require("util");
156
156
  // src/NodeWebSocket.ts
157
157
  var import_io = require("@pluv/io");
158
158
  var NodeWebSocket = class extends import_io.AbstractWebSocket {
159
+ get readyState() {
160
+ return this.webSocket.readyState;
161
+ }
159
162
  constructor(webSocket, config) {
160
163
  const { room, sessionId, userId } = config;
161
164
  super({ room, sessionId, userId });
162
165
  this.webSocket = webSocket;
163
166
  }
164
- get readyState() {
165
- return this.webSocket.readyState;
166
- }
167
167
  addEventListener(type, handler) {
168
168
  switch (type) {
169
169
  case "close":
package/dist/index.mjs CHANGED
@@ -120,14 +120,14 @@ import { TextDecoder } from "util";
120
120
  // src/NodeWebSocket.ts
121
121
  import { AbstractWebSocket } from "@pluv/io";
122
122
  var NodeWebSocket = class extends AbstractWebSocket {
123
+ get readyState() {
124
+ return this.webSocket.readyState;
125
+ }
123
126
  constructor(webSocket, config) {
124
127
  const { room, sessionId, userId } = config;
125
128
  super({ room, sessionId, userId });
126
129
  this.webSocket = webSocket;
127
130
  }
128
- get readyState() {
129
- return this.webSocket.readyState;
130
- }
131
131
  addEventListener(type, handler) {
132
132
  switch (type) {
133
133
  case "close":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/platform-node",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "@pluv/io adapter for node.js",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -17,19 +17,19 @@
17
17
  "access": "public"
18
18
  },
19
19
  "dependencies": {
20
- "@types/node": "^20.10.5",
20
+ "@types/node": "^20.11.17",
21
21
  "@types/ws": "^8.5.10",
22
22
  "path-to-regexp": "^6.2.1",
23
- "@pluv/io": "^0.15.0",
24
- "@pluv/types": "^0.15.0"
23
+ "@pluv/types": "^0.16.0",
24
+ "@pluv/io": "^0.16.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "eslint": "^8.56.0",
28
- "tsup": "^8.0.1",
29
- "typescript": "^5.2.2",
30
- "ws": "^8.15.1",
31
- "@pluv/tsconfig": "^0.15.0",
32
- "eslint-config-pluv": "^0.15.0"
28
+ "tsup": "^8.0.2",
29
+ "typescript": "^5.3.3",
30
+ "ws": "^8.16.0",
31
+ "eslint-config-pluv": "^0.16.0",
32
+ "@pluv/tsconfig": "^0.16.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "ws": "^8.0.0"