Skip to content

Commit

Permalink
refactor: remove ref methods
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloashmore committed May 26, 2021
1 parent 7d894a5 commit a333921
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -664,17 +664,6 @@ export class Client {
return res.refs
}

/**
* Returns a list of all refs for the Prismic repository.
*
* Refs are used to identify which version of the repository's content should be queried. All repositories will have at least one ref pointing to the latest published content called the "master ref".
*
* @returns A list of all refs for the Prismic repository.
*
* @deprecated Use `getReleases` instead.
*/
getRefs = this.getReleases.bind(this)

/**
* Returns a Release for the Prismic repository with a matching ID.
*
Expand All @@ -688,17 +677,6 @@ export class Client {
return findRef(releases, (ref) => ref.id === id)
}

/**
* Returns a ref for the Prismic repository with a matching ID.
*
* @param id ID of the ref.
*
* @returns The ref with a matching ID, if it exists.
*
* @deprecated Use `getReleaseById` instead.
*/
getRefById = this.getReleaseById.bind(this)

/**
* Returns a Release for the Prismic repository with a matching label.
*
Expand All @@ -712,17 +690,6 @@ export class Client {
return findRef(releases, (ref) => ref.label === label)
}

/**
* Returns a ref for the Prismic repository with a matching label.
*
* @param label Label of the ref.
*
* @returns The ref with a matching label, if it exists.
*
* @deprecated Use `getReleaseByLabel` instead.
*/
getRefByLabel = this.getReleaseByLabel.bind(this)

/**
* Returns the master ref for the Prismic repository. The master ref points to the repository's latest published content.
*
Expand Down

0 comments on commit a333921

Please sign in to comment.