Skip to content

Commit

Permalink
Move react-graphql to preact
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonmade committed May 6, 2024
1 parent 37e4864 commit cd339d3
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 17 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@quilted/react-graphql",
"name": "@quilted/preact-graphql",
"type": "module",
"version": "0.5.0",
"version": "0.1.0",
"repository": {
"type": "git",
"url": "https://github.com/lemonmade/quilt.git",
"directory": "packages/react-graphql"
"directory": "packages/preact-graphql"
},
"publishConfig": {
"access": "public",
Expand Down Expand Up @@ -45,14 +45,14 @@
"@quilted/useful-types": "workspace:^2.0.0"
},
"peerDependencies": {
"react": "^17.0.0 || ^18.0.0"
"preact": "^10.21.0"
},
"peerDependenciesMeta": {
"react": {
"preact": {
"optional": true
}
},
"devDependencies": {
"react": "workspace:@quilted/react@^18.2.0"
"preact": "^10.21.0"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/quilt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,10 @@
"@quilted/preact-async": "workspace:^0.1.0",
"@quilted/preact-browser": "workspace:^0.1.0",
"@quilted/preact-context": "workspace:^0.1.0",
"@quilted/preact-graphql": "workspace:^0.1.0",
"@quilted/preact-performance": "workspace:^0.1.0",
"@quilted/react": "workspace:^18.2.0",
"@quilted/react-dom": "workspace:^18.2.11",
"@quilted/react-graphql": "workspace:^0.5.0",
"@quilted/react-idle": "workspace:^0.4.0",
"@quilted/react-localize": "workspace:^0.2.2",
"@quilted/react-router": "workspace:^0.4.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/quilt/source/graphql.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from '@quilted/graphql';
export {GraphQLContext, useGraphQLFetch} from '@quilted/react-graphql';
export * from '@quilted/preact-graphql';
2 changes: 1 addition & 1 deletion packages/quilt/source/graphql/testing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {expect} from 'vitest';
import {matchers, type CustomMatchers} from './testing/matchers.ts';

export * from '@quilted/graphql/testing';
export {GraphQLTesting} from '@quilted/react-graphql/testing';
export {GraphQLTesting} from '@quilted/preact-graphql/testing';

declare module 'vitest' {
interface Assertion<T = any> extends CustomMatchers<T> {}
Expand Down
2 changes: 1 addition & 1 deletion packages/quilt/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
{"path": "../preact-async"},
{"path": "../preact-browser"},
{"path": "../preact-context"},
{"path": "../preact-graphql"},
{"path": "../preact-performance"},
{"path": "../react"},
{"path": "../react-dom"},
{"path": "../react-graphql"},
{"path": "../react-idle"},
{"path": "../react-localize"},
{"path": "../react-router"},
Expand Down
12 changes: 6 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cd339d3

Please sign in to comment.