diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ab63f7..579b852 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,15 @@ ## v0.1.1 +### Highlights + +- **Dot-access syntax for maps**: `u.foo` reads a field off a map value, supported at every expression precedence level (including unary and `if` conditions), with a runtime error for missing fields or non-map operands. +- **`typeof` builtin**: Runtime type introspection for values. + +### Improvements + - **Fix**: Map literals (`{ key: value }`) now evaluate to `Value::Map` instead of erroring. - **Fix**: Array literals (`[ expr, ... ]`) now evaluate to `Value::Array` instead of erroring. -- **Dot-access syntax for maps**: `u.foo` reads a field off a map value, supported at every expression precedence level (including unary and `if` conditions), with a runtime error for missing fields or non-map operands. ## v0.1.0 diff --git a/Cargo.lock b/Cargo.lock index 5e0ae99..328d5a5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -470,7 +470,7 @@ dependencies = [ [[package]] name = "flt" -version = "0.1.0" +version = "0.1.1" dependencies = [ "bigdecimal", "clap", diff --git a/Cargo.toml b/Cargo.toml index da9b7c9..3bfb157 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "flt" -version = "0.1.0" +version = "0.1.1" edition = "2021" description = "a 'lite' functional language" license = "MIT" diff --git a/README.md b/README.md index 0af6568..256c3c1 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ The runtime currently evaluates a subset of that syntax. ```toml [dependencies] -flt = "0.1.0" +flt = "0.1.1" ``` ## Quick start diff --git a/docs/README.md b/docs/README.md index c95ae8e..b932c8e 100644 --- a/docs/README.md +++ b/docs/README.md @@ -14,4 +14,4 @@ This folder contains initial documentation for the `flt` language as it exists i ## Scope -These docs describe the currently implemented parser and CLI evaluator for version `0.1.0`. +These docs describe the currently implemented parser and CLI evaluator for version `0.1.1`. diff --git a/docs/quickstart.md b/docs/quickstart.md index b246f28..894f8ea 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -11,7 +11,7 @@ cargo run -p flt-cli -- version Expected output: ```text -flt version 0.1.0 +flt version 0.1.1 ``` ## Start the REPL diff --git a/features/cli.feature b/features/cli.feature index 6ba70f7..8baf036 100644 --- a/features/cli.feature +++ b/features/cli.feature @@ -3,4 +3,4 @@ Feature: flt version Scenario: flt version When the command `flt version` is run Then it should exit with status code 0 - And the output should contain "flt version 0.0.2" + And the output should contain "flt version 0.1.1"