@lwc/ssr-runtime 8.16.0 → 8.16.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.
- package/dist/get-read-only-proxy.d.ts +9 -0
- package/dist/index.cjs.js +15 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.js +15 -5
- package/dist/stubs.d.ts +0 -1
- package/package.json +3 -3
@@ -1,2 +1,11 @@
|
|
1
1
|
export declare function getReadOnlyProxy<T>(value: T): Readonly<T>;
|
2
|
+
/**
|
3
|
+
* DEPRECATED: This function allows you to create a reactive readonly
|
4
|
+
* membrane around any object value.
|
5
|
+
* WARNING: This function does *NOT* make the object read-only.
|
6
|
+
* @param value any object
|
7
|
+
* @returns the provided value
|
8
|
+
* @deprecated
|
9
|
+
*/
|
10
|
+
export declare function readonly<T>(value: T): T;
|
2
11
|
//# sourceMappingURL=get-read-only-proxy.d.ts.map
|
package/dist/index.cjs.js
CHANGED
@@ -11,6 +11,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
11
11
|
* SPDX-License-Identifier: MIT
|
12
12
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
13
13
|
*/
|
14
|
+
/* v8 ignore start */
|
14
15
|
// Stubs for all the un-implemented exports from @lwc/engine-server
|
15
16
|
function api(..._) {
|
16
17
|
throw new Error('@api cannot be used in SSR context.');
|
@@ -33,9 +34,6 @@ function parseFragment(..._) {
|
|
33
34
|
function parseSVGFragment(..._) {
|
34
35
|
throw new Error('parseSVGFragment cannot be used in SSR context.');
|
35
36
|
}
|
36
|
-
function readonly(..._) {
|
37
|
-
throw new Error('readonly cannot be used in SSR context.');
|
38
|
-
}
|
39
37
|
function registerComponent(..._) {
|
40
38
|
throw new Error('registerComponent cannot be used in SSR context.');
|
41
39
|
}
|
@@ -219,6 +217,7 @@ const renderer = {
|
|
219
217
|
*/
|
220
218
|
// A real stub, not a "not implemented" one! 😯
|
221
219
|
const hot = undefined;
|
220
|
+
/* v8 ignore stop */
|
222
221
|
|
223
222
|
/**
|
224
223
|
* Copyright (c) 2025 Salesforce, Inc.
|
@@ -625,7 +624,7 @@ function normalizeTabIndex(value) {
|
|
625
624
|
const shouldNormalize = value > 0 && typeof value !== 'boolean';
|
626
625
|
return shouldNormalize ? 0 : value;
|
627
626
|
}
|
628
|
-
/** version: 8.16.
|
627
|
+
/** version: 8.16.2 */
|
629
628
|
|
630
629
|
/*
|
631
630
|
* Copyright (c) 2024, Salesforce, Inc.
|
@@ -1331,6 +1330,17 @@ const reactiveMembrane = new ObservableMembrane();
|
|
1331
1330
|
function getReadOnlyProxy(value) {
|
1332
1331
|
return reactiveMembrane.getReadOnlyProxy(value);
|
1333
1332
|
}
|
1333
|
+
/**
|
1334
|
+
* DEPRECATED: This function allows you to create a reactive readonly
|
1335
|
+
* membrane around any object value.
|
1336
|
+
* WARNING: This function does *NOT* make the object read-only.
|
1337
|
+
* @param value any object
|
1338
|
+
* @returns the provided value
|
1339
|
+
* @deprecated
|
1340
|
+
*/
|
1341
|
+
function readonly(value) {
|
1342
|
+
return value;
|
1343
|
+
}
|
1334
1344
|
|
1335
1345
|
/*
|
1336
1346
|
* Copyright (c) 2024, salesforce.com, inc.
|
@@ -1889,5 +1899,5 @@ exports.track = track;
|
|
1889
1899
|
exports.unwrap = unwrap$1;
|
1890
1900
|
exports.validateStyleTextContents = validateStyleTextContents;
|
1891
1901
|
exports.wire = wire;
|
1892
|
-
/** version: 8.16.
|
1902
|
+
/** version: 8.16.2 */
|
1893
1903
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.d.ts
CHANGED
@@ -9,4 +9,5 @@ export { hasScopedStaticStylesheets, renderStylesheets } from './styles';
|
|
9
9
|
export { toIteratorDirective } from './to-iterator-directive';
|
10
10
|
export { validateStyleTextContents } from './validate-style-text-contents';
|
11
11
|
export { createContextProvider, establishContextfulRelationship, connectContext } from './wire';
|
12
|
+
export { readonly } from './get-read-only-proxy';
|
12
13
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
* SPDX-License-Identifier: MIT
|
8
8
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
9
9
|
*/
|
10
|
+
/* v8 ignore start */
|
10
11
|
// Stubs for all the un-implemented exports from @lwc/engine-server
|
11
12
|
function api(..._) {
|
12
13
|
throw new Error('@api cannot be used in SSR context.');
|
@@ -29,9 +30,6 @@ function parseFragment(..._) {
|
|
29
30
|
function parseSVGFragment(..._) {
|
30
31
|
throw new Error('parseSVGFragment cannot be used in SSR context.');
|
31
32
|
}
|
32
|
-
function readonly(..._) {
|
33
|
-
throw new Error('readonly cannot be used in SSR context.');
|
34
|
-
}
|
35
33
|
function registerComponent(..._) {
|
36
34
|
throw new Error('registerComponent cannot be used in SSR context.');
|
37
35
|
}
|
@@ -215,6 +213,7 @@ const renderer = {
|
|
215
213
|
*/
|
216
214
|
// A real stub, not a "not implemented" one! 😯
|
217
215
|
const hot = undefined;
|
216
|
+
/* v8 ignore stop */
|
218
217
|
|
219
218
|
/**
|
220
219
|
* Copyright (c) 2025 Salesforce, Inc.
|
@@ -621,7 +620,7 @@ function normalizeTabIndex(value) {
|
|
621
620
|
const shouldNormalize = value > 0 && typeof value !== 'boolean';
|
622
621
|
return shouldNormalize ? 0 : value;
|
623
622
|
}
|
624
|
-
/** version: 8.16.
|
623
|
+
/** version: 8.16.2 */
|
625
624
|
|
626
625
|
/*
|
627
626
|
* Copyright (c) 2024, Salesforce, Inc.
|
@@ -1327,6 +1326,17 @@ const reactiveMembrane = new ObservableMembrane();
|
|
1327
1326
|
function getReadOnlyProxy(value) {
|
1328
1327
|
return reactiveMembrane.getReadOnlyProxy(value);
|
1329
1328
|
}
|
1329
|
+
/**
|
1330
|
+
* DEPRECATED: This function allows you to create a reactive readonly
|
1331
|
+
* membrane around any object value.
|
1332
|
+
* WARNING: This function does *NOT* make the object read-only.
|
1333
|
+
* @param value any object
|
1334
|
+
* @returns the provided value
|
1335
|
+
* @deprecated
|
1336
|
+
*/
|
1337
|
+
function readonly(value) {
|
1338
|
+
return value;
|
1339
|
+
}
|
1330
1340
|
|
1331
1341
|
/*
|
1332
1342
|
* Copyright (c) 2024, salesforce.com, inc.
|
@@ -1839,5 +1849,5 @@ function createContextProvider(adapter) {
|
|
1839
1849
|
}
|
1840
1850
|
|
1841
1851
|
export { ClassList, LightningElement, SYMBOL__DEFAULT_TEMPLATE, SYMBOL__GENERATE_MARKUP, SYMBOL__SET_INTERNALS, api, connectContext, createContextProvider, createElement, establishContextfulRelationship, fallbackTmpl, fallbackTmplNoYield, freezeTemplate, getComponentDef, hasScopedStaticStylesheets, hot, htmlEscape, isComponentConstructor, mutationTracker, normalizeClass, normalizeTabIndex, normalizeTextContent, parseFragment, parseSVGFragment, readonly, registerComponent, registerDecorators, registerTemplate, renderAttrs, renderAttrsNoYield, serverSideRenderComponent as renderComponent, renderStylesheets, renderTextContent, renderer, sanitizeAttribute, sanitizeHtmlContent, serverSideRenderComponent, setFeatureFlag, setFeatureFlagForTest, setHooks, swapComponent, swapStyle, swapTemplate, toIteratorDirective, track, unwrap$1 as unwrap, validateStyleTextContents, wire };
|
1842
|
-
/** version: 8.16.
|
1852
|
+
/** version: 8.16.2 */
|
1843
1853
|
//# sourceMappingURL=index.js.map
|
package/dist/stubs.d.ts
CHANGED
@@ -5,7 +5,6 @@ export declare function getComponentDef(..._: unknown[]): never;
|
|
5
5
|
export declare function isComponentConstructor(..._: unknown[]): never;
|
6
6
|
export declare function parseFragment(..._: unknown[]): never;
|
7
7
|
export declare function parseSVGFragment(..._: unknown[]): never;
|
8
|
-
export declare function readonly(..._: unknown[]): never;
|
9
8
|
export declare function registerComponent(..._: unknown[]): never;
|
10
9
|
export declare function registerDecorators(..._: unknown[]): never;
|
11
10
|
export declare function registerTemplate(..._: unknown[]): never;
|
package/package.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
"You can safely modify dependencies, devDependencies, keywords, etc., but other props will be overwritten."
|
5
5
|
],
|
6
6
|
"name": "@lwc/ssr-runtime",
|
7
|
-
"version": "8.16.
|
7
|
+
"version": "8.16.2",
|
8
8
|
"description": "Runtime complement to @lwc/ssr-compiler",
|
9
9
|
"keywords": [
|
10
10
|
"lwc",
|
@@ -48,8 +48,8 @@
|
|
48
48
|
}
|
49
49
|
},
|
50
50
|
"devDependencies": {
|
51
|
-
"@lwc/shared": "8.16.
|
52
|
-
"@lwc/engine-core": "8.16.
|
51
|
+
"@lwc/shared": "8.16.2",
|
52
|
+
"@lwc/engine-core": "8.16.2",
|
53
53
|
"observable-membrane": "2.0.0"
|
54
54
|
}
|
55
55
|
}
|