Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Commit 5127d17

Browse files
authored
Prepare to release 3.0.1 (#193)
1 parent da33f77 commit 5127d17

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

CHANGELOG.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
## 3.0.2
2-
3-
* Upgrade to `built_value` 5.1.0.
4-
51
## 3.0.1
62

3+
* Upgrade to `built_value` 5.1.0.
74
* Export the `literalNum` function.
5+
* **BUG FIX**: `literal` supports a `Map`.
86

97
## 3.0.0
108

lib/src/specs/expression/literal.dart

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ Expression literal(Object literal, {Expression onError(Object value)}) {
2020
if (literal is List) {
2121
return literalList(literal);
2222
}
23+
if (literal is Map) {
24+
return literalMap(literal);
25+
}
2326
if (literal == null) {
2427
return literalNull;
2528
}

pubspec.yaml

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
name: code_builder
2-
version: 3.0.2
2+
version: 3.0.1
33
description: A fluent API for generating Dart code
44
author: Dart Team <misc@dartlang.org>
55
homepage: https://github.com/dart-lang/code_builder
66

77
environment:
88
sdk: '>=2.0.0-dev <2.0.0'
99

10-
web:
11-
compiler:
12-
debug: dartdevc
13-
1410
dependencies:
1511
built_collection: '>=1.0.0 <4.0.0'
1612
built_value: ^5.1.0
@@ -23,7 +19,3 @@ dev_dependencies:
2319
dart_style: ^1.0.0
2420
source_gen: '^0.7.0'
2521
test: ^0.12.0
26-
27-
transformers:
28-
- test/pub_serve:
29-
$include: test/**_test.dart

0 commit comments

Comments
 (0)