Skip to content

Commit 4bdcdb1

Browse files
authored
Merge pull request #99 from extractus/7.0.0
v7.0.0 - Bump version
2 parents 044a5d3 + 6180e01 commit 4bdcdb1

File tree

4 files changed

+22
-19
lines changed

4 files changed

+22
-19
lines changed

README.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,8 @@ npm i @extractus/feed-extractor
2323
```
2424

2525
```ts
26-
// es6 module
2726
import { extract } from '@extractus/feed-extractor'
2827

29-
// CommonJS
30-
const { extract } = require('@extractus/feed-extractor')
31-
32-
// you can specify exactly path to CommonJS version
33-
const { extract } = require('@extractus/feed-extractor/dist/cjs/feed-extractor.js')
34-
3528
// extract a RSS
3629
const result = await extract('https://news.google.com/rss')
3730
console.log(result)
@@ -50,7 +43,7 @@ import { extract } from 'npm:@extractus/feed-extractor'
5043
### Browser
5144

5245
```ts
53-
import { extract } from 'https://unpkg.com/@extractus/feed-extractor@latest/dist/feed-extractor.esm.js'
46+
import { extract } from 'https://esm.sh/@extractus/feed-extractor'
5447
```
5548

5649
Please check [the examples](https://github.com/extractus/feed-extractor/tree/main/examples) for reference.
@@ -354,8 +347,8 @@ See [parserOptions](#parseroptions-optional) above.
354347
```bash
355348
git clone https://github.com/extractus/feed-extractor.git
356349
cd feed-extractor
357-
npm i
358-
npm test
350+
pnpm i
351+
pnpm test
359352
```
360353

361354
![feed-extractor-test.png](https://i.imgur.com/2b5xt6S.png)
@@ -366,9 +359,8 @@ npm test
366359
```bash
367360
git clone https://github.com/extractus/feed-extractor.git
368361
cd feed-extractor
369-
npm install
370-
371-
npm run eval https://news.google.com/rss
362+
pnpm i
363+
pnpm eval https://news.google.com/rss
372364
```
373365

374366
## License

deno.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"imports": {
3+
"cross-fetch": "./src/deno/cross-fetch.js",
4+
"html-entities": "https://esm.sh/[email protected]",
5+
"fast-xml-parser": "https://esm.sh/[email protected]",
6+
"bellajs": "https://esm.sh/[email protected]"
7+
}
8+
}

eval.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// eval.js
22
// to quickly test with a single url or file
33

4-
import { read } from './src/main.js'
4+
import { extract } from './src/main.js'
55

66
const run = async (url) => {
77
try {
88
console.time('extract-feed')
9-
const feed = await read(url)
9+
const feed = await extract(url)
1010
console.log(feed)
1111
console.timeEnd('extract-feed')
1212
} catch (err) {

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "6.3.0",
2+
"version": "7.0.0",
33
"name": "@extractus/feed-extractor",
44
"description": "To read and normalize RSS/ATOM/JSON feed data",
55
"homepage": "https://extractor-demos.pages.dev",
@@ -11,7 +11,10 @@
1111
"main": "./src/main.js",
1212
"type": "module",
1313
"imports": {
14-
"cross-fetch": "./src/deno/cross-fetch.js"
14+
"cross-fetch": "./src/deno/cross-fetch.js",
15+
"html-entities": "https://esm.sh/[email protected]",
16+
"fast-xml-parser": "https://esm.sh/[email protected]",
17+
"bellajs": "https://esm.sh/[email protected]"
1518
},
1619
"browser": {
1720
"cross-fetch": "./src/deno/cross-fetch.js"
@@ -36,8 +39,8 @@
3639
},
3740
"devDependencies": {
3841
"eslint": "^8.44.0",
39-
"https-proxy-agent": "^7.0.0",
40-
"jest": "^29.6.0",
42+
"https-proxy-agent": "^7.0.1",
43+
"jest": "^29.6.1",
4144
"nock": "^13.3.1"
4245
},
4346
"keywords": [

0 commit comments

Comments
 (0)