@ar.io/wayfinder-core 1.9.1 → 1.9.2

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
@@ -61,7 +61,7 @@ import {
61
61
 
62
62
  const wayfinder = createWayfinderClient({
63
63
  verificationStrategy: new HashVerificationStrategy({
64
- trustedGateways: [new URL('https://permagate.io')],
64
+ trustedGateways: [new URL('https://turbo-gateway.com')],
65
65
  }),
66
66
  strict: true, // Fail requests on verification errors
67
67
  });
@@ -96,7 +96,7 @@ import { createVerificationStrategy } from '@ar.io/wayfinder-core';
96
96
  // Create a hash verification strategy
97
97
  const hashStrategy = createVerificationStrategy({
98
98
  strategy: 'hash',
99
- trustedGateways: [new URL('https://permagate.io')],
99
+ trustedGateways: [new URL('https://turbo-gateway.com')],
100
100
  logger: myLogger,
101
101
  });
102
102
 
@@ -199,7 +199,7 @@ Fetches a dynamic list of trusted peer gateways from an AR.IO gateway's `/ar-io/
199
199
  import { TrustedPeersGatewaysProvider } from '@ar.io/wayfinder-core';
200
200
 
201
201
  const gatewayProvider = new TrustedPeersGatewaysProvider({
202
- trustedGateway: 'https://arweave.net',
202
+ trustedGateway: 'https://turbo-gateway.com',
203
203
  });
204
204
  ```
205
205
 
@@ -234,11 +234,11 @@ const gatewayProvider = new CompositeGatewaysProvider({
234
234
  }),
235
235
  // Fallback to trusted peers if network fetch fails
236
236
  new TrustedPeersGatewaysProvider({
237
- trustedGateway: 'https://arweave.net',
237
+ trustedGateway: 'https://turbo-gateway.com',
238
238
  }),
239
239
  // Final fallback to static list
240
240
  new StaticGatewaysProvider({
241
- gateways: ['https://arweave.net', 'https://permagate.io'],
241
+ gateways: ['https://turbo-gateway.com', 'https://g8way.io'],
242
242
  }),
243
243
  ],
244
244
  });
@@ -543,7 +543,7 @@ const wayfinder = new Wayfinder({
543
543
  verificationSettings: {
544
544
  enabled: true,
545
545
  strategy: new HashVerificationStrategy({
546
- trustedGateways: [new URL('https://permagate.io')],
546
+ trustedGateways: [new URL('https://turbo-gateway.com')],
547
547
  }),
548
548
  },
549
549
  });
@@ -560,7 +560,7 @@ const wayfinder = new Wayfinder({
560
560
  verificationSettings: {
561
561
  enabled: true,
562
562
  strategy: new DataRootVerificationStrategy({
563
- trustedGateways: [new URL('https://permagate.io')],
563
+ trustedGateways: [new URL('https://turbo-gateway.com')],
564
564
  }),
565
565
  },
566
566
  });
@@ -577,7 +577,7 @@ const wayfinder = new Wayfinder({
577
577
  verificationSettings: {
578
578
  enabled: true,
579
579
  strategy: new SignatureVerificationStrategy({
580
- trustedGateways: [new URL('https://permagate.io')],
580
+ trustedGateways: [new URL('https://turbo-gateway.com')],
581
581
  }),
582
582
  },
583
583
  });
package/dist/client.js CHANGED
@@ -28,7 +28,7 @@ import { DataRootVerificationStrategy } from './verification/data-root-verificat
28
28
  import { HashVerificationStrategy } from './verification/hash-verification.js';
29
29
  import { RemoteVerificationStrategy } from './verification/remote-verification.js';
30
30
  import { Wayfinder } from './wayfinder.js';
31
- const DEFAULT_TRUSTED_GATEWAY = 'https://permagate.io';
31
+ const DEFAULT_TRUSTED_GATEWAY = 'https://turbo-gateway.com';
32
32
  /**
33
33
  * Helper function to construct a routing strategy
34
34
  */
@@ -43,7 +43,7 @@ export const createRoutingStrategy = ({ strategy, gatewaysProvider, logger, }) =
43
43
  return new RoundRobinRoutingStrategy(baseConfig);
44
44
  case 'preferred':
45
45
  return new PreferredWithFallbackRoutingStrategy({
46
- preferredGateway: 'https://arweave.net',
46
+ preferredGateway: 'https://turbo-gateway.com',
47
47
  fallbackStrategy: createRoutingStrategy({
48
48
  strategy: 'fastest',
49
49
  gatewaysProvider,
@@ -55,7 +55,7 @@ export const createRoutingStrategy = ({ strategy, gatewaysProvider, logger, }) =
55
55
  /**
56
56
  * Helper function to construct a verification strategy
57
57
  */
58
- export const createVerificationStrategy = ({ strategy, logger, trustedGateways = [new URL('https://permagate.io')], }) => {
58
+ export const createVerificationStrategy = ({ strategy, logger, trustedGateways = [new URL('https://turbo-gateway.com')], }) => {
59
59
  const verificationMap = {
60
60
  hash: new HashVerificationStrategy({ logger, trustedGateways }),
61
61
  'data-root': new DataRootVerificationStrategy({ logger, trustedGateways }),
@@ -27,8 +27,8 @@ export class RoundRobinRoutingStrategy {
27
27
  }
28
28
  if (!gateways && !gatewaysProvider) {
29
29
  gateways = [
30
- new URL('https://arweave.net'),
31
- new URL('https://permagate.io'),
30
+ new URL('https://turbo-gateway.com'),
31
+ new URL('https://g8way.io'),
32
32
  ];
33
33
  }
34
34
  this.gateways = gateways || [];
package/dist/version.d.ts CHANGED
@@ -14,5 +14,5 @@
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_CORE_VERSION = "v1.9.1";
17
+ export declare const WAYFINDER_CORE_VERSION = "v1.9.2";
18
18
  //# sourceMappingURL=version.d.ts.map
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_CORE_VERSION = 'v1.9.1';
17
+ export const WAYFINDER_CORE_VERSION = 'v1.9.2';
@@ -119,7 +119,7 @@ export declare class Wayfinder {
119
119
  * const wayfinder = new Wayfinder({
120
120
  * verificationSettings: {
121
121
  * strategy: new HashVerificationStrategy({
122
- * trustedGateways: [new URL('https://permagate.io')],
122
+ * trustedGateways: [new URL('https://turbo-gateway.com')],
123
123
  * }),
124
124
  * events: {
125
125
  * onVerificationProgress: (event) => {
@@ -189,7 +189,7 @@ export declare class Wayfinder {
189
189
  * @example
190
190
  * const wayfinder = new Wayfinder();
191
191
  * wayfinder.setVerificationStrategy(new HashVerificationStrategy({
192
- * trustedGateways: [new URL('https://permagate.io')],
192
+ * trustedGateways: [new URL('https://turbo-gateway.com')],
193
193
  * }));
194
194
  *
195
195
  * @param strategy - The verification strategy to use
@@ -240,7 +240,7 @@ export declare class Wayfinder {
240
240
  * @example
241
241
  * const wayfinder = new Wayfinder({
242
242
  * verificationStrategy: new HashVerificationStrategy({
243
- * trustedGateways: [new URL('https://permagate.io')],
243
+ * trustedGateways: [new URL('https://turbo-gateway.com')],
244
244
  * }),
245
245
  * })
246
246
  *
package/dist/wayfinder.js CHANGED
@@ -209,7 +209,7 @@ export class Wayfinder {
209
209
  * const wayfinder = new Wayfinder({
210
210
  * verificationSettings: {
211
211
  * strategy: new HashVerificationStrategy({
212
- * trustedGateways: [new URL('https://permagate.io')],
212
+ * trustedGateways: [new URL('https://turbo-gateway.com')],
213
213
  * }),
214
214
  * events: {
215
215
  * onVerificationProgress: (event) => {
@@ -263,7 +263,7 @@ export class Wayfinder {
263
263
  this.gatewaysProvider =
264
264
  gatewaysProvider ??
265
265
  new TrustedPeersGatewaysProvider({
266
- trustedGateway: 'https://arweave.net',
266
+ trustedGateway: 'https://turbo-gateway.com',
267
267
  logger: this.logger,
268
268
  });
269
269
  // default verification settings
@@ -276,7 +276,7 @@ export class Wayfinder {
276
276
  strategy: (verificationSettings?.strategy ?? verificationSettings?.enabled)
277
277
  ? new HashVerificationStrategy({
278
278
  logger,
279
- trustedGateways: [new URL('https://permagate.io')],
279
+ trustedGateways: [new URL('https://turbo-gateway.com')],
280
280
  })
281
281
  : undefined,
282
282
  // overwrite the default settings with the provided ones
@@ -391,7 +391,7 @@ export class Wayfinder {
391
391
  * @example
392
392
  * const wayfinder = new Wayfinder();
393
393
  * wayfinder.setVerificationStrategy(new HashVerificationStrategy({
394
- * trustedGateways: [new URL('https://permagate.io')],
394
+ * trustedGateways: [new URL('https://turbo-gateway.com')],
395
395
  * }));
396
396
  *
397
397
  * @param strategy - The verification strategy to use
@@ -443,7 +443,7 @@ export class Wayfinder {
443
443
  this.verificationSettings.strategy ??
444
444
  new HashVerificationStrategy({
445
445
  logger: this.logger,
446
- trustedGateways: [new URL('https://permagate.io')],
446
+ trustedGateways: [new URL('https://turbo-gateway.com')],
447
447
  });
448
448
  }
449
449
  /**
@@ -453,7 +453,7 @@ export class Wayfinder {
453
453
  * @example
454
454
  * const wayfinder = new Wayfinder({
455
455
  * verificationStrategy: new HashVerificationStrategy({
456
- * trustedGateways: [new URL('https://permagate.io')],
456
+ * trustedGateways: [new URL('https://turbo-gateway.com')],
457
457
  * }),
458
458
  * })
459
459
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ar.io/wayfinder-core",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "WayFinder core library for intelligently routing to optimal AR.IO gateways",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",