Skip to content

Commit

Permalink
Release 0.18.1 on NPM and Hex (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
guisehn authored Oct 2, 2022
1 parent 894fef4 commit ad6b547
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ Write your Phoenix LiveView client hooks using typed classes, with or without Ty

See autocomplete available in VS Code by using it:

![Demo of code editor autocomplete using phoenix_typed_hook](https://github.com/guisehn/phoenix_typed_hook/raw/v0.18.0/misc/demo.gif)
![Demo of code editor autocomplete using phoenix_typed_hook](https://github.com/guisehn/phoenix_typed_hook/raw/v0.18.1/misc/demo.gif)

## Reasoning

Custom LiveView [client hooks](https://hexdocs.pm/phoenix_live_view/0.18.0/js-interop.html#client-hooks-via-phx-hook) are defined as plain objects implementing callbacks such as `mounted`, `updated`, etc.
Custom LiveView [client hooks](https://hexdocs.pm/phoenix_live_view/0.18.1/js-interop.html#client-hooks-via-phx-hook) are defined as plain objects implementing callbacks such as `mounted`, `updated`, etc.

Since they're plain objects, there is no typing involved, so code editors can't provide code completion for attributes available, and also can't do compile-time checks (this last one, when TypeScript is used).

Expand Down Expand Up @@ -58,7 +58,7 @@ Add `phoenix_typed_hook` to the list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:phoenix_typed_hook, "~> 0.0.1"}
{:phoenix_typed_hook, "~> 0.18.1"}
]
end
```
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule PhoenixTypedHook.MixProject do
def project do
[
app: :phoenix_typed_hook,
version: "0.0.1",
version: "0.18.1",
elixir: "~> 1.0",
build_embedded: false,
start_permanent: false,
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "phoenix_typed_hook",
"version": "0.18.0",
"version": "0.18.1",
"description": "Write your Phoenix LiveView client hooks using typed classes",
"main": "priv/static/index.js",
"types": "priv/static/index.d.ts",
Expand Down

0 comments on commit ad6b547

Please sign in to comment.