@luvio/lwc-luvio 0.138.2 → 0.138.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.
- package/dist/es/es2018/types/LWCGraphQLLuvioWireAdapter.d.ts +3 -3
- package/dist/es/es2018/types/utils/SnapshotState.d.ts +1 -1
- package/dist/es/es2018/types/utils/dataToTupleWeakMap.d.ts +1 -1
- package/dist/es/es2018/types/utils/language.d.ts +4 -2
- package/dist/umd/es2018/types/LWCGraphQLLuvioWireAdapter.d.ts +3 -3
- package/dist/umd/es2018/types/utils/SnapshotState.d.ts +1 -1
- package/dist/umd/es2018/types/utils/dataToTupleWeakMap.d.ts +1 -1
- package/dist/umd/es2018/types/utils/language.d.ts +4 -2
- package/dist/umd/es5/types/LWCGraphQLLuvioWireAdapter.d.ts +3 -3
- package/dist/umd/es5/types/utils/SnapshotState.d.ts +1 -1
- package/dist/umd/es5/types/utils/dataToTupleWeakMap.d.ts +1 -1
- package/dist/umd/es5/types/utils/language.d.ts +4 -2
- package/package.json +5 -5
|
@@ -3,7 +3,7 @@ import type { WireConfigValue, WireContextValue, DataCallback, WireAdapterConstr
|
|
|
3
3
|
import type { AstResolver, DocumentNode } from '@luvio/graphql-parser';
|
|
4
4
|
import { LWCLuvioWireAdapter } from './LWCLuvioWireAdapter';
|
|
5
5
|
import type { EmittableSnapshot } from './utils/SnapshotState';
|
|
6
|
-
export
|
|
6
|
+
export type GraphQLError = {
|
|
7
7
|
message: string;
|
|
8
8
|
locations?: Array<{
|
|
9
9
|
line: number;
|
|
@@ -23,8 +23,8 @@ export interface ResolvedGraphQLConfig extends GraphQLUserInput {
|
|
|
23
23
|
export interface GraphQLBatchUserInput {
|
|
24
24
|
batchQuery: GraphQLUserInput[];
|
|
25
25
|
}
|
|
26
|
-
export
|
|
27
|
-
export
|
|
26
|
+
export type GraphQLInput = GraphQLUserInput | GraphQLBatchUserInput;
|
|
27
|
+
export type GraphQLResponse = {
|
|
28
28
|
data: any;
|
|
29
29
|
errors?: GraphQLError[];
|
|
30
30
|
} | {
|
|
@@ -3,7 +3,7 @@ export declare function isErrorSnapshot(snapshot: Snapshot<unknown, unknown>): s
|
|
|
3
3
|
export declare function isFulfilledSnapshot(snapshot: Snapshot<unknown, unknown>): snapshot is FulfilledSnapshot<unknown, unknown>;
|
|
4
4
|
export declare function isStaleSnapshot(snapshot: Snapshot<unknown, unknown>): snapshot is StaleSnapshot<unknown, unknown>;
|
|
5
5
|
export declare function isUnfulfilledSnapshot(snapshot: Snapshot<unknown, unknown>): snapshot is UnfulfilledSnapshot<unknown, unknown>;
|
|
6
|
-
export
|
|
6
|
+
export type EmittableSnapshot<T = unknown> = FulfilledSnapshot<T> | StaleSnapshot<T> | ErrorSnapshot;
|
|
7
7
|
/**
|
|
8
8
|
* Transform a Snapshot into a payload suitable for passing to a DataCallback.
|
|
9
9
|
*
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Snapshot } from '@luvio/engine';
|
|
2
|
-
export declare const dataToTupleWeakMap: WeakMap<any, [string, Snapshot<unknown
|
|
2
|
+
export declare const dataToTupleWeakMap: WeakMap<any, [string, Snapshot<unknown> | undefined]>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
declare const freeze: {
|
|
2
|
-
<T>(
|
|
3
|
-
<T_1 extends
|
|
2
|
+
<T extends Function>(f: T): T;
|
|
3
|
+
<T_1 extends {
|
|
4
|
+
[idx: string]: object | U | null | undefined;
|
|
5
|
+
}, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
|
|
4
6
|
<T_2>(o: T_2): Readonly<T_2>;
|
|
5
7
|
}, keys: {
|
|
6
8
|
(o: object): string[];
|
|
@@ -3,7 +3,7 @@ import type { WireConfigValue, WireContextValue, DataCallback, WireAdapterConstr
|
|
|
3
3
|
import type { AstResolver, DocumentNode } from '@luvio/graphql-parser';
|
|
4
4
|
import { LWCLuvioWireAdapter } from './LWCLuvioWireAdapter';
|
|
5
5
|
import type { EmittableSnapshot } from './utils/SnapshotState';
|
|
6
|
-
export
|
|
6
|
+
export type GraphQLError = {
|
|
7
7
|
message: string;
|
|
8
8
|
locations?: Array<{
|
|
9
9
|
line: number;
|
|
@@ -23,8 +23,8 @@ export interface ResolvedGraphQLConfig extends GraphQLUserInput {
|
|
|
23
23
|
export interface GraphQLBatchUserInput {
|
|
24
24
|
batchQuery: GraphQLUserInput[];
|
|
25
25
|
}
|
|
26
|
-
export
|
|
27
|
-
export
|
|
26
|
+
export type GraphQLInput = GraphQLUserInput | GraphQLBatchUserInput;
|
|
27
|
+
export type GraphQLResponse = {
|
|
28
28
|
data: any;
|
|
29
29
|
errors?: GraphQLError[];
|
|
30
30
|
} | {
|
|
@@ -3,7 +3,7 @@ export declare function isErrorSnapshot(snapshot: Snapshot<unknown, unknown>): s
|
|
|
3
3
|
export declare function isFulfilledSnapshot(snapshot: Snapshot<unknown, unknown>): snapshot is FulfilledSnapshot<unknown, unknown>;
|
|
4
4
|
export declare function isStaleSnapshot(snapshot: Snapshot<unknown, unknown>): snapshot is StaleSnapshot<unknown, unknown>;
|
|
5
5
|
export declare function isUnfulfilledSnapshot(snapshot: Snapshot<unknown, unknown>): snapshot is UnfulfilledSnapshot<unknown, unknown>;
|
|
6
|
-
export
|
|
6
|
+
export type EmittableSnapshot<T = unknown> = FulfilledSnapshot<T> | StaleSnapshot<T> | ErrorSnapshot;
|
|
7
7
|
/**
|
|
8
8
|
* Transform a Snapshot into a payload suitable for passing to a DataCallback.
|
|
9
9
|
*
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Snapshot } from '@luvio/engine';
|
|
2
|
-
export declare const dataToTupleWeakMap: WeakMap<any, [string, Snapshot<unknown
|
|
2
|
+
export declare const dataToTupleWeakMap: WeakMap<any, [string, Snapshot<unknown> | undefined]>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
declare const freeze: {
|
|
2
|
-
<T>(
|
|
3
|
-
<T_1 extends
|
|
2
|
+
<T extends Function>(f: T): T;
|
|
3
|
+
<T_1 extends {
|
|
4
|
+
[idx: string]: object | U | null | undefined;
|
|
5
|
+
}, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
|
|
4
6
|
<T_2>(o: T_2): Readonly<T_2>;
|
|
5
7
|
}, keys: {
|
|
6
8
|
(o: object): string[];
|
|
@@ -3,7 +3,7 @@ import type { WireConfigValue, WireContextValue, DataCallback, WireAdapterConstr
|
|
|
3
3
|
import type { AstResolver, DocumentNode } from '@luvio/graphql-parser';
|
|
4
4
|
import { LWCLuvioWireAdapter } from './LWCLuvioWireAdapter';
|
|
5
5
|
import type { EmittableSnapshot } from './utils/SnapshotState';
|
|
6
|
-
export
|
|
6
|
+
export type GraphQLError = {
|
|
7
7
|
message: string;
|
|
8
8
|
locations?: Array<{
|
|
9
9
|
line: number;
|
|
@@ -23,8 +23,8 @@ export interface ResolvedGraphQLConfig extends GraphQLUserInput {
|
|
|
23
23
|
export interface GraphQLBatchUserInput {
|
|
24
24
|
batchQuery: GraphQLUserInput[];
|
|
25
25
|
}
|
|
26
|
-
export
|
|
27
|
-
export
|
|
26
|
+
export type GraphQLInput = GraphQLUserInput | GraphQLBatchUserInput;
|
|
27
|
+
export type GraphQLResponse = {
|
|
28
28
|
data: any;
|
|
29
29
|
errors?: GraphQLError[];
|
|
30
30
|
} | {
|
|
@@ -3,7 +3,7 @@ export declare function isErrorSnapshot(snapshot: Snapshot<unknown, unknown>): s
|
|
|
3
3
|
export declare function isFulfilledSnapshot(snapshot: Snapshot<unknown, unknown>): snapshot is FulfilledSnapshot<unknown, unknown>;
|
|
4
4
|
export declare function isStaleSnapshot(snapshot: Snapshot<unknown, unknown>): snapshot is StaleSnapshot<unknown, unknown>;
|
|
5
5
|
export declare function isUnfulfilledSnapshot(snapshot: Snapshot<unknown, unknown>): snapshot is UnfulfilledSnapshot<unknown, unknown>;
|
|
6
|
-
export
|
|
6
|
+
export type EmittableSnapshot<T = unknown> = FulfilledSnapshot<T> | StaleSnapshot<T> | ErrorSnapshot;
|
|
7
7
|
/**
|
|
8
8
|
* Transform a Snapshot into a payload suitable for passing to a DataCallback.
|
|
9
9
|
*
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Snapshot } from '@luvio/engine';
|
|
2
|
-
export declare const dataToTupleWeakMap: WeakMap<any, [string, Snapshot<unknown
|
|
2
|
+
export declare const dataToTupleWeakMap: WeakMap<any, [string, Snapshot<unknown> | undefined]>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
declare const freeze: {
|
|
2
|
-
<T>(
|
|
3
|
-
<T_1 extends
|
|
2
|
+
<T extends Function>(f: T): T;
|
|
3
|
+
<T_1 extends {
|
|
4
|
+
[idx: string]: object | U | null | undefined;
|
|
5
|
+
}, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
|
|
4
6
|
<T_2>(o: T_2): Readonly<T_2>;
|
|
5
7
|
}, keys: {
|
|
6
8
|
(o: object): string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luvio/lwc-luvio",
|
|
3
|
-
"version": "0.138.
|
|
3
|
+
"version": "0.138.4",
|
|
4
4
|
"description": "Lightning Web Component bindings for Luvio",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"main": "dist/es/es2018/lwcluvio.js",
|
|
12
12
|
"module": "dist/es/es2018/lwcluvio.js",
|
|
13
|
-
"types": "dist/es/es2018/main.d.ts",
|
|
13
|
+
"types": "dist/es/es2018/types/main.d.ts",
|
|
14
14
|
"files": [
|
|
15
15
|
"dist/"
|
|
16
16
|
],
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"watch": "yarn build --watch"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@luvio/engine": "^0.138.
|
|
28
|
+
"@luvio/engine": "^0.138.4",
|
|
29
29
|
"@lwc/engine-core": "2.40.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@luvio/adapter-test-library": "^0.138.
|
|
33
|
-
"@luvio/cli": "^0.138.
|
|
32
|
+
"@luvio/adapter-test-library": "^0.138.4",
|
|
33
|
+
"@luvio/cli": "^0.138.4",
|
|
34
34
|
"@lwc/jest-preset": "11.7.1"
|
|
35
35
|
},
|
|
36
36
|
"volta": {
|