svelte-sitemap 2.2.0 → 2.3.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/README.md CHANGED
@@ -60,7 +60,7 @@ Highly recommended to use as `postbuild` hook in your `package.json`
60
60
  }
61
61
  ```
62
62
 
63
- ## Options
63
+ ## ⚙️ Options
64
64
 
65
65
  | Option | Description | default | example |
66
66
  | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------- | --------------------- | -------------------------------------- |
@@ -74,7 +74,7 @@ Highly recommended to use as `postbuild` hook in your `package.json`
74
74
  | -v, --version | Show version | - | `-h` |
75
75
  | --debug | Show some useful logs | - | `--debug` |
76
76
 
77
- ## FAQ
77
+ ## 🙋 FAQ
78
78
 
79
79
  #### How to exclude directory?
80
80
 
@@ -84,12 +84,14 @@ Highly recommended to use as `postbuild` hook in your `package.json`
84
84
  npx svelte-sitemap --domain https://www.example.com --ignore 'pages/my-secret-page' --ignore '**/admin/**'
85
85
  ```
86
86
 
87
- ## Development
87
+ ## 🤝 Contributing
88
88
 
89
89
  I welcome you to customize this according to your needs ;)
90
90
 
91
91
  Pull requests for any improvements would be great!
92
92
 
93
+ Feel free to check [issues page](https://github.com/bartholomej/svelte-sitemap/issues).
94
+
93
95
  ### Developing and debugging this library
94
96
 
95
97
  ```bash
@@ -107,17 +109,19 @@ You can find and modify it in [`./demo.ts`](./demo.ts) file
107
109
  yarn demo
108
110
  ```
109
111
 
110
- ## Credits
112
+ ## 🙏 Credits
111
113
 
112
114
  - svelte-sitemap is workaround for [this official SvelteKit issue](https://github.com/sveltejs/kit/issues/1142)
113
115
  - Brand new version is inspired by [Richard's article](https://r-bt.com/learning/sveltekit-sitemap/)
114
116
  - Thanks to [@auderer](https://github.com/auderer) because [his issue](https://github.com/bartholomej/svelte-sitemap/issues/1) changed the direction of this library
115
117
 
116
- ## Donation
118
+ ## ⭐️ Show your support
119
+
120
+ Give a ⭐️ if this project helped you!
117
121
 
118
- If this project have helped you save time please consider [making a donation](https://github.com/sponsors/bartholomej) for some 🍺 or 🍵 ;)
122
+ Or if you are brave enough consider [making a donation](https://github.com/sponsors/bartholomej) for some 🍺 or 🍵 ;)
119
123
 
120
- ## Privacy Policy
124
+ ## 🕵️ Privacy Policy
121
125
 
122
126
  I DO NOT STORE ANY DATA. PERIOD.
123
127
 
@@ -125,9 +129,9 @@ I physically can't. I have nowhere to store it. I don't even have a server datab
125
129
 
126
130
  That's why, with this library, what happens on your device stays on your device till disappear.
127
131
 
128
- ## License
132
+ ## 📝 License
129
133
 
130
- Copyright © 2021 [Lukas Bartak](http://bartweb.cz)
134
+ Copyright © 2022 [Lukas Bartak](http://bartweb.cz)
131
135
 
132
136
  Proudly powered by nature 🗻, wind 💨, tea 🍵 and beer 🍺 ;)
133
137
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-sitemap",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Small helper which scans your Svelte routes folder and generates static sitemap.xml",
5
5
  "main": "./index.js",
6
6
  "author": "BART! <bart@bartweb.cz>",
@@ -28,7 +28,7 @@
28
28
  "release:major": "git checkout master && npm version major -m \"chore(update): major release %s 💥 \""
29
29
  },
30
30
  "dependencies": {
31
- "fast-glob": "^3.2.7",
31
+ "fast-glob": "^3.2.11",
32
32
  "minimist": "^1.2.5",
33
33
  "xmlbuilder2": "^3.0.2"
34
34
  },
@@ -43,7 +43,7 @@ async function prepareData(domain, options) {
43
43
  exports.prepareData = prepareData;
44
44
  const writeSitemap = (items, options) => {
45
45
  var _a;
46
- const sitemap = (0, xmlbuilder2_1.create)({ version: '1.0' }).ele('urlset', {
46
+ const sitemap = (0, xmlbuilder2_1.create)({ version: '1.0', encoding: 'UTF-8' }).ele('urlset', {
47
47
  xmlns: 'http://www.sitemaps.org/schemas/sitemap/0.9'
48
48
  });
49
49
  if (options === null || options === void 0 ? void 0 : options.attribution) {