Upgrading @nuxtjs/robots 2 to 3
Breaking2.5.0 → 3.0.0Breaking3New5Fixed4Other1
BreakingUpgrade verdict
3 breaking changes.
In plain terms
- Add support for nuxt 3/nuxt bridge.
- Move modules options to rules property.
- disable module if exists robots.txt inside public directory.
Must act 3 items need code or config changes
Adds @nuxt/kit ^3.0.0, h3 ^1.0.1.
Installs 52 packages in all (was 0).
What you must change
Breaking3
Add support for nuxt 3/nuxt bridge.
Move modules options to rules property.
disable module if exists robots.txt inside public directory.
robots.txtAPI changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- added:
interface NuxtConfig - added:
interface NuxtOptions - added:
property NuxtConfig['robots']?: Partial<ModuleOptions> - added:
property NuxtOptions['robots']?: ModuleOptions
- removed:
interface Configuration - removed:
interface NuxtConfig - removed:
property Configuration[CONFIG_KEY]?: ModuleOptions - removed:
property NuxtConfig[CONFIG_KEY]?: ModuleOptions
- removed:
const nuxtModule: Module<ModuleOptions> - removed:
declare module '@nuxt/types' - removed:
default nuxtModule - removed:
type Rule = { [key: string]: string | Function | (string | Function)[] } - changed:
type ModuleOptions = Rule | Rule[] | (() => Rule | Rule[]) → type ModuleOptions = { configPath: string; rules: Rule | Rule[] } - added:
const default: _nuxt_schema.NuxtModule<ModuleOptions>
- added:
const _default: import('h3').EventHandler<string> - added:
default _default
- added:
declare module '@nuxt/schema' - added:
export { ModuleOptions } from './module' - added:
export { default } from './module'