@veryfront/ext-node-websocket-ws 0.1.1186 → 0.1.1190

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/README.md CHANGED
@@ -1,25 +1,20 @@
1
1
  # `@veryfront/ext-node-websocket-ws`
2
2
 
3
- Explicit Node.js WebSocket transport for Veryfront, backed by the `ws` package.
3
+ Default Node.js WebSocket transport for Veryfront, backed by the `ws` package.
4
4
  Core owns request authorization, upgrade correlation, and shutdown. This
5
5
  extension owns the third-party protocol implementation and publishes the
6
6
  dependency-free `NodeWebSocketServerProvider` contract.
7
7
 
8
- Install the package and compose it explicitly:
8
+ The standard `veryfront` npm/CLI distribution installs and auto-activates the
9
+ extension, so local HMR works without starter-specific configuration. A custom
10
+ Node service distribution must install the package alongside `veryfront`:
9
11
 
10
12
  ```bash
11
13
  deno add npm:@veryfront/ext-node-websocket-ws
12
14
  ```
13
15
 
14
- ```ts
15
- import { defineConfig } from "veryfront";
16
- import extNodeWebSocketWs from "@veryfront/ext-node-websocket-ws";
17
-
18
- export default defineConfig({
19
- extensions: [extNodeWebSocketWs()],
20
- });
21
- ```
22
-
23
- Veryfront never auto-loads this package and has no built-in WebSocket fallback.
24
- Without an explicitly registered provider, Node HTTP requests remain available
25
- but Node WebSocket upgrades fail closed with an actionable diagnostic.
16
+ Projects can disable the builtin with
17
+ `{ name: "ext-node-websocket-ws", enabled: false }`. Without an available
18
+ provider, Node HTTP requests remain available but Node WebSocket upgrades fail
19
+ closed with an actionable diagnostic. Core never imports `ws` or substitutes a
20
+ hidden protocol fallback.
package/esm/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- /** Explicit `ws` implementation of Veryfront's Node WebSocket contract. */
1
+ /** Default `ws` implementation of Veryfront's Node WebSocket contract. */
2
2
  import type { ExtensionFactory } from "veryfront/extensions";
3
3
  export declare const WsNodeWebSocketServerProvider: any;
4
- /** Create the explicitly selected Node.js `ws` transport extension. */
4
+ /** Create the standard Node.js `ws` transport extension. */
5
5
  export declare const extNodeWebSocketWs: ExtensionFactory;
6
6
  export default extNodeWebSocketWs;
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAE3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAS7D,eAAO,MAAM,6BAA6B,KAEzC,CAAC;AAEF,uEAAuE;AACvE,eAAO,MAAM,kBAAkB,EAAE,gBA+BhC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAE1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAS7D,eAAO,MAAM,6BAA6B,KAEzC,CAAC;AAEF,4DAA4D;AAC5D,eAAO,MAAM,kBAAkB,EAAE,gBA+BhC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
package/esm/index.js CHANGED
@@ -1,9 +1,9 @@
1
- /** Explicit `ws` implementation of Veryfront's Node WebSocket contract. */
1
+ /** Default `ws` implementation of Veryfront's Node WebSocket contract. */
2
2
  import { captureNodeWebSocketServer, createNodeWebSocketServerProvider, NodeWebSocketServerProviderName, } from "veryfront/extensions/websocket";
3
3
  // @ts-types="@types/ws"
4
4
  import { WebSocketServer } from "ws";
5
5
  export const WsNodeWebSocketServerProvider = createNodeWebSocketServerProvider((options) => captureNodeWebSocketServer(new WebSocketServer(options)));
6
- /** Create the explicitly selected Node.js `ws` transport extension. */
6
+ /** Create the standard Node.js `ws` transport extension. */
7
7
  export const extNodeWebSocketWs = () => {
8
8
  let active = false;
9
9
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veryfront/ext-node-websocket-ws",
3
- "version": "0.1.1186",
3
+ "version": "0.1.1190",
4
4
  "description": "Veryfront first-party extension package for ext-node-websocket-ws",
5
5
  "keywords": [
6
6
  "veryfront",
@@ -27,14 +27,14 @@
27
27
  },
28
28
  "scripts": {},
29
29
  "engines": {
30
- "node": ">=18.0.0"
30
+ "node": ">=22.3.0"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
35
  "veryfront": {
36
36
  "extension": true,
37
- "activation": "explicit",
37
+ "activation": "auto",
38
38
  "contracts": {
39
39
  "provides": [
40
40
  "NodeWebSocketServerProvider"
@@ -55,7 +55,7 @@
55
55
  "ws": "8.21.1"
56
56
  },
57
57
  "peerDependencies": {
58
- "veryfront": "^0.1.1186"
58
+ "veryfront": "^0.1.1190"
59
59
  },
60
60
  "type": "module",
61
61
  "types": "./esm/index.d.ts",