Skip to content

Commit fcc91d1

Browse files
committed
Release v0.2.1 .
1 parent ed0ce47 commit fcc91d1

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414

1515
jobs:
1616
build:
17-
name: Build and test
17+
name: Release
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@v4

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ This often results in repetitive code patterns such as `ctx = %{variable: variab
1515
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.
1616
This feature will be immediately familiar to JavaScript and Rust developers, and similar shorthands are present in other languages such as Go.
1717

18+
### Is there any runtime overhead?
19+
20+
No; the shorthand map keys compile down to exactly the same bytecode as the "old-style" maps.
21+
1822
## Installation
1923

2024
The package can be installed by adding `es6_maps` to your list of dependencies and compilers in `mix.exs`:
@@ -31,7 +35,7 @@ end
3135

3236
def deps do
3337
[
34-
{:es6_maps, "~> 0.2.0", runtime: false}
38+
{:es6_maps, "~> 0.2.1", runtime: false}
3539
]
3640
end
3741
```

mix.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule Es6Maps.MixProject do
44
def project do
55
[
66
app: :es6_maps,
7-
version: "0.2.0",
7+
version: "0.2.1",
88
description: "Shorthand syntax for Elixir maps: `%{foo, bar} = map; IO.puts(foo)`",
99
package: [
1010
links: %{"GitHub" => "https://github.com/kzemek/es6_maps"},

test/es6_maps_test/mix.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule Es6MapsTest.MixProject do
44
def project do
55
[
66
app: :es6_maps_test,
7-
version: "0.2.0",
7+
version: "0.2.1",
88
elixir: "~> 1.16",
99
elixirc_paths: elixirc_paths(Mix.env()),
1010
compilers: [:es6_maps | Mix.compilers()],

0 commit comments

Comments
 (0)