Skip to content
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

Update dependency @nuxtjs/robots to v5 #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 24, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@nuxtjs/robots (source) ^3.0.0 -> ^5.2.2 age adoption passing confidence

Release Notes

nuxt-modules/robots (@​nuxtjs/robots)

v5.2.2

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v5.2.1

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v5.2.0

Compare Source

   🚀 Features
    View changes on GitHub

v5.1.1

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v5.1.0

Compare Source

✨ v5.1.0

🤖 No Index Build Directory

This minor version introduces improvements around your nuxt asset build directory getting indexed (/_nuxt/*). It will now add X-Robots-Tag to these files and make sure they don't end up on Google.

If you have these paths ignored for your robots.txt the module will warn you as they need to be accessible by robots to crawl your pages correctly.

To accommodate this feature the disallowNonIndexableRoutes config has been deprecated and set to false by default (previously true). You may notice your robots.txt has different output but your site indexing will remain the same.

Changelog

    ⚠️ Deprecations
   🚀 Features
   🐞 Bug Fixes
    View changes on GitHub

v5.0.1

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v5.0.0

Compare Source

Introduction

The v5 major of Nuxt Robots is a simple release to remove deprecations and add support for the Nuxt SEO v2 stable.

⚠️ Breaking Features

Site Config v3

Nuxt Site Config is a module used internally by Nuxt Robots.

The major update to v3.0.0 shouldn't have any direct effect on your site, however, you may want to double-check
the breaking changes.

Removed rules config

The v4 of Nuxt Robots provided a backward compatibility rules config. As it was deprecated, this is no longer supported. If you're using rules, you should migrate to the groups config or use a robots.txt file.

export default defineNuxtConfig({
	robots: {
-    	rules: {},
+    	groups: {}
	}
})
Removed defineRobotMeta composable

This composable didn't do anything in v4 as the robots meta tag is enabled by default. If you'd like to control the robot meta tag rule, use the useRobotsRule() composable.

- defineRobotMeta(true)
+ useRobotsRule(true)
Removed RobotMeta component

This component was a simple wrapper for defineRobotMeta, you should use useRobotsRule() if you wish to control the robots rule.

Removed index, indexable config

When configuring robots using route rules or Nuxt Content you could control the robot's behavior by providing index or indexable rules.

These are no longer supported and you should use robots key.

export default defineNuxtConfig({
  routeRules: {
    // use the `index` shortcut for simple rules
-    '/secret/**': { index: false },
+    '/secret/**': { robots: false },
  }
})

🚀 Features

Config blockAiBots

AI crawlers can be beneficial as they can help users finding your site, but for some educational sites or those not
interested in being indexed by AI crawlers, you can block them using the blockAIBots option.

export default defineNuxtConfig({
  robots: {
    blockAiBots: true
  }
})

This will block the following AI crawlers: GPTBot, ChatGPT-User, Claude-Web, anthropic-ai, Applebot-Extended, Bytespider, CCBot, cohere-ai, Diffbot, FacebookBot, Google-Extended, ImagesiftBot, PerplexityBot, OmigiliBot, Omigili

Changelog

   🚨 Breaking Changes
   🚀 Features
    View changes on GitHub

v4.1.11

Compare Source

No significant changes

    View changes on GitHub

v4.1.10

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v4.1.9

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v4.1.8

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v4.1.7

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v4.1.6

Compare Source

No significant changes

    View changes on GitHub

v4.1.5

Compare Source

No significant changes

    View changes on GitHub

v4.1.4

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v4.1.3

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v4.1.2

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v4.1.1

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v4.1.0

Compare Source

In this release, we introduce a new Nuxt config header which allows you to control whether or not the X-Robots-Tag header will be added.

We also made improvements around matching the robots.txt rules to add the meta tag and header automatically. Previously only limited path matching was done, leading to issues when using query params or wildcards. This now also gives us the ability to see exactly which robots.txt rule is blocking the page from being crawled.

   🚀 Features
   🐞 Bug Fixes
    View changes on GitHub

v4.0.3

Compare Source

v4.0.2

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v4.0.1

Compare Source

No significant changes

    View changes on GitHub

v4.0.0

Compare Source

🎉 v4: Merge with Nuxt Simple Robots

Since Nuxt 1, Nuxt Robots has been powering sites /robots.txt through simple minimal config. As robots have changed over the years, there are new requirements on how we generate these rules and talk to robots.

The v4 of Nuxt Robots is here and it's a merge of the popular nuxt-simple-robots module that was made for Nuxt v3 as is part of Nuxt SEO. It brings powerful new DX to managing the robots crawling your site, including interactive DevTools, powerful Nuxt and Nitro composables and integration with Nuxt Content and Nuxt I18n.

Migrating from nuxt-simple-robots

Please remove the dependency from your package.json and Nuxt config and then follow the Installation guide. No other breaking changes exist.

Migrating from @nuxtjs/robots v3

If you're only using the rules config, a best effort has been made for a seamless migration where no config changes are required. It's recommended you familiarizing yourself with How Nuxt Robots Works.

  • 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. Any BlankLine or Comment rules will no longer work.
  • Using CleanParam, CrawlDelay and Disavow requires targeting the Yandex user agent.
   🚨 Breaking Changes
   🐞 Bug Fixes
    View changes on GitHub

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/nuxtjs-robots-5.x branch from 63bf188 to 691cd81 Compare December 7, 2024 07:22
@renovate renovate bot force-pushed the renovate/nuxtjs-robots-5.x branch from 691cd81 to 7e84a3b Compare December 23, 2024 04:14
@renovate renovate bot force-pushed the renovate/nuxtjs-robots-5.x branch 3 times, most recently from b8643d9 to a8b4c93 Compare January 20, 2025 05:51
@renovate renovate bot force-pushed the renovate/nuxtjs-robots-5.x branch from a8b4c93 to f8acd35 Compare January 20, 2025 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants