From 73529c14a98dfa9e60219c19596ccaa873695606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20T=C3=A9treault-Pinard?= Date: Mon, 6 Nov 2023 14:42:16 -0500 Subject: [PATCH 1/5] fix `convert([v], v)` dispatch for Julia 1.10 I'm not sure why the Julia <=1.9 dispatch fails in Julia 1.10. It seems that Julia 1.10 is more strict about element type during convertion to `<:Vector`. --- src/app/supporttypes.jl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/supporttypes.jl b/src/app/supporttypes.jl index 14fbcaa..dd913c6 100644 --- a/src/app/supporttypes.jl +++ b/src/app/supporttypes.jl @@ -17,7 +17,9 @@ struct TraitInput end struct TraitOutput end struct TraitState end -struct Dependency{Trait, IdT <: Union{String, NamedTuple}} +const IdTypes = Union{String,NamedTuple} + +struct Dependency{Trait, IdT<:IdTypes} id ::IdT property ::String Dependency{Trait}(id::T, property::String) where {Trait, T} = new{Trait, T}(id, property) @@ -95,7 +97,9 @@ struct CallbackDeps CallbackDeps(output::Vector{<:Output}, input, state = State[]) = new(output, input, state, true) end -Base.convert(::Type{Vector{<:T}}, v::T) where {T<:Dependency} = [v] +Base.convert(::Type{Vector{<:Output}}, v::Output{<:IdTypes}) = [v] +Base.convert(::Type{Vector{<:Input}}, v::Input{<:IdTypes}) = [v] +Base.convert(::Type{Vector{<:State}}, v::State{<:IdTypes}) = [v] struct ClientsideFunction namespace ::String From bdfea32afa1fbb9b73c71f3fd66c80c00daa70a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20T=C3=A9treault-Pinard?= Date: Mon, 6 Nov 2023 14:50:32 -0500 Subject: [PATCH 2/5] add `1.10.0` release candidate to CI --- .github/workflows/jl_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/jl_test.yml b/.github/workflows/jl_test.yml index fbd0073..fe3ff6a 100644 --- a/.github/workflows/jl_test.yml +++ b/.github/workflows/jl_test.yml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: false matrix: - jl_version: ["1.6", "1.8", "1.9"] + jl_version: ["1.6", "1.8", "1.9", "~1.10.0-rc1"] steps: - uses: actions/checkout@v2 - uses: julia-actions/setup-julia@v1 From 9955b94b8ada53a915ed275c927ddb54ad1a1a0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20T=C3=A9treault-Pinard?= Date: Thu, 30 Nov 2023 11:02:13 -0500 Subject: [PATCH 3/5] use `circleci/browser-tools@1.4.6` same as for the python version of dash --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d923024..d26e874 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,7 +2,7 @@ version: 2.1 orbs: percy: percy/agent@0.1.3 - browser-tools: circleci/browser-tools@1.4.3 + browser-tools: circleci/browser-tools@1.4.6 jobs: From 0a7b26c7c11b5377282b9e2e2de76bd40c072fd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20T=C3=A9treault-Pinard?= Date: Thu, 28 Dec 2023 11:19:31 -0500 Subject: [PATCH 4/5] use `"1.10"` in `jl_version` matrix --- .github/workflows/jl_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/jl_test.yml b/.github/workflows/jl_test.yml index fe3ff6a..3156871 100644 --- a/.github/workflows/jl_test.yml +++ b/.github/workflows/jl_test.yml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: false matrix: - jl_version: ["1.6", "1.8", "1.9", "~1.10.0-rc1"] + jl_version: ["1.6", "1.8", "1.9", "1.10"] steps: - uses: actions/checkout@v2 - uses: julia-actions/setup-julia@v1 From 5b83d439d0c72757a226e3d83fd80dd497757f52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20T=C3=A9treault-Pinard?= Date: Fri, 5 Jan 2024 10:16:56 -0500 Subject: [PATCH 5/5] 1.5.0 --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index ad3c428..fe5baaa 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Dash" uuid = "1b08a953-4be3-4667-9a23-3db579824955" authors = ["Chris Parmer ", "Alexandr Romanenko "] -version = "1.4.0" +version = "1.5.0" [deps] Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"