pocketbase-react 0.1.2 → 0.1.5

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
@@ -6,12 +6,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.1.5] - 2022-10-10
10
+ ### Changed
11
+ - SDK now uses custom @tobicrain/pocketbase javascript framework
12
+
13
+ ## [0.1.4] - 2022-10-10
14
+ ### Fixed
15
+ - SDK now runs on React and React Native
16
+
17
+ ## [0.1.3] - 2022-10-06
18
+ ### Changed
19
+ - Redux now toggles between localStorage / AsyncStorage
20
+
21
+
22
+ ## [0.1.2] - 2022-10-05
23
+ ### Changed
24
+ - Adjusted Rollup / Babel Config for use in React
25
+
26
+
27
+ ## [0.1.1] - 2022-10-04
28
+ ### Changed
29
+ - initialCollections now also "subscribe" instead of just "fetch" content once
30
+
9
31
  ## [0.1.0] - 2022-10-03
10
32
  ### Added
11
33
  - Initial commit
12
34
 
13
35
  ### Changed
14
- - Readme Instructions and so on
15
- - initialCollections now also "subscribe" instead of just "fetch" content once
16
- - Adjusted Rollup / Babel Config for use in React
17
- - Redux now toggles between localStorage / AsyncStorage
36
+ - Readme Instructions and so on
package/README.md CHANGED
@@ -13,7 +13,7 @@ Unofficial React SDK (React, React Native, Expo) for interacting with the [Pocke
13
13
 
14
14
  ## Installation
15
15
 
16
- ### React Native or Expo
16
+ ### React, React Native or Expo
17
17
 
18
18
 
19
19
  ```sh
@@ -28,7 +28,7 @@ import { Pocketbase } from 'pocketbase-react';
28
28
  ```
29
29
 
30
30
  ---
31
- > 🔧 React Native doesn't have native `EventSource` implementation, so in order to use the realtime service you'll need to load a `EventSource` polyfill.
31
+ > 🔧 React Native / Expo doesn't have native `EventSource` implementation, so in order to use the realtime service you'll need to load a `EventSource` polyfill.
32
32
  > I recommend [EventSource/eventsource](https://github.com/EventSource/eventsource)
33
33
  > ```sh
34
34
  > # Using npm
@@ -48,9 +48,7 @@ import { Pocketbase } from 'pocketbase-react';
48
48
  ```tsx
49
49
  // App.tsx
50
50
  import { Pocketbase } from 'pocketbase-react';
51
- import AsyncStorage from '@react-native-async-storage/async-storage';
52
51
 
53
- const storage = AsyncStorage
54
52
  const serverURL = "YOUR_SERVER_URL"
55
53
  const collections = ['COLLECTION_NAME_01', 'COLLECTION_NAME_02']
56
54
  const credentials = {
@@ -59,7 +57,6 @@ const credentials = {
59
57
  }
60
58
 
61
59
  <Pocketbase
62
- storage={storage}
63
60
  serverURL={serverURL}
64
61
  initialCollections={collections}
65
62
  credentials={credentials}>