Skip to content

Commit 374c187

Browse files
committed
chore: restore old packages non dev names
1 parent ecd475a commit 374c187

File tree

11 files changed

+87
-87
lines changed

11 files changed

+87
-87
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,15 +217,15 @@ SQLiteDatabase db = SQLiteDatabase.openDatabase(config, null, null);
217217
Install the Expo package:
218218

219219
```bash
220-
npm install @sqliteai/sqlite-sync-expo-dev
220+
npm install @sqliteai/sqlite-sync-expo
221221
```
222222

223223
Add to your `app.json`:
224224

225225
```json
226226
{
227227
"expo": {
228-
"plugins": ["@sqliteai/sqlite-sync-expo-dev"]
228+
"plugins": ["@sqliteai/sqlite-sync-expo"]
229229
}
230230
}
231231
```

docs/postgresql/CLIENT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ implementation 'ai.sqlite:sync.dev:0.9.96'
190190
Install the Expo package:
191191

192192
```
193-
npm install @sqliteai/sqlite-sync-expo-dev
193+
npm install @sqliteai/sqlite-sync-expo
194194
```
195195

196-
Then follow the instructions from the [README](https://www.npmjs.com/package/@sqliteai/sqlite-sync-expo-dev)
196+
Then follow the instructions from the [README](https://www.npmjs.com/package/@sqliteai/sqlite-sync-expo)
197197

198198
## React Native
199199

packages/android/build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ apply plugin: 'maven-publish'
1717
apply plugin: 'signing'
1818

1919
android {
20-
namespace 'ai.sqlite.sync.dev'
20+
namespace 'ai.sqlite.sync'
2121
compileSdk 34
2222

2323
defaultConfig {
@@ -57,16 +57,16 @@ afterEvaluate {
5757
publications {
5858
release(MavenPublication) {
5959
groupId = 'ai.sqlite'
60-
artifactId = 'sync.dev'
60+
artifactId = 'sync'
6161
version = project.hasProperty('VERSION') ? project.VERSION : ['make', 'version'].execute(null, file('../..')).text.trim()
6262

6363
artifact(project.hasProperty('AAR_PATH') ? project.AAR_PATH : "$buildDir/outputs/aar/android-release.aar")
6464

6565
// Maven Central metadata
6666
pom {
67-
name = 'sqlite-sync-dev'
67+
name = 'sqlite-sync'
6868
description = 'A multi-platform extension that brings a true local-first experience to your applications with minimal effort. It extends standard SQLite tables with built-in support for offline work and automatic synchronization, allowing multiple devices to operate independently—even without a network connection—and seamlessly stay in sync. With SQLite Sync, developers can easily build distributed, collaborative applications while continuing to rely on the simplicity, reliability, and performance of SQLite.'
69-
url = 'https://github.com/sqliteai/sqlite-sync-dev'
69+
url = 'https://github.com/sqliteai/sqlite-sync'
7070

7171
licenses {
7272
license {
@@ -86,9 +86,9 @@ afterEvaluate {
8686
}
8787

8888
scm {
89-
connection = 'scm:git:git://github.com/sqliteai/sqlite-sync-dev.git'
90-
developerConnection = 'scm:git:ssh://github.com:sqliteai/sqlite-sync-dev.git'
91-
url = 'https://github.com/sqliteai/sqlite-sync-dev/tree/main'
89+
connection = 'scm:git:git://github.com/sqliteai/sqlite-sync.git'
90+
developerConnection = 'scm:git:ssh://github.com:sqliteai/sqlite-sync.git'
91+
url = 'https://github.com/sqliteai/sqlite-sync/tree/main'
9292
}
9393
}
9494
}

packages/expo/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# @sqliteai/sqlite-sync-expo-dev Generator
1+
# @sqliteai/sqlite-sync-expo Generator
22

3-
This directory contains the generator script for the `@sqliteai/sqlite-sync-expo-dev` npm package.
3+
This directory contains the generator script for the `@sqliteai/sqlite-sync-expo` npm package.
44

55
## How It Works
66

@@ -62,13 +62,13 @@ mkdir -p artifacts/cloudsync-android-armeabi-v7a
6262
mkdir -p artifacts/cloudsync-android-x86_64
6363

6464
# Download xcframework
65-
curl -L "https://github.com/sqliteai/sqlite-sync-dev/releases/download/${VERSION}/cloudsync-apple-xcframework-${VERSION}.zip" -o xcframework.zip
65+
curl -L "https://github.com/sqliteai/sqlite-sync/releases/download/${VERSION}/cloudsync-apple-xcframework-${VERSION}.zip" -o xcframework.zip
6666
unzip xcframework.zip -d artifacts/cloudsync-apple-xcframework/
6767
rm xcframework.zip
6868

6969
# Download Android binaries
7070
for arch in arm64-v8a armeabi-v7a x86_64; do
71-
curl -L "https://github.com/sqliteai/sqlite-sync-dev/releases/download/${VERSION}/cloudsync-android-${arch}-${VERSION}.zip" -o android-${arch}.zip
71+
curl -L "https://github.com/sqliteai/sqlite-sync/releases/download/${VERSION}/cloudsync-android-${arch}-${VERSION}.zip" -o android-${arch}.zip
7272
unzip android-${arch}.zip -d artifacts/cloudsync-android-${arch}/
7373
rm android-${arch}.zip
7474
done
@@ -107,18 +107,18 @@ node generate-expo-package.js 0.9.92 ../../artifacts ./expo-package
107107

108108
```bash
109109
# In your Expo app
110-
npm install /path/to/sqlite-sync-dev/packages/expo/expo-package
110+
npm install /path/to/sqlite-sync/packages/expo/expo-package
111111

112112
# Or use file: reference in package.json
113-
# "@sqliteai/sqlite-sync-expo-dev": "file:/path/to/sqlite-sync-dev/packages/expo/expo-package"
113+
# "@sqliteai/sqlite-sync-expo": "file:/path/to/sqlite-sync/packages/expo/expo-package"
114114
```
115115

116116
Update `app.json`:
117117

118118
```json
119119
{
120120
"expo": {
121-
"plugins": ["@sqliteai/sqlite-sync-expo-dev"]
121+
"plugins": ["@sqliteai/sqlite-sync-expo"]
122122
}
123123
}
124124
```

packages/expo/generate-expo-package.js

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22

33
/**
4-
* Generates the @sqliteai/sqlite-sync-expo-dev package
4+
* Generates the @sqliteai/sqlite-sync-expo package
55
*
66
* This script creates an npm package that bundles CloudSync binaries
77
* for Expo apps, with an Expo config plugin for automatic setup.
@@ -28,7 +28,7 @@ const ANDROID_ARCHS = [
2828
*/
2929
function generatePackageJson(version) {
3030
return {
31-
name: '@sqliteai/sqlite-sync-expo-dev',
31+
name: '@sqliteai/sqlite-sync-expo',
3232
version: version,
3333
description: 'SQLite Sync extension for Expo - Sync on-device databases with SQLite Cloud',
3434
main: 'src/index.js',
@@ -53,12 +53,12 @@ function generatePackageJson(version) {
5353
license: 'SEE LICENSE IN LICENSE.md',
5454
repository: {
5555
type: 'git',
56-
url: 'https://github.com/sqliteai/sqlite-sync-dev.git',
56+
url: 'https://github.com/sqliteai/sqlite-sync.git',
5757
directory: 'packages/expo',
5858
},
59-
homepage: 'https://github.com/sqliteai/sqlite-sync-dev#react-native--expo',
59+
homepage: 'https://github.com/sqliteai/sqlite-sync#react-native--expo',
6060
bugs: {
61-
url: 'https://github.com/sqliteai/sqlite-sync-dev/issues',
61+
url: 'https://github.com/sqliteai/sqlite-sync/issues',
6262
},
6363
peerDependencies: {
6464
expo: '>=51.0.0',
@@ -77,20 +77,20 @@ function generatePackageJson(version) {
7777
*/
7878
function generateIndexJs() {
7979
return `/**
80-
* @sqliteai/sqlite-sync-expo-dev
80+
* @sqliteai/sqlite-sync-expo
8181
*
8282
* SQLite Sync extension binaries for Expo.
8383
* This package provides pre-built binaries and an Expo config plugin.
8484
*
8585
* Usage:
86-
* 1. Add to app.json plugins: ["@sqliteai/sqlite-sync-expo-dev"]
86+
* 1. Add to app.json plugins: ["@sqliteai/sqlite-sync-expo"]
8787
* 2. Run: npx expo prebuild --clean
8888
* 3. Load extension in your code (see README)
8989
*/
9090
9191
module.exports = {
9292
// Package metadata
93-
name: '@sqliteai/sqlite-sync-expo-dev',
93+
name: '@sqliteai/sqlite-sync-expo',
9494
9595
// Extension identifiers for loading
9696
ios: {
@@ -108,7 +108,7 @@ module.exports = {
108108
* Generate src/index.d.ts
109109
*/
110110
function generateIndexDts() {
111-
return `declare module '@sqliteai/sqlite-sync-expo-dev' {
111+
return `declare module '@sqliteai/sqlite-sync-expo' {
112112
export const name: string;
113113
114114
export const ios: {
@@ -131,12 +131,12 @@ function generateAppPlugin() {
131131
* Expo Config Plugin for SQLite Sync Extension
132132
*
133133
* This plugin automatically configures iOS and Android to include the SQLite Sync
134-
* native binaries. Just add "@sqliteai/sqlite-sync-expo-dev" to your app.json plugins.
134+
* native binaries. Just add "@sqliteai/sqlite-sync-expo" to your app.json plugins.
135135
*
136136
* Usage in app.json:
137137
* {
138138
* "expo": {
139-
* "plugins": ["@sqliteai/sqlite-sync-expo-dev"]
139+
* "plugins": ["@sqliteai/sqlite-sync-expo"]
140140
* }
141141
* }
142142
*/
@@ -176,12 +176,12 @@ function withSqliteSyncIOS(config) {
176176
if (!fs.existsSync(srcFrameworkPath)) {
177177
throw new Error(
178178
\`CloudSync.xcframework not found at \${srcFrameworkPath}. \` +
179-
'This is a bug in @sqliteai/sqlite-sync-expo-dev - the package is missing iOS binaries.'
179+
'This is a bug in @sqliteai/sqlite-sync-expo - the package is missing iOS binaries.'
180180
);
181181
}
182182
183183
// Copy xcframework to iOS project directory
184-
console.log(\`[@sqliteai/sqlite-sync-expo-dev] Copying xcframework to \${destFrameworkPath}\`);
184+
console.log(\`[@sqliteai/sqlite-sync-expo] Copying xcframework to \${destFrameworkPath}\`);
185185
fs.cpSync(srcFrameworkPath, destFrameworkPath, { recursive: true });
186186
187187
// Get the main app target
@@ -197,7 +197,7 @@ function withSqliteSyncIOS(config) {
197197
);
198198
199199
if (!embedFrameworksBuildPhase) {
200-
console.log('[@sqliteai/sqlite-sync-expo-dev] Creating "Embed Frameworks" build phase');
200+
console.log('[@sqliteai/sqlite-sync-expo] Creating "Embed Frameworks" build phase');
201201
xcodeProject.addBuildPhase(
202202
[],
203203
'PBXCopyFilesBuildPhase',
@@ -209,7 +209,7 @@ function withSqliteSyncIOS(config) {
209209
210210
// Add the framework to the project
211211
const relativePath = \`\${projectName}/CloudSync.xcframework\`;
212-
console.log(\`[@sqliteai/sqlite-sync-expo-dev] Adding framework: \${relativePath}\`);
212+
console.log(\`[@sqliteai/sqlite-sync-expo] Adding framework: \${relativePath}\`);
213213
214214
xcodeProject.addFramework(relativePath, {
215215
target: target.uuid,
@@ -219,7 +219,7 @@ function withSqliteSyncIOS(config) {
219219
link: true,
220220
});
221221
222-
console.log('[@sqliteai/sqlite-sync-expo-dev] iOS setup complete');
222+
console.log('[@sqliteai/sqlite-sync-expo] iOS setup complete');
223223
return config;
224224
});
225225
}
@@ -257,7 +257,7 @@ function withSqliteSyncAndroid(config) {
257257
// Check source exists
258258
if (!fs.existsSync(srcFile)) {
259259
console.warn(
260-
\`[@sqliteai/sqlite-sync-expo-dev] Warning: \${srcFile} not found, skipping \${arch}\`
260+
\`[@sqliteai/sqlite-sync-expo] Warning: \${srcFile} not found, skipping \${arch}\`
261261
);
262262
continue;
263263
}
@@ -266,11 +266,11 @@ function withSqliteSyncAndroid(config) {
266266
fs.mkdirSync(destDir, { recursive: true });
267267
268268
// Copy the .so file
269-
console.log(\`[@sqliteai/sqlite-sync-expo-dev] Copying \${arch}/cloudsync.so\`);
269+
console.log(\`[@sqliteai/sqlite-sync-expo] Copying \${arch}/cloudsync.so\`);
270270
fs.copyFileSync(srcFile, destFile);
271271
}
272272
273-
console.log('[@sqliteai/sqlite-sync-expo-dev] Android setup complete');
273+
console.log('[@sqliteai/sqlite-sync-expo] Android setup complete');
274274
return config;
275275
},
276276
]);
@@ -280,7 +280,7 @@ function withSqliteSyncAndroid(config) {
280280
* Main plugin function - combines iOS and Android plugins
281281
*/
282282
function withSqliteSync(config) {
283-
console.log('[@sqliteai/sqlite-sync-expo-dev] Configuring SQLite Sync extension...');
283+
console.log('[@sqliteai/sqlite-sync-expo] Configuring SQLite Sync extension...');
284284
285285
// Apply iOS modifications
286286
config = withSqliteSyncIOS(config);
@@ -299,7 +299,7 @@ module.exports = withSqliteSync;
299299
* Generate README.md
300300
*/
301301
function generateReadme(version) {
302-
return `# @sqliteai/sqlite-sync-expo-dev
302+
return `# @sqliteai/sqlite-sync-expo
303303
304304
SQLite Sync extension for Expo apps.
305305
@@ -310,9 +310,9 @@ This package provides pre-built SQLite Sync binaries for iOS and Android, along
310310
## Installation
311311
312312
\`\`\`bash
313-
npm install @sqliteai/sqlite-sync-expo-dev @op-engineering/op-sqlite
313+
npm install @sqliteai/sqlite-sync-expo @op-engineering/op-sqlite
314314
# or
315-
yarn add @sqliteai/sqlite-sync-expo-dev @op-engineering/op-sqlite
315+
yarn add @sqliteai/sqlite-sync-expo @op-engineering/op-sqlite
316316
\`\`\`
317317
318318
## Setup
@@ -322,7 +322,7 @@ yarn add @sqliteai/sqlite-sync-expo-dev @op-engineering/op-sqlite
322322
\`\`\`json
323323
{
324324
"expo": {
325-
"plugins": ["@sqliteai/sqlite-sync-expo-dev"]
325+
"plugins": ["@sqliteai/sqlite-sync-expo"]
326326
}
327327
}
328328
\`\`\`
@@ -379,7 +379,7 @@ console.log('SQLite Sync Version:', result.rows[0].version);
379379
380380
## Links
381381
382-
- [SQLite Sync Documentation](https://github.com/sqliteai/sqlite-sync-dev)
382+
- [SQLite Sync Documentation](https://github.com/sqliteai/sqlite-sync)
383383
- [SQLite Cloud](https://sqlitecloud.io)
384384
385385
## License
@@ -416,7 +416,7 @@ function main() {
416416
process.exit(1);
417417
}
418418

419-
console.log(`Generating @sqliteai/sqlite-sync-expo-dev package version ${version}...\n`);
419+
console.log(`Generating @sqliteai/sqlite-sync-expo package version ${version}...\n`);
420420

421421
// Create output directory structure
422422
const srcDir = path.join(outputDir, 'src');
@@ -495,7 +495,7 @@ function main() {
495495
}
496496

497497
console.log('\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━');
498-
console.log(`✅ Generated @sqliteai/sqlite-sync-expo-dev@${version}`);
498+
console.log(`✅ Generated @sqliteai/sqlite-sync-expo@${version}`);
499499
console.log(` iOS: CloudSync.xcframework`);
500500
console.log(` Android: ${androidSuccess}/${ANDROID_ARCHS.length} architectures`);
501501
console.log('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━');

0 commit comments

Comments
 (0)