From e1436bfcc78958689e6fb0bf566edf08d2c2c441 Mon Sep 17 00:00:00 2001 From: Willow Maccagnoni Date: Wed, 9 Oct 2024 12:35:31 +0200 Subject: [PATCH 1/2] Prepare for gomponents v1.0.0 --- aria_live_region_attributes.go | 2 +- aria_other_attributes.go | 2 +- aria_relationship_attributes.go | 2 +- aria_role.go | 2 +- aria_widget_attributes.go | 2 +- conditional_attributes.go | 4 ++-- elem.go | 4 ++-- elements.go | 2 +- go.mod | 2 +- go.sum | 4 ++-- helpers.go | 2 +- helpers_event.go | 2 +- parent_modifier.go | 2 +- prepare.go | 2 +- 14 files changed, 17 insertions(+), 17 deletions(-) diff --git a/aria_live_region_attributes.go b/aria_live_region_attributes.go index 8bbe3da..cf3136f 100644 --- a/aria_live_region_attributes.go +++ b/aria_live_region_attributes.go @@ -1,6 +1,6 @@ package gomplements -import "github.com/maragudk/gomponents" +import "maragu.dev/gomponents" type ariaBusy string diff --git a/aria_other_attributes.go b/aria_other_attributes.go index 4bbe4c3..eec3864 100644 --- a/aria_other_attributes.go +++ b/aria_other_attributes.go @@ -3,7 +3,7 @@ package gomplements import ( "strings" - "github.com/maragudk/gomponents" + "maragu.dev/gomponents" ) type ariaCurrent string diff --git a/aria_relationship_attributes.go b/aria_relationship_attributes.go index 2e1da5c..e726408 100644 --- a/aria_relationship_attributes.go +++ b/aria_relationship_attributes.go @@ -4,7 +4,7 @@ import ( "strconv" "strings" - "github.com/maragudk/gomponents" + "maragu.dev/gomponents" ) // aria-activedescendant attribute diff --git a/aria_role.go b/aria_role.go index 012b749..c4e7826 100644 --- a/aria_role.go +++ b/aria_role.go @@ -1,6 +1,6 @@ package gomplements -import "github.com/maragudk/gomponents" +import "maragu.dev/gomponents" type ariaRole string diff --git a/aria_widget_attributes.go b/aria_widget_attributes.go index 265457b..39b8560 100644 --- a/aria_widget_attributes.go +++ b/aria_widget_attributes.go @@ -3,7 +3,7 @@ package gomplements import ( "strconv" - "github.com/maragudk/gomponents" + "maragu.dev/gomponents" ) type ariaAutocomplete string diff --git a/conditional_attributes.go b/conditional_attributes.go index 2451a4a..5aa143f 100644 --- a/conditional_attributes.go +++ b/conditional_attributes.go @@ -1,8 +1,8 @@ package gomplements import ( - "github.com/maragudk/gomponents" - "github.com/maragudk/gomponents/html" + "maragu.dev/gomponents" + "maragu.dev/gomponents/html" ) func newConditionalAttribute(attrFn func() gomponents.Node, condition ...bool) gomponents.Node { diff --git a/elem.go b/elem.go index 956f6f0..8ded6e7 100644 --- a/elem.go +++ b/elem.go @@ -4,8 +4,8 @@ import ( "fmt" "io" - "github.com/maragudk/gomponents" - "github.com/maragudk/gomponents/html" + "maragu.dev/gomponents" + "maragu.dev/gomponents/html" ) // Element is an element, which implements the gomponents.Node interface with diff --git a/elements.go b/elements.go index 5da83dc..2587124 100644 --- a/elements.go +++ b/elements.go @@ -1,7 +1,7 @@ package gomplements import ( - "github.com/maragudk/gomponents/html" + "maragu.dev/gomponents/html" ) func A(children ...any) Element { diff --git a/go.mod b/go.mod index 9301ebf..9da247d 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module github.com/willoma/gomplements go 1.22.0 -require github.com/maragudk/gomponents v0.20.2 +require maragu.dev/gomponents v1.0.0-beta1 diff --git a/go.sum b/go.sum index 7603918..d3b1274 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -github.com/maragudk/gomponents v0.20.2 h1:39FhnBNNCJzqNcD9Hmvp/5xj0otweFoyvVgFG6kXoy0= -github.com/maragudk/gomponents v0.20.2/go.mod h1:nHkNnZL6ODgMBeJhrZjkMHVvNdoYsfmpKB2/hjdQ0Hg= +maragu.dev/gomponents v1.0.0-beta1 h1:I51NqKfrtQC4GxuWShqW5CT5BrfToMEueLD76IhdSXs= +maragu.dev/gomponents v1.0.0-beta1/go.mod h1:oEDahza2gZoXDoDHhw8jBNgH+3UR5ni7Ur648HORydM= diff --git a/helpers.go b/helpers.go index dd8db8d..9387900 100644 --- a/helpers.go +++ b/helpers.go @@ -1,7 +1,7 @@ package gomplements import ( - "github.com/maragudk/gomponents/html" + "maragu.dev/gomponents/html" ) // AHref creates an element with the provided href. diff --git a/helpers_event.go b/helpers_event.go index 1979a31..e46a860 100644 --- a/helpers_event.go +++ b/helpers_event.go @@ -4,7 +4,7 @@ import ( "io" "strings" - "github.com/maragudk/gomponents" + "maragu.dev/gomponents" ) // On adds a "on" attribute to an element. diff --git a/parent_modifier.go b/parent_modifier.go index 102ddcd..258e11d 100644 --- a/parent_modifier.go +++ b/parent_modifier.go @@ -1,6 +1,6 @@ package gomplements -import "github.com/maragudk/gomponents" +import "maragu.dev/gomponents" // ParentModifier is an interface for modifying the parent of an element. type ParentModifier interface { diff --git a/prepare.go b/prepare.go index 16caa63..832b7f6 100644 --- a/prepare.go +++ b/prepare.go @@ -4,7 +4,7 @@ import ( "bytes" "io" - "github.com/maragudk/gomponents" + "maragu.dev/gomponents" ) // Prepare pre-renders a node in memory for future uses. From 5601115edb071e552c28fd12916e033744594d18 Mon Sep 17 00:00:00 2001 From: Willow Maccagnoni Date: Fri, 11 Oct 2024 12:59:21 +0200 Subject: [PATCH 2/2] gomponents upgrade to v1.0.0 --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 9da247d..def6ce4 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module github.com/willoma/gomplements go 1.22.0 -require maragu.dev/gomponents v1.0.0-beta1 +require maragu.dev/gomponents v1.0.0 diff --git a/go.sum b/go.sum index d3b1274..73ae5be 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -maragu.dev/gomponents v1.0.0-beta1 h1:I51NqKfrtQC4GxuWShqW5CT5BrfToMEueLD76IhdSXs= -maragu.dev/gomponents v1.0.0-beta1/go.mod h1:oEDahza2gZoXDoDHhw8jBNgH+3UR5ni7Ur648HORydM= +maragu.dev/gomponents v1.0.0 h1:eeLScjq4PqP1l+r5z/GC+xXZhLHXa6RWUWGW7gSfLh4= +maragu.dev/gomponents v1.0.0/go.mod h1:oEDahza2gZoXDoDHhw8jBNgH+3UR5ni7Ur648HORydM=