Skip to content

Commit ffe37cf

Browse files
DominicGBauerDominicGBauerbenitav
authored
chore: rename packages (#138)
Co-authored-by: DominicGBauer <dominic@nomanini.com> Co-authored-by: benitav <benita@journeyapps.com>
1 parent b902077 commit ffe37cf

File tree

209 files changed

+3770
-2234
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

209 files changed

+3770
-2234
lines changed

.changeset/chatty-news-appear.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
"vue-supabase-todolist": patch
2+
'vue-supabase-todolist': patch
33
---
44

55
Added PWA support.

.changeset/quiet-peas-trade.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@powersync/react-native": patch
3+
"@powersync/attachments": patch
4+
"@powersync/common": patch
5+
"@powersync/react": patch
6+
"@powersync/web": patch
7+
---
8+
9+
Update package names from @journey-apps/powersync- to @powersync/

.changeset/rare-pumpkins-study.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
"@journeyapps/powersync-sdk-common": patch
2+
'@journeyapps/powersync-sdk-common': patch
33
---
44

55
Fixed default onError callback for watch() and onChange() that used an unbounded member.

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,27 @@ _Bad connectivity is everywhere, and we're tired of it. PowerSync is on a missio
1212

1313
## Monorepo Structure: Packages
1414

15-
- [packages/powersync-sdk-react-native](./packages/powersync-sdk-react-native/README.md)
15+
- [packages/react-native](./packages/react-native/README.md)
1616

17-
- React Native SDK implementation (extension of `packages/powersync-sdk-common`)
17+
- React Native SDK implementation (extension of `packages/common`)
1818

19-
- [packages/powersync-sdk-web](./packages/powersync-sdk-web/README.md)
19+
- [packages/web](./packages/web/README.md)
2020

21-
- JS Web SDK implementation (extension of `packages/powersync-sdk-common`)
21+
- JS Web SDK implementation (extension of `packages/common`)
2222

23-
- [packages/powersync-react](./packages/powersync-react/README.md)
23+
- [packages/react](./packages/react/README.md)
2424

2525
- React integration for PowerSync.
2626

27-
- [packages/powersync-attachments](./packages/powersync-attachments/README.md)
27+
- [packages/attachments](./packages/attachments/README.md)
2828

2929
- Attachments helper package for React Native and JavaScript/TypeScript projects.
3030

3131
- [packages/kysely-driver](./packages/kysely-driver/README.md)
3232

3333
- Kysely integration (ORM) for React Native and JavaScript/TypeScript projects.
3434

35-
- [packages/powersync-sdk-common](./packages/powersync-sdk-common/README.md)
35+
- [packages/common](./packages/common/README.md)
3636
- Shared package: TypeScript implementation of a PowerSync database connector and streaming sync bucket implementation.
3737

3838
## Demo Apps / Example Projects

demos/angular-supabase-todolist/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This demo is currently in an alpha release.
66

77
## Overview
88

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

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

demos/angular-supabase-todolist/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "PowerSync Angular Demo",
2+
"name": "angular-supabase-todolist",
33
"version": "0.0.8",
44
"scripts": {
55
"ng": "ng",
@@ -20,7 +20,7 @@
2020
"@angular/platform-browser-dynamic": "^17.0.4",
2121
"@angular/router": "^17.0.4",
2222
"@angular/service-worker": "^17.0.4",
23-
"@journeyapps/powersync-sdk-web": "workspace:*",
23+
"@powersync/web": "workspace:*",
2424
"@journeyapps/wa-sqlite": "^0.0.2",
2525
"@supabase/supabase-js": "^2.38.5",
2626
"rxjs": "~7.8.1",

demos/angular-supabase-todolist/src/app/powersync.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
Schema,
1010
Table,
1111
WASQLitePowerSyncDatabaseOpenFactory
12-
} from '@journeyapps/powersync-sdk-web';
12+
} from '@powersync/web';
1313

1414
export interface ListRecord {
1515
id: string;

demos/angular-supabase-todolist/src/app/supabase.service.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@ import {
88
type User
99
} from '@supabase/supabase-js';
1010
import { environment } from '../../environment';
11-
import {
12-
type AbstractPowerSyncDatabase,
13-
type CrudEntry,
14-
UpdateType,
15-
PowerSyncBackendConnector
16-
} from '@journeyapps/powersync-sdk-web';
11+
import { type AbstractPowerSyncDatabase, type CrudEntry, UpdateType, PowerSyncBackendConnector } from '@powersync/web';
1712

1813
/// Postgres Response codes that we cannot recover from by retrying.
1914
const FATAL_RESPONSE_CODES = [
@@ -118,7 +113,7 @@ export class SupabaseService implements PowerSyncBackendConnector {
118113
try {
119114
// Note: If transactional consistency is important, use database functions
120115
// or edge functions to process the entire transaction in a single call.
121-
for (let op of transaction.crud) {
116+
for (const op of transaction.crud) {
122117
lastOp = op;
123118
const table = this.supabase.from(op.table);
124119
let result: any;

demos/django-react-native-todolist/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Overview
44

5-
Demo app demonstrating use of the [PowerSync SDK for React Native](https://www.npmjs.com/package/@journeyapps/powersync-sdk-react-native) together with a Django backend.
5+
Demo app demonstrating use of the [PowerSync SDK for React Native](https://www.npmjs.com/package/@powersync/react-native) together with a Django backend.
66
The sample backend that you can run alongside this demo can be found here: [PowerSync Django Backend: Todo List Demo](https://github.com/powersync-ja/powersync-django-backend-todolist-demo)
77

88
## Running the App
@@ -27,7 +27,7 @@ pnpm android
2727

2828
## Set up Django Backend
2929

30-
This demo requires that you have the [PowerSync Django Backend: Todo List Demo](https://github.com/powersync-ja/powersync-django-backend-todolist-demo) running on your machine.
30+
This demo requires that you have the [PowerSync Django Backend: Todo List Demo](https://github.com/powersync-ja/powersync-django-backend-todolist-demo) running on your machine.
3131
Follow the guide in the README of the PowerSync Django Backend to set it up.
3232

3333
## Set up PowerSync Instance

demos/django-react-native-todolist/app/views/console.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import _ from 'lodash';
22
import React from 'react';
33
import { Table, Row } from 'react-native-table-component';
4-
import { QueryResult } from '@journeyapps/powersync-sdk-react-native';
4+
import { QueryResult } from '@powersync/react-native';
55
import { useSystem } from '../../library/stores/system';
66
import { ScrollView, TextInput } from 'react-native-gesture-handler';
77

0 commit comments

Comments
 (0)