node-rss
node-rss copied to clipboard
CDATA filtering options, new item addition functions, unit tests, bug fixes
- Optional disabling of CDATA wrapping by field name
- Adding items by concatenation of existing items or by complete replacement of existing items
- Associated unit tests
- Runnable example code
examples/simple.js
- Corresponding readme updates.
This PR supercedes #37, which has some relevant discussion. This PR is similar to existing PR #28, but allows for finer control over what fields can be skipped for CDATA wrapping.
This is ready for review.
(bump)
@dylang, Is there any more info, documentation, or testing you need from me for this PR?
Sorry for taking so long with this. I'll try to get to it later this week.
Not a problem. Just wanted to make sure you weren't waiting for something from me.
The cdata work looks good. I don't like the generic output
function name, but at least it's short.
The replace_items
and concat_items
feel like they should be in a separate PR. Since you've already done the work here there's no need to create a separate PR.
I think a better API would be something like feed.removeItems()
and feed.addItems(<array of items>)
. What do you think?
@dylang Your function rename suggestions are fine. Better to change them now than have a legacy support issue.
To clarify, should feed.removeItems()
remove all existing items?
@dylang, my latest commit changes the names of the extra functions and adds a unit test for removeAllItems()
Ready for review.
@dylang, How are we going on this?
@dylang... Any progress on this?
@dylang, I've released the rss-braider
module that depends on the changes in this PR. I'd prefer to be dependent on your repo and not my fork. Let me know if there's anything I can do to help with merging this PR. :smile:
https://www.npmjs.com/package/rss-braider
It seems like the Travis failure is related to npm3. This env has an npm config of
...
"before_install": "npm -g i npm@3",
...
close/open to trigger Travis
@dylang, Could you please reivew the @rv-kip changes.
@dylang Please review @rv-kip changes. because he done the changes few years back.
Any movement on this? Would love to see it get merged