Skip to content

Releases: fedeya/remix-sitemap

v2.2.1

19 Aug 00:29
Compare
Choose a tag to compare

What's Changed

  • docs: add config api reference by @fedeya in #39

Full Changelog: v2.2.0...v2.2.1

v2.2.0

19 Jul 03:59
8fa807d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.1.0...v2.2.0

v2.1.0

23 Apr 20:15
Compare
Choose a tag to compare

What's Changed

New Features

Full Changelog: v2.0.1...v2.1.0

v2.0.1

06 Apr 21:55
Compare
Choose a tag to compare

What's Changed

Bug Fixes

  • change path validation for support v2 by @fedeya in #33

Full Changelog: v2.0.0...v2.0.1

v2.0.0

04 Apr 00:06
b816480
Compare
Choose a tag to compare

What's Changed

Now the API is more flexible and easier to use.

Reference: remix-run/remix#2912 (comment)

Example for change properties in a route

import type { SitemapFunction } from 'remix-sitemap'

export const sitemap: SitemapFunction = () => ({
  loc: '/about',
  lastmod: new Date().toISOString(),
  changefreq: 'daily',
  priority: 0.5,
});

Example for usage in dynamic routes

import type { SitemapFunction } from 'remix-sitemap'

export const sitemap: SitemapFunction = async () => {
  const posts = await getPosts();

  return posts.map(post => ({
    loc: `/posts/${post.slug}`,
    exclude: post.isDraft,
  }));
}

This new api not has support for optionalSegments.
The most real use case it had was to be able to map the different routes located (like ($lang)/blog), but it did not cover it 100% and its API was somewhat complicated.

I'm working on a new way to support internationalized routing and thinking again about the optionalSegments api.
This discussion is open to suggestions and ideas. #29

Migration from v1 to v2

Both API's can be used at the same time for a incremental migration.
You can still use the old api, but it is deprecated and will be removed in the next major version.

Breaking Changes

  • Marked handle as deprecated in #25

New Features

  • Changed api to be more flexible and easier to use in #25.
  • Add format option in config in #26.

Documentation Changes

  • Removed documentation for optionalSegments and handle
  • Moved the old docs to docs/legacy and updated the README.md to point to the new docs.

Full Changelog: v1.3.4...v2.0.0

v1.3.4

02 Apr 20:38
Compare
Choose a tag to compare

What's Changed

  • feat: add eslint and ci linting action by @fedeya in #21
  • feat: improve jsdoc in config by @fedeya in #22
  • refactor: check if is undefined in getBooleanValue by @fedeya in #24

Full Changelog: v1.3.3...v1.3.4

v1.3.3

01 Apr 03:12
Compare
Choose a tag to compare

What's Changed

  • refactor: move node-xml to fast-xml-parser by @fedeya in #20

Full Changelog: v1.3.2...v1.3.3

v1.3.2

31 Mar 19:30
Compare
Choose a tag to compare

What's Changed

  • feat/tests by @fedeya in #17
  • fix: add plugin for clean assets imports in build time generation by @fedeya in #19

Full Changelog: v1.3.1...v1.3.2

v1.3.1

31 Mar 01:25
Compare
Choose a tag to compare

What's Changed

  • fix: add absolute param for avoid concatening url by @fedeya in #16

Full Changelog: v1.3.0...v1.3.1

v1.3.0

18 Mar 18:37
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.2.5...v1.3.0