Skip to content

Commit

Permalink
Release v0.2.1 .
Browse files Browse the repository at this point in the history
  • Loading branch information
kzemek committed Apr 28, 2024
1 parent ed0ce47 commit fcc91d1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:

jobs:
build:
name: Build and test
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
Expand All @@ -31,7 +35,7 @@ end

def deps do
[
{:es6_maps, "~> 0.2.0", runtime: false}
{:es6_maps, "~> 0.2.1", runtime: false}
]
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 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"},
Expand Down
2 changes: 1 addition & 1 deletion test/es6_maps_test/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
Expand Down

0 comments on commit fcc91d1

Please sign in to comment.