vite-plugin-sitemap 0.6.2 → 0.7.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.
Files changed (2) hide show
  1. package/README.md +4 -3
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -161,11 +161,12 @@ Converts XML into a human readable format
161
161
 
162
162
  ### i18n
163
163
 
164
- - **Type:** `{ defaultLanguage?: string, languages: string[] }`
165
- - **Default:** `undefined`
164
+ - **Type:** `{ defaultLanguage?: string, languages: string[], strategy?: 'suffix' | 'prefix' }`
165
+ - **Default:** `undefined, strategy: 'suffix'`
166
166
 
167
167
  Add i18n support defining alternate links.
168
- defaultLanguage will use this language with / and languages with /language
168
+ defaultLanguage will use this language with / and languages with /language.
169
+ strategy specifies if the language code is a suffix to the path or a prefix. 'suffix' is default. Example: http://localhost/mypage/en or http://localhost/en/mypage
169
170
 
170
171
  ### generateRobotsTxt
171
172
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vite-plugin-sitemap",
3
3
  "type": "module",
4
- "version": "0.6.2",
4
+ "version": "0.7.0",
5
5
  "packageManager": "pnpm@9.1.2",
6
6
  "description": "Sitemap generator plugin for Vite",
7
7
  "main": "dist/index.js",
@@ -27,7 +27,7 @@
27
27
  "eslint-plugin-format": "^0.1.1",
28
28
  "pkgroll": "^2.1.1",
29
29
  "pnpm": "^9.1.2",
30
- "sitemap-ts": "^1.7.2",
30
+ "sitemap-ts": "^1.8.0",
31
31
  "taze": "^0.13.8",
32
32
  "typescript": "^5.4.5",
33
33
  "vite": "^5.2.11",