@clipboard-health/ai-rules 2.3.0 → 2.4.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@clipboard-health/ai-rules",
3
3
  "description": "Pre-built AI agent rules for consistent coding standards.",
4
- "version": "2.3.0",
4
+ "version": "2.4.0",
5
5
  "bugs": "https://github.com/ClipboardHealth/core-utils/issues",
6
6
  "keywords": [
7
7
  "ai",
@@ -20,11 +20,11 @@
20
20
  "access": "public"
21
21
  },
22
22
  "repository": {
23
- "directory": "packages/ai-rules",
24
23
  "type": "git",
25
- "url": "git+https://github.com/ClipboardHealth/core-utils.git"
24
+ "url": "git+https://github.com/ClipboardHealth/core-utils.git",
25
+ "directory": "packages/ai-rules"
26
26
  },
27
27
  "scripts": {
28
- "format": "prettier --write 'rules/**/*.md'"
28
+ "format": "oxfmt 'rules/**/*.md'"
29
29
  }
30
30
  }
@@ -50,10 +50,7 @@ queryKey: ["users", userId, "posts"];
50
50
  ## Conditional Fetching
51
51
 
52
52
  ```typescript
53
- const { data } = useGetFeature(
54
- { id: dependencyData?.id },
55
- { enabled: isDefined(dependencyData?.id) },
56
- );
53
+ const { data } = useGetFeature({ id: dependencyData?.id }, { enabled: isDefined(dependencyData?.id) });
57
54
  ```
58
55
 
59
56
  ## Mutations
@@ -45,8 +45,7 @@ Export factory functions, not static handlers:
45
45
 
46
46
  ```typescript
47
47
  // ✅ Good—flexible per test
48
- export const createUserHandler = (userData: User) =>
49
- rest.get("/api/user", (req, res, ctx) => res(ctx.json(userData)));
48
+ export const createUserHandler = (userData: User) => rest.get("/api/user", (req, res, ctx) => res(ctx.json(userData)));
50
49
 
51
50
  // Usage
52
51
  mockServer.use(createUserHandler(customData));