popsub 0.1.0 → 0.2.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.
Files changed (2) hide show
  1. package/README.md +2 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -54,6 +54,8 @@ try {
54
54
  await client.close();
55
55
  ```
56
56
 
57
+ `examples/subscribe.ts` and `examples/publish.ts` are runnable versions of this, and [`examples/README.md`](../../examples/README.md) walks through running them against a local server.
58
+
57
59
  ## API
58
60
 
59
61
  ### `Client`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "popsub",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "PopSub client for browsers and Node.js 22+: reconnects, resubscribes without gaps, deduplicates and acknowledges, on the global WebSocket.",
5
5
  "keywords": [
6
6
  "popsub",
@@ -33,7 +33,7 @@
33
33
  "sideEffects": false,
34
34
  "scripts": {
35
35
  "build": "tsc -p tsconfig.build.json",
36
- "typecheck": "tsc -p tsconfig.json",
36
+ "typecheck": "tsc -p tsconfig.json && tsc -p examples/tsconfig.json",
37
37
  "lint": "eslint --max-warnings 0 .",
38
38
  "format": "prettier --write .",
39
39
  "format:check": "prettier --check .",