Skip to content

Commit 27e884a

Browse files
committed
docs: document the devtools storage layout migration
1 parent a1d8825 commit 27e884a

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

‎MIGRATION.md‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Migration Guide
22

3+
## 0.8 → 0.9
4+
5+
### Devtools storage gets one directory per scope
6+
7+
`getStorageDir()` resolved `project` and `global` to the same per-user directory, and put `workspace` inside `node_modules`. Each scope now has its own directory:
8+
9+
| Scope | 0.8 and earlier | 0.9 |
10+
| --- | --- | --- |
11+
| `workspace` | `<workspaceRoot>/node_modules/.vite/devtools` | `<workspaceRoot>/.vite/devtools` |
12+
| `project` | `~/.vite/devtools` | `<workspaceRoot>/node_modules/.vite-devtools` |
13+
| `global` | `~/.vite/devtools` | `~/.vite/devtools` |
14+
15+
On first start, workspace data written by earlier versions is moved into the new workspace directory. Auth tokens and global settings keep their path and are not touched.
16+
17+
Project-scope data written by earlier versions stays in `~/.vite/devtools`, which is now the global directory:
18+
19+
- Settings saved as project overrides now read as global settings, so they apply to every project. Set them again inside the project that needs a different value.
20+
- Saved Data Inspector queries from earlier versions are no longer listed. Data Inspector supports importing them into the current project.
21+
22+
### For plugin authors
23+
24+
`ViteDevToolsHost.getLegacyStorageDir(scope)` returns where earlier versions kept each scope, so adapters that persist user-authored files can offer a one-time import instead of dropping them.
25+
326
## 0.2 → 0.3 (devframe 0.5.x + `@devframes/hub`)
427

528
`@vitejs/devtools-kit` now thins onto [`@devframes/hub`](https://www.npmjs.com/package/@devframes/hub) for the hub primitives (docks, terminals, messages, commands, `mountDevframe`, json-render factory). The kit's public `DevTools*` surface stays in place via re-export aliases — most plugin authors don't need to change anything.

0 commit comments

Comments
 (0)