Skip to content

Commit b2ed775

Browse files
Version Packages (#870)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent f734847 commit b2ed775

8 files changed

Lines changed: 77 additions & 72 deletions

File tree

.changeset/friendly-points-ring.md

Lines changed: 0 additions & 47 deletions
This file was deleted.

.changeset/light-dingos-stare.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

demos/nuxt-supabase-todolist/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"@nuxt/ui": "^4.0.0",
1111
"@nuxtjs/supabase": "2.0.1",
1212
"@powersync/kysely-driver": "^1.3.3",
13-
"@powersync/nuxt": "^0.0.1",
14-
"@powersync/vue": "^0.4.2",
13+
"@powersync/nuxt": "^0.0.2",
14+
"@powersync/vue": "^0.5.0",
1515
"@powersync/web": "^1.34.0",
1616
"@supabase/supabase-js": "2.75.0",
1717
"tailwindcss": "^4.1.18"

demos/vue-supabase-todolist/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"dependencies": {
1414
"@powersync/web": "^1.34.0",
15-
"@powersync/vue": "^0.4.2",
15+
"@powersync/vue": "^0.5.0",
1616
"@mdi/font": "7.4.47",
1717
"@supabase/supabase-js": "^2.39.7",
1818
"@vuelidate/core": "^2.0.3",

packages/nuxt/CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# @powersync/nuxt
22

3+
## 0.0.2
4+
5+
### Patch Changes
6+
7+
- 3807514: Expose Sync Streams comosable to use in Nuxt with auto-imports
8+
9+
Example:
10+
11+
```
12+
<script setup lang="ts">
13+
// useSyncStream is auto-imported in Nuxt
14+
const streamName = ref('my-stream');
15+
const { status } = useSyncStream(streamName, { parameters: { id: 'abc' } });
16+
</script>
17+
18+
<template>
19+
<div v-if="status?.hasSynced">Stream ready</div>
20+
<div v-else>Syncing...</div>
21+
</template>
22+
```
23+
24+
- Updated dependencies [fd7f387]
25+
- @powersync/vue@0.5.0
26+
327
## 0.0.1
428

529
### Patch Changes

packages/nuxt/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@powersync/nuxt",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"publishConfig": {
55
"registry": "https://registry.npmjs.org/",
66
"access": "public"

packages/vue/CHANGELOG.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,53 @@
11
# @powersync/vue
22

3+
## 0.5.0
4+
5+
### Minor Changes
6+
7+
- fd7f387: Add support for Sync Streams for Vue
8+
9+
Subscribing to a sync stream and using its status:
10+
11+
```
12+
<script setup>
13+
import { useSyncStream } from '@powersync/vue';
14+
15+
16+
const { status } = useSyncStream('my-stream', { parameters: { userId: 'user-123' } });
17+
18+
// both the name and parameters can be reactive
19+
const streamName = ref('my-stream')
20+
const streamOptions = ref({ parameters: { userId: 'user-123' } })
21+
22+
useSyncStream(streamName, streamOptions);
23+
</script>
24+
25+
<template>
26+
<div v-if="status">
27+
<span v-if="status.hasSynced">Stream synced</span>
28+
<span v-else>Syncing...</span>
29+
</div>
30+
</template>
31+
```
32+
33+
Running a query backed by sync streams:
34+
35+
```
36+
<script setup>
37+
import { useQuery } from '@powersync/vue';
38+
39+
// Subscribe to streams; query runs immediately
40+
const { data } = useQuery('SELECT * FROM lists', [], {
41+
streams: [{ name: 'lists-stream' }]
42+
});
43+
44+
// Or wait for the stream to sync before showing results
45+
const { data: lists, isLoading } = useQuery('SELECT * FROM lists', [], {
46+
streams: [{ name: 'lists-stream', waitForStream: true }]
47+
});
48+
</script>
49+
```
50+
351
## 0.4.2
452

553
### Patch Changes

packages/vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@powersync/vue",
3-
"version": "0.4.2",
3+
"version": "0.5.0",
44
"publishConfig": {
55
"registry": "https://registry.npmjs.org/",
66
"access": "public"

0 commit comments

Comments
 (0)