keystonejs/keystone-classic

Deprecate List.prototype.paginate

開放

#4,126 建立於 2017年3月20日

 (2 則留言) (2 個反應) (0 位負責人)JavaScript (2,288 個分叉)batch import
help wanted

倉庫指標

星標
 (14,656 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Basically, this is too opinionated and fragile for us to continue supporting.

It used to work well with mongoose 3 and callback patterns but with promises now more popular thanks to async/await, and issues where the find() and count() queries may get out of sync with .where() / etc chaining, I think the best option is to deprecate the whole thing and let users deal with it however is most appropriate for their specific use-case.

Let's add a deprecation warning on first use to Keystone 4, and remove in the next major.

貢獻者指南