@isograph/react 0.0.0-main-46027826 → 0.0.0-main-4b08a983
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/{src/tests/isograph.config.json → isograph.config.json} +1 -1
- package/package.json +10 -7
- package/src/tests/garbageCollection.test.ts +1 -2
- package/src/tests/meNameSuccessor.ts +1 -2
- package/src/tests/nodeQuery.ts +1 -2
- package/src/tests/tsconfig.json +3 -3
- package/tsconfig.json +2 -2
- package/tsconfig.pkg.json +1 -1
- package/vite.config.ts +16 -0
- /package/{src/tests/schema.graphql → schema.graphql} +0 -0
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-4b08a983",
|
4
4
|
"description": "Use Isograph with React",
|
5
5
|
"homepage": "https://isograph.dev",
|
6
6
|
"main": "dist/index.js",
|
@@ -13,22 +13,25 @@
|
|
13
13
|
"test": "vitest run",
|
14
14
|
"test-watch": "vitest watch",
|
15
15
|
"coverage": "vitest run --coverage",
|
16
|
-
"prepack": "
|
16
|
+
"prepack": "pnpm run test && pnpm run compile",
|
17
17
|
"tsc": "tsc"
|
18
18
|
},
|
19
19
|
"dependencies": {
|
20
|
-
"@isograph/disposable-types": "0.0.0-main-
|
21
|
-
"@isograph/react-disposable-state": "0.0.0-main-
|
22
|
-
"@isograph/reference-counted-pointer": "0.0.0-main-
|
20
|
+
"@isograph/disposable-types": "0.0.0-main-4b08a983",
|
21
|
+
"@isograph/react-disposable-state": "0.0.0-main-4b08a983",
|
22
|
+
"@isograph/reference-counted-pointer": "0.0.0-main-4b08a983"
|
23
23
|
},
|
24
24
|
"peerDependencies": {
|
25
25
|
"react": "18.2.0"
|
26
26
|
},
|
27
27
|
"devDependencies": {
|
28
|
+
"@babel/preset-typescript": "^7.24.7",
|
28
29
|
"@types/react": "^18.0.31",
|
29
30
|
"react-test-renderer": "^18.2.0",
|
30
|
-
"
|
31
|
-
"
|
31
|
+
"typescript": "^5.0.3",
|
32
|
+
"vite-plugin-babel": "^1.2.0",
|
33
|
+
"vite-plugin-commonjs": "^0.10.1",
|
34
|
+
"vitest": "^0.29.8"
|
32
35
|
},
|
33
36
|
"repository": {
|
34
37
|
"type": "git",
|
@@ -46,9 +46,8 @@ export const meNameField = iso(`
|
|
46
46
|
}
|
47
47
|
}
|
48
48
|
`)(() => {});
|
49
|
-
import meNameEntrypoint from './__isograph/Query/meName/entrypoint';
|
50
49
|
import { meNameSuccessorRetainedQuery } from './meNameSuccessor';
|
51
|
-
iso(`entrypoint Query.meName`);
|
50
|
+
const meNameEntrypoint = iso(`entrypoint Query.meName`);
|
52
51
|
const meNameRetainedQuery = {
|
53
52
|
normalizationAst: meNameEntrypoint.normalizationAst,
|
54
53
|
variables: {},
|
@@ -12,8 +12,7 @@ export const meNameField = iso(`
|
|
12
12
|
}
|
13
13
|
}
|
14
14
|
`)(() => {});
|
15
|
-
|
16
|
-
iso(`entrypoint Query.meNameSuccessor`);
|
15
|
+
const meNameSuccessorEntrypoint = iso(`entrypoint Query.meNameSuccessor`);
|
17
16
|
export const meNameSuccessorRetainedQuery = {
|
18
17
|
normalizationAst: meNameSuccessorEntrypoint.normalizationAst,
|
19
18
|
variables: {},
|
package/src/tests/nodeQuery.ts
CHANGED
@@ -9,8 +9,7 @@ export const nodeField = iso(`
|
|
9
9
|
}
|
10
10
|
}
|
11
11
|
`)(() => {});
|
12
|
-
|
13
|
-
iso(`entrypoint Query.nodeField`);
|
12
|
+
const nodeFieldEntrypoint = iso(`entrypoint Query.nodeField`);
|
14
13
|
export const nodeFieldRetainedQuery = {
|
15
14
|
normalizationAst: nodeFieldEntrypoint.normalizationAst,
|
16
15
|
variables: { id: 0 },
|
package/src/tests/tsconfig.json
CHANGED
package/tsconfig.json
CHANGED
package/tsconfig.pkg.json
CHANGED
package/vite.config.ts
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
import babel from 'vite-plugin-babel';
|
2
|
+
import commonjs from 'vite-plugin-commonjs';
|
3
|
+
import { defineConfig } from 'vitest/config';
|
4
|
+
|
5
|
+
export default defineConfig({
|
6
|
+
plugins: [
|
7
|
+
babel({
|
8
|
+
filter: /\.[jt]sx?$/,
|
9
|
+
babelConfig: {
|
10
|
+
presets: ['@babel/preset-typescript'],
|
11
|
+
plugins: ['../isograph-babel-plugin/BabelPluginIsograph'],
|
12
|
+
},
|
13
|
+
}),
|
14
|
+
commonjs(),
|
15
|
+
],
|
16
|
+
});
|
File without changes
|