@fairfox/polly 0.7.1 → 0.7.4

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 (41) hide show
  1. package/dist/src/background/index.d.ts +1 -1
  2. package/dist/src/background/index.js +10 -3
  3. package/dist/src/background/index.js.map +9 -9
  4. package/dist/src/background/message-router.js +10 -3
  5. package/dist/src/background/message-router.js.map +8 -8
  6. package/dist/src/index.d.ts +9 -9
  7. package/dist/src/index.js +74 -67
  8. package/dist/src/index.js.map +12 -12
  9. package/dist/src/shared/adapters/chrome/context-menus.chrome.d.ts +1 -1
  10. package/dist/src/shared/adapters/chrome/tabs.chrome.d.ts +2 -2
  11. package/dist/src/shared/adapters/context-menus.adapter.d.ts +1 -1
  12. package/dist/src/shared/adapters/index.d.ts +4 -4
  13. package/dist/src/shared/adapters/index.js +9 -2
  14. package/dist/src/shared/adapters/index.js.map +6 -6
  15. package/dist/src/shared/adapters/tabs.adapter.d.ts +2 -2
  16. package/dist/src/shared/lib/context-helpers.js +10 -3
  17. package/dist/src/shared/lib/context-helpers.js.map +8 -8
  18. package/dist/src/shared/lib/message-bus.js +10 -3
  19. package/dist/src/shared/lib/message-bus.js.map +7 -7
  20. package/dist/src/shared/lib/state.js +10 -3
  21. package/dist/src/shared/lib/state.js.map +8 -8
  22. package/dist/src/shared/state/app-state.js +10 -3
  23. package/dist/src/shared/state/app-state.js.map +8 -8
  24. package/dist/tools/init/src/cli.js +17 -2
  25. package/dist/tools/init/src/cli.js.map +4 -4
  26. package/dist/tools/init/templates/pwa/package.json.template +3 -3
  27. package/dist/tools/teach/src/cli.js +2712 -2442
  28. package/dist/tools/teach/src/cli.js.map +11 -11
  29. package/dist/tools/teach/src/index.js +1379 -1379
  30. package/dist/tools/teach/src/index.js.map +10 -10
  31. package/dist/tools/test/src/adapters/index.d.ts +8 -8
  32. package/dist/tools/test/src/adapters/index.js +3 -2
  33. package/dist/tools/test/src/adapters/index.js.map +6 -6
  34. package/dist/tools/test/src/index.d.ts +3 -3
  35. package/dist/tools/test/src/index.js +3 -2
  36. package/dist/tools/test/src/index.js.map +6 -6
  37. package/dist/tools/verify/src/cli.js +190 -68
  38. package/dist/tools/verify/src/cli.js.map +8 -8
  39. package/dist/tools/visualize/src/cli.js +18 -3
  40. package/dist/tools/visualize/src/cli.js.map +4 -4
  41. package/package.json +27 -16
package/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "@fairfox/polly",
3
- "version": "0.7.1",
3
+ "version": "0.7.4",
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",
7
- "workspaces": ["tests"],
7
+ "workspaces": [
8
+ "tests"
9
+ ],
8
10
  "main": "dist/index.js",
9
11
  "module": "dist/index.js",
10
12
  "types": "dist/index.d.ts",
@@ -57,7 +59,11 @@
57
59
  "types": "./dist/tools/teach/src/index.d.ts"
58
60
  }
59
61
  },
60
- "files": ["dist", "README.md", "LICENSE"],
62
+ "files": [
63
+ "dist",
64
+ "README.md",
65
+ "LICENSE"
66
+ ],
61
67
  "scripts": {
62
68
  "dev": "bun run build.ts --watch",
63
69
  "build": "bun run build.ts",
@@ -76,29 +82,34 @@
76
82
  "test:framework:ui": "bun run --cwd tests test:framework:ui",
77
83
  "test:framework:debug": "bun run --cwd tests test:framework:debug",
78
84
  "test:framework:headed": "bun run --cwd tests test:framework:headed",
79
- "test:all": "bun run --cwd tests test:all",
85
+ "test:all": "bun run lint && bun run typecheck && bun run --cwd tests test:all && bun run test:examples",
86
+ "test:examples": "echo '\\n=== Testing Examples ===' && bun run test:example:minimal && bun run test:example:my-awesome-extension && bun run test:example:todo-list && bun run test:example:full-featured",
87
+ "test:example:minimal": "echo '\\n--- Minimal Example ---' && bun run --cwd examples/minimal test:all",
88
+ "test:example:my-awesome-extension": "echo '\\n--- My Awesome Extension ---' && bun run --cwd examples/my-awesome-extension test:all",
89
+ "test:example:todo-list": "echo '\\n--- Todo List ---' && bun run --cwd examples/todo-list test:all",
90
+ "test:example:full-featured": "echo '\\n--- Full Featured ---' && bun run --cwd examples/full-featured test:all",
80
91
  "prepublishOnly": "bun run typecheck && bun run lint && bun run build:lib",
81
- "publish:public": "npm publish --access public"
92
+ "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')"
82
93
  },
83
94
  "devDependencies": {
84
- "@biomejs/biome": "^1.8.3",
85
- "@types/bun": "^1.2.19",
86
- "@types/chrome": "^0.0.268",
87
- "fast-check": "^3.22.0",
88
- "typescript": "^5.5.4"
95
+ "@biomejs/biome": "^2.3.10",
96
+ "@types/bun": "^1.3.5",
97
+ "@types/chrome": "^0.1.32",
98
+ "fast-check": "^3.23.2",
99
+ "typescript": "^5.9.3"
89
100
  },
90
101
  "engines": {
91
- "bun": ">=1.0.0"
102
+ "bun": ">=1.2.0"
92
103
  },
93
104
  "dependencies": {
94
- "@preact/signals": "^2.3.1",
95
- "preact": "^10.27.2",
105
+ "@preact/signals": "^2.5.1",
106
+ "preact": "^10.28.1",
96
107
  "ts-morph": "^21.0.1"
97
108
  },
98
109
  "peerDependencies": {
99
- "typescript": "^5",
100
- "preact": "^10",
101
- "@preact/signals": "^2"
110
+ "typescript": "^5.9.3",
111
+ "preact": "^10.28.1",
112
+ "@preact/signals": "^2.5.1"
102
113
  },
103
114
  "keywords": [
104
115
  "multi-context",