Skip to content

Commit a7fd65f

Browse files
committed
Merge branch 'main' into feat/full-text-search
2 parents 243f8e9 + fec4c90 commit a7fd65f

24 files changed

+101
-44
lines changed
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
# vue-supabase-todolist
22

3+
## 0.0.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [2a7b83f]
8+
- @powersync/vue@0.0.2
9+
310
## 0.0.1
411

512
### Patch Changes
613

714
- @journeyapps/powersync-sdk-web@0.4.1
8-
- @journeyapps/powersync-vue@0.0.1
15+
- @powersync/vue@0.0.1

demos/vue-supabase-todolist/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This package is currently in an alpha release.
66

77
## Overview
88

9-
Demo app demonstrating use of the [PowerSync Vue](https://www.npmjs.com/package/@journeyapps/powersync-vue) together with Supabase.
9+
Demo app demonstrating use of the [PowerSync Vue](https://www.npmjs.com/package/@powersync/vue) together with Supabase.
1010

1111
A step-by-step guide through the Supabase<>PowerSync integration is available [here](https://docs.powersync.com/integration-guides/supabase).
1212

@@ -59,6 +59,6 @@ pnpm build
5959

6060
## Learn More
6161

62-
Check out [PowerSync Vue on GitHub](https://github.com/powersync-ja/powersync-js/tree/main/packages/powersync-vue) - your feedback and contributions are welcome!
62+
Check out [PowerSync Vue on GitHub](https://github.com/powersync-ja/powersync-js/tree/main/packages/vue) - your feedback and contributions are welcome!
6363

6464
To learn more about PowerSync, see the [PowerSync docs](https://docs.powersync.com).

demos/vue-supabase-todolist/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-supabase-todolist",
33
"private": true,
4-
"version": "0.0.1",
4+
"version": "0.0.2",
55
"type": "module",
66
"scripts": {
77
"dev": "vue-tsc --noEmit --watch & vite dev",
@@ -11,7 +11,7 @@
1111
},
1212
"dependencies": {
1313
"@journeyapps/powersync-sdk-web": "workspace:*",
14-
"@journeyapps/powersync-vue": "workspace:*",
14+
"@powersync/vue": "workspace:*",
1515
"@mdi/font": "7.4.47",
1616
"@supabase/supabase-js": "^2.39.7",
1717
"@vuelidate/core": "^2.0.3",
@@ -30,7 +30,9 @@
3030
"unplugin-fonts": "^1.1.1",
3131
"unplugin-vue-components": "^0.26.0",
3232
"vite": "^5.2.0",
33+
"vite-plugin-top-level-await": "^1.4.1",
3334
"vite-plugin-vuetify": "^2.0.3",
35+
"vite-plugin-wasm": "^3.3.0",
3436
"vue-tsc": "^2.0.6"
3537
}
3638
}

demos/vue-supabase-todolist/src/components/LoadingMessage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</template>
1515

1616
<script setup lang="ts">
17-
import { usePowerSyncStatus } from '@journeyapps/powersync-vue';
17+
import { usePowerSyncStatus } from '@powersync/vue';
1818
import { ref } from 'vue';
1919
import { watchEffect } from 'vue';
2020
import { computed } from 'vue';

demos/vue-supabase-todolist/src/components/widgets/TodoListsWidget.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<script setup lang="ts">
2020
import { LISTS_TABLE, ListRecord, TODOS_TABLE } from '@/library/powersync/AppSchema';
2121
import { TODO_LISTS_ROUTE } from '@/plugins/router'; // Adjust this import according to your project's structure
22-
import { usePowerSync, usePowerSyncWatchedQuery } from '@journeyapps/powersync-vue'; // Adjust according to your actual implementation
22+
import { usePowerSync, usePowerSyncWatchedQuery } from '@powersync/vue'; // Adjust according to your actual implementation
2323
import { useRouter } from 'vue-router';
2424
import ListItemWidget from './ListItemWidget.vue'; // Ensure this path is correct
2525
import LoadingMessage from '../LoadingMessage.vue';

demos/vue-supabase-todolist/src/plugins/powerSync.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { AppSchema } from '@/library/powersync/AppSchema';
22
import { WASQLitePowerSyncDatabaseOpenFactory } from '@journeyapps/powersync-sdk-web';
3-
import { createPowerSyncPlugin } from '@journeyapps/powersync-vue';
3+
import { createPowerSyncPlugin } from '@powersync/vue';
44

55
export const powerSync = new WASQLitePowerSyncDatabaseOpenFactory({
66
dbFilename: 'example-vue-todo.db',

demos/vue-supabase-todolist/src/views/SqlConsole.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<script setup lang="ts">
2323
import { ref, computed } from 'vue';
24-
import { usePowerSyncWatchedQuery } from '@journeyapps/powersync-vue';
24+
import { usePowerSyncWatchedQuery } from '@powersync/vue';
2525
const query = ref('SELECT * FROM lists');
2626
const inputText = ref(query.value);
2727
const executeQuery = () => {

demos/vue-supabase-todolist/src/views/TodoLists.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import TodoListsWidget from '@/components/widgets/TodoListsWidget.vue';
3232
import { LISTS_TABLE } from '@/library/powersync/AppSchema';
3333
import { supabase } from '@/plugins/supabase';
34-
import { usePowerSync } from '@journeyapps/powersync-vue';
34+
import { usePowerSync } from '@powersync/vue';
3535
import { ref } from 'vue';
3636
3737
const powerSync = usePowerSync();

demos/vue-supabase-todolist/src/views/TodoListsEdit.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import TodoItemWidget from '@/components/widgets/TodoItemWidget.vue';
4848
import { LISTS_TABLE, TODOS_TABLE, TodoRecord } from '@/library/powersync/AppSchema';
4949
import { pageSubtitle } from '@/main';
5050
import { supabase } from '@/plugins/supabase';
51-
import { usePowerSync, usePowerSyncWatchedQuery } from '@journeyapps/powersync-vue';
51+
import { usePowerSync, usePowerSyncWatchedQuery } from '@powersync/vue';
5252
import { watch } from 'vue';
5353
import { onUnmounted } from 'vue';
5454
import { ref } from 'vue';
@@ -124,7 +124,7 @@ const createNewTodo = async () => {
124124
await powerSync.value.execute(
125125
`INSERT INTO
126126
${TODOS_TABLE}
127-
(id, created_at, created_by, description, list_id)
127+
(id, created_at, created_by, description, list_id)
128128
VALUES
129129
(uuid(), datetime(), ?, ?, ?)`,
130130
[userID, todoDescription.value, listID!]

demos/vue-supabase-todolist/src/views/layouts/Layout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import { supabase } from '@/plugins/supabase';
4141
import { computed, ref } from 'vue';
4242
import { useRoute, useRouter } from 'vue-router';
4343
import { pageSubtitle } from '@/main';
44-
import { usePowerSyncStatus } from '@journeyapps/powersync-vue';
44+
import { usePowerSyncStatus } from '@powersync/vue';
4545
4646
const openDrawer = ref(false);
4747
const { status: syncStatus } = usePowerSyncStatus();

0 commit comments

Comments
 (0)