LightNet v4 is here! Learn how to upgrade your site
Update your site
Keep your media library up to date by following these steps:
- Check your dependencies by running
Terminal window npm outdated - Read the release notes on GitHub
- Update your dependencies by running
This updates your dependencies to the latest version according to the version specifiers inside
Terminal window npm updatepackage.json. - There are changes that are not updated automatically, namely major releases, where the first part of the version number increases.
Major releases might break compatibility with your project. LightNet depends on other packages such as Astro and Tailwind CSS.
You should not update these dependencies to a new major version unless the LightNet release notes tell you to do so. The LightNet project follows those upstream releases and introduces major updates from time to time. If there is a new major LightNet release, do the following:
- Update your project to the latest LightNet major release: inside
package.json, change the version numbers to match the latest LightNet version. Keep the^suffix to support minor and patch updates withnpm update. - Install the updated LightNet dependencies:
Terminal window npm install - Check the LightNet release notes to see what additional changes are needed for your project.
This might include updating major version numbers of other packages. In this case update their version numbers in
package.jsonand executenpm installagain. - Follow the release notes to adjust your project to LightNet’s changes.
- Update your project to the latest LightNet major release: inside