@triplit/react 0.0.26 → 0.0.28

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @triplit/react
2
2
 
3
+ ## 0.0.28
4
+
5
+ ### Patch Changes
6
+
7
+ - 5011219: - add string comparison operations
8
+ - add fetchById method
9
+ - support cursor pagination
10
+ - performance improvements and bug fixes
11
+ - Updated dependencies [5011219]
12
+ - @triplit/client@0.0.28
13
+
14
+ ## 0.0.27
15
+
16
+ ### Patch Changes
17
+
18
+ - 6a7e532: - Fixup bug with outbox subscriptions
19
+ - add method to clear db
20
+ - Updated dependencies [6a7e532]
21
+ - @triplit/client@0.0.27
22
+
3
23
  ## 0.0.26
4
24
 
5
25
  ### Patch Changes
package/package.json CHANGED
@@ -1,22 +1,20 @@
1
1
  {
2
2
  "name": "@triplit/react",
3
3
  "packageManager": "yarn@3.4.1",
4
- "version": "0.0.26",
4
+ "version": "0.0.28",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
7
7
  "type": "module",
8
8
  "scripts": {
9
- "build": "yarn build:code && yarn build:types",
10
- "build:code": "node build.cjs",
11
- "build:types": "tsc --noEmit false --emitDeclarationOnly --declaration --baseUrl . --outDir dist",
9
+ "build": "tsc --noEmit false --declaration --baseUrl . --paths null --outDir dist",
12
10
  "lint": "tsc",
13
- "publish-pkg": "yarn npm publish --access public"
11
+ "publish-pkg": "node ../../scripts/npm-check-version-and-publish.js"
14
12
  },
15
13
  "files": [
16
14
  "/dist"
17
15
  ],
18
16
  "dependencies": {
19
- "@triplit/client": "^0.0.26"
17
+ "@triplit/client": "^0.0.28"
20
18
  },
21
19
  "devDependencies": {
22
20
  "@types/react": "^18.2.0",
package/dist/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './use-query';
package/dist/index.js DELETED
@@ -1 +0,0 @@
1
- import{useEffect as y,useState as u}from"react";function d(e,s){let[i,n]=u(void 0),[l,t]=u(!1),r=s.build(),o=JSON.stringify(r);return y(()=>{t(!0);let f=e.subscribe(r,c=>{t(!1),n(c)});return()=>{f()}},[o,e]),{fetchingLocal:l,results:i,error:null}}export{d as useQuery};
@@ -1,6 +0,0 @@
1
- import { QueryResults, TriplitClient, ClientQuery, toBuilder } from '@triplit/client';
2
- export declare function useQuery<CQ extends ClientQuery<any>>(client: TriplitClient<any>, query: toBuilder<CQ>): {
3
- fetchingLocal: boolean;
4
- results: QueryResults<CQ> | undefined;
5
- error: null;
6
- };