@fairfox/polly 0.38.1 → 0.40.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 (44) hide show
  1. package/dist/cli/polly.js.map +1 -1
  2. package/dist/src/background/index.js +1 -2
  3. package/dist/src/background/index.js.map +6 -6
  4. package/dist/src/background/message-router.js +1 -2
  5. package/dist/src/background/message-router.js.map +6 -6
  6. package/dist/src/client/index.js +46 -27
  7. package/dist/src/client/index.js.map +5 -5
  8. package/dist/src/client/wrapper.d.ts +8 -0
  9. package/dist/src/elysia/index.js +10 -31
  10. package/dist/src/elysia/index.js.map +5 -5
  11. package/dist/src/elysia/route-match.d.ts +9 -0
  12. package/dist/src/elysia/types.d.ts +4 -5
  13. package/dist/src/index.js +1 -2
  14. package/dist/src/index.js.map +7 -7
  15. package/dist/src/mesh-node.js.map +1 -1
  16. package/dist/src/mesh.js.map +8 -8
  17. package/dist/src/peer.js.map +3 -3
  18. package/dist/src/polly-ui/index.js.map +3 -3
  19. package/dist/src/polly-ui/markdown.js +583 -517
  20. package/dist/src/polly-ui/markdown.js.map +6 -6
  21. package/dist/src/shared/adapters/index.js.map +3 -3
  22. package/dist/src/shared/lib/context-helpers.js +1 -2
  23. package/dist/src/shared/lib/context-helpers.js.map +6 -6
  24. package/dist/src/shared/lib/mesh-signaling-client.d.ts +1 -1
  25. package/dist/src/shared/lib/message-bus.js +1 -2
  26. package/dist/src/shared/lib/message-bus.js.map +6 -6
  27. package/dist/src/shared/lib/peer-relay-adapter.d.ts +3 -2
  28. package/dist/src/shared/lib/resource.js.map +3 -3
  29. package/dist/src/shared/lib/revocation.d.ts +15 -0
  30. package/dist/src/shared/lib/state.js.map +3 -3
  31. package/dist/src/shared/state/app-state.js.map +4 -4
  32. package/dist/src/shared/types/messages.d.ts +0 -9
  33. package/dist/src/shared/types/messages.js.map +1 -1
  34. package/dist/tools/test/src/adapters/index.js.map +1 -1
  35. package/dist/tools/test/src/index.js.map +1 -1
  36. package/dist/tools/test/src/visual/index.js +64 -38
  37. package/dist/tools/test/src/visual/index.js.map +4 -4
  38. package/dist/tools/verify/Dockerfile +1 -1
  39. package/dist/tools/verify/specs/Dockerfile +1 -1
  40. package/dist/tools/verify/src/cli.js.map +3 -3
  41. package/dist/tools/visualize/src/cli.js +11 -7
  42. package/dist/tools/visualize/src/cli.js.map +5 -5
  43. package/package.json +36 -30
  44. package/dist/src/utils/function-serialization.d.ts +0 -14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fairfox/polly",
3
- "version": "0.38.1",
3
+ "version": "0.40.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Multi-execution-context framework with reactive state and cross-context messaging for Chrome extensions, PWAs, and worker-based applications",
@@ -129,48 +129,48 @@
129
129
  "format": "biome format --write .",
130
130
  "test": "bun run --cwd tests test",
131
131
  "test:watch": "bun run --cwd tests test:watch",
132
- "test:all": "bun run lint && bun run typecheck && bun run --cwd tests test:all && bun run test:examples",
132
+ "test:all": "bun run lint && bun run typecheck && bun run --cwd tests test:all && bun run test:examples && bun run test:e2e:visualize",
133
133
  "test:examples": "echo '\\n=== Testing Examples ===' && bun run test:example:minimal && bun run test:example:todo-list && bun run test:example:full-featured",
134
134
  "test:example:minimal": "echo '\\n--- Minimal Example ---' && bun run --cwd examples/minimal test:all",
135
135
  "test:example:todo-list": "echo '\\n--- Todo List ---' && bun run --cwd examples/todo-list test:all",
136
136
  "test:example:full-featured": "echo '\\n--- Full Featured ---' && bun run --cwd examples/full-featured test:all",
137
- "prepublishOnly": "bun run typecheck && bun run lint && bun run build:lib",
137
+ "test:e2e:visualize": "bun scripts/e2e-visualize.ts",
138
+ "check": "bun scripts/check.ts",
139
+ "prepublishOnly": "bun run typecheck && bun run lint && bun run --cwd tests test && bun run build:lib",
138
140
  "publish:public": "npm publish --access public --otp=$(pass-cli item totp --output json --item-id Rdr--oUgHp-IfyjoTB7vhMPHfNt6Oz2JpXfS1WrdQMQ9damDMPOvKiOxxpCZqp92WgqXnfY68cSXWdQ_JVMNMQ== --share-id Ixmpll6U5ioU_1P4fzUbarQNANRPU51O68xzFblTB08S0HUfw4dhQaNAv4Yv7Sud_Vf8ps4mnQUFqdvN-eTRdQ== | jq -r '.totp')"
139
141
  },
140
142
  "devDependencies": {
141
- "@automerge/automerge-repo": "^2.5.5",
142
- "@automerge/automerge-repo-network-websocket": "^2.5.5",
143
- "@automerge/automerge-repo-storage-indexeddb": "^2.5.5",
144
- "@automerge/automerge-repo-storage-nodefs": "^2.5.5",
145
- "@biomejs/biome": "^2.4.8",
146
- "@elysiajs/eden": "^1.4.8",
147
- "@types/bun": "^1.3.10",
148
- "@types/chrome": "^0.1.38",
149
- "@types/pixelmatch": "^5.2.6",
150
- "@types/pngjs": "^6.0.5",
151
- "@types/serialize-javascript": "^5.0.4",
152
- "@types/ws": "^8.18.1",
153
- "dompurify": "^3.2.4",
154
- "elysia": "^1.4.28",
155
- "fast-check": "^3.23.2",
156
- "marked": "^18.0.0",
157
- "pixelmatch": "^7.1.0",
158
- "pngjs": "^7.0.0",
159
- "puppeteer": "^24.41.0",
160
- "tweetnacl": "^1.0.3",
161
- "typescript": "^5.9.3"
143
+ "@automerge/automerge-repo": "2.5.5",
144
+ "@automerge/automerge-repo-network-websocket": "2.5.5",
145
+ "@automerge/automerge-repo-storage-indexeddb": "2.5.5",
146
+ "@automerge/automerge-repo-storage-nodefs": "2.5.5",
147
+ "@biomejs/biome": "2.4.14",
148
+ "@elysiajs/eden": "1.4.9",
149
+ "@types/bun": "1.3.13",
150
+ "@types/chrome": "0.1.40",
151
+ "@types/pixelmatch": "5.2.6",
152
+ "@types/pngjs": "6.0.5",
153
+ "@types/ws": "8.18.1",
154
+ "dompurify": "3.4.2",
155
+ "elysia": "1.4.28",
156
+ "fast-check": "4.7.0",
157
+ "marked": "18.0.3",
158
+ "pixelmatch": "7.2.0",
159
+ "pngjs": "7.0.0",
160
+ "puppeteer": "24.42.0",
161
+ "tweetnacl": "1.0.3",
162
+ "typescript": "6.0.3"
162
163
  },
163
164
  "engines": {
164
165
  "bun": ">=1.2.0"
165
166
  },
166
167
  "dependencies": {
167
- "@preact/signals": "^2.8.2",
168
- "preact": "^10.29.0",
169
- "serialize-javascript": "^6.0.2",
170
- "ts-morph": "^21.0.1"
168
+ "@preact/signals": "2.9.0",
169
+ "preact": "10.29.1",
170
+ "ts-morph": "28.0.0"
171
171
  },
172
172
  "peerDependencies": {
173
- "typescript": "^5.9.3",
173
+ "typescript": ">= 5.9.3",
174
174
  "preact": "^10.28.1",
175
175
  "@preact/signals": "^2.5.1",
176
176
  "elysia": ">= 1.4.0",
@@ -259,5 +259,11 @@
259
259
  "homepage": "https://github.com/AlexJeffcott/polly#readme",
260
260
  "trustedDependencies": [
261
261
  "node-datachannel"
262
- ]
262
+ ],
263
+ "overrides": {
264
+ "brace-expansion": "^2.0.3",
265
+ "file-type": "^21.3.1",
266
+ "minimatch": "^9.0.6",
267
+ "uuid": "^14.0.0"
268
+ }
263
269
  }
@@ -1,14 +0,0 @@
1
- /**
2
- * Serialize a function to send to client
3
- *
4
- * DEV ONLY: Used for hot reloading and debugging
5
- * PROD: No-op - client effects are baked into bundle at build time
6
- */
7
- export declare function serializeFunction(fn: Function): string;
8
- /**
9
- * Deserialize a function received from server
10
- *
11
- * DEV ONLY: Eval serialized function source
12
- * PROD: Should never be called - effects come from bundle
13
- */
14
- export declare function deserializeFunction(serialized: string): Function;