@pol-studios/db 1.0.1 → 1.0.3

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.
@@ -24,4 +24,4 @@ declare function SupabaseProvider({ children, options, afterInitialize, supabase
24
24
  supabaseClient?: SupabaseClient<Database>;
25
25
  }): react_jsx_runtime.JSX.Element;
26
26
 
27
- export { type Database as D, SupabaseProvider as S, type TypedSupabaseClient as T, UserSessionId as U, type SupabaseDatabaseTypes as a, createNewSupabaseClient as c, onSupabaseInitialized as o, setDefaultOptions as s, typedSupabase as t, useSupabase as u };
27
+ export { type Database as D, type SupabaseDatabaseTypes as S, type TypedSupabaseClient as T, UserSessionId as U, SupabaseProvider as a, createNewSupabaseClient as c, onSupabaseInitialized as o, setDefaultOptions as s, typedSupabase as t, useSupabase as u };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pol-studios/db",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Database layer for React applications with Supabase and PowerSync support",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -8,8 +8,18 @@
8
8
  "types": "./dist/index.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
- "import": "./dist/index.js",
12
- "types": "./dist/index.d.ts"
11
+ "react-native": {
12
+ "import": "./dist/index.js",
13
+ "types": "./dist/index.d.ts"
14
+ },
15
+ "browser": {
16
+ "import": "./dist/index.web.js",
17
+ "types": "./dist/index.web.d.ts"
18
+ },
19
+ "default": {
20
+ "import": "./dist/index.js",
21
+ "types": "./dist/index.d.ts"
22
+ }
13
23
  },
14
24
  "./client": {
15
25
  "import": "./dist/client/index.js",
@@ -76,6 +86,12 @@
76
86
  "offline-first",
77
87
  "sync"
78
88
  ],
89
+ "scripts": {
90
+ "build": "tsup",
91
+ "dev": "tsup --watch",
92
+ "typecheck": "tsc --noEmit",
93
+ "prepublishOnly": "pnpm build"
94
+ },
79
95
  "peerDependencies": {
80
96
  "@pol-studios/hooks": ">=1.0.0",
81
97
  "@powersync/react-native": ">=1.0.0",
@@ -100,20 +116,15 @@
100
116
  "@supabase/postgrest-js": "^2.87.1"
101
117
  },
102
118
  "devDependencies": {
119
+ "@pol-studios/hooks": "workspace:*",
120
+ "@pol-studios/utils": "workspace:*",
103
121
  "@supabase-cache-helpers/postgrest-core": "^0.12.3",
104
122
  "@supabase-cache-helpers/postgrest-react-query": "^1.0.0",
105
123
  "@types/flat": "^5.0.5",
106
124
  "tsup": "^8.0.0",
107
- "typescript": "^5.0.0",
108
- "@pol-studios/hooks": "1.0.1",
109
- "@pol-studios/utils": "1.0.1"
125
+ "typescript": "^5.0.0"
110
126
  },
111
127
  "publishConfig": {
112
128
  "access": "public"
113
- },
114
- "scripts": {
115
- "build": "tsup",
116
- "dev": "tsup --watch",
117
- "typecheck": "tsc --noEmit"
118
129
  }
119
- }
130
+ }