Skip to content

Commit

Permalink
Updated to hc 0.3.1-rc
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Jun 6, 2024
1 parent b9a1705 commit 835b6e8
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 39 deletions.
59 changes: 30 additions & 29 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

nixpkgs.follows = "holochain/nixpkgs";
flake-parts.follows = "holochain/flake-parts";
scaffolding.url = "github:holochain/scaffolding";
scaffolding.url = "github:holochain/scaffolding/holochain-0.3";
};

nixConfig = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{previous_file_content}}

[dev-dependencies]
fixt = "0.3.0-beta-dev"
fixt = "0.3.1-rc"
futures = { version = "0.3.1", default-features = false }
hdk = { workspace = true, features = ["encoding", "test_utils"] }
holochain = { workspace = true }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ import { ActionCommittedSignal } from '@holochain-open-dev/utils';

export type {{pascal_case zome_manifest.name}}Signal = ActionCommittedSignal<EntryTypes, LinkTypes>;

export type EntryTypes = {};
export type EntryTypes = never;

export type LinkTypes = string;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{#if (includes previous_file_content "export type EntryTypes = {};")}}
{{replace previous_file_content "export type EntryTypes = {};" (concat "export type EntryTypes =\n | ({ type: '" (pascal_case entry_type.name) "'; } & " (pascal_case entry_type.name) ");")}}
{{#if (includes previous_file_content "export type EntryTypes = never;")}}
{{replace previous_file_content "export type EntryTypes = never;" (concat "export type EntryTypes =\n | ({ type: '" (pascal_case entry_type.name) "'; } & " (pascal_case entry_type.name) ");")}}
{{else}}
{{replace previous_file_content "export type EntryTypes =" (concat "export type EntryTypes =\n | ({ type: '" (pascal_case entry_type.name) "'; } & " (pascal_case entry_type.name) ")")}}
{{/if}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{previous_file_content}}

[dev-dependencies]
fixt = "0.3.0-beta-dev"
fixt = "0.3.1-rc"
futures = { version = "0.3.1", default-features = false }
hdk = { workspace = true, features = ["encoding", "test_utils"] }
holochain = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions templates/zome/entry-type/ui/src/types.ts.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{#if (includes previous_file_content "export type EntryTypes = {};")}}
{{replace previous_file_content "export type EntryTypes = {};" (concat "export type EntryTypes =\n | ({ type: '" (pascal_case entry_type.name) "'; } & " (pascal_case entry_type.name) ");")}}
{{#if (includes previous_file_content "export type EntryTypes = never;")}}
{{replace previous_file_content "export type EntryTypes = never;" (concat "export type EntryTypes =\n | ({ type: '" (pascal_case entry_type.name) "'; } & " (pascal_case entry_type.name) ");")}}
{{else}}
{{replace previous_file_content "export type EntryTypes =" (concat "export type EntryTypes =\n | ({ type: '" (pascal_case entry_type.name) "'; } & " (pascal_case entry_type.name) ")")}}
{{/if}}
Expand Down
2 changes: 1 addition & 1 deletion templates/zome/web-app/ui/src/types.ts.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ import { ActionCommittedSignal } from '@holochain-open-dev/utils';

export type {{pascal_case app_name}}Signal = ActionCommittedSignal<EntryTypes, LinkTypes>;

export type EntryTypes = {};
export type EntryTypes = never;

export type LinkTypes = string;
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ serde = { workspace = true }
{{snake_case app_name}}_integrity = { path = "../../integrity/{{snake_case app_name}}", package = "{{snake_case app_name}}_integrity" }

[dev-dependencies]
fixt = "0.3.0-beta-dev"
fixt = "0.3.1-rc"
futures = { version = "0.3.1", default-features = false }
hdk = { workspace = true, features = ["encoding", "test_utils"] }
holochain = { workspace = true }
Expand Down

0 comments on commit 835b6e8

Please sign in to comment.