reallysimple 0.5.2 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "reallysimple",
3
3
  "description": "A Node package that reads RSS-like feeds and calls back with a simple, consistent JavaScript object. Easy to use, hides the history.",
4
- "version": "0.5.2",
4
+ "version": "0.5.4",
5
5
  "author": "Dave Winer <dave@scripting.com>",
6
6
  "license": "MIT",
7
7
  "files": [
package/reallysimple.js CHANGED
@@ -1,4 +1,4 @@
1
- var myProductName = "reallysimple", myVersion = "0.5.2";
1
+ var myProductName = "reallysimple", myVersion = "0.5.4";
2
2
 
3
3
  exports.readFeed = readFeed;
4
4
  exports.convertFeedToOpml = convertFeedToOpml;
@@ -281,7 +281,6 @@ function convertFeed (oldFeed, whenstart) {
281
281
 
282
282
  if (item ["source:markdown"] !== undefined) { //7/18/22 by DW
283
283
  let markdowntext = item ["source:markdown"] ["#"];
284
- newItem.description = markdownProcess (emojiProcess (markdowntext));
285
284
  newItem.markdowntext = markdowntext; //8/25/22 by DW
286
285
  }
287
286
 
@@ -299,6 +298,20 @@ function convertFeed (oldFeed, whenstart) {
299
298
  }
300
299
  }
301
300
 
301
+ if (item ["source:inreplyto"] !== undefined) { //7/29/26 by DW -- davefeedread lowercases element names
302
+ newItem.inReplyTo = item ["source:inreplyto"] ["#"];
303
+ }
304
+
305
+ if (item ["source:comments"] !== undefined) { //7/29/26 by DW
306
+ const theAtts = item ["source:comments"] ["@"];
307
+ if (theAtts !== undefined) {
308
+ newItem.commentsFeed = {
309
+ count: Number (theAtts.count),
310
+ feedUrl: theAtts.feedurl //lowercased by davefeedread, restored here
311
+ };
312
+ }
313
+ }
314
+
302
315
  newFeed.items.push (newItem);
303
316
  });
304
317
 
package/worknotes.md CHANGED
@@ -1,3 +1,25 @@
1
+ #### 7/29/26; 11:51:56 AM by DW
2
+
3
+ Add support for source:inreplyto and source:comments.
4
+
5
+ #### 11/28/25; 10:50:41 AM by DW
6
+
7
+ Fixed a <a href="https://github.com/scripting/reallysimple/blob/main/demos/feeder/worknotes.md#112825-102032-am-by-dw">bug</a> in the feeder app that was causing the Links page on scripting.com to look awful. There was a change in the way links.daveverse.org was formatting the description elements.
8
+
9
+ #### 11/18/25; 8:09:33 AM by DW
10
+
11
+ In convertFeed, if there's a source:markdown element present in an item, we were changing the value of the item description to a rendered version of the markdown text. There's no comment explaining why we did this and it seems wrong. It might make some sense if there's no description element present.
12
+
13
+ This caused problems in the scripting.com/rss.xml feed because we were generating the markdown text from the description, and it was screwing up fediverse addresses that it thought was a mailto. Like @scripting@daveverse.org.
14
+
15
+ I commented the line of code out. It seems it should be up to the source of the feed to decide what the relationship is between the markdown text and the description.
16
+
17
+ #### 10/10/25; 11:13:23 AM by DW
18
+
19
+ We now look for site id and post id in wordpress-generated sites.
20
+
21
+ No we don't. I misunderstood, the id's are not present in the feeds, they are present in the API.
22
+
1
23
  #### 8/23/25; 10:54:38 AM by DW
2
24
 
3
25
  wpSiteId and wpPostId are now numbers.