@sanity/pkg-utils 7.11.8 → 8.0.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/pkg-utils",
3
- "version": "7.11.8",
3
+ "version": "8.0.0",
4
4
  "description": "Simple utilities for modern npm packages.",
5
5
  "keywords": [
6
6
  "sanity-io",
@@ -26,8 +26,6 @@
26
26
  "exports": {
27
27
  ".": {
28
28
  "source": "./src/node/index.ts",
29
- "import": "./dist/index.js",
30
- "require": "./dist/index.cjs",
31
29
  "default": "./dist/index.js"
32
30
  },
33
31
  "./tsconfig/recommended.json": "./tsconfig/recommended.json",
@@ -39,8 +37,7 @@
39
37
  "./tsconfig": "./tsconfig/strictest.json",
40
38
  "./package.json": "./package.json"
41
39
  },
42
- "main": "./dist/index.cjs",
43
- "module": "./dist/index.js",
40
+ "main": "./dist/index.js",
44
41
  "types": "./dist/index.d.ts",
45
42
  "bin": {
46
43
  "pkg": "./bin/pkg-utils.js",
@@ -68,7 +65,7 @@
68
65
  },
69
66
  "browserslist": "extends @sanity/browserslist-config",
70
67
  "dependencies": {
71
- "@babel/core": "^7.28.0",
68
+ "@babel/core": "^7.28.3",
72
69
  "@babel/preset-typescript": "^7.27.1",
73
70
  "@babel/types": "^7.28.2",
74
71
  "@microsoft/api-extractor": "7.52.10",
@@ -85,64 +82,63 @@
85
82
  "@vanilla-extract/rollup-plugin": "^1.4.1",
86
83
  "browserslist": "^4.25.2",
87
84
  "cac": "^6.7.14",
88
- "chalk": "^4.1.2",
85
+ "chalk": "^5.6.0",
89
86
  "chokidar": "^4.0.3",
90
87
  "esbuild": "^0.25.9",
91
- "esbuild-register": "^3.6.0",
92
88
  "find-config": "^1.0.0",
93
89
  "get-latest-version": "^5.1.0",
94
90
  "git-url-parse": "^16.1.0",
95
- "globby": "^11.1.0",
91
+ "globby": "^13.2.2",
96
92
  "jsonc-parser": "^3.3.1",
97
93
  "lightningcss": "^1.30.1",
98
94
  "mkdirp": "^3.0.1",
99
95
  "outdent": "^0.8.0",
100
- "pkg-up": "^3.1.0",
96
+ "package-up": "^5.0.0",
101
97
  "prettier": "^3.6.2",
102
- "pretty-bytes": "^5.6.0",
98
+ "pretty-bytes": "^7.0.1",
103
99
  "prompts": "^2.4.2",
104
100
  "recast": "0.23.11",
105
- "rimraf": "^4.4.1",
106
- "rolldown": "1.0.0-beta.32",
101
+ "rimraf": "^6.0.1",
102
+ "rolldown": "1.0.0-beta.33",
107
103
  "rolldown-plugin-dts": "0.15.6",
108
- "rollup": "^4.46.2",
104
+ "rollup": "^4.46.3",
109
105
  "rollup-plugin-esbuild": "^6.2.1",
110
106
  "rxjs": "^7.8.2",
111
107
  "treeify": "^1.1.0",
108
+ "tsx": "^4.20.4",
112
109
  "uuid": "^11.1.0",
113
- "zod": "3.25.76",
114
- "zod-validation-error": "3.5.3"
110
+ "zod": "4.0.17",
111
+ "zod-validation-error": "4.0.1"
115
112
  },
116
113
  "devDependencies": {
117
114
  "@commitlint/cli": "^19.8.1",
118
115
  "@commitlint/config-conventional": "^19.8.1",
119
- "@ianvs/prettier-plugin-sort-imports": "^4.6.1",
116
+ "@ianvs/prettier-plugin-sort-imports": "^4.6.2",
120
117
  "@sanity/prettier-config": "^1.0.6",
121
118
  "@types/babel__core": "^7.20.5",
122
119
  "@types/find-config": "^1.0.4",
123
120
  "@types/fs-extra": "^11.0.4",
124
- "@types/node": "^24.0.3",
121
+ "@types/node": "^24.3.0",
125
122
  "@types/prompts": "^2.4.9",
126
123
  "@types/semver": "^7.7.0",
127
124
  "@types/treeify": "^1.0.3",
128
125
  "@types/uuid": "^10.0.0",
129
- "@typescript/native-preview": "7.0.0-dev.20250812.1",
126
+ "@typescript/native-preview": "7.0.0-dev.20250818.1",
130
127
  "browserslist-to-esbuild": "2.1.1",
131
128
  "commitizen": "^4.3.1",
132
129
  "cz-conventional-changelog": "^3.3.0",
133
130
  "fs-extra": "^11.3.1",
134
- "husky": "^8.0.3",
135
- "lint-staged": "^15.5.2",
131
+ "husky": "^9.1.7",
132
+ "lint-staged": "^16.1.5",
136
133
  "npm-run-all2": "^8.0.4",
137
134
  "outdent": "^0.8.0",
138
- "oxlint": "^1.11.2",
135
+ "oxlint": "^1.12.0",
139
136
  "rollup-plugin-visualizer": "^6.0.3",
140
137
  "semver": "^7.7.2",
141
138
  "ts-node": "^10.9.2",
142
- "tsx": "^4.20.4",
143
139
  "typescript": "5.9.2",
144
140
  "vitest": "^3.2.4",
145
- "@sanity/pkg-utils": "7.11.8"
141
+ "@sanity/pkg-utils": "8.0.0"
146
142
  },
147
143
  "peerDependencies": {
148
144
  "babel-plugin-react-compiler": "*",
@@ -154,7 +150,7 @@
154
150
  }
155
151
  },
156
152
  "engines": {
157
- "node": ">=18.17.0"
153
+ "node": ">=20.19 <22 || >=22.12"
158
154
  },
159
155
  "publishConfig": {
160
156
  "access": "public"