Skip to content

Commit 1b27ccf

Browse files
Merge pull request #15 from journeyapps/chore/update-versions
[Chore] Update versions
2 parents 9230b80 + e281113 commit 1b27ccf

File tree

16 files changed

+88
-1578
lines changed

16 files changed

+88
-1578
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
"access": "restricted",
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
10-
"ignore": ["powersync-example"]
10+
"ignore": []
1111
}

.changeset/pre.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
{
2-
"mode": "pre",
2+
"mode": "exit",
33
"tag": "alpha",
44
"initialVersions": {
55
"powersync-example": "1.0.0",
6-
"@journeyapps/react-native-quick-sqlite": "0.0.1-alpha.0",
76
"@journeyapps/powersync-react": "0.0.1-alpha.0",
87
"@journeyapps/powersync-sdk-common": "0.0.1-alpha.0",
98
"@journeyapps/powersync-sdk-react-native": "0.0.1-alpha.1"
109
},
11-
"changesets": [
12-
"serious-bobcats-tie"
13-
]
10+
"changesets": ["serious-bobcats-tie"]
1411
}

.changeset/strong-waves-teach.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@journeyapps/powersync-react': patch
3+
'@journeyapps/powersync-sdk-common': patch
4+
'@journeyapps/powersync-sdk-react-native': patch
5+
---
6+
7+
Bump version to exit prerelease mode. Update SDK readme with known issues.

.github/workflows/build-packages.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313
with:
14-
submodules: true
1514
persist-credentials: false
1615

1716
- name: Setup NodeJS

.github/workflows/dev-packages.yaml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Action to publish packages under the `next` tag for testing
2-
# Packages are versioned as `0.0.0-dev.{short-sha}`
2+
# Packages are versioned as `0.0.0-{tag}-DATETIMESTAMP`
33
name: Packages Deploy
44

55
on: workflow_dispatch
@@ -11,7 +11,6 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313
with:
14-
submodules: true
1514
persist-credentials: false
1615

1716
- name: Setup NodeJS
@@ -31,11 +30,7 @@ jobs:
3130
- name: Build
3231
run: yarn build:packages
3332

34-
- name: Development Version
35-
run: |
36-
export SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`
37-
export VERSION="0.0.0-dev.$SHORT_SHA"
38-
lerna version $VERSION --no-private --exact --force-publish --no-push --no-git-tag-version --yes
39-
4033
- name: Publish
41-
run: lerna exec "npm publish --tag=next --no-git-checks"
34+
run: |
35+
yarn changeset version --no-git-tag --snapshot dev
36+
yarn changeset publish --tag dev

.github/workflows/release.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ jobs:
1414
steps:
1515
- name: Checkout Repo
1616
uses: actions/checkout@v3
17-
with:
18-
# Needed for build with frozen lockfile
19-
submodules: true
2017

2118
- name: Setup Node.js 18
2219
uses: actions/setup-node@v3

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
[submodule "apps/supabase-todolist"]
22
path = apps/supabase-todolist
33
url = [email protected]:journeyapps/powersync-supabase-react-native-todolist-demo.git
4-
[submodule "packages/journeyapps-react-native-quick-sqlite"]
5-
path = packages/journeyapps-react-native-quick-sqlite
6-
url = [email protected]:journeyapps/react-native-quick-sqlite.git

README.md

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,15 @@ Monorepo for all things React Native and PowerSync.
44

55
## Monorepo Structure
66

7-
- `apps/supabase-todolist`
7+
- [apps/supabase-todolist](./apps/supabase-todolist/README.md)
88
* An Expo React native app using Supabase.
99

10-
- `packages/powersync-sdk-common`
10+
- [packages/powersync-sdk-common](./packages/powersync-sdk-common/README.md)
1111
* A Typescript implementation of a PowerSync database connector and streaming sync bucket implementation.
1212

13-
- `packages/powersync-sdk-react-native`
13+
- [packages/powersync-sdk-react-native](./packages/powersync-sdk-react-native/README.md)
1414
* An extension of `packages/powersync-sdk-common` which provides React Native specific implementations of abstracted features.
1515

16-
- `packages/journeyapps-react-native-quick-sqlite`
17-
* A Git submodule for a fork of `react-native-quick-sqlite` this module now automatically loads the shared PowerSync Rust SQLite extension.
18-
1916
# Development
2017

2118
## Git Submodules
@@ -42,7 +39,7 @@ yarn build:packages
4239

4340

4441
### Development Packages
45-
Development packages can be published by manually triggering the `dev-packages` workflow. Development packages are versioned as `0.0.0-dev.{short-sha}`.
42+
Development packages can be published by manually triggering the `dev-packages` workflow. Development packages are versioned as `0.0.0-{tag}-DATETIMESTAMP`.
4643

4744
### Production Packages
4845
Pull requests should contain Changesets for changed packages.
@@ -52,10 +49,25 @@ Add changesets with
5249
yarn changeset add
5350
```
5451

55-
Submodule production packages should be versioned, tagged and published from their own repository. Any dependencies should be updated here (if applicable) before merging pull requests.
52+
Merging a PR with Changesets will automatically create a PR with version bumps. That PR will be merged when releasing.
53+
54+
## React Native Quick SQLite Development
5655

56+
Testing live development changes to `@journeyapps/react-native-quick-sqlite` will not with with standard `yarn link` commands. Metro does not work well with symlinks https://github.com/facebook/metro/issues/286.
57+
58+
The process of releasing development packages for `@journeyapps/react-native-quick-sqlite` for each change can be tedious and slow. A faster (and hackier) method is to use [mtsl](https://www.npmjs.com/package/mtsl) which will watch and copy the package into this workspace's `node_modules`.
59+
60+
```bash
61+
npm install -g mtsl
62+
```
63+
```bash
64+
mtsl add -s "[source path to your react-native-quick-sqlite repo folder]" -d "[this workspaces root node_modules folder]"/@journeyapps/react-native-quick-sqlite
65+
```
66+
67+
```bash
68+
mtsl start "[the id returned from step above]"
69+
```
5770

58-
Merging a PR with Changesets will automatically create a PR with version bumps. That PR will be merged when releasing.
5971

6072
## Testing Supabase example app
6173

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"private": true,
3-
"name": "monorepo",
3+
"name": "powersync-react-native",
44
"version": "1.0.0",
55
"license": "Apache-2.0",
66
"scripts": {
Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)