-
Notifications
You must be signed in to change notification settings - Fork 10.3k
breaking(gatsby-plugin-sitemap): vNext rewrite #25670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
0cfb986
feat: initial commit of re-write
moonmeister a6c5869
fix: change to excludes from exclude cause it makes more sense, other…
moonmeister b68afaa
fix: lint errors
moonmeister db9f278
Merge branch 'master' into moonmeister/feat/sitemap-rewrite
moonmeister 439829f
misc updates
moonmeister fc9f1c8
Merge branch 'master' into moonmeister/feat/sitemap-rewrite
moonmeister a4b1dd8
fix SSR bugs an validation
moonmeister 3005301
wip: docs
moonmeister 40af1dc
Merge branch 'master' into moonmeister/feat/sitemap-rewrite
moonmeister 35e874e
wip
moonmeister 28f7a1f
wip
moonmeister 3fcdd8c
feat: finalize sriting sitemap and update default filter to runseprat…
moonmeister b47a0e9
feat: finalize sriting sitemap and update default filter to runseprat…
moonmeister 11a893d
docs updates and better naming for sitemap size limit
moonmeister a83e10e
refactor: cleanup
moonmeister c70a33a
api docs
moonmeister 7067352
misc docs fixes
moonmeister 8b5d807
remove we
moonmeister 647f626
add more links
moonmeister 3bd5dc8
typos and formating
moonmeister 7216ea8
Merge branch 'master' into moonmeister/feat/sitemap-rewrite
moonmeister bc6b9f1
Merge branch 'master' into moonmeister/feat/sitemap-rewrite
moonmeister 9377d91
test: fix ssr tests
moonmeister 1cb320c
fix node tests and switch to sitemap writer now that it has fixes.
moonmeister f3b47fb
Merge branch 'master' into moonmeister/feat/sitemap-rewrite
moonmeister d3737d4
docs: fix typos, formatting, and language
moonmeister e947941
tests: internal test and other cleanup
moonmeister ff28649
fix: forgot to update sitemap plugin to use new fixes in the simple s…
moonmeister 6be31d8
Merge branch 'master' into moonmeister/feat/sitemap-rewrite
moonmeister 5fa8d0b
Update packages/gatsby-plugin-sitemap/src/gatsby-node.js
moonmeister 58bd083
Update packages/gatsby-plugin-sitemap/src/gatsby-node.js
moonmeister 11b5dc4
Update packages/gatsby-plugin-sitemap/src/__tests__/gatsby-node.js
moonmeister dc4acc5
Update packages/gatsby-plugin-sitemap/src/internals.js
moonmeister 38ad29e
Merge branch 'moonmeister/feat/sitemap-rewrite' of github.com:gatsbyj…
moonmeister d114e09
fix: better error handling, remove global reporter, allow things to b…
moonmeister 1e3316a
Update packages/gatsby-plugin-sitemap/src/__tests__/gatsby-ssr.js
moonmeister e2c115c
Update packages/gatsby-plugin-sitemap/src/__tests__/gatsby-node.js
moonmeister 03a2283
Update packages/gatsby-plugin-sitemap/src/__tests__/gatsby-node.js
moonmeister 9588c56
Update packages/gatsby-plugin-sitemap/src/__tests__/gatsby-node.js
moonmeister ba6103b
Update packages/gatsby-plugin-sitemap/src/__tests__/gatsby-ssr.js
moonmeister 18aafe1
Apply suggestions from code review
moonmeister 05947d6
improve filter performance
moonmeister a0702ef
clean yarn/lock
moonmeister 5d0784e
fix: test snapshots
moonmeister 8f8d969
fix: misc test improvements
moonmeister bd890e7
fix: update e2e node version only need 10.17 but 10.16 was the newest…
moonmeister 70cd713
Merge branch 'master' into moonmeister/feat/sitemap-rewrite
moonmeister c06a376
tests: add options-validation tests
moonmeister b585a94
feat: remove reporter from internal function and buble up verbose mes…
moonmeister 5694c61
fix serialize signature in API docs
moonmeister 155c7b4
Merge branch 'master' into moonmeister/feat/sitemap-rewrite
moonmeister 364d0a1
fix: modify merged pluginOptionSchema API to use new stuff. HAndle if…
moonmeister 13d397b
chore: cleanup and add wards suggestions
moonmeister 4de597d
fix missplaced bracket
moonmeister 6ee6e9c
Merge branch 'master' into moonmeister/feat/sitemap-rewrite
moonmeister 13844c9
fix: remove logic for optional schema validation now that it has ship…
moonmeister 6d451e3
allow async serialize to match added current funcitonality
moonmeister 54f8952
Merge branch 'master' into moonmeister/feat/sitemap-rewrite
moonmeister 3f01216
Update Packages
moonmeister e096556
Merge branch 'master' into moonmeister/feat/sitemap-rewrite
moonmeister 6945e66
clean lock
moonmeister aeeceb6
Merge branch 'master' into moonmeister/feat/sitemap-rewrite
moonmeister 3100df2
Merge branch 'master' into moonmeister/feat/sitemap-rewrite
moonmeister d9e50c8
Merge branch 'master' into moonmeister/feat/sitemap-rewrite
moonmeister 01f214c
lint
moonmeister 039fe4c
update
wardpeet 31727e0
Merge branch 'master' into moonmeister/feat/sitemap-rewrite
moonmeister ab89897
fix: change gatsby utils version
moonmeister f8ca507
fix: dirty lock
moonmeister File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 21 additions & 20 deletions
41
packages/gatsby-plugin-sitemap/src/__tests__/__snapshots__/gatsby-node.js.snap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,26 @@ | ||
| // Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
|
||
| exports[`Test plugin sitemap custom query runs 1`] = ` | ||
| "<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?> | ||
| <urlset xmlns=\\"http://www.sitemaps.org/schemas/sitemap/0.9\\" xmlns:news=\\"http://www.google.com/schemas/sitemap-news/0.9\\" xmlns:xhtml=\\"http://www.w3.org/1999/xhtml\\" xmlns:mobile=\\"http://www.google.com/schemas/sitemap-mobile/1.0\\" xmlns:image=\\"http://www.google.com/schemas/sitemap-image/1.1\\" xmlns:video=\\"http://www.google.com/schemas/sitemap-video/1.1\\"> | ||
| <url> <loc>http://dummy.url/post/page-1</loc> <changefreq>weekly</changefreq> <priority>0.8</priority> </url> | ||
| </urlset>" | ||
| exports[`gatsby-plugin-sitemap Node API should accept a custom query 1`] = ` | ||
| Array [ | ||
| Object { | ||
| "changefreq": "weekly", | ||
| "priority": 0.8, | ||
| "url": "http://dummy.url/page-1", | ||
| }, | ||
| ] | ||
| `; | ||
|
|
||
| exports[`Test plugin sitemap default settings work properly 1`] = ` | ||
| "<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?> | ||
| <urlset xmlns=\\"http://www.sitemaps.org/schemas/sitemap/0.9\\" xmlns:news=\\"http://www.google.com/schemas/sitemap-news/0.9\\" xmlns:xhtml=\\"http://www.w3.org/1999/xhtml\\" xmlns:mobile=\\"http://www.google.com/schemas/sitemap-mobile/1.0\\" xmlns:image=\\"http://www.google.com/schemas/sitemap-image/1.1\\" xmlns:video=\\"http://www.google.com/schemas/sitemap-video/1.1\\"> | ||
| <url> <loc>http://dummy.url/page-1</loc> <changefreq>daily</changefreq> <priority>0.7</priority> </url> | ||
| <url> <loc>http://dummy.url/page-2</loc> <changefreq>daily</changefreq> <priority>0.7</priority> </url> | ||
| </urlset>" | ||
| exports[`gatsby-plugin-sitemap Node API should succeed with default options 1`] = ` | ||
| Array [ | ||
| Object { | ||
| "changefreq": "daily", | ||
| "priority": 0.7, | ||
| "url": "http://dummy.url/page-1", | ||
| }, | ||
| Object { | ||
| "changefreq": "daily", | ||
| "priority": 0.7, | ||
| "url": "http://dummy.url/page-2", | ||
| }, | ||
| ] | ||
| `; | ||
|
|
||
| exports[`Test plugin sitemap sitemap index set sitemap size and urls are less than it. 1`] = ` | ||
| "<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?> | ||
| <urlset xmlns=\\"http://www.sitemaps.org/schemas/sitemap/0.9\\" xmlns:news=\\"http://www.google.com/schemas/sitemap-news/0.9\\" xmlns:xhtml=\\"http://www.w3.org/1999/xhtml\\" xmlns:mobile=\\"http://www.google.com/schemas/sitemap-mobile/1.0\\" xmlns:image=\\"http://www.google.com/schemas/sitemap-image/1.1\\" xmlns:video=\\"http://www.google.com/schemas/sitemap-video/1.1\\"> | ||
| <url> <loc>http://dummy.url/page-1</loc> <changefreq>daily</changefreq> <priority>0.7</priority> </url> | ||
| <url> <loc>http://dummy.url/page-2</loc> <changefreq>daily</changefreq> <priority>0.7</priority> </url> | ||
| </urlset>" | ||
| `; | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
packages/gatsby-plugin-sitemap/src/__tests__/__snapshots__/internals.js.snap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| // Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
|
||
| exports[`gatsby-plugin-sitemap internals tests pageFilter should filter correctly 1`] = ` | ||
| Array [ | ||
| Object { | ||
| "path": "/to/keep/1", | ||
| }, | ||
| Object { | ||
| "path": "/to/keep/2", | ||
| }, | ||
| ] | ||
| `; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.