@ar.io/wayfinder-react 1.0.23 → 1.0.24

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/README.md CHANGED
@@ -6,10 +6,10 @@ React components and hooks for the WayFinder project, making it easy to integrat
6
6
 
7
7
  ```bash
8
8
  # Using npm
9
- npm install @ar.io/wayfinder-react @ar.io/wayfinder-core
9
+ npm install @ar.io/wayfinder-react
10
10
 
11
11
  # Using yarn
12
- yarn add @ar.io/wayfinder-react @ar.io/wayfinder-core
12
+ yarn add @ar.io/wayfinder-react
13
13
  ```
14
14
 
15
15
  ## Usage
@@ -18,22 +18,11 @@ yarn add @ar.io/wayfinder-react @ar.io/wayfinder-core
18
18
 
19
19
  ```tsx
20
20
  import { WayfinderProvider } from '@ar.io/wayfinder-react';
21
- import { NetworkGatewaysProvider } from '@ar.io/wayfinder-core';
22
- import { ARIO } from '@ar.io/sdk';
23
21
 
24
- // Wrap your app with the WayfinderProvider
25
22
  function App() {
26
23
  return (
27
- <WayfinderProvider
28
- // pass in the wayfinder options
29
- // https://github.com/ar-io/wayfinder/tree/alpha/packages/wayfinder-core#custom-configuration
30
- // by default, the provider will cache the gateways in local storage for 1 hour to avoid unnecessary network requests
31
- gatewaysProvider={new NetworkGatewaysProvider({
32
- ario: ARIO.mainnet(),
33
- limit: 10,
34
- sortBy: 'operatorStake',
35
- })}
36
- >
24
+ // Provide custom configuration if needed - https://github.com/ar-io/wayfinder/tree/alpha/packages/wayfinder-core#custom-configuration
25
+ <WayfinderProvider>
37
26
  <YourApp />
38
27
  </WayfinderProvider>
39
28
  );
package/dist/version.d.ts CHANGED
@@ -14,4 +14,4 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- export declare const WAYFINDER_REACT_VERSION = "v1.0.23";
17
+ export declare const WAYFINDER_REACT_VERSION = "v1.0.24";
package/dist/version.js CHANGED
@@ -14,4 +14,4 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- export const WAYFINDER_REACT_VERSION = 'v1.0.23';
17
+ export const WAYFINDER_REACT_VERSION = 'v1.0.24';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ar.io/wayfinder-react",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "React components for WayFinder",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -36,7 +36,7 @@
36
36
  "format:check": "biome format --config-path=../../biome.json"
37
37
  },
38
38
  "dependencies": {
39
- "@ar.io/wayfinder-core": "1.7.0",
39
+ "@ar.io/wayfinder-core": "1.7.2",
40
40
  "react": "^18.2.0",
41
41
  "react-dom": "^18.2.0"
42
42
  },