@ethlete/contentful 4.0.0-next.12 → 4.0.0-next.13

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 CHANGED
@@ -1,5 +1,28 @@
1
1
  # @ethlete/contentful
2
2
 
3
+ ## 4.0.0-next.13
4
+
5
+ ### Major Changes
6
+
7
+ - Breaking: the video, audio, file and link components drop their class inputs for static `et-contentful-*` classes on every inner element; `et update` removes the old bindings and lists each replacement.
8
+
9
+ ### Minor Changes
10
+
11
+ - Add a `[gqlRichText]` input to the rich-text renderer that takes a GraphQL rich-text field (`{ json, links }`) as-is, with the exported `ContentfulGqlRichText` type. `content` and `richTextPath` are now optional; setting `gqlRichText` together with either throws ET011 in dev mode.
12
+
13
+ ### Patch Changes
14
+
15
+ - The rich text renderer skips an embedded asset whose file has a content type but no URL, instead of mounting an empty image, video, audio or file component for it.
16
+ - `et-contentful-audio` leaves the `<figcaption>` out for an asset with neither a title nor a file name, instead of rendering an empty one.
17
+ - `provideContentfulConfig()` falls back to the defaults for `internalHosts`, `customComponents` and image options passed as `undefined`, instead of crashing links and embedded entries.
18
+ - Rich-text links resolve against the current page instead of `<base href>`, `imageOptions` accepts a partial object, and dev mode warns about a mistyped `richTextPath` or invalid image size.
19
+ - The rich text renderer no longer renders an empty, unlabelled link for a hyperlink node without text.
20
+ - `et-contentful-image` and `generateDefaultContentfulImageSource` keep the fallback `<img>` for an asset with a URL but no content type, instead of rendering no image.
21
+ - `migrate-to-contentful-v5` now says it migrates to `@ethlete/contentful` 4, the major it actually targets.
22
+ - `et-contentful-video` leaves the `type` off its `<source>` for an asset without a content type, instead of writing `type="null"`, which no browser plays.
23
+ - Peer dependencies are ranges (`^22.1.0` for Angular, `^7.8.0` for RxJS, ...) instead of the workspace's exact versions.
24
+ - Mark every migration with a `level`, so `et update` runs only the required ones.
25
+
3
26
  ## 4.0.0-next.12
4
27
 
5
28
  ### Major Changes