diff --git a/.changeset/remove-v1-meta.md b/.changeset/remove-v1-meta.md new file mode 100644 index 00000000000..100a014eb31 --- /dev/null +++ b/.changeset/remove-v1-meta.md @@ -0,0 +1,49 @@ +--- +"remix": major +"@remix-run/cloudflare": major +"@remix-run/deno": major +"@remix-run/dev": major +"@remix-run/eslint-config": major +"@remix-run/node": major +"@remix-run/react": major +"@remix-run/server-runtime": major +"@remix-run/testing": major +--- + +We have made a few important changes to the route `meta` API as reflected in the v1 implementation when using the `future.v2_meta` config option. + +- The `meta` function should no longer return an object, but an array of objects that map to the HTML tag's respective attributes. This provides more flexibility and control over how certain tags are rendered, and the order in which they appear. +- In most cases, `meta` descriptor objects render a `` tag. There are a few notable exceptions: + - `{ title: "My app" }` will render `My app`. + - `{ 'script:ld+json': { /* ... */ } }` will render ``, where the value is serialized to JSON and rendered inside the `