@wearejh/m2-pwa-engine 0.35.0 → 0.37.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/CHANGELOG.md CHANGED
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.37.0](https://github.com/WeareJH/mage-mono/compare/v0.36.0...v0.37.0) (2025-09-09)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **m2-pwa-engine:** fix import reference to m2-pwa-vars (WOOD-2710) ([0228224](https://github.com/WeareJH/mage-mono/commit/022822473aa38ad29b508142d2449a1ae555aa79))
12
+
13
+
14
+
15
+
16
+
17
+ # [0.36.0](https://github.com/WeareJH/mage-mono/compare/v0.35.0...v0.36.0) (2025-09-09)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **WOOD-2710:** use correct paths for sw.js and sw-killswitch.js ([32b8a55](https://github.com/WeareJH/mage-mono/commit/32b8a55cc4b754c2444cd4dd5e87fee328a71d68))
23
+
24
+
25
+
26
+
27
+
6
28
  # [0.35.0](https://github.com/WeareJH/mage-mono/compare/v0.34.0...v0.35.0) (2025-09-08)
7
29
 
8
30
  **Note:** Version bump only for package @wearejh/m2-pwa-engine
@@ -1,6 +1,7 @@
1
1
  import { EMPTY, Observable, of } from 'rxjs';
2
2
  import { ignoreElements, share, tap, mergeMap, withLatestFrom } from 'rxjs/operators';
3
3
  import { Action } from 'redux';
4
+ import { ASSET_PREFIX } from '@wearejh/m2-pwa-vars';
4
5
 
5
6
  import { RuntimeActions, RuntimeMsg, RuntimeEnv } from '../runtime.register';
6
7
  import { createDebug } from '../../utils/runtimeDebug';
@@ -20,8 +21,8 @@ export function registerServiceWorker(
20
21
  ): Observable<ServiceWorkerRegistration> {
21
22
  // Use dynamic path based on asset prefix if available
22
23
  let swPath = path;
23
- if (env?.ASSET_PREFIX) {
24
- swPath = `/${env.ASSET_PREFIX}/sw.js`;
24
+ if (env?.VERSION) {
25
+ swPath = `/${ASSET_PREFIX}/${env.VERSION}/sw.js`;
25
26
  debug('Using dynamic SW path with asset prefix:', swPath);
26
27
  }
27
28
 
@@ -115,8 +116,8 @@ export function handleVersionUpdates(
115
116
  export function registerKillSwitchServiceWorker(path = '/sw-killswitch.js', env?: RuntimeEnv) {
116
117
  // Use dynamic path based on asset prefix if available
117
118
  let swPath = path;
118
- if (env?.ASSET_PREFIX) {
119
- swPath = `/${env.ASSET_PREFIX}/sw-killswitch.js`;
119
+ if (env?.VERSION) {
120
+ swPath = `/${ASSET_PREFIX}/${env.VERSION}/sw-killswitch.js`;
120
121
  debug('Using dynamic killswitch path with asset prefix:', swPath);
121
122
  }
122
123
 
@@ -25,7 +25,6 @@ export type RuntimeEnv = {
25
25
  RELEASE_STAGE: 'local' | 'develop' | 'staging' | 'staging2' | 'staging3' | 'production';
26
26
  VERSION: string;
27
27
  DOMAIN: string;
28
- ASSET_PREFIX?: string;
29
28
  };
30
29
 
31
30
  export type RuntimeState = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wearejh/m2-pwa-engine",
3
- "version": "0.35.0",
3
+ "version": "0.37.0",
4
4
  "description": "> TODO: description",
5
5
  "author": "Shane Osbourne <shane.osbourne8@gmail.com>",
6
6
  "homepage": "",
@@ -18,10 +18,10 @@
18
18
  ],
19
19
  "scripts": {},
20
20
  "dependencies": {
21
- "@wearejh/m2-pwa-vars": "^0.35.0",
22
- "@wearejh/swagger-rxjs": "^0.35.0",
21
+ "@wearejh/m2-pwa-vars": "^0.37.0",
22
+ "@wearejh/swagger-rxjs": "^0.37.0",
23
23
  "history": "^4.10.1",
24
24
  "loadcss": "^0.0.2"
25
25
  },
26
- "gitHead": "c28fc34b4cd0b85fafe885cfdcd364f4c576e11b"
26
+ "gitHead": "f87429a590efafd444ac0824a508b38389b0b2eb"
27
27
  }