Description
openedon Jan 17, 2024
Migration Notes
@nuxtjs/robots
v3 breaking changes
- The
configPath
config is no longer supported. For custom runtime config you should use Nitro Hooks. - The
rules
config is deprecated but will continue to work. AnyBlankLine
orComment
rules will no longer work. - Using
CleanParam
,CrawlDelay
andDisavow
requires targeting the Yandex user agent.
This issue is to discuss the possibility of merging with the nuxt-simple-robots module. This is not meant to imply intent, I'll only go ahead with merging if the current maintainers and team give approval for me to do so.
Why Merge
I built the nuxt-simple-robots package as I felt the feature set for this module didn't meet my needs, specifically around modules integrating with it (i.e sitemap module).
The nuxt-simple-robots module offers many important features for end users and module integrations. Some of the ones I think that most useful:
- Non-production environments hidden by robots by default
- Validation of robots.txt output
- Route rules support
- Deep Nitro integrations
- Dedicated docs
For a comparison in usage:
- nuxt-simple-robots - 57k downloads / mo
- @nuxtjs/robots - ~74k downloads / mo (v3 tag)
Having multiple modules in the ecosystem that are tackling the same issue is good in my opinion, it gives the end user choice and encourages innovation. However, given that this robots module is "official" and it's one of the most downloaded for Nuxt, I feel we should be providing a single choice that provides delightful DX out of the box.
What Does Merging Look Like
- A v4 tag would be released that contains all of the code from nuxt-simple-robots. The nuxt-simple-robots repo would be updated to redirect users to nuxt-modules/robots.
- The nuxt-simple-robots npm package would be deprecated for @nuxtjs/robots
- Migration guide provided for users for v3 -> v4
- Keep existing maintainers within the package.json
Who WIll Maintain v4 Onwards?
I'd like to take over the the primary maintainer as I have most context on how the code is working, but would be amazing to have help in continuing to maintain the module.