@financial-times/cp-content-pipeline-client 0.3.8 → 0.5.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/.toolkitrc.yml CHANGED
@@ -2,10 +2,16 @@ plugins:
2
2
  - '@dotcom-tool-kit/npm'
3
3
  - '../../tool-kit/graphql-code-generator'
4
4
  - '../../tool-kit/placeholder-hook'
5
+ - '../../tool-kit/generate-version'
5
6
 
6
7
  hooks:
7
8
  build:local:
8
9
  - GraphQLCodegen
10
+ - GenerateVersion
11
+ build:ci:
12
+ - GenerateVersion
13
+ build:remote:
14
+ - GenerateVersion
9
15
  run:local:
10
16
  - GraphQLCodegenWatch
11
17
  test:local:
@@ -25,3 +31,8 @@ options:
25
31
  - test:staged
26
32
  - test:ci
27
33
  - publish:tag
34
+ - build:ci
35
+ - build:remote
36
+ '../../tool-kit/generate-version':
37
+ input: '../schema/'
38
+ output: './src/schema-version.ts'
package/CHANGELOG.md CHANGED
@@ -60,6 +60,76 @@
60
60
  * devDependencies
61
61
  * @financial-times/cp-content-pipeline-schema bumped from ^0.4.6 to ^0.4.7
62
62
 
63
+ ## [0.5.0](https://github.com/Financial-Times/cp-content-pipeline/compare/cp-content-pipeline-client-v0.4.0...cp-content-pipeline-client-v0.5.0) (2023-01-24)
64
+
65
+
66
+ ### ⚠ BREAKING CHANGES
67
+
68
+ * update to latest content-tree ImageSet changes
69
+ * update references to use External type
70
+ * remove now-unused min/maxDisplayWidth fields
71
+ * rename sources on Image to sourceSet
72
+
73
+ ### Features
74
+
75
+ * add Flourish to content-tree ([7816a6f](https://github.com/Financial-Times/cp-content-pipeline/commit/7816a6f5b4d9f599ebd4afd9284de5b18979f278))
76
+ * add imageset to references ([28157c0](https://github.com/Financial-Times/cp-content-pipeline/commit/28157c0e170a4d954ff8ab97decd89221b1a0545))
77
+ * add layout nodes to content tree ([b6f5327](https://github.com/Financial-Times/cp-content-pipeline/commit/b6f5327422521437ae18f88f6100e1fcfa1f8cb4))
78
+ * add recommended link to content tree ([082450a](https://github.com/Financial-Times/cp-content-pipeline/commit/082450acf36e3ce2bd51893e3ebfd8c62fe20f0b))
79
+ * add tweet reference to content tree ([d0d0550](https://github.com/Financial-Times/cp-content-pipeline/commit/d0d05504ad0cc105507d6c8f9145dee23afc8f28))
80
+ * rename sources on Image to sourceSet ([c6ddf7f](https://github.com/Financial-Times/cp-content-pipeline/commit/c6ddf7f0cac47b0cbf4060e91c62a1c398665058))
81
+ * render raw images ([3cf9cb6](https://github.com/Financial-Times/cp-content-pipeline/commit/3cf9cb69199e31fde4b23935d7e2ddf7bdbdf916))
82
+ * return an image for raw images ([d05a6cd](https://github.com/Financial-Times/cp-content-pipeline/commit/d05a6cd93defbf222b968943f7365def841b0e64))
83
+ * return image format ([3f0ea41](https://github.com/Financial-Times/cp-content-pipeline/commit/3f0ea410f2b19114f81ebcf42c9add5c32b0f453))
84
+
85
+
86
+ ### Bug Fixes
87
+
88
+ * add layoutWidth to picture query ([fb88797](https://github.com/Financial-Times/cp-content-pipeline/commit/fb88797dea7c5a526f4f5b710367c9e9e0ac5f06))
89
+ * get imageset working with latest image changes ([e1eceb0](https://github.com/Financial-Times/cp-content-pipeline/commit/e1eceb0a5b8018d91aadd1699240425a29505e58))
90
+ * missing credit on images ([62a10d3](https://github.com/Financial-Times/cp-content-pipeline/commit/62a10d3146d1af49371262e247b6c0cb2140d432))
91
+ * reimplement mainImage workaround ([5e30dca](https://github.com/Financial-Times/cp-content-pipeline/commit/5e30dca04c28eee87c44d31c4d69075c14fa6c53))
92
+ * reinstate twitter error handling ([6ba321c](https://github.com/Financial-Times/cp-content-pipeline/commit/6ba321cf6a3d66f58cd1c0f3df40eaf9b8076054))
93
+ * update layout-width to match new names ([b6f5327](https://github.com/Financial-Times/cp-content-pipeline/commit/b6f5327422521437ae18f88f6100e1fcfa1f8cb4))
94
+
95
+
96
+ ### Miscellaneous Chores
97
+
98
+ * remove now-unused min/maxDisplayWidth fields ([e892d2f](https://github.com/Financial-Times/cp-content-pipeline/commit/e892d2f7b8a8b10f63a720f3dca974cd29678e70))
99
+
100
+
101
+ ### Code Refactoring
102
+
103
+ * update references to use External type ([6ba321c](https://github.com/Financial-Times/cp-content-pipeline/commit/6ba321cf6a3d66f58cd1c0f3df40eaf9b8076054))
104
+ * update to latest content-tree ImageSet changes ([6d33d38](https://github.com/Financial-Times/cp-content-pipeline/commit/6d33d383586841e83e08685ce93ca87964825297))
105
+
106
+
107
+ ### Dependencies
108
+
109
+ * The following workspace dependencies were updated
110
+ * devDependencies
111
+ * @financial-times/cp-content-pipeline-schema bumped from ^0.5.0 to ^0.6.0
112
+
113
+ ## [0.4.0](https://github.com/Financial-Times/cp-content-pipeline/compare/cp-content-pipeline-client-v0.3.8...cp-content-pipeline-client-v0.4.0) (2022-12-14)
114
+
115
+
116
+ ### ⚠ BREAKING CHANGES
117
+
118
+ * render main image outside of body
119
+
120
+ ### Features
121
+
122
+ * generate a version number file for the schema package ([4368cbb](https://github.com/Financial-Times/cp-content-pipeline/commit/4368cbb7cebb3b9ff82a283de97341dbfd2a2c10))
123
+ * render main image outside of body ([980ff15](https://github.com/Financial-Times/cp-content-pipeline/commit/980ff15091f7ffd9df5c2dbe99bafc4aea5bb34e))
124
+ * request a specific version of the api ([af4a9c2](https://github.com/Financial-Times/cp-content-pipeline/commit/af4a9c23ffc3d82be312cc4bd3d4a6361e821033))
125
+
126
+
127
+ ### Dependencies
128
+
129
+ * The following workspace dependencies were updated
130
+ * devDependencies
131
+ * @financial-times/cp-content-pipeline-schema bumped from ^0.4.7 to ^0.5.0
132
+
63
133
  ## [0.3.7](https://github.com/Financial-Times/cp-content-pipeline/compare/cp-content-pipeline-client-v0.3.6...cp-content-pipeline-client-v0.3.7) (2022-11-29)
64
134
 
65
135
 
package/codegen.yml CHANGED
@@ -13,3 +13,5 @@ generates:
13
13
  immutableTypes: true
14
14
  # make types better-compatible with React, which doesn't like null
15
15
  maybeValue: T
16
+ # output string enums as type unions so we can intersect them with other types (e.g. Content Tree)
17
+ enumsAsTypes: true