@molecule/app-push 1.1.0 → 1.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.
package/README.md CHANGED
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
3
  Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
4
  Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
5
  To change this document, edit the module-level JSDoc in src/index.ts.
6
- Generated: 2026-11-14T12:30:32.256Z
6
+ Generated: 2026-11-23T15:46:24.534Z
7
7
  -->
8
8
 
9
9
  # @molecule/app-push
@@ -47,7 +47,7 @@ function handleTaps(open: (data: unknown) => void): () => void {
47
47
  ## Installation
48
48
 
49
49
  ```bash
50
- npm install @molecule/app-push @molecule/app-bond @molecule/app-i18n
50
+ npm install @molecule/app-push @molecule/app-bond @molecule/app-i18n @molecule/app-pwa-default
51
51
  ```
52
52
 
53
53
  ## API
@@ -723,11 +723,13 @@ Peer dependencies:
723
723
 
724
724
  - `@molecule/app-bond` ^1.0.1
725
725
  - `@molecule/app-i18n` ^1.0.1
726
+ - `@molecule/app-pwa-default` ^1.1.0
726
727
 
727
728
  ### Runtime Dependencies
728
729
 
729
730
  - `@molecule/app-bond`
730
731
  - `@molecule/app-i18n`
732
+ - `@molecule/app-pwa-default`
731
733
 
732
734
  - **No wiring is needed on web**: the first accessor call silently bonds
733
735
  the built-in Web Push provider. In a native app wire
@@ -735,9 +737,11 @@ Peer dependencies:
735
737
  `setProvider()` BEFORE any push call — otherwise the web fallback gets
736
738
  bonded and native registration never happens.
737
739
  - **Web `register()` has three hard prerequisites**: (1) HTTPS (secure
738
- context), (2) a registered SERVICE WORKER — dev builds typically don't
739
- ship one, so register() throws "requires the production app build"
740
- (it fails fast instead of hanging), and (3) a VAPID public key
740
+ context), (2) a registered SERVICE WORKER — the one
741
+ `@molecule/app-pwa-default` (a peer of this package) registers in the
742
+ production build, which also shows the delivered notifications; dev
743
+ builds don't ship one, so register() throws "requires the production app
744
+ build" (it fails fast instead of hanging), and (3) a VAPID public key
741
745
  (pass via `register({ vapidPublicKey })`) matching your API's
742
746
  `VAPID_PRIVATE_KEY` — without it Chrome may register but delivery
743
747
  fails.
package/dist/index.d.ts CHANGED
@@ -38,9 +38,11 @@
38
38
  * `setProvider()` BEFORE any push call — otherwise the web fallback gets
39
39
  * bonded and native registration never happens.
40
40
  * - **Web `register()` has three hard prerequisites**: (1) HTTPS (secure
41
- * context), (2) a registered SERVICE WORKER — dev builds typically don't
42
- * ship one, so register() throws "requires the production app build"
43
- * (it fails fast instead of hanging), and (3) a VAPID public key
41
+ * context), (2) a registered SERVICE WORKER — the one
42
+ * `@molecule/app-pwa-default` (a peer of this package) registers in the
43
+ * production build, which also shows the delivered notifications; dev
44
+ * builds don't ship one, so register() throws "requires the production app
45
+ * build" (it fails fast instead of hanging), and (3) a VAPID public key
44
46
  * (pass via `register({ vapidPublicKey })`) matching your API's
45
47
  * `VAPID_PRIVATE_KEY` — without it Chrome may register but delivery
46
48
  * fails.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AAEH,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;AAEH,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA"}
package/dist/index.js CHANGED
@@ -38,9 +38,11 @@
38
38
  * `setProvider()` BEFORE any push call — otherwise the web fallback gets
39
39
  * bonded and native registration never happens.
40
40
  * - **Web `register()` has three hard prerequisites**: (1) HTTPS (secure
41
- * context), (2) a registered SERVICE WORKER — dev builds typically don't
42
- * ship one, so register() throws "requires the production app build"
43
- * (it fails fast instead of hanging), and (3) a VAPID public key
41
+ * context), (2) a registered SERVICE WORKER — the one
42
+ * `@molecule/app-pwa-default` (a peer of this package) registers in the
43
+ * production build, which also shows the delivered notifications; dev
44
+ * builds don't ship one, so register() throws "requires the production app
45
+ * build" (it fails fast instead of hanging), and (3) a VAPID public key
44
46
  * (pass via `register({ vapidPublicKey })`) matching your API's
45
47
  * `VAPID_PRIVATE_KEY` — without it Chrome may register but delivery
46
48
  * fails.
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AAEH,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;AAEH,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/app-push",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Client-side push notifications interface for molecule.dev",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -29,11 +29,12 @@
29
29
  "license": "Apache-2.0",
30
30
  "peerDependencies": {
31
31
  "@molecule/app-bond": "^1.0.1",
32
- "@molecule/app-i18n": "^1.0.1"
32
+ "@molecule/app-i18n": "^1.0.1",
33
+ "@molecule/app-pwa-default": "^1.1.0"
33
34
  },
34
35
  "devDependencies": {
35
36
  "@molecule/app-bond": "1.0.5",
36
- "@molecule/app-i18n": "1.2.1",
37
+ "@molecule/app-i18n": "1.2.2",
37
38
  "@types/node": "26.6.5",
38
39
  "typescript": "6.0.3",
39
40
  "vitest": "4.1.12"