Skip to content

Commit 23a2123

Browse files
committed
Merge remote-tracking branch 'origin/main' into profiling-logs
2 parents 6cb33e9 + 3e4a25c commit 23a2123

File tree

28 files changed

+590
-316
lines changed

28 files changed

+590
-316
lines changed

.changeset/breezy-carrots-fold.md

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

.changeset/fifty-cats-occur.md

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

.changeset/nasty-pugs-brake.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@powersync/tanstack-react-query': patch
3+
'@powersync/op-sqlite': patch
4+
'@powersync/adapter-sql-js': patch
5+
'@powersync/drizzle-driver': patch
6+
'@powersync/kysely-driver': patch
7+
'@powersync/react-native': patch
8+
'@powersync/diagnostics-app': patch
9+
'@powersync/attachments': patch
10+
'@powersync/capacitor': patch
11+
'@powersync/common': patch
12+
'@powersync/react': patch
13+
'@powersync/node': patch
14+
'@powersync/vue': patch
15+
'@powersync/web': patch
16+
---
17+
18+
Don't minify releases, enable source maps.

demos/example-electron-node/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ To see it in action:
2121
1. Make sure to run `pnpm install` and `pnpm build:packages` in the root directory of this repo.
2222
2. Copy `.env.local.template` to `.env.local`, and complete the environment variables. You can generate a [temporary development token](https://docs.powersync.com/usage/installation/authentication-setup/development-tokens), or leave blank to test with local-only data.
2323
The example works with the schema from the [PowerSync + Supabase tutorial](https://docs.powersync.com/integration-guides/supabase-+-powersync#supabase-powersync).
24-
3. `cd` into this directory. In this mono-repo, you'll have to run `./node_modules/.bin/electron-rebuild` once to make sure `@powersync/better-sqlite3` was compiled with Electron's toolchain.
24+
3. `cd` into this directory. In this mono-repo, you'll have to run `./node_modules/.bin/electron-rebuild` once to make sure `better-sqlite3` was compiled with Electron's toolchain.
25+
Sometimes that doesn't work, you can also go to `node_modules/better-sqlite3` and manually run `HOME=~/.electron-gyp node-gyp rebuild --target=37.0.0 --arch=arm64 --dist-url=https://electronjs.org/headers` (or `--arch=x64` depending on your machine).
2526
4. Finally, run `pnpm start`.
2627

2728
Apart from the build setup, this example is purposefully kept simple.

demos/react-native-web-supabase-todolist/library/powersync/system.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import '@azure/core-asynciterator-polyfill';
22

33
import React from 'react';
4-
import { LogLevel, PowerSyncDatabase as PowerSyncDatabaseNative } from '@powersync/react-native';
4+
import { PowerSyncDatabase as PowerSyncDatabaseNative } from '@powersync/react-native';
55
import { PowerSyncDatabase as PowerSyncDatabaseWeb, WASQLiteOpenFactory } from '@powersync/web';
6-
import { AbstractPowerSyncDatabase, createBaseLogger } from '@powersync/common';
6+
import { LogLevel, AbstractPowerSyncDatabase, createBaseLogger } from '@powersync/common';
77
import { SupabaseStorageAdapter } from '../storage/SupabaseStorageAdapter';
88
import { type AttachmentRecord } from '@powersync/attachments';
99
import { KVStorage } from '../storage/KVStorage';

packages/adapter-sql-js/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"license": "Apache-2.0",
1515
"files": [
1616
"lib",
17-
"dist"
17+
"dist",
18+
"src"
1819
],
1920
"repository": {
2021
"type": "git",
@@ -26,13 +27,13 @@
2627
"homepage": "https://docs.powersync.com",
2728
"scripts": {
2829
"build": "tsc -b && rollup -c rollup.config.mjs",
29-
"build:prod": "tsc -b --sourceMap false && rollup -c rollup.config.mjs --sourceMap false",
30+
"build:prod": "tsc -b && rollup -c rollup.config.mjs",
3031
"clean": "rm -rf lib dist tsconfig.tsbuildinfo",
3132
"test": "vitest"
3233
},
3334
"dependencies": {
3435
"@powersync/common": "workspace:^",
35-
"async-mutex": "^0.4.0"
36+
"async-mutex": "^0.5.0"
3637
},
3738
"devDependencies": {
3839
"@powersync/sql-js": "0.0.5",

packages/adapter-sql-js/rollup.config.mjs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,13 @@ const __dirname = path.dirname(__filename);
1010
/**
1111
* @returns {import('rollup').RollupOptions}
1212
*/
13-
export default (commandLineArgs) => {
14-
const sourceMap = (commandLineArgs.sourceMap || 'true') == 'true';
15-
16-
// Clears rollup CLI warning https://github.com/rollup/rollup/issues/2694
17-
delete commandLineArgs.sourceMap;
18-
13+
export default () => {
1914
return {
2015
input: 'lib/index.js',
2116
output: {
2217
file: 'dist/bundle.mjs',
2318
format: 'esm',
24-
sourcemap: sourceMap
19+
sourcemap: true
2520
},
2621
plugins: [
2722
nodeResolve({ preferBuiltins: false, browser: true }),
@@ -36,6 +31,6 @@ export default (commandLineArgs) => {
3631
]
3732
})
3833
],
39-
external: ['@powersync/common']
34+
external: ['@powersync/common', 'async-mutex']
4035
};
4136
};

packages/attachments/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@
3434
},
3535
"files": [
3636
"lib",
37-
"dist"
37+
"dist",
38+
"src"
3839
],
3940
"scripts": {
4041
"build": "tsc -b && rollup --config",
41-
"build:prod": "tsc -b --sourceMap false && rollup --config --sourceMap=false",
42+
"build:prod": "tsc -b --sourceMap false && rollup",
4243
"clean": "rm -rf lib dist tsconfig.tsbuildinfo",
4344
"watch": "tsc -b -w",
4445
"test": "pnpm build && vitest",

packages/attachments/rollup.config.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,14 @@ import typescript from '@rollup/plugin-typescript';
44
import { dts } from 'rollup-plugin-dts';
55

66
/** @type {import('rollup').RollupOptions} */
7-
export default (commandLineArgs) => {
8-
const sourceMap = (commandLineArgs.sourceMap || 'true') == 'true';
9-
10-
// Clears rollup CLI warning https://github.com/rollup/rollup/issues/2694
11-
delete commandLineArgs.sourceMap;
12-
7+
export default () => {
138
return [
149
{
1510
input: 'src/index.ts',
1611
output: {
1712
format: 'cjs',
1813
file: 'dist/index.cjs',
19-
sourcemap: sourceMap,
14+
sourcemap: true,
2015
exports: 'named'
2116
},
2217
plugins: [
@@ -25,7 +20,7 @@ export default (commandLineArgs) => {
2520
typescript({
2621
tsconfig: './tsconfig.json',
2722
outDir: 'dist',
28-
sourceMap
23+
sourceMap: true
2924
})
3025
],
3126
external: ['@powersync/common']

packages/capacitor/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @powersync/capacitor
22

3+
## 0.1.1
4+
5+
### Patch Changes
6+
7+
- 58cf447: [Android] Fixed missing CMakeLists file error.
8+
- fe71006: Updated limitations in README
9+
310
## 0.1.0
411

512
### Minor Changes

0 commit comments

Comments
 (0)