Skip to content

Commit

Permalink
unused dependency 'sitemap', 'filter' option should return boolean (#…
Browse files Browse the repository at this point in the history
…3563)

* refactor: @astrojs/sitemap does't use 'sitemap' pkg

* refactor: 'filter' option should return boolean instead of string

* fix: forgotten `pnpm install`

* chore: add changeset

Co-authored-by: Nate Moore <nate@skypack.dev>
  • Loading branch information
alextim and Nate Moore authored Jun 10, 2022
1 parent 72587ec commit 0980312
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 22 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-zebras-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/sitemap': patch
---

Remove unused dependency
1 change: 0 additions & 1 deletion packages/integrations/sitemap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"dev": "astro-scripts dev \"src/**/*.ts\""
},
"dependencies": {
"sitemap": "^7.1.1"
},
"devDependencies": {
"astro": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/sitemap/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type SitemapOptions =
* filter: (page) => page !== 'http://example.com/secret-page'
* ```
*/
filter?(page: string): string;
filter?(page: string): boolean;

/**
* If you have any URL, not rendered by Astro, that you want to include in your sitemap,
Expand Down
20 changes: 0 additions & 20 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0980312

Please sign in to comment.