[Ndn-lib] NDN-JS deprecation warning: Interest constructor params for selectors

Thompson, Jeff jefft0 at remap.ucla.edu
Sat Mar 3 02:16:25 PST 2018


Hello NDN-JS users,

The Interest constructor has a legacy form which takes values for selectors such as minSuffixComponents. In preparation for the new Interest packet format, support for these selectors in the constructor is deprecated and will be removed in a future version. Instead, use “setter” methods such as setMinSuffixComponents().

There are now three forms of the constructor: The default constructor Interest(), the copy constructor Interest(interest), and a constructor which takes a name Interest(name) .

Thank you,
- Jeff T
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-lib/attachments/20180303/22c0997c/attachment.html>


More information about the Ndn-lib mailing list