Unverified Commit eda426e1 authored by Will Binns-Smith's avatar Will Binns-Smith Committed by GitHub

Document `next analyze export` and skill are added in 16.4 (#99738)

## Summary

Mark `next analyze export` and `next-bundle-optimizer` as added in
v16.4. Add version history entries to the AI agents guide, package
bundling guide, and CLI reference.

## Verification

- Prettier and ESLint passed.
- Runtime tests not run (docs only).

<!-- NEXT_JS_LLM -->

---------
Co-authored-by: 's avatarJan Kassens <kassens@vercel.com>
parent c6c7eae0
...@@ -286,3 +286,9 @@ Then give the agent a prompt like: ...@@ -286,3 +286,9 @@ Then give the agent a prompt like:
```prompt ```prompt
Make the product title instant when navigating from /products to /products/[id]. Use the next-partial-prefetching-optimizer Skill. Make the product title instant when navigating from /products to /products/[id]. Use the next-partial-prefetching-optimizer Skill.
``` ```
## Version History
| Version | Changes |
| --------- | ------------------------------------ |
| `v16.4.0` | `next-bundle-optimizer` skill added. |
...@@ -98,6 +98,8 @@ cp -r .next/diagnostics/analyze ./analyze-before-refactor ...@@ -98,6 +98,8 @@ cp -r .next/diagnostics/analyze ./analyze-before-refactor
### Export analysis data ### Export analysis data
> Available in v16.4 and later. You can share feedback in the [dedicated GitHub discussion](https://github.com/vercel/next.js/discussions/86731) and view the demo at [turbopack-bundle-analyzer-demo.vercel.sh](https://turbopack-bundle-analyzer-demo.vercel.sh/).
Use `next analyze export` to stream a saved snapshot as JSON Lines for scripts or AI tools, without rebuilding or starting a server: Use `next analyze export` to stream a saved snapshot as JSON Lines for scripts or AI tools, without rebuilding or starting a server:
```bash filename="Terminal" package="npm" ```bash filename="Terminal" package="npm"
...@@ -353,3 +355,9 @@ module.exports = nextConfig ...@@ -353,3 +355,9 @@ module.exports = nextConfig
``` ```
</PagesOnly> </PagesOnly>
## Version History
| Version | Changes |
| --------- | ---------------------------------------------------------------- |
| `v16.4.0` | Add `next analyze export` and the `next-bundle-optimizer` skill. |
...@@ -434,6 +434,7 @@ The generated `.cpuprofile` files can be opened in Chrome DevTools (Performance ...@@ -434,6 +434,7 @@ The generated `.cpuprofile` files can be opened in Chrome DevTools (Performance
| Version | Changes | | Version | Changes |
| --------- | ------------------------------------------------------------------------------- | | --------- | ------------------------------------------------------------------------------- |
| `v16.4.0` | Add the `next analyze export` command. |
| `v16.1.0` | Add the `next upgrade` command | | `v16.1.0` | Add the `next upgrade` command |
| `v16.1.0` | Add the `next experimental-analyze` command | | `v16.1.0` | Add the `next experimental-analyze` command |
| `v16.0.0` | The JS bundle size metrics have been removed from `next build` | | `v16.0.0` | The JS bundle size metrics have been removed from `next build` |
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment