Skip to content

Releases: ReeceM/prismic-sitemap

v0.5.3 - release fix

19 Feb 16:12
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.5.1...v0.5.2

v0.5.2

19 Feb 16:03
0b8a4c6
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.5.1...v0.5.2

v0.5.1

25 Nov 20:25
Compare
Choose a tag to compare

Full Changelog: v0.5.0...v0.5.1

v0.5.0

25 Nov 20:23
581b261
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.4.3...v0.5.0

v0.4.3

27 Jul 22:28
Compare
Choose a tag to compare

Fixes

Removes the possible duplicate sitemap entries in NextJS 12. Closes #16

Full Changelog: v0.4.2...v0.4.3

v0.4.2

05 Jul 20:46
Compare
Choose a tag to compare

Missed the update of the package version.

See previous release note for more details:

v0.4.1

Full Changelog: v0.4.0...v0.4.2

v0.4.1 - Pagination Fix

05 Jul 20:40
ad6678c
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.4.0...v0.4.1

Thanks

@kb1995

v0.4.0 (Pagination Automation)

30 Sep 19:39
Compare
Choose a tag to compare

0.4.0 - 2021-07-24

Feature

  • Added automatic pagination for all document types defined, or all that are returned.
    • this can also be configured with a pageSize per query if you wish to control that.

Thanks:

Thank you @amala-james-cko for making an initial PR and also noticing as well as @erikdroh

Using the feature

The feature is enabled by default, so when requesting a document type set it will automatically page through each set of results for the doc and the move onto the next

The option to set the pageSize per each request is available if there are issues with requesting only 20 pages at a time.

{
  sitemap: {
    linkResolver = Function,
    apiEndpoint = String,
    accessToken = String|null,
    hostname = String,
    fileName = String,
    optionsMapPerDocumentType = Object|Object<Function>,
    defaultEntryOption = Object,
    staticPaths = Array<Object>,
+    pagination = {
+      pageSize: Number,
+    },
    documentTypes = Array,
    sitemapConfig = Object
  }
}

Caveats

The feature may cause an issue I suspect if there are lots of pages, as it currently places it first into an in memory object then into the sitemap stream. So a future release will likely change that flow. But it won't be breaking. :)

v0.3.1

24 Jul 15:28
Compare
Choose a tag to compare

This is a patch release for the package.

Fixed

  • Custom webpack function was not being called when running in isServer, @fattomhk, PR #11

v0.3.0 - lastmod suppport

30 Jun 21:09
Compare
Choose a tag to compare

Release of version 0.3.0

Added

  • Option to make use of callback in optionsMapPerDocumentType see Discussion Lastmod support #8, thank you @mkbctrl for highlighting this missing bit.
  • Added option to have a static path list of urls for normal routes that aren't dynamic
  • Static paths can also have functions that allow it to perform some other logic on the user level
  • static paths will use the latest date for lastmod if not defined

Changed

  • Made the URL result from the linkResolver take priority on results that go into the sitemap
  • The sitemapConfig option is using the lastmodDateOnly = true setting to ensure all lastmod dates are YYYY-MM-DD only. But can be disabled to keep UTC time.