nextjs-hasura-auth 0.1.4 → 0.1.5

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 +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -25,11 +25,11 @@ See [`CLIENT.md`](CLIENT.md) for details on the `Client` class and React hooks t
25
25
  * [x] **Unified Apollo Client:** A configured Apollo Client instance handles both authenticated HTTP requests (via the proxy) and direct, authenticated WebSocket connections for subscriptions.
26
26
  * [x] **Dynamic Query Generator:** A versatile query generator (`lib/generator.ts`) allows dynamic creation of GraphQL operations based on options and schema, suitable for client/server use.
27
27
  * [x] **WebSocket Authentication:** Real-time subscriptions connect directly to Hasura via WebSockets, authenticated using the user's session JWT.
28
- * [x] **Generated Client Wrapper:** A `Client` class and associated React hooks (`useQuery`, `useSubscription`) that combine the Generator and Apollo Client for simplified data fetching and mutations (`lib/client.tsx`).
28
+ * [x] **Generated Client Wrapper:** A `Client` class and associated React hooks (`useQuery`, `useSubscription`, `useMutation`, plus aliases `useSelect`, `useInsert`, `useUpdate`, `useDelete`) that combine the Generator and Apollo Client for simplified data fetching and mutations (`lib/client.tsx`).
29
+ * [x] **Advanced Convenience Hooks:** Aliases `useInsert`, `useUpdate`, `useDelete` built on top of `useMutation` are available for streamlined CRUD operations.
29
30
 
30
31
  **Planned / Future Ideas:**
31
32
 
32
- * [ ] **Advanced Convenience Hooks:** Potentially create a more advanced `useCRUD` hook/class built on top of the existing `Client` or hooks for even more streamlined common CRUD operations in components.
33
33
  * [ ] **Multi-Platform Builds:** Native builders for Android, iOS, MacOS, Windows, Linux, Oculus (e.g., using Tauri, Capacitor, or Electron).
34
34
  * [ ] **Unique Environment Builders:** Specific builds for Chrome Extensions, Firefox Extensions, and VSCode Extensions (including custom UI elements).
35
35
  * [ ] Additional Authentication Providers (OAuth: Google, GitHub, etc.).
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nextjs-hasura-auth",
3
3
  "shortName": "nha",
4
- "version": "0.1.4",
4
+ "version": "0.1.5",
5
5
  "engines": {
6
6
  "node": "22.14"
7
7
  },