Skip to content

Commit

Permalink
Merge pull request #184 from blockfrost/orde
Browse files Browse the repository at this point in the history
fix: order type
  • Loading branch information
slowbackspace authored Jan 21, 2022
2 parents 9239a5a + dd9e357 commit 5569689
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [4.0.1]

### Removed

- order pagination option from `epochsNext`, `epochsPrevious`, `blocksNext`, and `blocksPrevious`

## [4.0.0]

### ⚠️ Breaking changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blockfrost/blockfrost-js",
"version": "4.0.0",
"version": "4.0.1",
"description": "A JavaScript/TypeScript SDK for interacting with the https://blockfrost.io API",
"keywords": [
"blockfrost",
Expand Down
6 changes: 2 additions & 4 deletions src/endpoints/api/blocks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export async function blocksLatestTxsAll(
export async function blocksNext(
this: BlockFrostAPI,
hashOrNumber: HashOrNumber,
pagination?: PaginationOptions,
pagination?: Omit<PaginationOptions, 'order'>,
): Promise<components['schemas']['block_content_array']> {
const paginationOptions = getPaginationOptions(pagination);

Expand All @@ -89,7 +89,6 @@ export async function blocksNext(
searchParams: {
page: paginationOptions.page,
count: paginationOptions.count,
order: paginationOptions.order,
},
},
)
Expand All @@ -105,7 +104,7 @@ export async function blocksNext(
export async function blocksPrevious(
this: BlockFrostAPI,
hashOrNumber: HashOrNumber,
pagination?: PaginationOptions,
pagination?: Omit<PaginationOptions, 'order'>,
): Promise<components['schemas']['block_content_array']> {
const paginationOptions = getPaginationOptions(pagination);

Expand All @@ -116,7 +115,6 @@ export async function blocksPrevious(
searchParams: {
page: paginationOptions.page,
count: paginationOptions.count,
order: paginationOptions.order,
},
},
)
Expand Down
6 changes: 2 additions & 4 deletions src/endpoints/api/epochs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export async function epochsLatest(
export async function epochsNext(
this: BlockFrostAPI,
number: number,
pagination?: PaginationOptions,
pagination?: Omit<PaginationOptions, 'order'>,
): Promise<components['schemas']['epoch_content_array']> {
const paginationOptions = getPaginationOptions(pagination);

Expand All @@ -47,7 +47,6 @@ export async function epochsNext(
searchParams: {
page: paginationOptions.page,
count: paginationOptions.count,
order: paginationOptions.order,
},
},
)
Expand All @@ -63,7 +62,7 @@ export async function epochsNext(
export async function epochsPrevious(
this: BlockFrostAPI,
number: number,
pagination?: PaginationOptions,
pagination?: Omit<PaginationOptions, 'order'>,
): Promise<components['schemas']['epoch_content_array']> {
const paginationOptions = getPaginationOptions(pagination);

Expand All @@ -74,7 +73,6 @@ export async function epochsPrevious(
searchParams: {
page: paginationOptions.page,
count: paginationOptions.count,
order: paginationOptions.order,
},
},
)
Expand Down

0 comments on commit 5569689

Please sign in to comment.