@mauryasumit/driftdb 7.0.0 → 7.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +9 -9
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -94,9 +94,9 @@ DriftDB is ideal for:
94
94
 
95
95
  ## Installation
96
96
 
97
- ```bash
98
- npm install driftdb
99
- ```
97
+ ```bash
98
+ npm install @mauryasumit/driftdb
99
+ ```
100
100
 
101
101
  **Requirements:**
102
102
  - Node.js >= 18
@@ -109,7 +109,7 @@ npm install driftdb
109
109
  ### Schema-based API (recommended)
110
110
 
111
111
  ```typescript
112
- import { DB, Column } from 'driftdb';
112
+ import { DB, Column } from '@mauryasumit/driftdb';
113
113
 
114
114
  const db = await DB.open({
115
115
  dbName: 'myapp-prod',
@@ -155,9 +155,9 @@ db.close();
155
155
 
156
156
  ### Class-based API
157
157
 
158
- ```typescript
159
- import { DB, Model, Column } from 'driftdb';
160
- import type { ModelSchema } from 'driftdb';
158
+ ```typescript
159
+ import { DB, Model, Column } from '@mauryasumit/driftdb';
160
+ import type { ModelSchema } from '@mauryasumit/driftdb';
161
161
 
162
162
  const db = new DB({ dbName: 'users-db', sqlitePath: './data.sqlite' });
163
163
 
@@ -396,8 +396,8 @@ await Post.upsert({ title: 'Hello' }, { title: 'Hello', views: 0 });
396
396
 
397
397
  The `Column` builder provides a fluent API for defining schemas:
398
398
 
399
- ```typescript
400
- import { Column } from 'driftdb';
399
+ ```typescript
400
+ import { Column } from '@mauryasumit/driftdb';
401
401
 
402
402
  const schema = {
403
403
  name: Column.text().required().build(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mauryasumit/driftdb",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "Local-first SQLite database with automatic S3 sync — offline-first, no infrastructure required",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",