Comparing version 1.4.0 to 2.4.0
{ | ||
"name": "sitemapy", | ||
"version": "1.4.0", | ||
"version": "2.4.0", | ||
"description": "Simple utility to generate sitemaps in xml, with zero dependencies", | ||
@@ -5,0 +5,0 @@ "main": "dist/sitemapy.js", |
@@ -24,3 +24,3 @@ # Sitemapy | ||
changefreq: "daily", | ||
lastmod: 10-04-22 | ||
lastmod: "10-04-22" | ||
} | ||
@@ -47,3 +47,3 @@ ] | ||
changefreq: "daily", | ||
lastmod: 10-04-22 | ||
lastmod: "10-04-22" | ||
} | ||
@@ -77,2 +77,24 @@ ] | ||
``` | ||
``` | ||
## Breaking changes on sitemapy versions >=2.4.0 | ||
In versions prior to 2.4.0, urls would already have the starting slash prefixed. | ||
Now that is left for the user to define themselves, it makes more sense. | ||
Prior to 2.4.0 | ||
```js | ||
const url = "about"; | ||
``` | ||
Would result in "https://example.com/about" | ||
After and including version 2.4.0 | ||
```js | ||
const url = "/about"; | ||
``` | ||
Would result in "https://example.com/about" |
9081
98