Skip to content

Commit f5ce427

Browse files
committed
Fix readmes and publish actual version
1 parent 966efa1 commit f5ce427

5 files changed

Lines changed: 17 additions & 19 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Resilient data queries for decentralized frontends. Fetch on-chain data from multiple sources with automatic fallback, caching, and live updates.
44

55
```
6-
npm install @dapp-query/core
6+
npm install @1001-digital/dapp-query-core
77
```
88

99
## The Problem
@@ -24,7 +24,7 @@ import {
2424
graphqlSource,
2525
rpcSource,
2626
idbCache,
27-
} from '@dapp-query/core'
27+
} from '@1001-digital/dapp-query-core'
2828
import { createPublicClient, http, parseAbiItem } from 'viem'
2929
import { mainnet } from 'viem/chains'
3030

@@ -206,15 +206,15 @@ interface Cache {
206206
## Vue Integration
207207

208208
```
209-
npm install @dapp-query/vue
209+
npm install @1001-digital/dapp-query-vue
210210
```
211211

212212
### Setup
213213

214214
```ts
215215
import { createApp } from 'vue'
216-
import { createQueryClient, idbCache } from '@dapp-query/core'
217-
import { dappQueryPlugin } from '@dapp-query/vue'
216+
import { createQueryClient, idbCache } from '@1001-digital/dapp-query-core'
217+
import { dappQueryPlugin } from '@1001-digital/dapp-query-vue'
218218

219219
const queryClient = createQueryClient({
220220
cache: idbCache('my-app'),
@@ -227,7 +227,7 @@ app.use(dappQueryPlugin, queryClient)
227227
### useQuery
228228

229229
```ts
230-
import { useQuery } from '@dapp-query/vue'
230+
import { useQuery } from '@1001-digital/dapp-query-vue'
231231

232232
const { data, pending, error, revalidating, refresh } = useQuery(
233233
transfersQuery,

packages/core/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Resilient on-chain data queries with multi-source fallback and local caching.
44

55
```
6-
npm install @dapp-query/core
6+
npm install @1001-digital/dapp-query-core
77
```
88

99
## What it does
@@ -13,7 +13,7 @@ Define data sources (RPC nodes, GraphQL indexers, REST APIs), and the query clie
1313
## Quick Start
1414

1515
```ts
16-
import { createQueryClient, graphqlSource, rpcSource, idbCache } from '@dapp-query/core'
16+
import { createQueryClient, graphqlSource, rpcSource, idbCache } from '@1001-digital/dapp-query-core'
1717
import { createPublicClient, http, parseAbiItem } from 'viem'
1818
import { mainnet } from 'viem/chains'
1919

packages/core/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
22
"name": "@1001-digital/dapp-query-core",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"description": "Resilient on-chain data queries with multi-source fallback and local caching.",
55
"type": "module",
66
"exports": {
77
".": {
8-
"development": "./src/index.ts",
98
"import": "./dist/index.js",
109
"types": "./dist/index.d.ts"
1110
}

packages/vue/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Vue 3 composables for [dapp-query](../../README.md).
44

55
```
6-
npm install @dapp-query/vue @dapp-query/core
6+
npm install @1001-digital/dapp-query-vue @1001-digital/dapp-query-core
77
```
88

99
## Setup
@@ -12,8 +12,8 @@ Register the plugin with a `QueryClient` instance:
1212

1313
```ts
1414
import { createApp } from 'vue'
15-
import { createQueryClient, idbCache } from '@dapp-query/core'
16-
import { dappQueryPlugin } from '@dapp-query/vue'
15+
import { createQueryClient, idbCache } from '@1001-digital/dapp-query-core'
16+
import { dappQueryPlugin } from '@1001-digital/dapp-query-vue'
1717

1818
const queryClient = createQueryClient({
1919
cache: idbCache('my-app'),
@@ -28,7 +28,7 @@ app.use(dappQueryPlugin, queryClient)
2828
Reactive data fetching composable. Subscribes to a query definition and automatically re-fetches when reactive arguments change.
2929

3030
```ts
31-
import { useQuery } from '@dapp-query/vue'
31+
import { useQuery } from '@1001-digital/dapp-query-vue'
3232

3333
const { data, pending, error, revalidating, refresh } = useQuery(
3434
transfersQuery,
@@ -53,7 +53,7 @@ The second argument is a getter that returns the query args as a tuple. When the
5353
```vue
5454
<script setup lang="ts">
5555
import { ref } from 'vue'
56-
import { useQuery } from '@dapp-query/vue'
56+
import { useQuery } from '@1001-digital/dapp-query-vue'
5757
5858
const address = ref('0xabc...')
5959
const { data, pending } = useQuery(transfersQuery, () => [address.value])
@@ -71,7 +71,7 @@ const { data, pending } = useQuery(transfersQuery, () => [address.value])
7171
Access the injected `QueryClient` directly for imperative operations:
7272

7373
```ts
74-
import { useQueryClient } from '@dapp-query/vue'
74+
import { useQueryClient } from '@1001-digital/dapp-query-vue'
7575

7676
const client = useQueryClient()
7777
await client.invalidate(transfersQuery, '0xabc...')
@@ -80,7 +80,7 @@ await client.invalidate(transfersQuery, '0xabc...')
8080
## Peer Dependencies
8181

8282
- `vue` >= 3.3.0
83-
- `@1001-digital/dapp-query-core` (workspace)
83+
- `@1001-digital/dapp-query-core`
8484

8585
## License
8686

packages/vue/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
22
"name": "@1001-digital/dapp-query-vue",
3-
"version": "1.0.1",
3+
"version": "1.1.0",
44
"description": "Vue composables for dapp-query.",
55
"type": "module",
66
"exports": {
77
".": {
8-
"development": "./src/index.ts",
98
"import": "./dist/index.js",
109
"types": "./dist/index.d.ts"
1110
}

0 commit comments

Comments
 (0)