@uidu/client 3.7.0 → 3.7.1
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/CHANGELOG.md +9 -0
- package/codegen.ts +5 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @uidu/client
|
|
2
2
|
|
|
3
|
+
## 3.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1149d0b: `codegen.ts` builds its endpoint from `UIDU_HOST` (default `uidu.org`) instead
|
|
8
|
+
of hardcoding the domain, so a workspace that only exists on staging can be
|
|
9
|
+
introspected — and `UIDU_WORKSPACE=demo` no longer silently resolves to
|
|
10
|
+
`demo.uidu.org`, which 404s.
|
|
11
|
+
|
|
3
12
|
## 3.7.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
package/codegen.ts
CHANGED
|
@@ -19,8 +19,12 @@ loadEnvFile('.env');
|
|
|
19
19
|
|
|
20
20
|
const workspace = process.env.UIDU_WORKSPACE ?? 'uidu';
|
|
21
21
|
const publicToken = process.env.UIDU_PUBLIC_TOKEN ?? '';
|
|
22
|
+
// `.uidu.org` used to be baked in here, which meant a workspace that only
|
|
23
|
+
// exists on staging could not be introspected at all — and, worse, that
|
|
24
|
+
// `UIDU_WORKSPACE=demo` silently resolved to `demo.uidu.org`, which 404s.
|
|
25
|
+
const host = process.env.UIDU_HOST ?? 'uidu.org';
|
|
22
26
|
const endpoint =
|
|
23
|
-
process.env.UIDU_GRAPHQL_ENDPOINT ?? `https://${workspace}
|
|
27
|
+
process.env.UIDU_GRAPHQL_ENDPOINT ?? `https://${workspace}.${host}/graphql`;
|
|
24
28
|
|
|
25
29
|
/**
|
|
26
30
|
* The SDL from a `uidu` checkout beside this one, when there is one.
|