Skip to content

Commit

Permalink
[release] @subql/[email protected] @subql/[email protected]
Browse files Browse the repository at this point in the history
* feat: use both agreements & flex plan

* feat: version
  • Loading branch information
HuberTRoy authored Jan 11, 2024
1 parent e902d13 commit a756992
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 15 deletions.
5 changes: 4 additions & 1 deletion packages/apollo-links/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.2.6] - 2024-01-11

## [1.2.5] - 2023-12-21

## [1.2.4] - 2023-12-21
Expand Down Expand Up @@ -90,7 +92,8 @@ Breaking change for `dictHttpLink` and `deploymentHttpLink`, use `const { link }

- Add Authlink for Apollo client

[unreleased]: https://github.com/subquery/network-clients/compare/v1.2.5...HEAD
[unreleased]: https://github.com/subquery/network-clients/compare/v1.2.6...HEAD
[1.2.6]: https://github.com/subquery/network-clients/compare/v1.2.4...v1.2.6
[1.2.5]: https://github.com/subquery/network-clients/compare/v1.2.4...v1.2.5
[1.2.4]: https://github.com/subquery/network-clients/compare/v1.2.3...v1.2.4
[1.2.3]: https://github.com/subquery/network-clients/compare/v1.2.2...v1.2.3
Expand Down
2 changes: 1 addition & 1 deletion packages/apollo-links/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@subql/apollo-links",
"version": "1.2.5",
"version": "1.2.6",
"description": "SubQuery Network - graphql links",
"main": "dist/index.js",
"author": "SubQuery Pte Limited",
Expand Down
4 changes: 3 additions & 1 deletion packages/apollo-links/src/core/errorLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const creatErrorLink = ({
useImmediateFallbackOnError,
logger,
}: ErrorLinkOption) =>
onError(({ graphQLErrors, networkError, operation }) => {
onError(({ graphQLErrors, networkError, operation, forward }) => {
const { indexer } = operation.getContext();
if (networkError) {
orderManager.updateScore(indexer, ScoreType.NETWORK);
Expand Down Expand Up @@ -50,4 +50,6 @@ export const creatErrorLink = ({
) as Observable<FetchResult>;
}
}

return forward(operation);
});
5 changes: 4 additions & 1 deletion packages/network-support/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.1.1] 2024-01-11

## [0.1.0] 2023-11-27

### Added

- It's a internal library.

[unreleased]: https://github.com/subquery/network-support/compare/v0.1.0...HEAD
[unreleased]: https://github.com/subquery/network-support/compare/v0.1.1...HEAD
[0.1.1]: https://github.com/subquery/network-support/releases/tag/v0.1.1
[0.1.0]: https://github.com/subquery/network-support/releases/tag/v0.1.0
2 changes: 1 addition & 1 deletion packages/network-support/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@subql/network-support",
"version": "0.1.0",
"version": "0.1.1",
"main": "dist/index.js",
"author": "SubQuery Pte Limited",
"license": "Apache-2.0",
Expand Down
16 changes: 6 additions & 10 deletions packages/network-support/src/orderManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,17 +286,13 @@ export class OrderManager {

private async getNextOrder(): Promise<OrderWithType | undefined> {
await this._init;
if (this.agreements.length) {
const order = await this.getNextAgreement();
if (order) {
return { ...order, type: OrderType.agreement };
}
const agreementsOrders = await this.getNextAgreement();
if (agreementsOrders) {
return { ...agreementsOrders, type: OrderType.agreement };
}
if (this.plans.length) {
const order = await this.getNextPlan();
if (order) {
return { ...order, type: OrderType.flexPlan };
}
const flexPlanOrders = await this.getNextPlan();
if (flexPlanOrders) {
return { ...flexPlanOrders, type: OrderType.flexPlan };
}
return undefined;
}
Expand Down

0 comments on commit a756992

Please sign in to comment.