@adonix.org/cloud-spark 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +7 -6
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -447,19 +447,20 @@ class ChatWorker extends RouteWorker {
447
447
  /**
448
448
  * Handles WebSocket upgrade requests.
449
449
  *
450
- * Expects a DurableObject binding named CHAT
450
+ * Expects a DurableObject binding named CHAT_ROOM
451
451
  * in wrangler.jsonc
452
452
  */
453
453
  protected upgrade(params: PathParams): Promise<Response> {
454
454
  /**
455
455
  * Get the Durable Object stub for the chat room
456
- * defined by the "room" path parameter.
456
+ * given by the "room" path parameter.
457
457
  */
458
458
  const stub = this.env.CHAT_ROOM.getByName(params["room"]);
459
459
 
460
460
  /**
461
- * Request has already been validated by the
462
- * WebSocket middleware.
461
+ * The request has already been validated by the
462
+ * WebSocket middleware, so dispatch the WebSocket
463
+ * upgrade request to the Durable Object.
463
464
  */
464
465
  return stub.fetch(this.request);
465
466
  }
@@ -602,7 +603,7 @@ this.use(cors());
602
603
  this.use(cache());
603
604
  ```
604
605
 
605
- The difference in behavior becomes clear when disabling the CORS middleware on the worker. In the first version, CORS headers remain on all cached responses until the cached version expires. In the second version, disabling CORS takes effect immediatelyall responses, cached or not, will no longer include CORS headers.
606
+ The difference in behavior becomes clear when disabling the CORS middleware on the worker. In the first version, CORS headers remain on all cached responses until the cached entry expires. In the second version, disabling CORS takes effect immediately; all responses, cached or not, will no longer include CORS headers.
606
607
 
607
608
  <br>
608
609
 
@@ -708,7 +709,7 @@ export class ChatRoom extends DurableObject {
708
709
  * Accept the WebSocket with recommended hibernation enabled.
709
710
  *
710
711
  * To accept without hibernation, use `con.accept()` and
711
- * con.addEventListener() methods instead.
712
+ * `con.addEventListener()` methods instead.
712
713
  */
713
714
  const client = con.acceptWebSocket(this.ctx);
714
715
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adonix.org/cloud-spark",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Ignite your Cloudflare Workers with a type-safe library for rapid development.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -53,17 +53,17 @@
53
53
  "devDependencies": {
54
54
  "@eslint/js": "^9.39.1",
55
55
  "@types/node": "^24.10.1",
56
- "@typescript-eslint/eslint-plugin": "^8.48.0",
57
- "@typescript-eslint/parser": "^8.48.0",
58
- "@vitest/coverage-v8": "^4.0.13",
56
+ "@typescript-eslint/eslint-plugin": "^8.48.1",
57
+ "@typescript-eslint/parser": "^8.48.1",
58
+ "@vitest/coverage-v8": "^4.0.15",
59
59
  "eslint": "^9.39.1",
60
60
  "eslint-plugin-import": "^2.32.0",
61
61
  "globals": "^16.5.0",
62
62
  "jiti": "^2.6.1",
63
- "prettier": "^3.6.2",
63
+ "prettier": "^3.7.3",
64
64
  "tsup": "^8.5.1",
65
65
  "typescript": "^5.9.3",
66
- "typescript-eslint": "^8.48.0",
66
+ "typescript-eslint": "^8.48.1",
67
67
  "vitest": "^4.0.13",
68
68
  "wrangler": "^4.51.0"
69
69
  },