@isograph/react 0.0.0-main-de738644 → 0.0.0-main-237638e6
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/.turbo/turbo-compile-libs.log +1 -1
- package/dist/core/areEqualWithDeepComparison.d.ts +1 -3
- package/dist/core/areEqualWithDeepComparison.d.ts.map +1 -1
- package/dist/core/areEqualWithDeepComparison.js +0 -2
- package/package.json +4 -4
- package/src/core/areEqualWithDeepComparison.ts +2 -2
- package/src/tests/__isograph/iso.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
../.. | WARN Unsupported engine: wanted: {"node":"22.9.0"} (current: {"node":"v22.19.0","pnpm":"10.15.0"})
|
|
2
2
|
|
|
3
|
-
> @isograph/react@0.0.0-main-
|
|
3
|
+
> @isograph/react@0.0.0-main-237638e6 compile-libs /home/runner/work/isograph/isograph/libs/isograph-react
|
|
4
4
|
> rimraf dist && tsc -p tsconfig.pkg.json
|
|
5
5
|
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { ReaderAst
|
|
2
|
-
export declare function mergeUsingReaderAst(field: ReaderScalarField | ReaderLinkedField, oldItem: unknown, newItem: unknown): unknown;
|
|
3
|
-
export declare function mergeArraysUsingReaderAst(field: ReaderScalarField | ReaderLinkedField, oldItems: ReadonlyArray<unknown>, newItems: Array<unknown>): ReadonlyArray<unknown>;
|
|
1
|
+
import type { ReaderAst } from './reader';
|
|
4
2
|
export declare function mergeObjectsUsingReaderAst(ast: ReaderAst<object>, oldItemObject: object, newItemObject: object): object;
|
|
5
3
|
//# sourceMappingURL=areEqualWithDeepComparison.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"areEqualWithDeepComparison.d.ts","sourceRoot":"","sources":["../../src/core/areEqualWithDeepComparison.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"areEqualWithDeepComparison.d.ts","sourceRoot":"","sources":["../../src/core/areEqualWithDeepComparison.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAwC,MAAM,UAAU,CAAC;AA+DhF,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,SAAS,CAAC,MAAM,CAAC,EACtB,aAAa,EAAE,MAAM,EACrB,aAAa,EAAE,MAAM,GACpB,MAAM,CA+DR"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mergeUsingReaderAst = mergeUsingReaderAst;
|
|
4
|
-
exports.mergeArraysUsingReaderAst = mergeArraysUsingReaderAst;
|
|
5
3
|
exports.mergeObjectsUsingReaderAst = mergeObjectsUsingReaderAst;
|
|
6
4
|
function mergeUsingReaderAst(field, oldItem, newItem) {
|
|
7
5
|
if (newItem === null) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@isograph/react",
|
|
3
|
-
"version": "0.0.0-main-
|
|
3
|
+
"version": "0.0.0-main-237638e6",
|
|
4
4
|
"description": "Use Isograph with React",
|
|
5
5
|
"homepage": "https://isograph.dev",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"iso": "cross-env ISO_PRINT_ABSOLUTE_FILEPATH=1 ../../target/debug/isograph_cli --config ./isograph.config.json"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@isograph/disposable-types": "0.0.0-main-
|
|
23
|
-
"@isograph/react-disposable-state": "0.0.0-main-
|
|
24
|
-
"@isograph/reference-counted-pointer": "0.0.0-main-
|
|
22
|
+
"@isograph/disposable-types": "0.0.0-main-237638e6",
|
|
23
|
+
"@isograph/react-disposable-state": "0.0.0-main-237638e6",
|
|
24
|
+
"@isograph/reference-counted-pointer": "0.0.0-main-237638e6"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "^18.0.0 || ^19.0.0"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { StoreLink } from './IsographEnvironment';
|
|
2
2
|
import type { ReaderAst, ReaderLinkedField, ReaderScalarField } from './reader';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
function mergeUsingReaderAst(
|
|
5
5
|
field: ReaderScalarField | ReaderLinkedField,
|
|
6
6
|
oldItem: unknown,
|
|
7
7
|
newItem: unknown,
|
|
@@ -40,7 +40,7 @@ export function mergeUsingReaderAst(
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
function mergeArraysUsingReaderAst(
|
|
44
44
|
field: ReaderScalarField | ReaderLinkedField,
|
|
45
45
|
oldItems: ReadonlyArray<unknown>,
|
|
46
46
|
newItems: Array<unknown>,
|
|
@@ -16,7 +16,7 @@ import entrypoint_Query__subquery from '../__isograph/Query/subquery/entrypoint'
|
|
|
16
16
|
// This means that the type of the exported iso literal is exactly
|
|
17
17
|
// the type of the passed-in function, which takes one parameter
|
|
18
18
|
// of type TParam.
|
|
19
|
-
type IdentityWithParam<TParam extends object> = <TClientFieldReturn>(
|
|
19
|
+
type IdentityWithParam<TParam extends object, TReturnConstraint = unknown> = <TClientFieldReturn extends TReturnConstraint>(
|
|
20
20
|
clientField: (param: TParam) => TClientFieldReturn
|
|
21
21
|
) => (param: TParam) => TClientFieldReturn;
|
|
22
22
|
|