feedsmith 3.0.0-next.3 → 3.0.0-next.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.
@@ -15,7 +15,7 @@ type Requirable<T> = T | {
15
15
  type DateLike = Date | string;
16
16
  type ExtraFields<F extends ReadonlyArray<string>, V = unknown> = { [K in F[number]]?: V };
17
17
  type IsPlainObject<T> = T extends Array<unknown> ? false : T extends ((...args: Array<unknown>) => unknown) ? false : T extends Date ? false : T extends object ? T extends null ? false : true : false;
18
- type DeepOmit<T, K$1 extends string> = T extends Array<infer U> ? Array<DeepOmit<U, K$1>> : IsPlainObject<T> extends true ? Pick<{ [P in keyof T]: DeepOmit<T[P], K$1> }, Exclude<keyof T, K$1>> : T;
18
+ type DeepOmit<T, K extends string> = T extends Array<infer U> ? Array<DeepOmit<U, K>> : IsPlainObject<T> extends true ? Pick<{ [P in keyof T]: DeepOmit<T[P], K> }, Exclude<keyof T, K>> : T;
19
19
  type ParseOptions = {
20
20
  maxItems?: number;
21
21
  };
@@ -37,4 +37,4 @@ type JsonGenerateOptions<O = Record<string, unknown>, S extends boolean = false>
37
37
  };
38
38
  type JsonGenerateMain<L, St, O = Record<string, unknown>> = <S extends boolean = false>(value: S extends true ? St : L, options?: JsonGenerateOptions<O, S>) => unknown;
39
39
  //#endregion
40
- export { DateLike, DeepOmit, ExtraFields, JsonGenerateMain, ParseOptions, Requirable, Strict, XmlGenerateMain, XmlGenerateOptions };
40
+ export { DateLike, DeepOmit, ExtraFields, JsonGenerateMain, ParseOptions, Requirable, Strict, XmlGenerateMain, XmlGenerateOptions, XmlStylesheet };
@@ -15,7 +15,7 @@ type Requirable<T> = T | {
15
15
  type DateLike = Date | string;
16
16
  type ExtraFields<F extends ReadonlyArray<string>, V = unknown> = { [K in F[number]]?: V };
17
17
  type IsPlainObject<T> = T extends Array<unknown> ? false : T extends ((...args: Array<unknown>) => unknown) ? false : T extends Date ? false : T extends object ? T extends null ? false : true : false;
18
- type DeepOmit<T, K$1 extends string> = T extends Array<infer U> ? Array<DeepOmit<U, K$1>> : IsPlainObject<T> extends true ? Pick<{ [P in keyof T]: DeepOmit<T[P], K$1> }, Exclude<keyof T, K$1>> : T;
18
+ type DeepOmit<T, K extends string> = T extends Array<infer U> ? Array<DeepOmit<U, K>> : IsPlainObject<T> extends true ? Pick<{ [P in keyof T]: DeepOmit<T[P], K> }, Exclude<keyof T, K>> : T;
19
19
  type ParseOptions = {
20
20
  maxItems?: number;
21
21
  };
@@ -37,4 +37,4 @@ type JsonGenerateOptions<O = Record<string, unknown>, S extends boolean = false>
37
37
  };
38
38
  type JsonGenerateMain<L, St, O = Record<string, unknown>> = <S extends boolean = false>(value: S extends true ? St : L, options?: JsonGenerateOptions<O, S>) => unknown;
39
39
  //#endregion
40
- export { DateLike, DeepOmit, ExtraFields, JsonGenerateMain, ParseOptions, Requirable, Strict, XmlGenerateMain, XmlGenerateOptions };
40
+ export { DateLike, DeepOmit, ExtraFields, JsonGenerateMain, ParseOptions, Requirable, Strict, XmlGenerateMain, XmlGenerateOptions, XmlStylesheet };
@@ -23,7 +23,6 @@ import { XmlNs } from "../../../namespaces/xml/common/types.cjs";
23
23
  import { YtNs } from "../../../namespaces/yt/common/types.cjs";
24
24
 
25
25
  //#region src/feeds/atom/common/types.d.ts
26
-
27
26
  declare namespace Atom {
28
27
  type Text = string;
29
28
  type Link<TDate extends DateLike, TStrict extends boolean = false> = Strict<{
@@ -23,7 +23,6 @@ import { XmlNs } from "../../../namespaces/xml/common/types.js";
23
23
  import { YtNs } from "../../../namespaces/yt/common/types.js";
24
24
 
25
25
  //#region src/feeds/atom/common/types.d.ts
26
-
27
26
  declare namespace Atom {
28
27
  type Text = string;
29
28
  type Link<TDate extends DateLike, TStrict extends boolean = false> = Strict<{
package/dist/index.d.cts CHANGED
@@ -1,6 +1,40 @@
1
+ import { DateLike, XmlStylesheet } from "./common/types.cjs";
2
+ import { AdminNs } from "./namespaces/admin/common/types.cjs";
3
+ import { AppNs } from "./namespaces/app/common/types.cjs";
4
+ import { ArxivNs } from "./namespaces/arxiv/common/types.cjs";
5
+ import { CcNs } from "./namespaces/cc/common/types.cjs";
6
+ import { CreativeCommonsNs } from "./namespaces/creativecommons/common/types.cjs";
7
+ import { DcNs } from "./namespaces/dc/common/types.cjs";
8
+ import { DcTermsNs } from "./namespaces/dcterms/common/types.cjs";
9
+ import { GeoNs } from "./namespaces/geo/common/types.cjs";
10
+ import { GeoRssNs } from "./namespaces/georss/common/types.cjs";
11
+ import { GooglePlayNs } from "./namespaces/googleplay/common/types.cjs";
12
+ import { ItunesNs } from "./namespaces/itunes/common/types.cjs";
13
+ import { MediaNs } from "./namespaces/media/common/types.cjs";
14
+ import { OpenSearchNs } from "./namespaces/opensearch/common/types.cjs";
15
+ import { PingbackNs } from "./namespaces/pingback/common/types.cjs";
16
+ import { PscNs } from "./namespaces/psc/common/types.cjs";
17
+ import { SlashNs } from "./namespaces/slash/common/types.cjs";
18
+ import { SyNs } from "./namespaces/sy/common/types.cjs";
19
+ import { ThrNs } from "./namespaces/thr/common/types.cjs";
20
+ import { TrackbackNs } from "./namespaces/trackback/common/types.cjs";
21
+ import { WfwNs } from "./namespaces/wfw/common/types.cjs";
22
+ import { XmlNs } from "./namespaces/xml/common/types.cjs";
23
+ import { YtNs } from "./namespaces/yt/common/types.cjs";
1
24
  import { Atom } from "./feeds/atom/common/types.cjs";
2
25
  import { Json } from "./feeds/json/common/types.cjs";
26
+ import { AtomNs } from "./namespaces/atom/common/types.cjs";
27
+ import { ContentNs } from "./namespaces/content/common/types.cjs";
28
+ import { RdfNs } from "./namespaces/rdf/common/types.cjs";
3
29
  import { Rdf } from "./feeds/rdf/common/types.cjs";
30
+ import { AcastNs } from "./namespaces/acast/common/types.cjs";
31
+ import { BlogChannelNs } from "./namespaces/blogchannel/common/types.cjs";
32
+ import { FeedPressNs } from "./namespaces/feedpress/common/types.cjs";
33
+ import { PodcastNs } from "./namespaces/podcast/common/types.cjs";
34
+ import { PrismNs } from "./namespaces/prism/common/types.cjs";
35
+ import { RawVoiceNs } from "./namespaces/rawvoice/common/types.cjs";
36
+ import { SourceNs } from "./namespaces/source/common/types.cjs";
37
+ import { SpotifyNs } from "./namespaces/spotify/common/types.cjs";
4
38
  import { Rss } from "./feeds/rss/common/types.cjs";
5
39
  import { parse as parse$1 } from "./common/parse.cjs";
6
40
  import { detect } from "./feeds/atom/detect/index.cjs";
@@ -17,4 +51,4 @@ import { parse as parse$5 } from "./feeds/rss/parse/index.cjs";
17
51
  import { Opml } from "./opml/common/types.cjs";
18
52
  import { generate as generate$2 } from "./opml/generate/index.cjs";
19
53
  import { parse as parse$3 } from "./opml/parse/index.cjs";
20
- export { type Atom, type Json, type Opml, type Rdf, type Rss, detect as detectAtomFeed, detect$1 as detectJsonFeed, detect$2 as detectRdfFeed, detect$3 as detectRssFeed, generate as generateAtomFeed, generate$1 as generateJsonFeed, generate$2 as generateOpml, generate$3 as generateRssFeed, parse as parseAtomFeed, parse$1 as parseFeed, parse$2 as parseJsonFeed, parse$3 as parseOpml, parse$4 as parseRdfFeed, parse$5 as parseRssFeed };
54
+ export { type AcastNs, type AdminNs, type AppNs, type ArxivNs, type Atom, type AtomNs, type BlogChannelNs, type CcNs, type ContentNs, type CreativeCommonsNs, type DateLike, type DcNs, type DcTermsNs, type FeedPressNs, type GeoNs, type GeoRssNs, type GooglePlayNs, type ItunesNs, type Json, type MediaNs, type OpenSearchNs, type Opml, type PingbackNs, type PodcastNs, type PrismNs, type PscNs, type RawVoiceNs, type Rdf, type RdfNs, type Rss, type SlashNs, type SourceNs, type SpotifyNs, type SyNs, type ThrNs, type TrackbackNs, type WfwNs, type XmlNs, type XmlStylesheet, type YtNs, detect as detectAtomFeed, detect$1 as detectJsonFeed, detect$2 as detectRdfFeed, detect$3 as detectRssFeed, generate as generateAtomFeed, generate$1 as generateJsonFeed, generate$2 as generateOpml, generate$3 as generateRssFeed, parse as parseAtomFeed, parse$1 as parseFeed, parse$2 as parseJsonFeed, parse$3 as parseOpml, parse$4 as parseRdfFeed, parse$5 as parseRssFeed };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,40 @@
1
+ import { DateLike, XmlStylesheet } from "./common/types.js";
2
+ import { AdminNs } from "./namespaces/admin/common/types.js";
3
+ import { AppNs } from "./namespaces/app/common/types.js";
4
+ import { ArxivNs } from "./namespaces/arxiv/common/types.js";
5
+ import { CcNs } from "./namespaces/cc/common/types.js";
6
+ import { CreativeCommonsNs } from "./namespaces/creativecommons/common/types.js";
7
+ import { DcNs } from "./namespaces/dc/common/types.js";
8
+ import { DcTermsNs } from "./namespaces/dcterms/common/types.js";
9
+ import { GeoNs } from "./namespaces/geo/common/types.js";
10
+ import { GeoRssNs } from "./namespaces/georss/common/types.js";
11
+ import { GooglePlayNs } from "./namespaces/googleplay/common/types.js";
12
+ import { ItunesNs } from "./namespaces/itunes/common/types.js";
13
+ import { MediaNs } from "./namespaces/media/common/types.js";
14
+ import { OpenSearchNs } from "./namespaces/opensearch/common/types.js";
15
+ import { PingbackNs } from "./namespaces/pingback/common/types.js";
16
+ import { PscNs } from "./namespaces/psc/common/types.js";
17
+ import { SlashNs } from "./namespaces/slash/common/types.js";
18
+ import { SyNs } from "./namespaces/sy/common/types.js";
19
+ import { ThrNs } from "./namespaces/thr/common/types.js";
20
+ import { TrackbackNs } from "./namespaces/trackback/common/types.js";
21
+ import { WfwNs } from "./namespaces/wfw/common/types.js";
22
+ import { XmlNs } from "./namespaces/xml/common/types.js";
23
+ import { YtNs } from "./namespaces/yt/common/types.js";
1
24
  import { Atom } from "./feeds/atom/common/types.js";
2
25
  import { Json } from "./feeds/json/common/types.js";
26
+ import { AtomNs } from "./namespaces/atom/common/types.js";
27
+ import { ContentNs } from "./namespaces/content/common/types.js";
28
+ import { RdfNs } from "./namespaces/rdf/common/types.js";
3
29
  import { Rdf } from "./feeds/rdf/common/types.js";
30
+ import { AcastNs } from "./namespaces/acast/common/types.js";
31
+ import { BlogChannelNs } from "./namespaces/blogchannel/common/types.js";
32
+ import { FeedPressNs } from "./namespaces/feedpress/common/types.js";
33
+ import { PodcastNs } from "./namespaces/podcast/common/types.js";
34
+ import { PrismNs } from "./namespaces/prism/common/types.js";
35
+ import { RawVoiceNs } from "./namespaces/rawvoice/common/types.js";
36
+ import { SourceNs } from "./namespaces/source/common/types.js";
37
+ import { SpotifyNs } from "./namespaces/spotify/common/types.js";
4
38
  import { Rss } from "./feeds/rss/common/types.js";
5
39
  import { parse as parse$1 } from "./common/parse.js";
6
40
  import { detect } from "./feeds/atom/detect/index.js";
@@ -17,4 +51,4 @@ import { parse as parse$5 } from "./feeds/rss/parse/index.js";
17
51
  import { Opml } from "./opml/common/types.js";
18
52
  import { generate as generate$2 } from "./opml/generate/index.js";
19
53
  import { parse as parse$3 } from "./opml/parse/index.js";
20
- export { type Atom, type Json, type Opml, type Rdf, type Rss, detect as detectAtomFeed, detect$1 as detectJsonFeed, detect$2 as detectRdfFeed, detect$3 as detectRssFeed, generate as generateAtomFeed, generate$1 as generateJsonFeed, generate$2 as generateOpml, generate$3 as generateRssFeed, parse as parseAtomFeed, parse$1 as parseFeed, parse$2 as parseJsonFeed, parse$3 as parseOpml, parse$4 as parseRdfFeed, parse$5 as parseRssFeed };
54
+ export { type AcastNs, type AdminNs, type AppNs, type ArxivNs, type Atom, type AtomNs, type BlogChannelNs, type CcNs, type ContentNs, type CreativeCommonsNs, type DateLike, type DcNs, type DcTermsNs, type FeedPressNs, type GeoNs, type GeoRssNs, type GooglePlayNs, type ItunesNs, type Json, type MediaNs, type OpenSearchNs, type Opml, type PingbackNs, type PodcastNs, type PrismNs, type PscNs, type RawVoiceNs, type Rdf, type RdfNs, type Rss, type SlashNs, type SourceNs, type SpotifyNs, type SyNs, type ThrNs, type TrackbackNs, type WfwNs, type XmlNs, type XmlStylesheet, type YtNs, detect as detectAtomFeed, detect$1 as detectJsonFeed, detect$2 as detectRdfFeed, detect$3 as detectRssFeed, generate as generateAtomFeed, generate$1 as generateJsonFeed, generate$2 as generateOpml, generate$3 as generateRssFeed, parse as parseAtomFeed, parse$1 as parseFeed, parse$2 as parseJsonFeed, parse$3 as parseOpml, parse$4 as parseRdfFeed, parse$5 as parseRssFeed };
@@ -21,12 +21,9 @@ declare namespace ItunesNs {
21
21
  episode?: number;
22
22
  season?: number;
23
23
  episodeType?: string;
24
- block?: boolean;
25
- /** @deprecated Use standard RSS description instead. No longer used by Apple Podcasts. */
26
- summary?: string;
27
- /** @deprecated No longer used by Apple Podcasts. */
28
- subtitle?: string;
29
- /** @deprecated No longer used for search in Apple Podcasts. */
24
+ block?: boolean; /** @deprecated Use standard RSS description instead. No longer used by Apple Podcasts. */
25
+ summary?: string; /** @deprecated No longer used by Apple Podcasts. */
26
+ subtitle?: string; /** @deprecated No longer used for search in Apple Podcasts. */
30
27
  keywords?: Array<string>;
31
28
  };
32
29
  type Feed<TStrict extends boolean = false> = {
@@ -39,14 +36,10 @@ declare namespace ItunesNs {
39
36
  newFeedUrl?: string;
40
37
  block?: boolean;
41
38
  complete?: boolean;
42
- applePodcastsVerify?: string;
43
- /** @deprecated Use standard RSS description instead. No longer used by Apple Podcasts. */
44
- summary?: string;
45
- /** @deprecated No longer used by Apple Podcasts. */
46
- subtitle?: string;
47
- /** @deprecated No longer used for search in Apple Podcasts. */
48
- keywords?: Array<string>;
49
- /** @deprecated No longer supported by Apple Podcasts. */
39
+ applePodcastsVerify?: string; /** @deprecated Use standard RSS description instead. No longer used by Apple Podcasts. */
40
+ summary?: string; /** @deprecated No longer used by Apple Podcasts. */
41
+ subtitle?: string; /** @deprecated No longer used for search in Apple Podcasts. */
42
+ keywords?: Array<string>; /** @deprecated No longer supported by Apple Podcasts. */
50
43
  owner?: Owner;
51
44
  };
52
45
  }
@@ -21,12 +21,9 @@ declare namespace ItunesNs {
21
21
  episode?: number;
22
22
  season?: number;
23
23
  episodeType?: string;
24
- block?: boolean;
25
- /** @deprecated Use standard RSS description instead. No longer used by Apple Podcasts. */
26
- summary?: string;
27
- /** @deprecated No longer used by Apple Podcasts. */
28
- subtitle?: string;
29
- /** @deprecated No longer used for search in Apple Podcasts. */
24
+ block?: boolean; /** @deprecated Use standard RSS description instead. No longer used by Apple Podcasts. */
25
+ summary?: string; /** @deprecated No longer used by Apple Podcasts. */
26
+ subtitle?: string; /** @deprecated No longer used for search in Apple Podcasts. */
30
27
  keywords?: Array<string>;
31
28
  };
32
29
  type Feed<TStrict extends boolean = false> = {
@@ -39,14 +36,10 @@ declare namespace ItunesNs {
39
36
  newFeedUrl?: string;
40
37
  block?: boolean;
41
38
  complete?: boolean;
42
- applePodcastsVerify?: string;
43
- /** @deprecated Use standard RSS description instead. No longer used by Apple Podcasts. */
44
- summary?: string;
45
- /** @deprecated No longer used by Apple Podcasts. */
46
- subtitle?: string;
47
- /** @deprecated No longer used for search in Apple Podcasts. */
48
- keywords?: Array<string>;
49
- /** @deprecated No longer supported by Apple Podcasts. */
39
+ applePodcastsVerify?: string; /** @deprecated Use standard RSS description instead. No longer used by Apple Podcasts. */
40
+ summary?: string; /** @deprecated No longer used by Apple Podcasts. */
41
+ subtitle?: string; /** @deprecated No longer used for search in Apple Podcasts. */
42
+ keywords?: Array<string>; /** @deprecated No longer supported by Apple Podcasts. */
50
43
  owner?: Owner;
51
44
  };
52
45
  }
@@ -75,14 +75,10 @@ declare namespace PrismNs {
75
75
  locations?: Array<string>;
76
76
  objects?: Array<string>;
77
77
  profession?: string;
78
- sport?: string;
79
- /** @deprecated Since PRISM 3.0. Use pur:embargoDate instead. */
80
- embargoDate?: TDate;
81
- /** @deprecated Since PRISM 3.0. Use pur:copyrightDate instead. */
82
- copyright?: string;
83
- /** @deprecated Since PRISM 3.0. Use pur:expirationDate instead. */
84
- expirationDate?: TDate;
85
- /** @deprecated Since PRISM 3.0. Use pur:rightsAgent instead. */
78
+ sport?: string; /** @deprecated Since PRISM 3.0. Use pur:embargoDate instead. */
79
+ embargoDate?: TDate; /** @deprecated Since PRISM 3.0. Use pur:copyrightDate instead. */
80
+ copyright?: string; /** @deprecated Since PRISM 3.0. Use pur:expirationDate instead. */
81
+ expirationDate?: TDate; /** @deprecated Since PRISM 3.0. Use pur:rightsAgent instead. */
86
82
  rightsAgent?: string;
87
83
  };
88
84
  type Item<TDate extends DateLike> = {
@@ -141,14 +137,10 @@ declare namespace PrismNs {
141
137
  ratings?: Array<string>;
142
138
  timePeriod?: string;
143
139
  versionIdentifier?: string;
144
- tickers?: Array<string>;
145
- /** @deprecated Since PRISM 3.0. Use pur:embargoDate instead. */
146
- embargoDate?: TDate;
147
- /** @deprecated Since PRISM 3.0. Use pur:copyrightDate instead. */
148
- copyright?: string;
149
- /** @deprecated Since PRISM 3.0. Use pur:expirationDate instead. */
150
- expirationDate?: TDate;
151
- /** @deprecated Since PRISM 3.0. Use pur:rightsAgent instead. */
140
+ tickers?: Array<string>; /** @deprecated Since PRISM 3.0. Use pur:embargoDate instead. */
141
+ embargoDate?: TDate; /** @deprecated Since PRISM 3.0. Use pur:copyrightDate instead. */
142
+ copyright?: string; /** @deprecated Since PRISM 3.0. Use pur:expirationDate instead. */
143
+ expirationDate?: TDate; /** @deprecated Since PRISM 3.0. Use pur:rightsAgent instead. */
152
144
  rightsAgent?: string;
153
145
  };
154
146
  }
@@ -75,14 +75,10 @@ declare namespace PrismNs {
75
75
  locations?: Array<string>;
76
76
  objects?: Array<string>;
77
77
  profession?: string;
78
- sport?: string;
79
- /** @deprecated Since PRISM 3.0. Use pur:embargoDate instead. */
80
- embargoDate?: TDate;
81
- /** @deprecated Since PRISM 3.0. Use pur:copyrightDate instead. */
82
- copyright?: string;
83
- /** @deprecated Since PRISM 3.0. Use pur:expirationDate instead. */
84
- expirationDate?: TDate;
85
- /** @deprecated Since PRISM 3.0. Use pur:rightsAgent instead. */
78
+ sport?: string; /** @deprecated Since PRISM 3.0. Use pur:embargoDate instead. */
79
+ embargoDate?: TDate; /** @deprecated Since PRISM 3.0. Use pur:copyrightDate instead. */
80
+ copyright?: string; /** @deprecated Since PRISM 3.0. Use pur:expirationDate instead. */
81
+ expirationDate?: TDate; /** @deprecated Since PRISM 3.0. Use pur:rightsAgent instead. */
86
82
  rightsAgent?: string;
87
83
  };
88
84
  type Item<TDate extends DateLike> = {
@@ -141,14 +137,10 @@ declare namespace PrismNs {
141
137
  ratings?: Array<string>;
142
138
  timePeriod?: string;
143
139
  versionIdentifier?: string;
144
- tickers?: Array<string>;
145
- /** @deprecated Since PRISM 3.0. Use pur:embargoDate instead. */
146
- embargoDate?: TDate;
147
- /** @deprecated Since PRISM 3.0. Use pur:copyrightDate instead. */
148
- copyright?: string;
149
- /** @deprecated Since PRISM 3.0. Use pur:expirationDate instead. */
150
- expirationDate?: TDate;
151
- /** @deprecated Since PRISM 3.0. Use pur:rightsAgent instead. */
140
+ tickers?: Array<string>; /** @deprecated Since PRISM 3.0. Use pur:embargoDate instead. */
141
+ embargoDate?: TDate; /** @deprecated Since PRISM 3.0. Use pur:copyrightDate instead. */
142
+ copyright?: string; /** @deprecated Since PRISM 3.0. Use pur:expirationDate instead. */
143
+ expirationDate?: TDate; /** @deprecated Since PRISM 3.0. Use pur:rightsAgent instead. */
152
144
  rightsAgent?: string;
153
145
  };
154
146
  }
package/package.json CHANGED
@@ -60,8 +60,8 @@
60
60
  "devDependencies": {
61
61
  "@types/bun": "^1.3.6",
62
62
  "kvalita": "^1.9.0",
63
- "tsdown": "^0.20.0-beta.1",
63
+ "tsdown": "^0.20.0-beta.4",
64
64
  "vitepress": "^1.6.4"
65
65
  },
66
- "version": "3.0.0-next.3"
66
+ "version": "3.0.0-next.4"
67
67
  }