@financial-times/cp-content-pipeline-client 0.6.7 → 0.6.8
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 +7 -0
- package/codegen.js +0 -2
- package/lib/generated/index.d.ts +17698 -17698
- package/package.json +1 -1
- package/src/generated/index.ts +43 -43
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -156,6 +156,13 @@
|
|
|
156
156
|
* devDependencies
|
|
157
157
|
* @financial-times/cp-content-pipeline-schema bumped from ^0.7.6 to ^0.7.7
|
|
158
158
|
|
|
159
|
+
## [0.6.8](https://github.com/Financial-Times/cp-content-pipeline/compare/cp-content-pipeline-client-v0.6.7...cp-content-pipeline-client-v0.6.8) (2023-04-26)
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
### Bug Fixes
|
|
163
|
+
|
|
164
|
+
* output null instead of undefined in generated types and handle nulls correctly in ui ([d1022b0](https://github.com/Financial-Times/cp-content-pipeline/commit/d1022b06c39a5167757ba2608bdf0f2cf170dd0e))
|
|
165
|
+
|
|
159
166
|
## [0.6.2](https://github.com/Financial-Times/cp-content-pipeline/compare/cp-content-pipeline-client-v0.6.1...cp-content-pipeline-client-v0.6.2) (2023-03-16)
|
|
160
167
|
|
|
161
168
|
|
package/codegen.js
CHANGED
|
@@ -20,8 +20,6 @@ const config = {
|
|
|
20
20
|
config: {
|
|
21
21
|
// discourage transforming data in consumers by making properties readonly
|
|
22
22
|
immutableTypes: true,
|
|
23
|
-
// make types better-compatible with React, which doesn't like null
|
|
24
|
-
maybeValue: 'T',
|
|
25
23
|
// output types for custom scalars
|
|
26
24
|
scalars: mapValues(scalars, (scalar) => scalar.codegenType),
|
|
27
25
|
// don't ouptput __typename unless requested
|