Releases: nikcio/Nikcio.UHeadless
Version 5.0.0-preview002
Actions failed see Version 5.0.0-preview003
Version 4.2.1
🩹 Bug fixes
- Fixed empty strings being returned as arrays.
🏛️Project stability
- Added more strict analyzers to the project for better warnings and structure in the project
Version 4.2.0
✨ Highlights
- Umbraco 13 support
🚀 Features
- Umbraco 13 support
🧪 Test improvements
- Rewrote tests to be snapshot-based for better regression testing.
- Converted test projects to use XUnit
- Converted unit test project to use NSubstitute instead of Moq
📦 Dependencies
- Updated Microsoft.Extensions.DependencyInjection.Abstractions to
8.0.1
- Updated Microsoft.Extensions.Logging.Abstractions to
8.0.1
- Updated HotChocolate.AspNetCore to
13.9.0
- Updated HotChocolate.AspNetCore.Authorization to
13.9.0
- Updated HotChocolate.Data to
13.9.0
- Updated Starlight to version
0.21.4
for the documentation website - Updated Astro to version
4.5.16
for the documentation website - Added Sharp
0.33.3
as a dependency to the documentation website - Updated all Test dependencies to the newest versions
- Updated all GitHub actions to the newest versions
v4.2.0-preview002
This is very preview release of #288 and Umbraco 13 support
Version 4.1.1
🩹 Bug Fixes
- Fixed not being able to boot without all
UseContentQueries()
,UseMediaQueries()
andUseMemberQueries()
. 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
✨ Highligts
- New documentation website 📚 (https://nikcio.github.io/Nikcio.UHeadless/)
- 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
Version 4.0.0
✨ Highligts
-
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
-
Added better support for multi-culture sites (#145)
-
Added Block grid support
-
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.
-
TProperty
has been removed from classes where it wasn't needed. See #181
⚠️ BREAKING CHANGES
-
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. -
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
-
TProperty
has been removed from classes where it wasn't needed. See #181 -
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).
-
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.
-
Content queries have had
segment
&Fallback
added to the query options to better support culture querying. (#145) -
The
AllMembers
query has been renamed toMembersAll
to have similar naming as the rest of the queries. -
IVariationContextAccessor
has been added to the constructor onBasicContent
,BasicMedia
, and ``BasicMember`. -
What was
BasicContentOfBasicPropertyAndBasicContentTypeAndBasicContentRedirect
in v3 schema will now beBasicContent
. This simplifies the naming of types used in the schema a lot. -
Replaced
Alias
withModel
onPropertyValue
. TheAlias
data was a duplicate of the one onProperty
therefore theModel
property has been added to show which model is used for a property value. -
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
-
Allow
BasicMember
with generic properties -
Added Auth queries. See the new querying section in the documentation
-
Added better support for multi-culture sites (#145)
-
Added Block grid support
🩹 Bug Fixes
- Fixes culture properties on content (#145)
📦 Dependencies
-
Added minimum requirement to be Umbraco 11 & .Net 7
-
Updated to Hotchocolate 13.2.1
Contributors
Thanks to @mrtrandinhvn for reporting the issue with culture queries.
Version 4.0.0-preview002
Version 4.0.0-preview002
✨ Highligts
-
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
-
Added better support for multi-culture sites (#145)
-
Added Block grid support
-
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
-
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. -
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
-
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).
-
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.
-
Content queries have had
segment
&Fallback
added to the query options to better support culture querying. (#145) -
The
AllMembers
query has been renamed toMembersAll
to have similar naming as the rest of the queries. -
IVariationContextAccessor
has been added to the constructor onBasicContent
,BasicMedia
, and ``BasicMember`. -
What was
BasicContentOfBasicPropertyAndBasicContentTypeAndBasicContentRedirect
in v3 schema will now beBasicContent
. This simplifies the naming of types used in the schema a lot. -
Replaced
Alias
withModel
onPropertyValue
. TheAlias
data was a duplicate of the one onProperty
therefore theModel
property has been added to show which model is used for a property value. -
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
-
Allow
BasicMember
with generic properties -
Added Auth queries. See the new querying section in the documentation
-
Added better support for multi-culture sites (#145)
-
Added Block grid support
🩹 Bug Fixes
- Fixes culture properties on content (#145)
📦 Dependencies
-
Added minimum requirement to be Umbraco 11 & .Net 7
-
Updated to Hotchocolate 13.2.1
Contributors
Thanks to @mrtrandinhvn for reporting the issue with culture queries.
Version 4.0.0-preview001
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 toMembersAll
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 onBasicContent
- What was
BasicContentOfBasicPropertyAndBasicContentTypeAndBasicContentRedirect
in v3 schema will now beBasicContent
. 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)