Skip to content

Commit a220f80

Browse files
DominicGBauerDominicGBauer
and
DominicGBauer
authored
chore: rename package (#9)
Co-authored-by: DominicGBauer <[email protected]>
1 parent 4ef8285 commit a220f80

File tree

6 files changed

+62
-59
lines changed

6 files changed

+62
-59
lines changed

.changeset/odd-timers-hunt.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@powersync/wa-sqlite": patch
3+
---
4+
5+
Rename package to @powersync/wa-sqlite

CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# @journeyapps/wa-sqlite
1+
# @powersync/wa-sqlite
2+
3+
## For the following previous versions refer to `@journeyapps/wa-sqlite`
24

35
## 0.2.0
46

README.md

+7-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![wa-sqlite CI](https://github.com/rhashimoto/wa-sqlite/actions/workflows/ci.yml/badge.svg?branch=breaking-changes)](https://github.com/rhashimoto/wa-sqlite/actions/workflows/ci.yml?branch=breaking-changes)
1+
[![wa-sqlite CI](https://github.com/powersync-ja/wa-sqlite/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/powersync-ja/wa-sqlite/actions/workflows/ci.yml?branch=master)
22

33
# Beta
44
This package is currently in a beta release.
@@ -7,13 +7,13 @@ This package is currently in a beta release.
77
# wa-sqlite
88
This is a WebAssembly build of SQLite with experimental support for writing SQLite virtual filesystems and virtual table modules completely in Javascript. This allows alternative browser storage options such as IndexedDB and File System Access. Applications can opt to use either a synchronous or asynchronous (using Asyncify) SQLite library build (an asynchronous build is required for asynchronous extensions).
99

10-
[IndexedDB](https://github.com/rhashimoto/wa-sqlite/blob/master/src/examples/IDBMinimalVFS.js) and [Origin Private File System](https://github.com/rhashimoto/wa-sqlite/blob/master/src/examples/OriginPrivateFileSystemVFS.js) virtual file systems and a [virtual table module that accesses Javascript arrays](https://github.com/rhashimoto/wa-sqlite/blob/master/src/examples/ArrayModule.js) are among the examples provided as proof of concept.
10+
[IndexedDB](https://github.com/powersync-ja/wa-sqlite/blob/master/src/examples/IDBMinimalVFS.js) and [Origin Private File System](https://github.com/powersync-ja/wa-sqlite/blob/master/src/examples/OriginPrivateFileSystemVFS.js) virtual file systems and a [virtual table module that accesses Javascript arrays](https://github.com/powersync-ja/wa-sqlite/blob/master/src/examples/ArrayModule.js) are among the examples provided as proof of concept.
1111

1212
[Try the demo](https://rhashimoto.github.io/wa-sqlite/demo/) or run [benchmarks](https://rhashimoto.github.io/wa-sqlite/demo/benchmarks.html) with a modern desktop web browser. More information is available in the [FAQ](https://github.com/rhashimoto/wa-sqlite/issues?q=is%3Aissue+label%3Afaq+), [discussion forums](https://github.com/rhashimoto/wa-sqlite/discussions), and [API reference](https://rhashimoto.github.io/wa-sqlite/docs/).
1313

1414
## Build
1515
The primary motivation for this project is to enable additions to SQLite with only Javascript. Most developers should be able to use the pre-built artifacts in
16-
[./dist](https://github.com/rhashimoto/wa-sqlite/tree/master/dist).
16+
[./dist](https://github.com/powersync-ja/wa-sqlite/tree/master/dist).
1717
Note that earlier versions of the project only provided pre-built artifacts in the
1818
"buildless" branch; that branch will no longer be maintained.
1919

@@ -33,9 +33,9 @@ Here are the build steps:
3333

3434
The default build produces ES6 modules + WASM, [synchronous and asynchronous](https://github.com/rhashimoto/wa-sqlite/issues/7) (using Asyncify) in `dist/`.
3535

36-
## JouneyApps instructions
36+
## PowerSync instructions
3737

38-
Note as per above that this is known to compile under Debian.
38+
Note as per above that this is known to compile under Debian.
3939

4040
MacOS initially complained about OpenSSL config. Compiling on MacOS may be possible with additional config, but this is currently unknown.
4141

@@ -45,7 +45,6 @@ Development has been done using VSCode's [development container](https://code.vi
4545
git clone [this repo]
4646
```
4747

48-
4948
```bash
5049
git submodule init
5150
```
@@ -56,15 +55,12 @@ git submodule update --init --recursive
5655

5756
```bash
5857
yarn install
59-
6058
```
6159

62-
63-
```bash
60+
```bash
6461
make -B
6562
```
6663

67-
6864
## API
6965
Javascript wrappers for core SQLITE C API functions (and some others) are provided. Some convenience functions are also provided to reduce boilerplate. Here's sample code to load the library and call the API:
7066

@@ -110,4 +106,4 @@ For convenience, if any text region is selected in the editor, only that region
110106
## License
111107
MIT License as of February 10, 2023, changed by generous sponsors
112108
[Fleet Device Management](https://fleetdm.com/) and [Reflect](https://reflect.app/).
113-
Existing licensees may continue under the GPLv3 or switch to the new license.
109+
Existing licensees may continue under the GPLv3 or switch to the new license.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@journeyapps/wa-sqlite",
2+
"name": "@powersync/wa-sqlite",
33
"version": "0.2.0",
44
"publishConfig": {
55
"access": "public"

src/types/index.d.ts

+20-20
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ declare interface SQLiteAPI {
670670

671671
/**
672672
* Registers table row on change callback
673-
*
673+
*
674674
*/
675675
register_table_onchange_hook(db: number, callback: (opType: number, tableName: string, rowId: number) => void): void;
676676

@@ -1023,7 +1023,7 @@ declare interface SQLiteAPI {
10231023
}
10241024

10251025
/** @ignore */
1026-
declare module '@journeyapps/wa-sqlite/src/sqlite-constants.js' {
1026+
declare module '@powersync/wa-sqlite/src/sqlite-constants.js' {
10271027
export const SQLITE_OK: 0;
10281028
export const SQLITE_ERROR: 1;
10291029
export const SQLITE_INTERNAL: 2;
@@ -1256,8 +1256,8 @@ declare module '@journeyapps/wa-sqlite/src/sqlite-constants.js' {
12561256
}
12571257

12581258
/** @ignore */
1259-
declare module '@journeyapps/wa-sqlite' {
1260-
export * from '@journeyapps/wa-sqlite/src/sqlite-constants.js';
1259+
declare module '@powersync/wa-sqlite' {
1260+
export * from '@powersync/wa-sqlite/src/sqlite-constants.js';
12611261

12621262
/**
12631263
* Builds a Javascript API from the Emscripten module. This API is still
@@ -1275,20 +1275,20 @@ declare module '@journeyapps/wa-sqlite' {
12751275
}
12761276

12771277
/** @ignore */
1278-
declare module '@journeyapps/wa-sqlite/dist/wa-sqlite.mjs' {
1278+
declare module '@powersync/wa-sqlite/dist/wa-sqlite.mjs' {
12791279
function ModuleFactory(config?: object): Promise<any>;
12801280
export = ModuleFactory;
12811281
}
12821282

12831283
/** @ignore */
1284-
declare module '@journeyapps/wa-sqlite/dist/wa-sqlite-async.mjs' {
1284+
declare module '@powersync/wa-sqlite/dist/wa-sqlite-async.mjs' {
12851285
function ModuleFactory(config?: object): Promise<any>;
12861286
export = ModuleFactory;
12871287
}
12881288

12891289
/** @ignore */
1290-
declare module '@journeyapps/wa-sqlite/src/VFS.js' {
1291-
export * from '@journeyapps/wa-sqlite/src/sqlite-constants.js';
1290+
declare module '@powersync/wa-sqlite/src/VFS.js' {
1291+
export * from '@powersync/wa-sqlite/src/sqlite-constants.js';
12921292

12931293
export class Base {
12941294
mxPathName: number;
@@ -1533,7 +1533,7 @@ declare module 'wa-sqlite/src/examples/ArrayModule.js' {
15331533
}
15341534

15351535
/** @ignore */
1536-
declare module '@journeyapps/wa-sqlite/src/examples/ArrayAsyncModule.js' {
1536+
declare module '@powersync/wa-sqlite/src/examples/ArrayAsyncModule.js' {
15371537
import { ArrayModule } from 'wa-sqlite/src/examples/ArrayModule.js';
15381538
export class ArrayAsyncModule extends ArrayModule {
15391539
/**
@@ -1545,8 +1545,8 @@ declare module '@journeyapps/wa-sqlite/src/examples/ArrayAsyncModule.js' {
15451545
}
15461546

15471547
/** @ignore */
1548-
declare module '@journeyapps/wa-sqlite/src/examples/AccessHandlePoolVFS.js' {
1549-
import * as VFS from '@journeyapps/wa-sqlite/src/VFS.js';
1548+
declare module '@powersync/wa-sqlite/src/examples/AccessHandlePoolVFS.js' {
1549+
import * as VFS from '@powersync/wa-sqlite/src/VFS.js';
15501550
export class AccessHandlePoolVFS extends VFS.Base {
15511551
/**
15521552
* @param {string} directoryPath Flat directory where all OPFS files are stored
@@ -1556,8 +1556,8 @@ declare module '@journeyapps/wa-sqlite/src/examples/AccessHandlePoolVFS.js' {
15561556
}
15571557

15581558
/** @ignore */
1559-
declare module '@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js' {
1560-
import * as VFS from '@journeyapps/wa-sqlite/src/VFS.js';
1559+
declare module '@powersync/wa-sqlite/src/examples/IDBBatchAtomicVFS.js' {
1560+
import * as VFS from '@powersync/wa-sqlite/src/VFS.js';
15611561
export class IDBBatchAtomicVFS extends VFS.Base {
15621562
/**
15631563
* @param {string} idbDatabaseName IndexDB DB name
@@ -1574,22 +1574,22 @@ declare module '@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js' {
15741574

15751575
/** @ignore */
15761576
declare module '@journeyapp/wa-sqlite/src/examples/IDBVersionedVFS.js' {
1577-
import {IDBBatchAtomicVFS} from '@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js';
1577+
import {IDBBatchAtomicVFS} from '@powersync/wa-sqlite/src/examples/IDBBatchAtomicVFS.js';
15781578
export class IDBVersionedVFS extends IDBBatchAtomicVFS {}
15791579
}
15801580

15811581

15821582
/** @ignore */
15831583
declare module '@journeyapp/wa-sqlite/src/examples/OriginPrivatefileSystemVFS.js' {
1584-
import * as VFS from '@journeyapps/wa-sqlite/src/VFS.js';
1584+
import * as VFS from '@powersync/wa-sqlite/src/VFS.js';
15851585
export class OriginPrivateFileSystemVFS extends VFS.Base {
15861586
close(): Promise<void>;
15871587
}
15881588
}
15891589

15901590
/** @ignore */
15911591
declare module 'wa-sqlite/src/examples/IDBMinimalVFS.js' {
1592-
import * as VFS from '@journeyapps/wa-sqlite/src/VFS.js';
1592+
import * as VFS from '@powersync/wa-sqlite/src/VFS.js';
15931593
export class IDBMinimalVFS extends VFS.Base {
15941594
/**
15951595
* @param {string} idbDatabaseName IndexDB DB name
@@ -1603,8 +1603,8 @@ declare module 'wa-sqlite/src/examples/IDBMinimalVFS.js' {
16031603
}
16041604

16051605
/** @ignore */
1606-
declare module '@journeyapps/wa-sqlite/src/examples/IndexedDbVFS.js' {
1607-
import * as VFS from '@journeyapps/wa-sqlite/src/VFS.js';
1606+
declare module '@powersync/wa-sqlite/src/examples/IndexedDbVFS.js' {
1607+
import * as VFS from '@powersync/wa-sqlite/src/VFS.js';
16081608
export class IndexedDbVFS extends VFS.Base {
16091609
/**
16101610
* @param {string} idbName Name of IndexedDB database.
@@ -1657,7 +1657,7 @@ declare module '@journeyapps/wa-sqlite/src/examples/IndexedDbVFS.js' {
16571657

16581658
/** @ignore */
16591659
declare module 'wa-sqlite/src/examples/MemoryVFS.js' {
1660-
import * as VFS from '@journeyapps/wa-sqlite/src/VFS.js';
1660+
import * as VFS from '@powersync/wa-sqlite/src/VFS.js';
16611661
export class MemoryVFS extends VFS.Base {
16621662
name: string;
16631663
mapNameToFile: Map<any, any>;
@@ -1692,4 +1692,4 @@ declare module 'wa-sqlite/src/examples/tag.js' {
16921692
* @returns {function(TemplateStringsArray, ...any): Promise<object[]>}
16931693
*/
16941694
export function tag(sqlite3: any, db: number): (arg0: TemplateStringsArray, ...args: any[]) => Promise<object[]>;
1695-
}
1695+
}

yarn.lock

+26-26
Original file line numberDiff line numberDiff line change
@@ -309,32 +309,6 @@ __metadata:
309309
languageName: node
310310
linkType: hard
311311

312-
"@journeyapps/wa-sqlite@workspace:.":
313-
version: 0.0.0-use.local
314-
resolution: "@journeyapps/wa-sqlite@workspace:."
315-
dependencies:
316-
"@changesets/cli": ^2.26.2
317-
"@web/dev-server": ^0.1.13
318-
comlink: ^4.4.1
319-
jasmine-core: ^4.5.0
320-
karma: ^6.4.1
321-
karma-chrome-launcher: ^3.1.1
322-
karma-jasmine: ^5.1.0
323-
monaco-editor: ^0.34.1
324-
puppeteer: ^19.6.3
325-
sinon: 15.0.1
326-
typedoc: ^0.22.11
327-
typescript: ^4.2.4
328-
dependenciesMeta:
329-
330-
unplugged: true
331-
332-
unplugged: true
333-
334-
unplugged: true
335-
languageName: unknown
336-
linkType: soft
337-
338312
"@manypkg/find-root@npm:^1.1.0":
339313
version: 1.1.0
340314
resolution: "@manypkg/find-root@npm:1.1.0"
@@ -417,6 +391,32 @@ __metadata:
417391
languageName: node
418392
linkType: hard
419393

394+
"@powersync/wa-sqlite@workspace:.":
395+
version: 0.0.0-use.local
396+
resolution: "@powersync/wa-sqlite@workspace:."
397+
dependencies:
398+
"@changesets/cli": ^2.26.2
399+
"@web/dev-server": ^0.1.13
400+
comlink: ^4.4.1
401+
jasmine-core: ^4.5.0
402+
karma: ^6.4.1
403+
karma-chrome-launcher: ^3.1.1
404+
karma-jasmine: ^5.1.0
405+
monaco-editor: ^0.34.1
406+
puppeteer: ^19.6.3
407+
sinon: 15.0.1
408+
typedoc: ^0.22.11
409+
typescript: ^4.2.4
410+
dependenciesMeta:
411+
412+
unplugged: true
413+
414+
unplugged: true
415+
416+
unplugged: true
417+
languageName: unknown
418+
linkType: soft
419+
420420
"@puppeteer/browsers@npm:0.5.0":
421421
version: 0.5.0
422422
resolution: "@puppeteer/browsers@npm:0.5.0"

0 commit comments

Comments
 (0)