@lwrjs/app-service 0.21.8 → 0.22.2
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.
|
@@ -104,11 +104,19 @@ Promise.all(rootComponents.map(async (rootSpecifier) => {
|
|
|
104
104
|
})).then((rootModules) => {
|
|
105
105
|
return init(rootModules, serverData);
|
|
106
106
|
}).then(() => {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
107
|
+
// Defer clearing so SSR'd components read ENABLE_WIRE_SYNC_EMIT: true in connectedCallback (timing varies by env)
|
|
108
|
+
const clearSyncEmit = () => {
|
|
109
|
+
globalThis?.lwcRuntimeFlags?.ENABLE_WIRE_SYNC_EMIT &&
|
|
110
|
+
(globalThis.lwcRuntimeFlags = {
|
|
111
|
+
...globalThis.lwcRuntimeFlags,
|
|
112
|
+
ENABLE_WIRE_SYNC_EMIT: false,
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
if (typeof requestAnimationFrame !== 'undefined') {
|
|
116
|
+
requestAnimationFrame(clearSyncEmit);
|
|
117
|
+
} else {
|
|
118
|
+
setTimeout(clearSyncEmit, 0);
|
|
119
|
+
}
|
|
112
120
|
});`,
|
|
113
121
|
isESM && options.hmrEnabled && `
|
|
114
122
|
// HMR related initialization
|
|
@@ -8,12 +8,9 @@ function validateSpecifier(specifier) {
|
|
|
8
8
|
return !!appIdentity && isValidResourceIdentity(appIdentity, AppResourceEnum.MODULE);
|
|
9
9
|
}
|
|
10
10
|
export default class AppModuleProvider {
|
|
11
|
-
name = 'app-provider';
|
|
12
|
-
version;
|
|
13
|
-
lockerConfig;
|
|
14
|
-
config;
|
|
15
|
-
hmrEnabled = false;
|
|
16
11
|
constructor(appPluginConfig, { config, runtimeEnvironment: { hmrEnabled, lwrVersion } }) {
|
|
12
|
+
this.name = 'app-provider';
|
|
13
|
+
this.hmrEnabled = false;
|
|
17
14
|
this.config = config;
|
|
18
15
|
this.hmrEnabled = hmrEnabled;
|
|
19
16
|
this.version = lwrVersion;
|
|
@@ -112,11 +112,19 @@ Promise.all(rootComponents.map(async (rootSpecifier) => {
|
|
|
112
112
|
})).then((rootModules) => {
|
|
113
113
|
return init(rootModules, serverData);
|
|
114
114
|
}).then(() => {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
115
|
+
// Defer clearing so SSR'd components read ENABLE_WIRE_SYNC_EMIT: true in connectedCallback (timing varies by env)
|
|
116
|
+
const clearSyncEmit = () => {
|
|
117
|
+
globalThis?.lwcRuntimeFlags?.ENABLE_WIRE_SYNC_EMIT &&
|
|
118
|
+
(globalThis.lwcRuntimeFlags = {
|
|
119
|
+
...globalThis.lwcRuntimeFlags,
|
|
120
|
+
ENABLE_WIRE_SYNC_EMIT: false,
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
if (typeof requestAnimationFrame !== 'undefined') {
|
|
124
|
+
requestAnimationFrame(clearSyncEmit);
|
|
125
|
+
} else {
|
|
126
|
+
setTimeout(clearSyncEmit, 0);
|
|
127
|
+
}
|
|
120
128
|
});`,
|
|
121
129
|
isESM &&
|
|
122
130
|
options.hmrEnabled &&
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.22.2",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"build": "tsc -b"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@lwrjs/diagnostics": "0.
|
|
40
|
-
"@lwrjs/shared-utils": "0.
|
|
39
|
+
"@lwrjs/diagnostics": "0.22.2",
|
|
40
|
+
"@lwrjs/shared-utils": "0.22.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@lwrjs/types": "0.
|
|
43
|
+
"@lwrjs/types": "0.22.2"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
|
-
"node": ">=
|
|
46
|
+
"node": ">=22.0.0"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "30870e466e15e6691d238e75836e9266a45203e3"
|
|
49
49
|
}
|