Updating Pulze
Updates to the version you bought are free. This page explains how versions work and how to bring a new one into a project you've already changed, without losing your work.
1. How versions work
Pulze uses semantic versioning. The version is in
CHANGELOG.md and in each project's package.json.
| Update | Example | What changes | Effort |
|---|---|---|---|
| Patch (1.0.x) | 1.0.0 → 1.0.1 | Bug fixes only. | Minutes |
| Minor (1.x.0) | 1.0.1 → 1.1.0 | New pages, blocks or options. Nothing you use changes how it works. | Take what you want |
| Major (x.0.0) | 1.4.0 → 2.0.0 | Something you use works differently. Comes with a step-by-step guide. | An afternoon, with the guide |
Where to get it: your order page at codewithvetri.in always has the latest ZIP. You'll also get an email when a new version is out.
2. Read the changelog first
Each release in CHANGELOG.md has the same parts:
## 1.1.0 (2027-02-10)
### Added
- Reports page (`/reports`) with three chart blocks.
### Fixed
- Kanban: dragging a card into an empty column on Safari.
### Files changed
- src/screens/pages/reports.tsx (new)
- src/config/routes.ts, src/config/nav.ts
- src/screens/apps/kanban/board.tsx
The Files changed list is the important part: it tells you exactly which files to look at, so you never have to compare the whole project.
3. If you haven't changed much: copy the files
Good for patches, and for projects where you've mostly edited
src/config/:
- Commit your work first (
git commit -am "Before Pulze 1.0.1"), so you can always go back. - Unzip the new version somewhere else.
- For each file under Files changed:
- You never edited it: copy the new file over yours.
- You edited it: open both side by side and copy in the change described in the changelog. Your editor's "Compare" view helps (VS Code: right-click a file › Select for Compare, then the other › Compare with Selected).
- If
package.jsonis in the list, runpnpm install. - Run
pnpm typecheck,pnpm buildand click through the pages that changed.
4. If you've changed a lot: let git merge it
Git can combine Pulze's changes with yours and show you only the places where both touched the same lines. Set it up once:
# In your project, with everything committed.
# 1. A branch that only ever holds untouched Pulze code.
git checkout --orphan pulze-upstream
git rm -rf --quiet .
# Copy in the ORIGINAL version you started from (e.g. 1.0.0), not your edited files:
cp -R ~/Downloads/pulze-1.0.0/pulze-nextjs/. .
git add -A && git commit -m "Pulze 1.0.0"
git checkout main
(Use pulze-vite instead of pulze-nextjs if that's your version, and
your own branch name if it isn't main.)
Then for each new version:
git checkout pulze-upstream
git rm -rf --quiet .
cp -R ~/Downloads/pulze-1.1.0/pulze-nextjs/. .
git add -A && git commit -m "Pulze 1.1.0"
git checkout main
git merge pulze-upstream --allow-unrelated-histories # only the first time needs the flag
Git applies every Pulze change you haven't touched by itself. Where you both changed the same lines it stops and marks a conflict:
<<<<<<< HEAD
name: "Orbit", ← yours
=======
name: "Pulze", ← Pulze's
>>>>>>> pulze-upstream
Keep the right lines, delete the markers, then:
git add -A && git commit -m "Merge Pulze 1.1.0"
pnpm install && pnpm typecheck && pnpm build
Settings files will often conflict (site.config.ts, nav.ts,
theme.css), because you and Pulze both edit them. Keep your values and
add any new options the changelog mentions.
5. Updating the libraries Pulze uses
Pulze releases update Next.js, React and the other libraries and test them together. If you'd rather update one yourself:
pnpm outdated # what's newer
pnpm update # newer versions within the same major (safe)
pnpm add next@latest # one package to its newest major (read its upgrade guide first)
After any update: pnpm typecheck, pnpm build, pnpm test.
6. Make future updates easier
- Keep your own pages in their own files (copy
blank.tsx, as in Adding a page) instead of rewriting Pulze's pages. - Change looks with settings, not code:
site.config.ts,theme.cssand the block props cover most things. - Wrap, don't edit, blocks: a small
MyKpiCardthat renders<KpiCard …/>with your defaults survives every update. - Commit before every update, and update one version at a time if you're several behind (1.0 → 1.1 → 1.2), reading each changelog.
Troubleshooting
| You see | Why, and the fix |
|---|---|
refusing to merge unrelated histories |
First merge only: add --allow-unrelated-histories. |
| Every file conflicts on the first merge | pulze-upstream holds a different starting version than the one you began with. Redo it with that one. |
ERR_PNPM_OUTDATED_LOCKFILE after merging |
Run pnpm install to update pnpm-lock.yaml, then commit it. |
| Type errors after updating | A block's props changed (minor releases only add props, so this means a major). Follow its upgrade guide. |
| I'm lost in the middle of a merge | git merge --abort puts everything back as it was before the merge. |