@figma-vars/hooks 3.1.0 → 3.1.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.
- package/README.md +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Built for the modern web, this library provides a suite of hooks to fetch, manag
|
|
|
18
18
|

|
|
19
19
|

|
|
20
20
|
|
|
21
|
-
## 📌 Why 3.
|
|
21
|
+
## 📌 Why 3.1.1
|
|
22
22
|
|
|
23
23
|
- ✨ **New DX Features**: SWR configuration support, error handling utilities, cache invalidation helpers
|
|
24
24
|
- 🔧 **React 19.2 Ready**: Optimized hooks with proper cleanup and stable function references
|
|
@@ -301,7 +301,7 @@ if (isLocalVariablesResponse(data)) {
|
|
|
301
301
|
|
|
302
302
|
### Error Utilities
|
|
303
303
|
|
|
304
|
-
|
|
304
|
+
v3 introduces powerful error handling utilities for type-safe error checking:
|
|
305
305
|
|
|
306
306
|
```tsx
|
|
307
307
|
import { isFigmaApiError, getErrorStatus, getErrorMessage, hasErrorStatus } from '@figma-vars/hooks'
|
|
@@ -511,11 +511,11 @@ export function Providers({ children }: { children: React.ReactNode }) {
|
|
|
511
511
|
- `pnpm run build`, `pnpm test`, `pnpm run test:coverage`
|
|
512
512
|
- `pnpm run check:publint`, `pnpm run check:attw`, `pnpm run check:size`
|
|
513
513
|
|
|
514
|
-
## 🧭 Release Checklist (for 3.
|
|
514
|
+
## 🧭 Release Checklist (for 3.1.0)
|
|
515
515
|
|
|
516
516
|
- Run `pnpm run check:release`
|
|
517
|
-
- Tag `v3.
|
|
518
|
-
- Update dist-tags on npm if needed (`latest` → 3.
|
|
517
|
+
- Tag `v3.1.0` (CI publishes to npm)
|
|
518
|
+
- Update dist-tags on npm if needed (`latest` → 3.1.0)
|
|
519
519
|
|
|
520
520
|
---
|
|
521
521
|
|