Skip to content

Releases: nikcio/Nikcio.UHeadless

Version 4.1.1

02 Aug 06:05
Compare
Choose a tag to compare

🩹 Bug Fixes

  • Fixed not being able to boot without all UseContentQueries(), UseMediaQueries() and UseMemberQueries(). This is solved by moving the composers to internal composers so that UHeadless can decide when to compose and if it should compose specific services.

Version 4.1.0

02 Jul 19:35
Compare
Choose a tag to compare

✨ Highligts

  1. New documentation website 📚 (https://nikcio.github.io/Nikcio.UHeadless/)
  2. Added the ability to query properties based on content, media, or member types in Umbraco (See New docs)

Example:

query {
  contentAtRoot {
    nodes {
      namedProperties {
        ... on IMyContent {
          myProperty {
            value
          }
        }
      }
    }
  }
}

⚠️ Add new extension to avoid problems

There's been a small change that needs to be in your settings based on what queries you add, add the following:

.AddUHeadless(new()
{
    UHeadlessGraphQLOptions = new()
    {
        GraphQLExtensions = (IRequestExecutorBuilder builder) =>
        {
            builder.UseContentQueries(); // (Only add one)
        },
    },
})

The same is true for media and member queries:

builder.UseMediaQueries();
builder.UseMemberQueries();

See a full example under Content queries

🧪 Test improvements

Over version 4.0.0 and 4.1.0, I've been adding tons of Unit and Integration tests to this package to ensure the features keep working and therefore this package now has ~63.8% coverage 🎉

In numbers, that means 20 Unit tests and 293 Integration tests and to me, that is just mindblowing even though many of the tests are just variations. 🤯

🩹 Bug Fixes

  1. Fixed DependencyReflectorFactory using too many of the required params (006d721)
  2. Only add used types to PropertyMap if mapping was added (6f7d43c)

Version 4.0.0

12 Jun 19:33
Compare
Choose a tag to compare

✨ Highligts

  1. Content, Media, and Member queries have been split into separate models to allow developers to only expose the queries they are actually using. See the new querying section in the documentation

  2. Added better support for multi-culture sites (#145)

  3. Added Block grid support

  4. Updated to Hotchocolate 13.2.1. This brings lots of improvements and features take a look at What's new for Hot Chocolate 13 - Some features to notice is the support for Cache-Control and the improvements to authorization.

  5. TProperty has been removed from classes where it wasn't needed. See #181

⚠️ BREAKING CHANGES

  1. UseSecurity has been removed from the UHeadless options. The naming was confusing and the developer should control the authentication and authorization themselves to have greater control over their application. See the new Security considerations documentation for more information.

  2. Content, Media, and Member queries have been split into separate models to allow developers to only expose the queries they are actually using. See the new querying section in the documentation

  3. TProperty has been removed from classes where it wasn't needed. See #181

  4. Property queries have been removed as they had a weird place in the package and no real use (you can do the exact same thing with the content queries).

  5. Media & Members have had culture removed from the query options. It's not possible to create media and members in different cultures, and it's therefore not necessary to be able to query for it.

  6. Content queries have had segment & Fallback added to the query options to better support culture querying. (#145)

  7. The AllMembers query has been renamed to MembersAll to have similar naming as the rest of the queries.

  8. IVariationContextAccessor has been added to the constructor on BasicContent, BasicMedia, and ``BasicMember`.

  9. What was BasicContentOfBasicPropertyAndBasicContentTypeAndBasicContentRedirect in v3 schema will now be BasicContent. This simplifies the naming of types used in the schema a lot.

  10. Replaced Alias with Model on PropertyValue. The Alias data was a duplicate of the one on Property therefore the Model property has been added to show which model is used for a property value.

  11. Some namespaces weren't synced properly to the location of the files. So to avoid confusion over source files, the namespaces have been synced. New namespaces:

Class New Namespace
BasicBlockListItem Nikcio.UHeadless.Base.Basics.EditorsValues.BlockList.Models
BasicBlockListModel Nikcio.UHeadless.Base.Basics.EditorsValues.BlockList.Models
BasicContentPicker Nikcio.UHeadless.Base.Basics.EditorsValues.ContentPicker.Models
BasicContentPickerItem Nikcio.UHeadless.Base.Basics.EditorsValues.ContentPicker.Models
BasicDateTimePicker Nikcio.UHeadless.Base.Basics.EditorsValues.DateTimePicker.Models
BasicPropertyValue Nikcio.UHeadless.Base.Basics.EditorsValues.Fallback.Models
BasicMediaPicker Nikcio.UHeadless.Base.Basics.EditorsValues.MediaPicker.Models
BasicMediaPickerItem Nikcio.UHeadless.Base.Basics.EditorsValues.MediaPicker.Models
BasicMemberPicker Nikcio.UHeadless.Base.Basics.EditorsValues.MemberPicker.Models
BasicMemberPickerItem Nikcio.UHeadless.Base.Basics.EditorsValues.MemberPicker.Models
BasicMultiUrlPicker Nikcio.UHeadless.Base.Basics.EditorsValues.MultiUrlPicker.Models
BasicMultiUrlPickerItem Nikcio.UHeadless.Base.Basics.EditorsValues.MultiUrlPicker.Models
BasicNestedContent Nikcio.UHeadless.Base.Basics.EditorsValues.NestedContent.Models
BasicNestedContentElement Nikcio.UHeadless.Base.Basics.EditorsValues.NestedContent.Models
BasicRichText Nikcio.UHeadless.Base.Basics.EditorsValues.RichTextEditor.Models
PropertyMapExtensions Nikcio.UHeadless.Base.Basics.Maps.Extensions
BasicProperty Nikcio.UHeadless.Base.Basics.Models

🚀 Features

  1. Allow BasicMember with generic properties

  2. Added Auth queries. See the new querying section in the documentation

  3. Added better support for multi-culture sites (#145)

  4. Added Block grid support

🩹 Bug Fixes

  1. Fixes culture properties on content (#145)

📦 Dependencies

  1. Added minimum requirement to be Umbraco 11 & .Net 7

  2. Updated to Hotchocolate 13.2.1

Contributors

Thanks to @mrtrandinhvn for reporting the issue with culture queries.

Version 4.0.0-preview002

07 Jun 15:29
Compare
Choose a tag to compare
Pre-release

Version 4.0.0-preview002

✨ Highligts

  1. Content, Media, and Member queries have been split into separate models to allow developers to only expose the queries they are actually using. See the new querying section in the documentation

  2. Added better support for multi-culture sites (#145)

  3. Added Block grid support

  4. Updated to Hotchocolate 13.2.1. This brings lots of improvements and features take a look at What's new for Hot Chocolate 13 - Some features to notice is the support for Cache-Control and the improvements to authorization.

⚠️ BREAKING CHANGES

  1. UseSecurity has been removed from the UHeadless options. The naming was confusing and the developer should control the authentication and authorization themselves to have greater control over their application. See the new Security considerations documentation for more information.

  2. Content, Media, and Member queries have been split into separate models to allow developers to only expose the queries they are actually using. See the new querying section in the documentation

  3. Property queries have been removed as they had a weird place in the package and no real use (you can do the exact same thing with the content queries).

  4. Media & Members have had culture removed from the query options. It's not possible to create media and members in different cultures, and it's therefore not necessary to be able to query for it.

  5. Content queries have had segment & Fallback added to the query options to better support culture querying. (#145)

  6. The AllMembers query has been renamed to MembersAll to have similar naming as the rest of the queries.

  7. IVariationContextAccessor has been added to the constructor on BasicContent, BasicMedia, and ``BasicMember`.

  8. What was BasicContentOfBasicPropertyAndBasicContentTypeAndBasicContentRedirect in v3 schema will now be BasicContent. This simplifies the naming of types used in the schema a lot.

  9. Replaced Alias with Model on PropertyValue. The Alias data was a duplicate of the one on Property therefore the Model property has been added to show which model is used for a property value.

  10. Some namespaces weren't synced properly to the location of the files. So to avoid confusion over source files, the namespaces have been synced. New namespaces:

Class New Namespace
BasicBlockListItem Nikcio.UHeadless.Base.Basics.EditorsValues.BlockList.Models
BasicBlockListModel Nikcio.UHeadless.Base.Basics.EditorsValues.BlockList.Models
BasicContentPicker Nikcio.UHeadless.Base.Basics.EditorsValues.ContentPicker.Models
BasicContentPickerItem Nikcio.UHeadless.Base.Basics.EditorsValues.ContentPicker.Models
BasicDateTimePicker Nikcio.UHeadless.Base.Basics.EditorsValues.DateTimePicker.Models
BasicPropertyValue Nikcio.UHeadless.Base.Basics.EditorsValues.Fallback.Models
BasicMediaPicker Nikcio.UHeadless.Base.Basics.EditorsValues.MediaPicker.Models
BasicMediaPickerItem Nikcio.UHeadless.Base.Basics.EditorsValues.MediaPicker.Models
BasicMemberPicker Nikcio.UHeadless.Base.Basics.EditorsValues.MemberPicker.Models
BasicMemberPickerItem Nikcio.UHeadless.Base.Basics.EditorsValues.MemberPicker.Models
BasicMultiUrlPicker Nikcio.UHeadless.Base.Basics.EditorsValues.MultiUrlPicker.Models
BasicMultiUrlPickerItem Nikcio.UHeadless.Base.Basics.EditorsValues.MultiUrlPicker.Models
BasicNestedContent Nikcio.UHeadless.Base.Basics.EditorsValues.NestedContent.Models
BasicNestedContentElement Nikcio.UHeadless.Base.Basics.EditorsValues.NestedContent.Models
BasicRichText Nikcio.UHeadless.Base.Basics.EditorsValues.RichTextEditor.Models
PropertyMapExtensions Nikcio.UHeadless.Base.Basics.Maps.Extensions
BasicProperty Nikcio.UHeadless.Base.Basics.Models

🚀 Features

  1. Allow BasicMember with generic properties

  2. Added Auth queries. See the new querying section in the documentation

  3. Added better support for multi-culture sites (#145)

  4. Added Block grid support

🩹 Bug Fixes

  1. Fixes culture properties on content (#145)

📦 Dependencies

  1. Added minimum requirement to be Umbraco 11 & .Net 7

  2. Updated to Hotchocolate 13.2.1

Contributors

Thanks to @mrtrandinhvn for reporting the issue with culture queries.

Version 4.0.0-preview001

06 Jun 14:14
Compare
Choose a tag to compare
Pre-release

4.0.0-preview001 (2023-06-06)

See the work-in-progress documentation for v4 to understand how to use the queries you need (Under Fundamentals).

⚠ BREAKING CHANGES

  • Renamed AllMembers query to MembersAll to have similar naming as the rest of the queries.
  • Some namespaces weren't synced properly to the location of the files. So to avoid confusion over source files the namespaces have been synced. New namespaces:

BasicBlockListItem - Nikcio.UHeadless.Base.Basics.EditorsValues.BlockList.Models
BasicBlockListModel - Nikcio.UHeadless.Base.Basics.EditorsValues.BlockList.Models
BasicContentPicker - Nikcio.UHeadless.Base.Basics.EditorsValues.ContentPicker.Models
BasicContentPickerItem - Nikcio.UHeadless.Base.Basics.EditorsValues.ContentPicker.Models
BasicDateTimePicker - Nikcio.UHeadless.Base.Basics.EditorsValues.DateTimePicker.Models
BasicPropertyValue - Nikcio.UHeadless.Base.Basics.EditorsValues.Fallback.Models
BasicMediaPicker - Nikcio.UHeadless.Base.Basics.EditorsValues.MediaPicker.Models
BasicMediaPickerItem - Nikcio.UHeadless.Base.Basics.EditorsValues.MediaPicker.Models
BasicMemberPicker - Nikcio.UHeadless.Base.Basics.EditorsValues.MemberPicker.Models
BasicMemberPickerItem - Nikcio.UHeadless.Base.Basics.EditorsValues.MemberPicker.Models
BasicMultiUrlPicker - Nikcio.UHeadless.Base.Basics.EditorsValues.MultiUrlPicker.Models
BasicMultiUrlPickerItem - Nikcio.UHeadless.Base.Basics.EditorsValues.MultiUrlPicker.Models
BasicNestedContent - Nikcio.UHeadless.Base.Basics.EditorsValues.NestedContent.Models
BasicNestedContentElement - Nikcio.UHeadless.Base.Basics.EditorsValues.NestedContent.Models
BasicRichText - Nikcio.UHeadless.Base.Basics.EditorsValues.RichTextEditor.Models
PropertyMapExtensions - Nikcio.UHeadless.Base.Basics.Maps.Extensions
BasicProperty - Nikcio.UHeadless.Base.Basics.Models

  • Member queries have been split to separate models which remove BasicMemberQuery.
  • Media queries have been split to separate models which remove BasicMediaQuery.
  • This removes the property queries as they had a weird place in the package and no real use. (You can do the exact same thing with the content queries).
  • Media & Members have had culture removed from the query options. It's not possible to create media and members of different cultures and it's therefore not necessary to be able to query for it.

Content & Property queries have had segment & Fallback added to the query options to better support culture querying.

All GetValue for property values have been changed to Value which better supports culture variants.

  • Introduces IVariationContextAccessor to the constructor on BasicContent
  • What was BasicContentOfBasicPropertyAndBasicContentTypeAndBasicContentRedirect in v3 schema will now be BasicContent. This simplifies the naming of types used in the schema a lot.
  • The content queries have been given a separate class for each query to help developers only expose the data they need.
  • Replace Alias with the model on propertyValue
  • deps: Added min requirement to be Umbraco 11 & .Net 7
  • deps: Updated to Hotchocolate 13

Features

  • Added Auth queries (f93f598)
  • Added better support for multi-culture sites (fb0be99)
  • Added Block grid support (c92e40c)
  • Replace Alias with model on propertyValue (406c102)
  • Split media queries to separate models (368072f)
  • Split member queries to separate models (469e7df)

Bug Fixes

  • Fixes culture properties on content (aee9e0b), closes #145

Version 3.3.1

02 Jun 19:26
Compare
Choose a tag to compare

3.3.1 (2023-06-02)

Bug Fixes

  • Fixes contentpicker error when selected an unpublished child (3a69c82), closes #143

Version 2.3.1

02 Jun 19:22
Compare
Choose a tag to compare

2.3.1 (2023-06-02)

Bug Fixes

  • Fixes contentpicker error when selected an unpublished child (89d1f6b), closes #143

Version 3.3.0

18 Jan 10:54
Compare
Choose a tag to compare

3.3.0 (2023-01-18)

Features

Bug Fixes

  • Fixed possible null ref (7e8efd4)

Dependencies

  • Updated dependencies
    • Hotchocolate updated to 12.16.0

What's Changed

  • Support query for HTML output from MarkdownEditor by @thetanz-geoff in #110
  • chore(deps): bump HotChocolate.AspNetCore.Authorization from 12.15.2 to 12.16.0 in /src/Nikcio.UHeadless by @dependabot in #108
  • chore(deps): bump HotChocolate.AspNetCore from 12.15.2 to 12.16.0 in /src/Nikcio.UHeadless by @dependabot in #106
  • chore(deps): bump HotChocolate.Data from 12.15.2 to 12.16.0 in /src/Nikcio.UHeadless by @dependabot in #107

New Contributors

Full Changelog: v3.2.0...v3.3.0

Version 3.2.0

22 Nov 14:08
Compare
Choose a tag to compare

3.2.0 (2022-11-22)

Features

Version 3.1.0

16 Nov 20:01
Compare
Choose a tag to compare

3.1.0 (2022-11-16)

Features

  • New content queries (8a28fc7)

    • ContentAll (Gets all the content items available)
    • ContentDescendantsByGuid (Gets descendants on a content item selected by guid)
    • ContentDescendantsById (Gets descendants on a content item selected by id)
    • ContentDescendantsByContentType (Gets all descendants of content items with a specific content type)
    • ContentDescendantsByAbsoluteRoute (Gets content item descendants by an absolute route)
    • ContentByTag (Gets content items by tag)

Dependencies

  • Updated Hot chocolate dependencies 12.15.2