@sigrea/vue 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +41 -1
  2. package/package.json +4 -3
package/README.md CHANGED
@@ -23,6 +23,7 @@
23
23
  - [useMutableSignal](#usemutablesignal)
24
24
  - [useMolcule](#usemolcule)
25
25
  - [Testing](#testing)
26
+ - [Handling Scope Cleanup Errors](#handling-scope-cleanup-errors)
26
27
  - [Development](#development)
27
28
  - [License](#license)
28
29
 
@@ -198,15 +199,54 @@ it("increments and displays the updated count", async () => {
198
199
  });
199
200
  ```
200
201
 
202
+ ## Handling Scope Cleanup Errors
203
+
204
+ For global error handling configuration, see [@sigrea/core - Handling Scope Cleanup Errors](https://github.com/sigrea/core#handling-scope-cleanup-errors).
205
+
206
+ In Vue apps, configure the handler in your application entry point before mounting:
207
+
208
+ ```ts
209
+ // main.ts
210
+ import { setScopeCleanupErrorHandler } from "@sigrea/core";
211
+ import { createApp } from "vue";
212
+ import App from "./App.vue";
213
+
214
+ setScopeCleanupErrorHandler((error, context) => {
215
+ console.error(`Cleanup failed:`, error);
216
+
217
+ // Forward to monitoring service
218
+ if (typeof Sentry !== "undefined") {
219
+ Sentry.captureException(error, {
220
+ tags: { scopeId: context.scopeId, phase: context.phase },
221
+ });
222
+ }
223
+ });
224
+
225
+ createApp(App).mount("#app");
226
+ ```
227
+
201
228
  ## Development
202
229
 
203
- Development scripts prefer pnpm. npm or yarn work too, but pnpm keeps dependency resolution identical to CI.
230
+ This repo targets Node.js 20 or later.
231
+
232
+ If you use mise:
233
+
234
+ - `mise trust -y` — trust `mise.toml` (first run only).
235
+ - `mise run ci` — run CI-equivalent checks locally.
236
+ - `mise run notes` — preview release notes (optional).
237
+
238
+ You can also run pnpm scripts directly:
204
239
 
205
240
  - `pnpm install` — install dependencies.
206
241
  - `pnpm test` — run the Vitest suite once (no watch).
242
+ - `pnpm typecheck` — run TypeScript type checking.
243
+ - `pnpm test:coverage` — collect coverage.
207
244
  - `pnpm build` — compile via unbuild to produce dual CJS/ESM bundles.
245
+ - `pnpm cicheck` — run CI checks locally.
208
246
  - `pnpm dev` — launch the playground counter demo.
209
247
 
248
+ See [CONTRIBUTING.md](./CONTRIBUTING.md) for workflow details.
249
+
210
250
  ## License
211
251
 
212
252
  MIT — see [LICENSE](./LICENSE).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sigrea/vue",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Vue adapter bindings for Sigrea molecule modules.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -49,10 +49,11 @@
49
49
  "test:coverage": "vitest --coverage",
50
50
  "typecheck": "tsc -p tsconfig.json --noEmit",
51
51
  "format": "biome check .",
52
- "format:fix": "biome check --write ."
52
+ "format:fix": "biome check --write .",
53
+ "cicheck": "pnpm test && pnpm typecheck && pnpm format:fix"
53
54
  },
54
55
  "peerDependencies": {
55
- "@sigrea/core": "^0.4.0",
56
+ "@sigrea/core": "^0.4.3",
56
57
  "vue": "^3.4.0"
57
58
  },
58
59
  "devDependencies": {