@cosmwasm/ts-codegen 0.13.3 → 0.13.4

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 +10 -8
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -106,7 +106,8 @@ codegen({
106
106
  enabled: true,
107
107
  optionalClient: true,
108
108
  version: 'v4',
109
- mutations: true
109
+ mutations: true,
110
+ queryKeys: true,
110
111
  },
111
112
  recoil: {
112
113
  enabled: false
@@ -161,13 +162,14 @@ Generate [react-query v3](https://react-query-v3.tanstack.com/) or [react-query
161
162
 
162
163
  #### React Query Options
163
164
 
164
- | option | description |
165
- | ------------------------------ | ------------------------------------------------------------------- |
166
- | `reactQuery.enabled` | enable the react-query plugin |
167
- | `reactQuery.optionalClient` | allows contract client to be undefined as the component renders |
168
- | `reactQuery.version` | `v4` uses `@tanstack/react-query` and `v3` uses `react-query` |
169
- | `reactQuery.mutations` | also generate mutations |
170
- | `reactQuery.camelize` | use camelCase style for property names |
165
+ | option | description |
166
+ | ----------------------------| ---------------------------------------------------------------------------- |
167
+ | `reactQuery.enabled` | enable the react-query plugin |
168
+ | `reactQuery.optionalClient` | allows contract client to be undefined as the component renders |
169
+ | `reactQuery.queryKeys` | generates a const queryKeys object for use with invalidations and set values |
170
+ | `reactQuery.version` | `v4` uses `@tanstack/react-query` and `v3` uses `react-query` |
171
+ | `reactQuery.mutations` | also generate mutations |
172
+ | `reactQuery.camelize` | use camelCase style for property names |
171
173
 
172
174
 
173
175
  #### React Query via CLI
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmwasm/ts-codegen",
3
- "version": "0.13.3",
3
+ "version": "0.13.4",
4
4
  "description": "@cosmwasm/ts-codegen converts your CosmWasm smart contracts into dev-friendly TypeScript classes so you can focus on shipping code.",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "homepage": "https://github.com/cosmwasm/ts-codegen",
@@ -96,5 +96,5 @@
96
96
  "shelljs": "0.8.5",
97
97
  "wasm-ast-types": "^0.9.0"
98
98
  },
99
- "gitHead": "50046a43a3c9464fb8f8f84522d6433f25b1dc50"
99
+ "gitHead": "cce2e2903084d313d7a3a148a41c3f6b6c6c60e1"
100
100
  }