Skip to content

Commit 2f0c20e

Browse files
committed
v6.2.1rc2
- Add ts types - Update examples
1 parent fe94e72 commit 2f0c20e

File tree

7 files changed

+13
-27
lines changed

7 files changed

+13
-27
lines changed

examples/bun-feed-reader/README.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,15 @@ Open `http://localhost:3103/?url=https://news.google.com/rss` to see the result.
1717

1818
You can specify the following options via query string parameters:
1919

20-
- `includeEntryContent`
21-
- `includeOptionalElements`
22-
- `useISODateFormat`
2320
- `normalization`
21+
- `useISODateFormat`
2422

2523
These params can be set to `y` or `n`, with `y` is truthy, `n` is falsy.
2624

2725
For examples:
2826

2927
```
30-
http://localhost:3103/?url=https://news.google.com/rss&includeEntryContent=y&useISODateFormat=n&includeOptionalElements=y
28+
http://localhost:3103/?normalization=y&useISODateFormat=y&url=https://news.google.com/rss
3129
```
3230

33-
3431
---

examples/deno-feed-reader/README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,15 @@ Open `http://localhost:3103/?url=https://news.google.com/rss` to see the result.
1111

1212
You can specify the following options via query string parameters:
1313

14-
- `includeEntryContent`
15-
- `includeOptionalElements`
16-
- `useISODateFormat`
1714
- `normalization`
15+
- `useISODateFormat`
1816

1917
These params can be set to `y` or `n`, with `y` is truthy, `n` is falsy.
2018

2119
For examples:
2220

2321
```
24-
http://localhost:3103/?url=https://news.google.com/rss&includeEntryContent=y&useISODateFormat=n&includeOptionalElements=y
22+
http://localhost:3103/?normalization=y&useISODateFormat=y&url=https://news.google.com/rss
2523
```
2624

2725
---

examples/node-feed-reader/README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,15 @@ Open `http://localhost:3103/?url=https://news.google.com/rss` to see the result.
1919

2020
You can specify the following options via query string parameters:
2121

22-
- `includeEntryContent`
23-
- `includeOptionalElements`
24-
- `useISODateFormat`
2522
- `normalization`
23+
- `useISODateFormat`
2624

2725
These params can be set to `y` or `n`, with `y` is truthy, `n` is falsy.
2826

2927
For examples:
3028

3129
```
32-
http://localhost:3103/?url=https://news.google.com/rss&includeEntryContent=y&useISODateFormat=n&includeOptionalElements=y
30+
http://localhost:3103/?normalization=y&useISODateFormat=y&url=https://news.google.com/rss
3331
```
3432

3533
---

examples/node-feed-reader/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
},
99
"dependencies": {
1010
"@extractus/feed-extractor": "latest",
11-
"express": "^4.18.1"
11+
"express": "^4.18.2"
1212
}
1313
}

examples/tsnode-feed-reader/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
"start": "node dist/index.js"
88
},
99
"devDependencies": {
10-
"typescript": "^4.8.3"
10+
"typescript": "^4.9.4"
1111
},
1212
"dependencies": {
1313
"@extractus/feed-extractor": "latest",
14-
"express": "^4.18.1"
14+
"express": "^4.18.2"
1515
}
1616
}

index.d.ts

+3-10
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,6 @@ export interface ReaderOptions {
3232
* default: true
3333
*/
3434
normalization?: boolean;
35-
/**
36-
* include full content of feed entry if present
37-
* default: false
38-
*/
39-
includeEntryContent?: boolean;
40-
/**
41-
* include optional elements if any
42-
* default: false
43-
*/
44-
includeOptionalElements?: boolean;
4535
/**
4636
* convert datetime to ISO format
4737
* default: true
@@ -80,4 +70,7 @@ export interface FetchOptions {
8070
proxy?: ProxyConfig;
8171
}
8272

73+
export function extractFromXml(xml: string, options?: ReaderOptions): object<FeedData>;
74+
export function extractFromJson(json: string, options?: ReaderOptions): object<FeedData>;
75+
export function extract(url: string, options?: ReaderOptions, fetchOptions?: FetchOptions): Promise<FeedData>;
8376
export function read(url: string, options?: ReaderOptions, fetchOptions?: FetchOptions): Promise<FeedData>;

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "6.2.1rc1",
2+
"version": "6.2.1rc2",
33
"name": "@extractus/feed-extractor",
44
"description": "To read and normalize RSS/ATOM/JSON feed data",
55
"homepage": "https://github.com/extractus/feed-extractor",

0 commit comments

Comments
 (0)