@zerosumstudio/conduit 0.0.0-stage → 1.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/LICENSE +21 -0
- package/README.md +785 -2
- package/dist/core-DXSbz15-.d.ts +142 -0
- package/dist/dev-CNYwEGcY.js +14 -0
- package/dist/devtools.d.ts +61 -0
- package/dist/devtools.js +152 -0
- package/dist/errors-DT0d6Qhy.js +85 -0
- package/dist/index.d.ts +177 -0
- package/dist/index.js +2412 -0
- package/dist/observable-LsEew2iL.d.ts +30 -0
- package/dist/query-state-BlmK3fBM.js +37 -0
- package/dist/react.d.ts +75 -0
- package/dist/react.js +331 -0
- package/dist/shared-2HssxK9p.d.ts +53 -0
- package/dist/shared-BsSjKC7q.js +118 -0
- package/dist/stores-DGXWZXXg.js +195 -0
- package/dist/testing.d.ts +88 -0
- package/dist/testing.js +224 -0
- package/dist/types-B9nuOKel.d.ts +689 -0
- package/dist/upload.d.ts +27 -0
- package/dist/upload.js +94 -0
- package/docs/migration-1.0.md +423 -0
- package/docs/threat-model.md +69 -0
- package/package.json +151 -3
package/package.json
CHANGED
|
@@ -1,6 +1,154 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zerosumstudio/conduit",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A data-fetching client for micro frontends",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"micro-frontends",
|
|
7
|
+
"module-federation",
|
|
8
|
+
"fetch",
|
|
9
|
+
"http-client",
|
|
10
|
+
"cache",
|
|
11
|
+
"request-queue",
|
|
12
|
+
"deduplication",
|
|
13
|
+
"abort",
|
|
14
|
+
"typescript"
|
|
15
|
+
],
|
|
16
|
+
"homepage": "https://github.com/zerosumstudio/conduit#readme",
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/zerosumstudio/conduit/issues"
|
|
19
|
+
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "https://github.com/zerosumstudio/conduit.git"
|
|
23
|
+
},
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"author": "zerosum studio <hello@zerosum.studio>",
|
|
26
|
+
"sideEffects": false,
|
|
27
|
+
"type": "module",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"default": "./dist/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./react": {
|
|
34
|
+
"types": "./dist/react.d.ts",
|
|
35
|
+
"default": "./dist/react.js"
|
|
36
|
+
},
|
|
37
|
+
"./devtools": {
|
|
38
|
+
"types": "./dist/devtools.d.ts",
|
|
39
|
+
"default": "./dist/devtools.js"
|
|
40
|
+
},
|
|
41
|
+
"./testing": {
|
|
42
|
+
"types": "./dist/testing.d.ts",
|
|
43
|
+
"default": "./dist/testing.js"
|
|
44
|
+
},
|
|
45
|
+
"./upload": {
|
|
46
|
+
"types": "./dist/upload.d.ts",
|
|
47
|
+
"default": "./dist/upload.js"
|
|
48
|
+
},
|
|
49
|
+
"./package.json": "./package.json"
|
|
50
|
+
},
|
|
51
|
+
"main": "./dist/index.js",
|
|
52
|
+
"types": "./dist/index.d.ts",
|
|
53
|
+
"files": [
|
|
54
|
+
"dist",
|
|
55
|
+
"docs/threat-model.md",
|
|
56
|
+
"docs/migration-1.0.md"
|
|
57
|
+
],
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@eslint/js": "^10.0.1",
|
|
60
|
+
"@size-limit/preset-small-lib": "^14.3.0",
|
|
61
|
+
"@testing-library/react": "^16.3.3",
|
|
62
|
+
"@types/node": "^26.6.6",
|
|
63
|
+
"@types/react": "^19.3.0",
|
|
64
|
+
"@types/react-dom": "^19.3.0",
|
|
65
|
+
"@vitest/coverage-v8": "^5.1.1",
|
|
66
|
+
"eslint": "^10.15.0",
|
|
67
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
68
|
+
"globals": "^17.14.0",
|
|
69
|
+
"jsdom": "^31.0.1",
|
|
70
|
+
"prettier": "^3.10.1",
|
|
71
|
+
"react": "^19.3.1",
|
|
72
|
+
"react-dom": "^19.3.1",
|
|
73
|
+
"size-limit": "^14.3.0",
|
|
74
|
+
"tsdown": "^0.23.7",
|
|
75
|
+
"typescript": "^6.0.3",
|
|
76
|
+
"typescript-eslint": "^8.74.0",
|
|
77
|
+
"vitest": "^5.1.1"
|
|
78
|
+
},
|
|
79
|
+
"peerDependencies": {
|
|
80
|
+
"react": ">=18.0.0"
|
|
81
|
+
},
|
|
82
|
+
"peerDependenciesMeta": {
|
|
83
|
+
"react": {
|
|
84
|
+
"optional": true
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"engines": {
|
|
88
|
+
"node": ">=26"
|
|
89
|
+
},
|
|
90
|
+
"publishConfig": {
|
|
91
|
+
"access": "public",
|
|
92
|
+
"provenance": true
|
|
93
|
+
},
|
|
94
|
+
"size-limit": [
|
|
95
|
+
{
|
|
96
|
+
"name": "Main entry (everything)",
|
|
97
|
+
"path": "dist/index.js",
|
|
98
|
+
"limit": "13.5 KB"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "Core only",
|
|
102
|
+
"path": "dist/index.js",
|
|
103
|
+
"import": "{ createClient }",
|
|
104
|
+
"limit": "7.4 KB"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "Core + common plugins",
|
|
108
|
+
"path": "dist/index.js",
|
|
109
|
+
"import": "{ createClient, sharedClient, cache, dedupe, retry, timeout, queue }",
|
|
110
|
+
"limit": "10.9 KB"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "Errors only",
|
|
114
|
+
"path": "dist/index.js",
|
|
115
|
+
"import": "{ ConduitError, isConduitError }",
|
|
116
|
+
"limit": "0.4 KB"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "React bindings",
|
|
120
|
+
"path": "dist/react.js",
|
|
121
|
+
"limit": "2.4 KB"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "Devtools",
|
|
125
|
+
"path": "dist/devtools.js",
|
|
126
|
+
"limit": "1.2 KB"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "Testing",
|
|
130
|
+
"path": "dist/testing.js",
|
|
131
|
+
"limit": "1.8 KB"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "Upload (progress)",
|
|
135
|
+
"path": "dist/upload.js",
|
|
136
|
+
"limit": "0.8 KB"
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
"scripts": {
|
|
140
|
+
"build": "tsdown",
|
|
141
|
+
"dev": "tsdown --watch",
|
|
142
|
+
"format": "prettier --write .",
|
|
143
|
+
"format:check": "prettier --check .",
|
|
144
|
+
"lint": "eslint .",
|
|
145
|
+
"lint:fix": "eslint . --fix",
|
|
146
|
+
"size": "size-limit",
|
|
147
|
+
"smoke": "node scripts/smoke.mjs",
|
|
148
|
+
"test": "vitest run",
|
|
149
|
+
"test:coverage": "vitest run --coverage",
|
|
150
|
+
"test:watch": "vitest",
|
|
151
|
+
"type-check": "tsc --noEmit",
|
|
152
|
+
"verify": "pnpm run type-check && pnpm run lint && pnpm run format:check && pnpm run test:coverage && pnpm run build && pnpm run size && pnpm run smoke"
|
|
153
|
+
}
|
|
6
154
|
}
|