@newskit-render/core 4.26.0 → 4.26.1-alpha.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [4.26.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.26.0-alpha.4...@newskit-render/core@4.26.0) (2024-04-30)
7
+
8
+ **Note:** Version bump only for package @newskit-render/core
9
+
10
+
11
+
12
+
13
+
6
14
  # [4.25.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.25.0-alpha.0...@newskit-render/core@4.25.0) (2024-04-25)
7
15
 
8
16
  **Note:** Version bump only for package @newskit-render/core
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newskit-render/core",
3
- "version": "4.26.0",
3
+ "version": "4.26.1-alpha.0",
4
4
  "description": "Newskit Render - Core package",
5
5
  "author": "",
6
6
  "license": "UNLICENSED",
@@ -46,7 +46,7 @@
46
46
  "@newskit-render/auth": "^1.8.0",
47
47
  "@newskit-render/checkout": "^3.9.25",
48
48
  "@newskit-render/feature-flags": "^1.7.0",
49
- "@newskit-render/feed": "^1.8.5",
49
+ "@newskit-render/feed": "^1.8.6-alpha.0",
50
50
  "@newskit-render/my-account": "^7.47.0",
51
51
  "@newskit-render/shared-components": "^4.23.4",
52
52
  "@newskit-render/standalone-components": "^3.20.18",
@@ -10,9 +10,8 @@ import { publisher, sitemapPublicationName } from '../../config'
10
10
  const handler = async (req: NextApiRequest, res: NextApiResponse) =>
11
11
  genericSitemap({
12
12
  res,
13
- dataType: 'competitions',
14
- publisher:
15
- publisher === 'DEMO' ? Publisher.VIRGIN : (publisher as Publisher),
13
+ dataType: 'competitionList',
14
+ publisher: publisher as Publisher,
16
15
  domain: new URL(getHost(req) as string).host,
17
16
  publicationName: sitemapPublicationName as string,
18
17
  })
package/pages/api/feed.ts CHANGED
@@ -7,8 +7,7 @@ import { publisher } from '../../config'
7
7
  const handler = async (req: NextApiRequest, res: NextApiResponse) =>
8
8
  rssFeed({
9
9
  res,
10
- publisher:
11
- publisher === 'DEMO' ? Publisher.VIRGIN : (publisher as Publisher),
10
+ publisher: publisher as Publisher,
12
11
  domain: getHost(req) as string,
13
12
  titeAttributes: {
14
13
  title: 'Demo Site',
@@ -10,8 +10,7 @@ import { publisher, sitemapPublicationName } from '../../config'
10
10
  const handler = async (req: NextApiRequest, res: NextApiResponse) =>
11
11
  newsSitemap({
12
12
  res,
13
- publisher:
14
- publisher === 'DEMO' ? Publisher.VIRGIN : (publisher as Publisher),
13
+ publisher: publisher as Publisher,
15
14
  domain: new URL(getHost(req) as string).host,
16
15
  publicationName: sitemapPublicationName as string,
17
16
  })
@@ -15,9 +15,8 @@ const defaultCustomStaticPagesCollection: CustomStaticPage[] = [
15
15
  const handler = async (req: NextApiRequest, res: NextApiResponse) =>
16
16
  genericSitemap({
17
17
  res,
18
- dataType: 'pages',
19
- publisher:
20
- publisher === 'DEMO' ? Publisher.VIRGIN : (publisher as Publisher),
18
+ dataType: 'pageList',
19
+ publisher: publisher as Publisher,
21
20
  domain: new URL(getHost(req) as string).host,
22
21
  publicationName: sitemapPublicationName as string,
23
22
  customStaticPageCollection: defaultCustomStaticPagesCollection,
@@ -15,8 +15,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) =>
15
15
  genericSitemap({
16
16
  res,
17
17
  query: req.query,
18
- publisher:
19
- publisher === 'DEMO' ? Publisher.VIRGIN : (publisher as Publisher),
18
+ publisher: publisher as Publisher,
20
19
  domain: new URL(getHost(req) as string).host,
21
20
  firstArticleDate: sitemapFirstPublicationDate as string,
22
21
  publicationName: sitemapPublicationName as string,