next-sanity 4.1.1 → 4.1.2

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 +28 -4
  2. package/package.json +17 -17
package/README.md CHANGED
@@ -50,10 +50,34 @@
50
50
 
51
51
  ## Installation
52
52
 
53
- ```sh
54
- $ npm install next-sanity @portabletext/react @sanity/image-url
55
- // or
56
- $ yarn add next-sanity @portabletext/react @sanity/image-url
53
+ ```bash
54
+ npm install next-sanity @portabletext/react @sanity/image-url
55
+ ```
56
+
57
+ ```bash
58
+ yarn add next-sanity @portabletext/react @sanity/image-url
59
+ ```
60
+
61
+ ```bash
62
+ pnpm install next-sanity @portabletext/react @sanity/image-url
63
+ ```
64
+
65
+ ### `next-sanity/studio` peer dependencies
66
+
67
+ When using `npm` newer than `v7` you should end up with needed dependencies like `sanity` and `styled-components` when you `npm install next-sanity`. For other package managers you may need to do some extra steps.
68
+
69
+ #### Yarn
70
+
71
+ ```bash
72
+ npx install-peerdeps --yarn next-sanity
73
+ ```
74
+
75
+ #### pnpm
76
+
77
+ You can either setup [`auto-install-peers`](https://stackoverflow.com/questions/72468635/pnpm-peer-dependencies-auto-install/74835069#74835069) and `pnpm install next-sanity` is enough, or:
78
+
79
+ ```bash
80
+ npx install-peerdeps --pnpm next-sanity
57
81
  ```
58
82
 
59
83
  ## `next-sanity` Running groq queries
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-sanity",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "description": "Sanity.io toolkit for Next.js",
5
5
  "keywords": [
6
6
  "sanity",
@@ -155,38 +155,38 @@
155
155
  "@rollup/plugin-url": "^8.0.1",
156
156
  "@sanity/eslint-config-studio": "^2.0.1",
157
157
  "@sanity/image-url": "^1.0.2",
158
- "@sanity/pkg-utils": "^2.2.1",
159
- "@sanity/semantic-release-preset": "^3.0.2",
160
- "@sanity/ui": "^1.0.14",
161
- "@sanity/vision": "^3.2.4",
162
- "@types/eventsource": "^1.1.10",
163
- "@types/jest": "^29.2.6",
158
+ "@sanity/pkg-utils": "^2.2.3",
159
+ "@sanity/semantic-release-preset": "^4.0.0",
160
+ "@sanity/ui": "^1.1.0",
161
+ "@sanity/vision": "^3.2.5",
162
+ "@types/eventsource": "^1.1.11",
163
+ "@types/jest": "^29.4.0",
164
164
  "@types/react": "^18.0.27",
165
165
  "@types/react-dom": "^18.0.10",
166
166
  "@types/styled-components": "^5.1.26",
167
- "@typescript-eslint/eslint-plugin": "^5.48.2",
167
+ "@typescript-eslint/eslint-plugin": "^5.49.0",
168
168
  "autoprefixer": "^10.4.13",
169
169
  "eslint": "^8.32.0",
170
- "eslint-config-next": "13.1.3-canary.5",
170
+ "eslint-config-next": "13.1.5",
171
171
  "eslint-config-prettier": "^8.6.0",
172
172
  "eslint-config-sanity": "^6.0.0",
173
173
  "eslint-gitignore": "^0.1.0",
174
174
  "eslint-plugin-prettier": "^4.2.1",
175
175
  "eslint-plugin-simple-import-sort": "^9.0.0",
176
- "groqd": "^0.3.1",
177
- "jest": "^29.3.1",
178
- "jest-environment-jsdom": "^29.3.1",
179
- "ls-engines": "^0.8.0",
180
- "next": "13.1.3-canary.5",
176
+ "groqd": "^0.5.0",
177
+ "jest": "^29.4.1",
178
+ "jest-environment-jsdom": "^29.4.1",
179
+ "ls-engines": "^0.8.1",
180
+ "next": "13.1.5",
181
181
  "postcss": "^8.4.21",
182
182
  "prettier": "^2.8.3",
183
183
  "prettier-plugin-packagejson": "^2.4.0",
184
- "prettier-plugin-tailwindcss": "^0.2.1",
184
+ "prettier-plugin-tailwindcss": "^0.2.2",
185
185
  "react": "^18.2.0",
186
186
  "react-dom": "^18.2.0",
187
187
  "react-is": "^18.2.0",
188
- "rollup": "^3.10.0",
189
- "sanity": "^3.2.4",
188
+ "rollup": "^3.11.0",
189
+ "sanity": "^3.2.5",
190
190
  "styled-components": "^5.3.6",
191
191
  "tailwindcss": "^3.2.4",
192
192
  "typescript": "^4.9.4",