feedsweep 2.0.0 → 2.0.1

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/README.md CHANGED
@@ -96,7 +96,7 @@ The `stringTransforms` and `domTransforms` options each fully replace the corres
96
96
 
97
97
  ## DOM library
98
98
 
99
- Feedsweep is parser-agnostic. You provide `parseHtmlFn` — a function that turns an HTML string into a `Document`. Use any DOM library that produces a standards-compliant `Document`.
99
+ Feedsweep is parser-agnostic. You provide `parseHtmlFn` — a function that turns an HTML string into a `Document`. Use any DOM library that produces a standards-compliant `Document`. The test suite runs the full pipeline against both linkedom and jsdom.
100
100
 
101
101
  ```typescript
102
102
  // linkedom (recommended default)
@@ -33,7 +33,7 @@ const youtubeResolveEmbed = (url) => {
33
33
  return {
34
34
  provider: "youtube",
35
35
  id: videoId,
36
- src: `https://www.youtube-nocookie.com/embed/${videoId}`,
36
+ src: `https://www.youtube.com/embed/${videoId}`,
37
37
  url: `https://www.youtube.com/watch?v=${videoId}`,
38
38
  thumbnail: composeThumbnailUrl(videoId)
39
39
  };
package/package.json CHANGED
@@ -40,10 +40,13 @@
40
40
  ],
41
41
  "scripts": {
42
42
  "prepare": "lefthook install",
43
- "build": "tsdown src/index.ts src/defaults.ts src/parsers/linkedom.ts --format esm --dts --clean --unbundle --no-fixed-extension"
43
+ "build": "tsdown src/index.ts src/defaults.ts src/parsers/linkedom.ts --format esm --dts --clean --unbundle --no-fixed-extension",
44
+ "test": "bun test",
45
+ "test:linkedom": "DOM_LIBRARY=linkedom bun test",
46
+ "test:jsdom": "DOM_LIBRARY=jsdom bun test"
44
47
  },
45
48
  "dependencies": {
46
- "@wordpress/autop": "^4.46.0",
49
+ "@wordpress/autop": "^4.47.0",
47
50
  "highlight.js": "^11.11.1",
48
51
  "linkifyjs": "^4.3.2",
49
52
  "srcset": "^5.0.3"
@@ -60,9 +63,11 @@
60
63
  },
61
64
  "devDependencies": {
62
65
  "@types/bun": "^1.3.13",
66
+ "@types/jsdom": "^28.0.3",
67
+ "jsdom": "^29.1.1",
63
68
  "kvalita": "^1.13.0",
64
69
  "linkedom": "^0.18.12",
65
- "tsdown": "^0.22.0"
70
+ "tsdown": "^0.22.1"
66
71
  },
67
- "version": "2.0.0"
72
+ "version": "2.0.1"
68
73
  }