@mearie/vue 0.0.0 → 0.0.1-next.3

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.
Files changed (3) hide show
  1. package/README.md +44 -0
  2. package/package.json +41 -9
  3. package/src/index.ts +0 -5
package/README.md ADDED
@@ -0,0 +1,44 @@
1
+ # @mearie/vue
2
+
3
+ Vue bindings for Mearie GraphQL client.
4
+
5
+ This package provides Vue composables and plugins for using Mearie in Vue
6
+ applications.
7
+
8
+ ## Installation
9
+
10
+ ```bash
11
+ npm install mearie @mearie/vue
12
+ ```
13
+
14
+ ## Usage
15
+
16
+ ```vue
17
+ <script setup lang="ts">
18
+ import { createClient, httpLink, cacheLink, graphql } from 'mearie';
19
+ import { useQuery } from '@mearie/vue';
20
+
21
+ const props = defineProps<{ userId: string }>();
22
+
23
+ const { data, loading } = useQuery(
24
+ graphql(`
25
+ query GetUser($id: ID!) {
26
+ user(id: $id) {
27
+ id
28
+ name
29
+ }
30
+ }
31
+ `),
32
+ () => ({ id: props.userId }),
33
+ );
34
+ </script>
35
+
36
+ <template>
37
+ <div v-if="loading">Loading...</div>
38
+ <h1 v-else>{{ data.user.name }}</h1>
39
+ </template>
40
+ ```
41
+
42
+ ## Documentation
43
+
44
+ Full documentation is available at <https://mearie.dev/frameworks/vue>.
package/package.json CHANGED
@@ -1,23 +1,52 @@
1
1
  {
2
2
  "name": "@mearie/vue",
3
- "version": "0.0.0",
4
- "description": "Vue integration for Mearie",
3
+ "version": "0.0.1-next.3",
4
+ "description": "Type-safe, zero-overhead GraphQL client",
5
+ "keywords": [
6
+ "graphql",
7
+ "graphql-client",
8
+ "typescript",
9
+ "codegen",
10
+ "cache"
11
+ ],
12
+ "homepage": "https://github.com/devunt/mearie#readme",
13
+ "bugs": {
14
+ "url": "https://github.com/devunt/mearie/issues"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/devunt/mearie.git",
19
+ "directory": "packages/vue"
20
+ },
21
+ "funding": {
22
+ "type": "github",
23
+ "url": "https://github.com/sponsors/devunt"
24
+ },
5
25
  "license": "MIT",
26
+ "author": "Bae Junehyeon <finn@penxle.io>",
27
+ "sideEffects": false,
6
28
  "type": "module",
7
- "main": "./src/index.ts",
29
+ "main": "./dist/index.cjs",
8
30
  "files": [
9
- "dist"
31
+ "dist",
32
+ "package.json",
33
+ "README.md"
10
34
  ],
11
35
  "dependencies": {
12
- "@mearie/client": "0.0.0"
36
+ "@mearie/client": "0.0.1-next.3"
13
37
  },
14
38
  "devDependencies": {
15
- "tsdown": "^0.15.7",
16
- "vue": "^3.5.0"
39
+ "tsdown": "^0.15.8",
40
+ "vue": "^3.5.22"
17
41
  },
18
42
  "peerDependencies": {
19
43
  "vue": "^3.3.0"
20
44
  },
45
+ "engines": {
46
+ "bun": ">=1.2.0",
47
+ "deno": ">=2.2.0",
48
+ "node": ">=20.0.0"
49
+ },
21
50
  "publishConfig": {
22
51
  "access": "public"
23
52
  },
@@ -30,6 +59,9 @@
30
59
  "types": "./dist/index.d.ts",
31
60
  "import": "./dist/index.js",
32
61
  "require": "./dist/index.cjs"
33
- }
34
- }
62
+ },
63
+ "./package.json": "./package.json"
64
+ },
65
+ "module": "./dist/index.js",
66
+ "types": "./dist/index.d.ts"
35
67
  }
package/src/index.ts DELETED
@@ -1,5 +0,0 @@
1
- export { ClientPlugin, useClient, type ClientPluginOptions } from './client-plugin.ts';
2
- export { useQuery, type UseQueryOptions, type UseQueryReturn } from './use-query.ts';
3
- export { useSubscription, type UseSubscriptionReturn, type UseSubscriptionOptions } from './use-subscription.ts';
4
- export { useMutation, type UseMutationResult, type UseMutationReturn } from './use-mutation.ts';
5
- export { useFragment, type UseFragmentReturn } from './use-fragment.ts';