Skip to content

Commit ffefd91

Browse files
committed
refactor: remove toThenable export
BREAKING CHANGE: `<liquidjs>.toThenable` is removed, use `<liquidjs>.toPromise` instead
1 parent b115077 commit ffefd91

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export { Hash } from './template/tag/hash'
2222
export { Value } from './template/value'
2323
// eslint-disable-next-line deprecation/deprecation
2424
export { _evalToken, evalToken, evalQuotedToken } from './render/expression'
25-
export { toPromise, toThenable, toValueSync } from './util/async'
25+
export { toPromise, toValueSync } from './util/async'
2626
export { defaultOperators, Operators } from './render/operator'
2727
export { createTrie, Trie } from './util/operator-trie'
2828
export { toValue } from './util/underscore'

src/util/async.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,3 @@ export function toValueSync<T> (val: Generator<unknown, T, unknown> | T): T {
4444
} while (!done)
4545
return value
4646
}
47-
48-
export const toThenable = toPromise

0 commit comments

Comments
 (0)