Skip to content

Commit

Permalink
refactor: remove toThenable export
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `<liquidjs>.toThenable` is removed, use `<liquidjs>.toPromise` instead
  • Loading branch information
harttle committed Nov 27, 2022
1 parent b115077 commit ffefd91
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export { Hash } from './template/tag/hash'
export { Value } from './template/value'
// eslint-disable-next-line deprecation/deprecation
export { _evalToken, evalToken, evalQuotedToken } from './render/expression'
export { toPromise, toThenable, toValueSync } from './util/async'
export { toPromise, toValueSync } from './util/async'
export { defaultOperators, Operators } from './render/operator'
export { createTrie, Trie } from './util/operator-trie'
export { toValue } from './util/underscore'
Expand Down
2 changes: 0 additions & 2 deletions src/util/async.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,3 @@ export function toValueSync<T> (val: Generator<unknown, T, unknown> | T): T {
} while (!done)
return value
}

export const toThenable = toPromise

0 comments on commit ffefd91

Please # to comment.