Skip to content

Commit

Permalink
deprecation(encoding): deprecate base32.byteLength() (#4000)
Browse files Browse the repository at this point in the history
  • Loading branch information
iuioiua committed Dec 20, 2023
1 parent 386df47 commit bf7bb68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions encoding/base32.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ function getLens(b32: string): [number, number] {
/**
* Returns number of bytes encoded in the given RFC4648 base32 string input.
* @param b32
*
* @deprecated (will be removed in 0.212.0)
*/
export function byteLength(b32: string): number {
const [validLen, placeHoldersLen] = getLens(b32);
Expand Down

0 comments on commit bf7bb68

Please sign in to comment.