diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1c8af42..0fd65a0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ env: jobs: build: - name: Build and test + name: Release runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index f816f7c..02b7fa1 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,10 @@ This often results in repetitive code patterns such as `ctx = %{variable: variab I believe that introducing a shorthand form of object creation to Elixir enhances the language's ergonomics and is a natural extension of its existing map literals syntax. This feature will be immediately familiar to JavaScript and Rust developers, and similar shorthands are present in other languages such as Go. +### Is there any runtime overhead? + +No; the shorthand map keys compile down to exactly the same bytecode as the "old-style" maps. + ## Installation The package can be installed by adding `es6_maps` to your list of dependencies and compilers in `mix.exs`: @@ -31,7 +35,7 @@ end def deps do [ - {:es6_maps, "~> 0.2.0", runtime: false} + {:es6_maps, "~> 0.2.1", runtime: false} ] end ``` diff --git a/mix.exs b/mix.exs index 5b2d44f..831ee8a 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule Es6Maps.MixProject do def project do [ app: :es6_maps, - version: "0.2.0", + version: "0.2.1", description: "Shorthand syntax for Elixir maps: `%{foo, bar} = map; IO.puts(foo)`", package: [ links: %{"GitHub" => "https://github.com/kzemek/es6_maps"}, diff --git a/test/es6_maps_test/mix.exs b/test/es6_maps_test/mix.exs index 92795f4..66c481e 100644 --- a/test/es6_maps_test/mix.exs +++ b/test/es6_maps_test/mix.exs @@ -4,7 +4,7 @@ defmodule Es6MapsTest.MixProject do def project do [ app: :es6_maps_test, - version: "0.2.0", + version: "0.2.1", elixir: "~> 1.16", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:es6_maps | Mix.compilers()],