# Keep your app's packages up to date

Source: https://docs.businessapp.io/business-app/ai/vibe/guides/dependencies/

## What are dependencies?

Your app is built from its own code plus packages: ready-made building blocks your app uses for common jobs, such as showing icons or handling forms. These packages are your app's dependencies.

The people who make each package release newer versions over time, with bug fixes, security fixes, and improvements. The `Dependencies` section in your project's settings lists every package your app uses, shows which ones have a newer version, flags any with known security issues, and lets Vibe update them for you in one step.

![The Dependencies section of a Vibe project, with the package count, known issues, the Update button, and the updates available](https://docs.businessapp.io/assets/images/dependencies-settings-180ed68cb652e27aa56f8ebb30b6994c.png)

## Why keep packages up to date?

-   **Get security fixes**: When a security issue is found in a package, a fixed version follows. Updating puts that fix in your app.
-   **Stay compatible**: Packages change over time. Updating regularly keeps each jump between versions small, so updates go more smoothly.
-   **Get bug fixes**: Newer versions fix problems found in older ones.
-   **Skip the technical work**: Vibe makes the update and checks that your app still builds.

## What's in the Dependencies section?

-   **Summary**: how many packages your app uses and how many known security issues they have, such as `24 packages · 2 known issues`.
-   **Updates available**: packages with a newer version, showing the version you have and the version Vibe offers.
-   **Up to date**: packages already on the newest version Vibe offers.
-   **Security labels**: a colored label beside each package with known security issues, showing how many and how serious.
-   `Update`: updates every package in the updates list in one change.

Some packages carry an extra label:

| Label | What it means |
| --- | --- |
| `major` | A major update. Major updates can change how parts of your site behave, so Vibe updates your app's code to match. |
| `dev` | A tool that builds and checks your app. |
| `managed` | Vibe keeps this package at a tested version and doesn't offer updates for it. |
| Clock icon | A newer version came out recently. Vibe offers a version once it has been out for seven days. |

## How to update your packages

### Open the Dependencies section

1.  Open your project.
2.  Click the `Settings` tab.
3.  Select `Dependencies`.

Vibe checks your packages each time you open the section.

### Run an update

1.  Review the packages listed under updates available, such as `3 updates available`.
2.  Click `Update`.
3.  Read the `Update 3 packages?` window. It says that Vibe updates the packages and checks that your site still builds, and that the update uses credits like any other change. If any of the updates are major, it also says how many, because major updates can change how parts of your site behave.
4.  Click `Update` to start, or `Cancel` to close the window without changing anything.

![The Update 3 packages? window, with the Update and Cancel buttons](https://docs.businessapp.io/assets/images/dependencies-update-confirm-5bd5336be088567ea969cee74e0d4119.png)

Vibe starts the update in a chat session of its own and switches the chat to it, so you can watch the progress. While the update runs, the `Dependencies` section says your dependencies are being updated. Click `View progress` to go back to the update's chat.

`Update` is grayed out when every package is up to date, and hidden while an update is running.

### Publish the update

An update changes your project, not your live site. If you've published your site before, the `Dependencies` section shows `Your published site was built before the latest changes. Publish again to put them live.` Click `Publish` in the toolbar to put the updated packages on your live site.

## What happens during an update

Vibe runs the update as a change in its own chat session, named with the date, such as `Dependency upgrade - Nov 30`. In the chat's `Session history`, the session is marked `Automated`.

During the update, Vibe:

1.  Applies the smaller updates (the ones not marked `major`) together, then checks that your app still installs and builds.
2.  Applies each major update one at a time, updates the parts of your app that use that package, and checks your app again.
3.  Puts a package back to its previous version if it can't make that package work, and moves on to the next one.
4.  Reports in the chat which packages it updated, and which it left at their previous version and why.

Vibe updates each package to the version shown in the list and leaves every other package as it is. If your app can't be brought back to a working build, Vibe returns your project to how it was before the update and tells you what blocked it.

### Credits

An update uses credits like any other change you ask Vibe to make. How many depends on how much work the update takes: major updates that need code changes take more work than small ones. See [Credits](https://docs.businessapp.io/business-app/ai/vibe/credits/).

### After the update

When the update finishes, the `Dependencies` section can show one of these messages:

| Message | What to do |
| --- | --- |
| `2 packages could not be updated this time and will be offered again later.` | Vibe left these packages at their previous version. They stay in the updates list, so you can click `Update` to try again. |
| `The last dependency update was interrupted before it finished. Some updates may not have been applied.` | Open the update's chat to see how far it got. Any packages still listed under updates available weren't updated. |
| `Your published site was built before the latest changes. Publish again to put them live.` | Click `Publish` to put the updates on your live site. |

## What security labels mean

A security label means a weakness has been publicly reported in the exact version of a package your app uses. Vibe checks each package against a public database of reported security issues.

![Packages in the Dependencies section, one with a red 1 high security label and others with major and dev badges](https://docs.businessapp.io/assets/images/dependencies-security-label-54dc2fdff9ac3dd2c96131118f25724f.png)

Each label shows how many issues a package has and how serious they are, such as `2 high`. Hover over a label to see each issue's reference ID, its severity, and the version that fixes it, when a fix exists.

| Severity | Label color | What it means |
| --- | --- | --- |
| `critical` | Red | The most serious kind of issue. Update as soon as you can. |
| `high` | Red | A serious issue. Update soon. |
| `moderate` or `medium` | Yellow | A more limited risk. Fix it with your next update. |
| `low` | Gray | A minor risk. |
| `unknown` | Gray | The report doesn't include a severity rating. |

When a newer version fixes a security issue in the version you have, Vibe offers the first version with the fix right away, without the usual seven-day wait.

A package can show a security label and still be listed under `Up to date`. That means no version with a fix has been released, or the package is `managed`. Check the section again later.

## Undo an update

Vibe saves a checkpoint of your project after every change, including updates. To go back to how your app was before an update:

1.  Click the `Version history` icon in the top-right.
2.  Find the checkpoint from before the update. Click `View diff` to see what changed.
3.  Click `Restore`.

Restoring changes only your draft. If you already published the update, click `Publish` after restoring so your live site matches the restored checkpoint. See [Roll back to a checkpoint](https://docs.businessapp.io/business-app/ai/vibe/guides/troubleshooting/#roll-back-to-a-checkpoint).

> **Note:** The `Dependencies` section is available on every Vibe plan. Updates use your credits like any other change.

## Other messages in the Dependencies section

| Message | What it means |
| --- | --- |
| `data may be out of date` | Vibe couldn't reach the package registry, the public service that lists package versions, so the list can miss recent releases. Open the section again later. |
| `As of last save` and a date | Vibe is showing the packages from your project's last saved state. Open the project to see the current status. |
| `Some packages did not finish installing in the preview.` | Your preview can be out of step with your packages. Vibe retries on its own, and running an update can also fix it. |
| `Nothing to check yet - this project doesn't have any code.` | Build something first, then open the section again. |
| `This project lists too many dependencies to analyze.` | Vibe checks projects with up to 1,000 packages. |
| `Dependency status could not be loaded.` | Click `Retry`, or open the section again shortly. |

## Frequently asked questions

**Does Vibe update my packages automatically?**

No. Vibe checks your packages and shows what can be updated, but nothing changes until you click `Update` and confirm.

**How often does Vibe check my packages?**

Every time you open the `Dependencies` section. Vibe reuses recent results for a few hours, so a version or security report published in the last few hours can take a while to appear.

**Can I choose which packages to update?**

No. `Update` updates every package listed under updates available, in one change.

**Why doesn't Vibe offer the newest version of a package?**

Vibe waits until a version has been out for seven days before offering it, so problems in a release come to light first. A version that fixes a security issue in your current version skips the wait, and packages marked `managed` stay at a tested version.

**Does an update change my live site?**

Not until you publish. When the update finishes, click `Publish` to put it on your live site.

**Do updates use credits?**

Yes. An update uses credits like any other change you ask Vibe to make. See [Credits](https://docs.businessapp.io/business-app/ai/vibe/credits/).

**What if something looks wrong after an update?**

Describe the problem to Vibe in the chat, or restore the checkpoint from before the update in `Version history`.

**Where can I see what an update changed?**

In the update's chat session, named `Dependency upgrade` with the date. Vibe reports there which packages it updated and which it left behind, and `View diff` in `Version history` shows every changed file.

## Next steps

-   [Project settings](https://docs.businessapp.io/business-app/ai/vibe/guides/project-settings/): See every section of your project's settings
-   [Credits](https://docs.businessapp.io/business-app/ai/vibe/credits/): See how credits work and what each plan includes
-   [Troubleshooting](https://docs.businessapp.io/business-app/ai/vibe/guides/troubleshooting/): Fix errors and roll back to a checkpoint
