@classytic/arc-next 0.11.0 → 0.12.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,178 +1,189 @@
1
- {
2
- "name": "@classytic/arc-next",
3
- "version": "0.11.0",
4
- "description": "React + TanStack Query SDK for Arc resources",
5
- "type": "module",
6
- "sideEffects": false,
7
- "license": "MIT",
8
- "author": "Classytic",
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/classytic/arc-next"
12
- },
13
- "keywords": [
14
- "react",
15
- "tanstack-query",
16
- "react-query",
17
- "crud",
18
- "api-client",
19
- "hooks",
20
- "optimistic-updates",
21
- "pagination",
22
- "multi-tenant",
23
- "arc",
24
- "mongokit",
25
- "sse",
26
- "real-time",
27
- "soft-delete",
28
- "bulk-operations"
29
- ],
30
- "main": "./dist/hooks.js",
31
- "types": "./dist/hooks.d.ts",
32
- "exports": {
33
- ".": {
34
- "types": "./dist/hooks.d.ts",
35
- "default": "./dist/hooks.js"
36
- },
37
- "./client": {
38
- "types": "./dist/client.d.ts",
39
- "default": "./dist/client.js"
40
- },
41
- "./encryption": {
42
- "types": "./dist/encryption.d.ts",
43
- "default": "./dist/encryption.js"
44
- },
45
- "./field-encryption": {
46
- "types": "./dist/field-encryption.d.ts",
47
- "default": "./dist/field-encryption.js"
48
- },
49
- "./api": {
50
- "types": "./dist/api.d.ts",
51
- "default": "./dist/api.js"
52
- },
53
- "./cache": {
54
- "types": "./dist/cache.d.ts",
55
- "default": "./dist/cache.js"
56
- },
57
- "./query": {
58
- "types": "./dist/query.d.ts",
59
- "default": "./dist/query.js"
60
- },
61
- "./mutation": {
62
- "types": "./dist/mutation.d.ts",
63
- "default": "./dist/mutation.js"
64
- },
65
- "./hooks": {
66
- "types": "./dist/hooks.d.ts",
67
- "default": "./dist/hooks.js"
68
- },
69
- "./query-client": {
70
- "types": "./dist/query-client.d.ts",
71
- "default": "./dist/query-client.js"
72
- },
73
- "./prefetch": {
74
- "types": "./dist/prefetch.d.ts",
75
- "default": "./dist/prefetch.js"
76
- },
77
- "./sse": {
78
- "types": "./dist/sse.d.ts",
79
- "default": "./dist/sse.js"
80
- },
81
- "./ws": {
82
- "types": "./dist/ws.d.ts",
83
- "default": "./dist/ws.js"
84
- },
85
- "./upload": {
86
- "types": "./dist/upload.d.ts",
87
- "default": "./dist/upload.js"
88
- },
89
- "./presets/soft-delete": {
90
- "types": "./dist/presets/soft-delete.d.ts",
91
- "default": "./dist/presets/soft-delete.js"
92
- },
93
- "./presets/history": {
94
- "types": "./dist/presets/history.d.ts",
95
- "default": "./dist/presets/history.js"
96
- },
97
- "./presets/bulk": {
98
- "types": "./dist/presets/bulk.d.ts",
99
- "default": "./dist/presets/bulk.js"
100
- },
101
- "./presets/slug": {
102
- "types": "./dist/presets/slug.d.ts",
103
- "default": "./dist/presets/slug.js"
104
- },
105
- "./presets/tree": {
106
- "types": "./dist/presets/tree.d.ts",
107
- "default": "./dist/presets/tree.js"
108
- },
109
- "./presets/search": {
110
- "types": "./dist/presets/search.d.ts",
111
- "default": "./dist/presets/search.js"
112
- },
113
- "./package.json": "./package.json",
114
- "./query-options": {
115
- "types": "./dist/query-options.d.ts",
116
- "default": "./dist/query-options.js"
117
- }
118
- },
119
- "files": [
120
- "dist",
121
- "llms.txt"
122
- ],
123
- "publishConfig": {
124
- "access": "public",
125
- "registry": "https://registry.npmjs.org/"
126
- },
127
- "engines": {
128
- "node": ">=20"
129
- },
130
- "scripts": {
131
- "build": "tsdown",
132
- "dev": "tsdown --watch",
133
- "test": "vitest run",
134
- "test:watch": "vitest",
135
- "typecheck": "tsc --noEmit",
136
- "push": "classytic-push",
137
- "release:tag": "node -e \"require('child_process').execSync('npm run push -- v'+require('./package.json').version,{stdio:'inherit'})\"",
138
- "release": "npm run push -- main && npm run release:tag && npm publish",
139
- "prepublishOnly": "npm run typecheck && npm test && npm run build",
140
- "typecheck:tests": "tsc --noEmit -p tsconfig.test.json"
141
- },
142
- "peerDependencies": {
143
- "@classytic/repo-core": ">=0.4.0",
144
- "@tanstack/react-query": ">=5.62.0",
145
- "jose": ">=5.0.0",
146
- "react": ">=19.0.0"
147
- },
148
- "peerDependenciesMeta": {
149
- "react": {
150
- "optional": false
151
- },
152
- "@tanstack/react-query": {
153
- "optional": false
154
- },
155
- "@classytic/repo-core": {
156
- "optional": false
157
- },
158
- "jose": {
159
- "optional": true
160
- }
161
- },
162
- "devDependencies": {
163
- "@classytic/dev-tools": "^0.2.0",
164
- "@classytic/repo-core": "^0.5.0",
165
- "@tanstack/react-query": "^5.97.0",
166
- "@testing-library/jest-dom": "^6.9.1",
167
- "@testing-library/react": "^16.3.2",
168
- "@types/react": "^19.2.14",
169
- "@types/react-dom": "^19.2.3",
170
- "jose": "^6.2.3",
171
- "jsdom": "^29.0.2",
172
- "react": "^19.2.5",
173
- "react-dom": "^19.2.5",
174
- "tsdown": "^0.21.7",
175
- "typescript": "^6.0.2",
176
- "vitest": "^4.1.4"
177
- }
178
- }
1
+ {
2
+ "name": "@classytic/arc-next",
3
+ "version": "0.12.0",
4
+ "description": "React + TanStack Query SDK for Arc resources",
5
+ "type": "module",
6
+ "sideEffects": false,
7
+ "license": "MIT",
8
+ "author": "Classytic",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/classytic/arc-next.git"
12
+ },
13
+ "keywords": [
14
+ "react",
15
+ "tanstack-query",
16
+ "react-query",
17
+ "crud",
18
+ "api-client",
19
+ "hooks",
20
+ "optimistic-updates",
21
+ "pagination",
22
+ "multi-tenant",
23
+ "arc",
24
+ "mongokit",
25
+ "sse",
26
+ "real-time",
27
+ "soft-delete",
28
+ "bulk-operations"
29
+ ],
30
+ "main": "./dist/hooks.js",
31
+ "types": "./dist/hooks.d.ts",
32
+ "exports": {
33
+ ".": {
34
+ "types": "./dist/hooks.d.ts",
35
+ "default": "./dist/hooks.js"
36
+ },
37
+ "./client": {
38
+ "types": "./dist/client.d.ts",
39
+ "default": "./dist/client.js"
40
+ },
41
+ "./encryption": {
42
+ "types": "./dist/encryption.d.ts",
43
+ "default": "./dist/encryption.js"
44
+ },
45
+ "./field-encryption": {
46
+ "types": "./dist/field-encryption.d.ts",
47
+ "default": "./dist/field-encryption.js"
48
+ },
49
+ "./api": {
50
+ "types": "./dist/api.d.ts",
51
+ "default": "./dist/api.js"
52
+ },
53
+ "./cache": {
54
+ "types": "./dist/cache.d.ts",
55
+ "default": "./dist/cache.js"
56
+ },
57
+ "./query": {
58
+ "types": "./dist/query.d.ts",
59
+ "default": "./dist/query.js"
60
+ },
61
+ "./mutation": {
62
+ "types": "./dist/mutation.d.ts",
63
+ "default": "./dist/mutation.js"
64
+ },
65
+ "./hooks": {
66
+ "types": "./dist/hooks.d.ts",
67
+ "default": "./dist/hooks.js"
68
+ },
69
+ "./query-client": {
70
+ "types": "./dist/query-client.d.ts",
71
+ "default": "./dist/query-client.js"
72
+ },
73
+ "./prefetch": {
74
+ "types": "./dist/prefetch.d.ts",
75
+ "default": "./dist/prefetch.js"
76
+ },
77
+ "./sse": {
78
+ "types": "./dist/sse.d.ts",
79
+ "default": "./dist/sse.js"
80
+ },
81
+ "./ws": {
82
+ "types": "./dist/ws.d.ts",
83
+ "default": "./dist/ws.js"
84
+ },
85
+ "./upload": {
86
+ "types": "./dist/upload.d.ts",
87
+ "default": "./dist/upload.js"
88
+ },
89
+ "./presets/soft-delete": {
90
+ "types": "./dist/presets/soft-delete.d.ts",
91
+ "default": "./dist/presets/soft-delete.js"
92
+ },
93
+ "./presets/history": {
94
+ "types": "./dist/presets/history.d.ts",
95
+ "default": "./dist/presets/history.js"
96
+ },
97
+ "./presets/bulk": {
98
+ "types": "./dist/presets/bulk.d.ts",
99
+ "default": "./dist/presets/bulk.js"
100
+ },
101
+ "./presets/slug": {
102
+ "types": "./dist/presets/slug.d.ts",
103
+ "default": "./dist/presets/slug.js"
104
+ },
105
+ "./presets/tree": {
106
+ "types": "./dist/presets/tree.d.ts",
107
+ "default": "./dist/presets/tree.js"
108
+ },
109
+ "./presets/search": {
110
+ "types": "./dist/presets/search.d.ts",
111
+ "default": "./dist/presets/search.js"
112
+ },
113
+ "./package.json": "./package.json",
114
+ "./query-options": {
115
+ "types": "./dist/query-options.d.ts",
116
+ "default": "./dist/query-options.js"
117
+ }
118
+ },
119
+ "files": [
120
+ "dist",
121
+ "llms.txt"
122
+ ],
123
+ "publishConfig": {
124
+ "access": "public",
125
+ "registry": "https://registry.npmjs.org/"
126
+ },
127
+ "engines": {
128
+ "node": ">=20"
129
+ },
130
+ "scripts": {
131
+ "build": "tsdown",
132
+ "dev": "tsdown --watch",
133
+ "test": "vitest run",
134
+ "test:watch": "vitest",
135
+ "typecheck": "tsc --noEmit",
136
+ "push": "classytic-push",
137
+ "release:tag": "node -e \"require('child_process').execSync('npm run push -- v'+require('./package.json').version,{stdio:'inherit'})\"",
138
+ "release": "npm run push -- main && npm run release:tag && npm publish",
139
+ "prepublishOnly": "npm run typecheck && npm run typecheck:tests && npm run lint && npm run check:dead-code && npm test && npm run build && npm run check:package && npm run check:api-surface && npm run check:server-import && npm run check:bundle && npm run check:fixtures",
140
+ "typecheck:tests": "tsc --noEmit -p tsconfig.test.json",
141
+ "check:package": "publint --strict && attw --pack . --profile esm-only",
142
+ "check:api-surface": "node scripts/check-api-surface.mjs",
143
+ "api:surface": "node scripts/check-api-surface.mjs --update",
144
+ "check:server-import": "node scripts/check-server-import.mjs",
145
+ "check:bundle": "node scripts/check-bundle-size.mjs",
146
+ "check:fixtures": "tsc -p fixtures/tsconfig.json",
147
+ "lint": "biome check src/ tests/ scripts/ fixtures/",
148
+ "check:dead-code": "knip"
149
+ },
150
+ "peerDependencies": {
151
+ "@classytic/repo-core": ">=0.14.0",
152
+ "@tanstack/react-query": ">=5.62.0",
153
+ "jose": ">=5.0.0",
154
+ "react": ">=19.0.0"
155
+ },
156
+ "peerDependenciesMeta": {
157
+ "react": {
158
+ "optional": false
159
+ },
160
+ "@tanstack/react-query": {
161
+ "optional": false
162
+ },
163
+ "@classytic/repo-core": {
164
+ "optional": false
165
+ },
166
+ "jose": {
167
+ "optional": true
168
+ }
169
+ },
170
+ "devDependencies": {
171
+ "@arethetypeswrong/cli": "^0.18.5",
172
+ "@biomejs/biome": "^2.5.5",
173
+ "@classytic/dev-tools": "^0.2.0",
174
+ "@classytic/repo-core": "^0.14.0",
175
+ "@tanstack/react-query": "^5.97.0",
176
+ "@testing-library/react": "^16.3.2",
177
+ "@types/react": "^19.2.14",
178
+ "@types/react-dom": "^19.2.3",
179
+ "jose": "^6.2.3",
180
+ "jsdom": "^29.0.2",
181
+ "knip": "^6.27.0",
182
+ "publint": "^0.3.21",
183
+ "react": "^19.2.5",
184
+ "react-dom": "^19.2.5",
185
+ "tsdown": "^0.21.7",
186
+ "typescript": "^6.0.2",
187
+ "vitest": "^4.1.4"
188
+ }
189
+ }