diff --git a/melos_melos.iml b/melos_melos.iml
new file mode 100644
index 0000000..9681559
--- /dev/null
+++ b/melos_melos.iml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/body_parser/.travis.yml b/packages/body_parser/.travis.yml
deleted file mode 100644
index a9e2c10..0000000
--- a/packages/body_parser/.travis.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-language: dart
-dart:
- - dev
- - stable
\ No newline at end of file
diff --git a/packages/body_parser/CHANGELOG.md b/packages/body_parser/CHANGELOG.md
index 8152a3d..4004393 100644
--- a/packages/body_parser/CHANGELOG.md
+++ b/packages/body_parser/CHANGELOG.md
@@ -1,5 +1,9 @@
# Change Log
+## 4.0.0
+
+* Require Dart >= 2.17
+
## 3.0.1
* Fixed boken license link
diff --git a/packages/body_parser/README.md b/packages/body_parser/README.md
index a7cb453..8eb0211 100644
--- a/packages/body_parser/README.md
+++ b/packages/body_parser/README.md
@@ -30,7 +30,7 @@ A benefit of this is that primitive types are automatically deserialized correct
To install Body Parser for your Dart project, simply add body_parser to your pub dependencies.
dependencies:
- belatuk_body_parser: ^3.0.0
+ belatuk_body_parser: ^4.0.0
### Usage
diff --git a/packages/body_parser/lib/belatuk_body_parser.dart b/packages/body_parser/lib/belatuk_body_parser.dart
index 05a163e..94c375b 100644
--- a/packages/body_parser/lib/belatuk_body_parser.dart
+++ b/packages/body_parser/lib/belatuk_body_parser.dart
@@ -1,5 +1,5 @@
/// A library for parsing HTTP request bodies and queries.
-library angel3_body_parser;
+library belatuk_body_parser;
export 'src/body_parse_result.dart';
export 'src/file_upload_info.dart';
diff --git a/packages/body_parser/lib/src/parse_body.dart b/packages/body_parser/lib/src/parse_body.dart
index cb0588b..b73e8e0 100644
--- a/packages/body_parser/lib/src/parse_body.dart
+++ b/packages/body_parser/lib/src/parse_body.dart
@@ -12,7 +12,7 @@ import 'file_upload_info.dart';
import 'map_from_uri.dart';
/// Forwards to [parseBodyFromStream].
-@deprecated
+@Deprecated("parseBodyFromStream")
Future parseBody(HttpRequest request,
{bool storeOriginalBuffer = false}) {
return parseBodyFromStream(
@@ -135,7 +135,7 @@ class _BodyParseResultImpl implements BodyParseResult {
Map query = {};
@override
- var error;
+ dynamic error;
@override
StackTrace? stack;
diff --git a/packages/body_parser/melos_belatuk_body_parser.iml b/packages/body_parser/melos_belatuk_body_parser.iml
new file mode 100644
index 0000000..389d07a
--- /dev/null
+++ b/packages/body_parser/melos_belatuk_body_parser.iml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/packages/body_parser/pubspec.yaml b/packages/body_parser/pubspec.yaml
index a8ab61b..cad96de 100644
--- a/packages/body_parser/pubspec.yaml
+++ b/packages/body_parser/pubspec.yaml
@@ -1,9 +1,9 @@
name: belatuk_body_parser
-version: 3.0.1
+version: 4.0.0
description: Parse request bodies and query strings in Dart. Supports JSON, URL-encoded, and multi-part bodies.
homepage: https://github.com/dart-backend/belatuk-common-utilities/tree/main/packages/body_parser
environment:
- sdk: '>=2.12.0 <3.0.0'
+ sdk: '>=2.17.0 <3.0.0'
dependencies:
http_parser: ^4.0.0
belatuk_http_server: ^2.0.0
@@ -11,4 +11,4 @@ dependencies:
dev_dependencies:
http: ^0.13.0
test: ^1.17.8
- lints: ^1.0.0
\ No newline at end of file
+ lints: ^2.0.0
\ No newline at end of file
diff --git a/packages/code_buffer/.travis.yml b/packages/code_buffer/.travis.yml
deleted file mode 100644
index de2210c..0000000
--- a/packages/code_buffer/.travis.yml
+++ /dev/null
@@ -1 +0,0 @@
-language: dart
\ No newline at end of file
diff --git a/packages/code_buffer/CHANGELOG.md b/packages/code_buffer/CHANGELOG.md
index 3176ed1..a325d9b 100644
--- a/packages/code_buffer/CHANGELOG.md
+++ b/packages/code_buffer/CHANGELOG.md
@@ -1,5 +1,9 @@
# Change Log
+## 4.0.0
+
+* Require Dart >= 2.17
+
## 3.0.2
* Fixed license link
diff --git a/packages/code_buffer/README.md b/packages/code_buffer/README.md
index f8f9896..e305835 100644
--- a/packages/code_buffer/README.md
+++ b/packages/code_buffer/README.md
@@ -14,7 +14,7 @@ In your `pubspec.yaml`:
```yaml
dependencies:
- belatuk_code_buffer: ^3.0.0
+ belatuk_code_buffer: ^4.0.0
```
## Usage
diff --git a/packages/code_buffer/melos_belatuk_code_buffer.iml b/packages/code_buffer/melos_belatuk_code_buffer.iml
new file mode 100644
index 0000000..389d07a
--- /dev/null
+++ b/packages/code_buffer/melos_belatuk_code_buffer.iml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/packages/code_buffer/pubspec.yaml b/packages/code_buffer/pubspec.yaml
index a27ef7e..b76cf97 100644
--- a/packages/code_buffer/pubspec.yaml
+++ b/packages/code_buffer/pubspec.yaml
@@ -1,12 +1,12 @@
name: belatuk_code_buffer
-version: 3.0.2
+version: 4.0.0
description: An advanced StringBuffer geared toward generating code, and source maps.
homepage: https://github.com/dart-backend/belatuk-common-utilities/tree/main/packages/code_buffer
environment:
- sdk: '>=2.12.0 <3.0.0'
+ sdk: '>=2.17.0 <3.0.0'
dependencies:
charcode: ^1.2.0
source_span: ^1.8.1
dev_dependencies:
test: ^1.17.3
- lints: ^1.0.0
+ lints: ^2.0.0
diff --git a/packages/combinator/.travis.yml b/packages/combinator/.travis.yml
deleted file mode 100644
index 2f22c5c..0000000
--- a/packages/combinator/.travis.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-language: dart
-dart:
- - stable
- - dev
\ No newline at end of file
diff --git a/packages/combinator/melos_belatuk_combinator.iml b/packages/combinator/melos_belatuk_combinator.iml
new file mode 100644
index 0000000..389d07a
--- /dev/null
+++ b/packages/combinator/melos_belatuk_combinator.iml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/packages/html_builder/CHANGELOG.md b/packages/html_builder/CHANGELOG.md
index 10a2dee..e2c2d5f 100644
--- a/packages/html_builder/CHANGELOG.md
+++ b/packages/html_builder/CHANGELOG.md
@@ -1,5 +1,10 @@
# Change Log
+## 4.0.0
+
+* Require Dart >= 2.17
+* Added hashCode
+
## 3.0.2
* Fixed license link
diff --git a/packages/html_builder/README.md b/packages/html_builder/README.md
index 5850767..b59ff25 100644
--- a/packages/html_builder/README.md
+++ b/packages/html_builder/README.md
@@ -10,7 +10,7 @@ This package builds HTML AST's and renders them to HTML. It can be used as an in
## Requirements
-* Dart SDK: 2.12.x or later
+* Dart SDK: 2.17.x or later
## Installation
@@ -18,7 +18,7 @@ In your `pubspec.yaml`:
```yaml
dependencies:
- belatuk_html_builder: ^3.0.0
+ belatuk_html_builder: ^4.0.0
```
## Usage
diff --git a/packages/html_builder/lib/src/node.dart b/packages/html_builder/lib/src/node.dart
index b547077..e77447a 100644
--- a/packages/html_builder/lib/src/node.dart
+++ b/packages/html_builder/lib/src/node.dart
@@ -33,6 +33,12 @@ class Node {
const MapEquality()
.equals(other.attributes, attributes);
}
+
+ @override
+ int get hashCode {
+ int hash = Object.hash(tagName, Object.hashAll(children));
+ return Object.hash(hash, Object.hashAll(attributes.values));
+ }
}
/// Represents a self-closing tag, i.e. `
`.
@@ -60,4 +66,7 @@ class TextNode extends Node {
@override
bool operator ==(other) => other is TextNode && other.text == text;
+
+ @override
+ int get hashCode => text.hashCode;
}
diff --git a/packages/html_builder/lib/src/renderer.dart b/packages/html_builder/lib/src/renderer.dart
index 31b2434..420165f 100644
--- a/packages/html_builder/lib/src/renderer.dart
+++ b/packages/html_builder/lib/src/renderer.dart
@@ -59,7 +59,9 @@ class _StringRendererImpl implements StringRenderer {
buf.write((html5 != false) ? '>' : '/>');
} else {
buf.write('>');
- node.children.forEach((child) => _renderInto(child, buf));
+ for (var child in node.children) {
+ _renderInto(child, buf);
+ }
buf.write('${node.tagName}>');
}
}
@@ -118,7 +120,9 @@ class _PrettyStringRendererImpl implements StringRenderer {
buf.write((html5 != false) ? '>' : '/>');
} else {
buf.write('>');
- node.children.forEach((child) => _renderInto(tabs + 1, child, buf));
+ for (var child in node.children) {
+ _renderInto(tabs + 1, child, buf);
+ }
buf.writeln();
_applyTabs(tabs, buf);
buf.write('${node.tagName}>');
diff --git a/packages/html_builder/melos_belatuk_html_builder.iml b/packages/html_builder/melos_belatuk_html_builder.iml
new file mode 100644
index 0000000..389d07a
--- /dev/null
+++ b/packages/html_builder/melos_belatuk_html_builder.iml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/packages/html_builder/pubspec.yaml b/packages/html_builder/pubspec.yaml
index 9663c8d..26b993a 100644
--- a/packages/html_builder/pubspec.yaml
+++ b/packages/html_builder/pubspec.yaml
@@ -1,12 +1,12 @@
name: belatuk_html_builder
-version: 3.0.2
+version: 4.0.0
description: Build HTML AST's and render them to HTML. This can be used as an internal DSL, i.e. for a templating engine.
homepage: https://github.com/dart-backend/belatuk-common-utilities/tree/main/packages/html_builder
environment:
- sdk: '>=2.12.0 <3.0.0'
+ sdk: '>=2.17.0 <3.0.0'
dependencies:
collection: ^1.15.0
dev_dependencies:
html: ^0.15.0
test: ^1.17.4
- lints: ^1.0.1
+ lints: ^2.0.0
diff --git a/packages/json_serializer/.travis.yml b/packages/json_serializer/.travis.yml
deleted file mode 100644
index a9e2c10..0000000
--- a/packages/json_serializer/.travis.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-language: dart
-dart:
- - dev
- - stable
\ No newline at end of file
diff --git a/packages/json_serializer/CHANGELOG.md b/packages/json_serializer/CHANGELOG.md
index b7ca85d..7c960fa 100644
--- a/packages/json_serializer/CHANGELOG.md
+++ b/packages/json_serializer/CHANGELOG.md
@@ -1,5 +1,9 @@
# Change Log
+## 6.0.0
+
+* Require Dart >= 2.17
+
## 5.0.0
* Added `lints` linter
diff --git a/packages/json_serializer/README.md b/packages/json_serializer/README.md
index df4e595..642cb3c 100644
--- a/packages/json_serializer/README.md
+++ b/packages/json_serializer/README.md
@@ -12,7 +12,7 @@ The ***new and improved*** definitive solution for JSON in Dart. It supports syn
## Installation
dependencies:
- belatuk_json_serializer: ^5.0.0
+ belatuk_json_serializer: ^6.0.0
## Usage
diff --git a/packages/json_serializer/melos_belatuk_json_serializer.iml b/packages/json_serializer/melos_belatuk_json_serializer.iml
new file mode 100644
index 0000000..389d07a
--- /dev/null
+++ b/packages/json_serializer/melos_belatuk_json_serializer.iml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/packages/json_serializer/pubspec.yaml b/packages/json_serializer/pubspec.yaml
index 89b009f..3f70e36 100644
--- a/packages/json_serializer/pubspec.yaml
+++ b/packages/json_serializer/pubspec.yaml
@@ -1,13 +1,12 @@
name: belatuk_json_serializer
-version: 5.0.0
+version: 6.0.0
description: Easy JSON to Object serialization and deserialization in Dart.
homepage: https://github.com/dart-backend/belatuk-common-utilities/tree/main/packages/json_serializer
environment:
- sdk: '>=2.12.0 <3.0.0'
+ sdk: '>=2.17.0 <3.0.0'
dependencies:
- #dart2_constant: ^1.0.0
logging: ^1.0.1
dev_dependencies:
stack_trace: ^1.10.0
test: ^1.17.4
- lints: ^1.0.0
\ No newline at end of file
+ lints: ^2.0.0
\ No newline at end of file
diff --git a/packages/merge_map/CHANGELOG.md b/packages/merge_map/CHANGELOG.md
index e5bb37e..6f6f95a 100644
--- a/packages/merge_map/CHANGELOG.md
+++ b/packages/merge_map/CHANGELOG.md
@@ -1,5 +1,9 @@
# Change Log
+## 4.0.0
+
+* Require Dart >= 2.17
+
## 3.0.2
* Fixed license link
diff --git a/packages/merge_map/melos_belatuk_merge_map.iml b/packages/merge_map/melos_belatuk_merge_map.iml
new file mode 100644
index 0000000..389d07a
--- /dev/null
+++ b/packages/merge_map/melos_belatuk_merge_map.iml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/packages/merge_map/pubspec.yaml b/packages/merge_map/pubspec.yaml
index e354975..d19c995 100644
--- a/packages/merge_map/pubspec.yaml
+++ b/packages/merge_map/pubspec.yaml
@@ -1,9 +1,9 @@
name: belatuk_merge_map
-version: 3.0.2
+version: 4.0.0
description: Combine multiple Maps into one. Equivalent to Object.assign in JS.
homepage: https://github.com/dart-backend/belatuk-common-utilities/tree/main/packages/merge_map
environment:
- sdk: '>=2.12.0 <3.0.0'
+ sdk: '>=2.17.0 <3.0.0'
dev_dependencies:
test: ^1.17.4
- lints: ^1.0.0
+ lints: ^2.0.0
diff --git a/packages/pretty_logging/CHANGELOG.md b/packages/pretty_logging/CHANGELOG.md
index 987e8f8..22edb40 100644
--- a/packages/pretty_logging/CHANGELOG.md
+++ b/packages/pretty_logging/CHANGELOG.md
@@ -1,5 +1,9 @@
# Change Log
+## 5.0.0
+
+* Require Dart >= 2.17
+
## 4.0.0
* Added `lints` linter
diff --git a/packages/pretty_logging/README.md b/packages/pretty_logging/README.md
index 2f80314..3877a89 100644
--- a/packages/pretty_logging/README.md
+++ b/packages/pretty_logging/README.md
@@ -15,7 +15,7 @@ In your `pubspec.yaml`:
```yaml
dependencies:
- belatuk_pretty_logging: ^4.0.0
+ belatuk_pretty_logging: ^5.0.0
```
## Usage
diff --git a/packages/pretty_logging/lib/belatuk_pretty_logging.dart b/packages/pretty_logging/lib/belatuk_pretty_logging.dart
index bc45c81..0c2c75b 100644
--- a/packages/pretty_logging/lib/belatuk_pretty_logging.dart
+++ b/packages/pretty_logging/lib/belatuk_pretty_logging.dart
@@ -16,16 +16,18 @@ void prettyLog(LogRecord record,
printFunction ??= print;
var code = logColorChooser(record.level);
- if (record.error == null) printFunction(code.wrap(record.toString())!);
+ if (record.error == null) {
+ printFunction(code.wrap(record.toString()) ?? "");
+ }
if (record.error != null) {
var err = record.error;
if (omitError(record)) return;
- printFunction(code.wrap(record.toString() + '\n')!);
- printFunction(code.wrap(err.toString())!);
+ printFunction(code.wrap('$record\n') ?? "");
+ printFunction(code.wrap(err.toString()) ?? "");
if (record.stackTrace != null) {
- printFunction(code.wrap(record.stackTrace.toString())!);
+ printFunction(code.wrap(record.stackTrace.toString()) ?? "");
}
}
}
diff --git a/packages/pretty_logging/melos_belatuk_pretty_logging.iml b/packages/pretty_logging/melos_belatuk_pretty_logging.iml
new file mode 100644
index 0000000..389d07a
--- /dev/null
+++ b/packages/pretty_logging/melos_belatuk_pretty_logging.iml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/packages/pretty_logging/pubspec.yaml b/packages/pretty_logging/pubspec.yaml
index ba381b4..65576c1 100644
--- a/packages/pretty_logging/pubspec.yaml
+++ b/packages/pretty_logging/pubspec.yaml
@@ -1,11 +1,11 @@
name: belatuk_pretty_logging
-version: 4.0.0
+version: 5.0.0
description: Standalone helper for colorful logging output, using pkg:io AnsiCode.
homepage: https://github.com/dart-backend/belatuk-common-utilities/tree/main/packages/pretty_logging
environment:
- sdk: '>=2.12.0 <3.0.0'
+ sdk: '>=2.17.0 <3.0.0'
dependencies:
io: ^1.0.0
logging: ^1.0.1
dev_dependencies:
- lints: ^1.0.0
+ lints: ^2.0.0
diff --git a/packages/pub_sub/.travis.yml b/packages/pub_sub/.travis.yml
deleted file mode 100644
index de2210c..0000000
--- a/packages/pub_sub/.travis.yml
+++ /dev/null
@@ -1 +0,0 @@
-language: dart
\ No newline at end of file
diff --git a/packages/pub_sub/CHANGELOG.md b/packages/pub_sub/CHANGELOG.md
index f59dc46..9ba9c63 100644
--- a/packages/pub_sub/CHANGELOG.md
+++ b/packages/pub_sub/CHANGELOG.md
@@ -1,5 +1,9 @@
# Change Log
+## 5.0.0
+
+* Require Dart >= 2.17
+
## 4.0.3
* Fixed license link
diff --git a/packages/pub_sub/README.md b/packages/pub_sub/README.md
index 26e0a5d..e205bff 100644
--- a/packages/pub_sub/README.md
+++ b/packages/pub_sub/README.md
@@ -14,7 +14,7 @@ Add `belatuk_pub_sub` as a dependency in your `pubspec.yaml` file:
```yaml
dependencies:
- belatuk_pub_sub: ^4.0.0
+ belatuk_pub_sub: ^5.0.0
```
Then, be sure to run `pub get` in your terminal.
diff --git a/packages/pub_sub/melos_belatuk_pub_sub.iml b/packages/pub_sub/melos_belatuk_pub_sub.iml
new file mode 100644
index 0000000..389d07a
--- /dev/null
+++ b/packages/pub_sub/melos_belatuk_pub_sub.iml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/packages/pub_sub/pubspec.yaml b/packages/pub_sub/pubspec.yaml
index 36fcaff..0df14dd 100644
--- a/packages/pub_sub/pubspec.yaml
+++ b/packages/pub_sub/pubspec.yaml
@@ -1,14 +1,14 @@
name: belatuk_pub_sub
-version: 4.0.3
+version: 5.0.0
description: Keep application instances in sync with a simple pub/sub API.
homepage: https://github.com/dart-backend/belatuk-common-utilities/tree/main/packages/pub_sub
environment:
- sdk: '>=2.12.0 <3.0.0'
+ sdk: '>=2.17.0 <3.0.0'
dependencies:
json_rpc_2: ^3.0.0
stream_channel: ^2.1.0
uuid: ^3.0.4
collection: ^1.15.0
dev_dependencies:
- lints: ^1.0.0
+ lints: ^2.0.0
test: ^1.17.4
diff --git a/packages/range_header/CHANGELOG.md b/packages/range_header/CHANGELOG.md
index 9b98e81..aa3552a 100644
--- a/packages/range_header/CHANGELOG.md
+++ b/packages/range_header/CHANGELOG.md
@@ -1,5 +1,9 @@
# Change Log
+## 5.0.0
+
+* Require Dart >= 2.17
+
## 4.0.1
* Fixed license link
diff --git a/packages/range_header/README.md b/packages/range_header/README.md
index 4f860eb..0c5b902 100644
--- a/packages/range_header/README.md
+++ b/packages/range_header/README.md
@@ -14,7 +14,7 @@ In your `pubspec.yaml`:
```yaml
dependencies:
- belatuk_range_header: ^4.0.0
+ belatuk_range_header: ^5.0.0
```
## Usage
diff --git a/packages/range_header/melos_belatuk_range_header.iml b/packages/range_header/melos_belatuk_range_header.iml
new file mode 100644
index 0000000..389d07a
--- /dev/null
+++ b/packages/range_header/melos_belatuk_range_header.iml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/packages/range_header/pubspec.yaml b/packages/range_header/pubspec.yaml
index f150250..e421cf7 100644
--- a/packages/range_header/pubspec.yaml
+++ b/packages/range_header/pubspec.yaml
@@ -1,9 +1,9 @@
name: belatuk_range_header
-version: 4.0.1
+version: 5.0.0
description: Range header parser for Dart. Beyond parsing, a stream transformer is included.
homepage: https://github.com/dart-backend/belatuk-common-utilities/tree/main/packages/range_header
environment:
- sdk: '>=2.12.0 <3.0.0'
+ sdk: '>=2.17.0 <3.0.0'
dependencies:
async: ^2.6.0
charcode: ^1.2.0
@@ -15,4 +15,4 @@ dev_dependencies:
http_parser: ^4.0.0
logging: ^1.0.1
test: ^1.17.8
- lints: ^1.0.0
+ lints: ^2.0.0
diff --git a/packages/symbol_table/CHANGELOG.md b/packages/symbol_table/CHANGELOG.md
index 762fbbf..1a294c4 100644
--- a/packages/symbol_table/CHANGELOG.md
+++ b/packages/symbol_table/CHANGELOG.md
@@ -1,5 +1,9 @@
# Change Log
+## 4.0.0
+
+* Require Dart >= 2.17
+
## 3.0.1
* Fixed license link
diff --git a/packages/symbol_table/lib/src/symbol_table.dart b/packages/symbol_table/lib/src/symbol_table.dart
index dbcb8ad..ae07fd0 100644
--- a/packages/symbol_table/lib/src/symbol_table.dart
+++ b/packages/symbol_table/lib/src/symbol_table.dart
@@ -99,7 +99,7 @@ class SymbolTable {
}
/// Use [allVariablesWithVisibility] instead.
- @deprecated
+ @Deprecated("allVariablesWithVisibility")
List> allVariablesOfVisibility(Visibility visibility) {
return allVariablesWithVisibility(visibility);
}
@@ -145,7 +145,7 @@ class SymbolTable {
}
/// Use [create] instead.
- @deprecated
+ @Deprecated("create")
Variable add(String name, {T? value, bool? constant}) {
return create(name, value: value, constant: constant);
}
@@ -168,7 +168,7 @@ class SymbolTable {
}
/// Use [assign] instead.
- @deprecated
+ @Deprecated("assign")
Variable put(String name, T value) {
return assign(name, value);
}
diff --git a/packages/symbol_table/lib/src/variable.dart b/packages/symbol_table/lib/src/variable.dart
index 2a648c6..402aec2 100644
--- a/packages/symbol_table/lib/src/variable.dart
+++ b/packages/symbol_table/lib/src/variable.dart
@@ -1,13 +1,5 @@
part of symbol_table;
-/// Holds an immutable symbol, the value of which is set once and only once.
-@deprecated
-class Constant extends Variable {
- Constant(String name, T value) : super._(name, null, value: value) {
- lock();
- }
-}
-
/// Holds a symbol, the value of which may change or be marked immutable.
class Variable {
final String name;
@@ -23,12 +15,6 @@ class Variable {
/// If `true`, then the value of this variable cannot be overwritten.
bool get isImmutable => _locked;
- /// This flag has no meaning within the context of this library, but if you
- /// are implementing some sort of interpreter, you may consider acting based on
- /// whether a variable is private.
- @deprecated
- bool get isPrivate => visibility == Visibility.private;
-
T? get value => _value;
set value(T? value) {
@@ -42,10 +28,4 @@ class Variable {
void lock() {
_locked = true;
}
-
- /// Marks this symbol as private.
- @deprecated
- void markAsPrivate() {
- visibility = Visibility.private;
- }
}
diff --git a/packages/symbol_table/melos_belatuk_symbol_table.iml b/packages/symbol_table/melos_belatuk_symbol_table.iml
new file mode 100644
index 0000000..389d07a
--- /dev/null
+++ b/packages/symbol_table/melos_belatuk_symbol_table.iml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/packages/symbol_table/pubspec.yaml b/packages/symbol_table/pubspec.yaml
index 846a9e0..35413aa 100644
--- a/packages/symbol_table/pubspec.yaml
+++ b/packages/symbol_table/pubspec.yaml
@@ -1,11 +1,11 @@
name: belatuk_symbol_table
-version: 3.0.1
+version: 4.0.0
description: A generic symbol table implementation in Dart, with support for scopes and constants.
homepage: https://github.com/dart-backend/belatuk-common-utilities/tree/main/packages/symbol_table
environment:
- sdk: '>=2.12.0 <3.0.0'
+ sdk: '>=2.17.0 <3.0.0'
dependencies:
collection: ^1.15.0
dev_dependencies:
test: ^1.17.4
- lints: ^1.0.0
+ lints: ^2.0.0
diff --git a/packages/user_agent/.travis.yml b/packages/user_agent/.travis.yml
deleted file mode 100644
index de2210c..0000000
--- a/packages/user_agent/.travis.yml
+++ /dev/null
@@ -1 +0,0 @@
-language: dart
\ No newline at end of file
diff --git a/packages/user_agent/CHANGELOG.md b/packages/user_agent/CHANGELOG.md
index fba8236..e5f4881 100644
--- a/packages/user_agent/CHANGELOG.md
+++ b/packages/user_agent/CHANGELOG.md
@@ -1,5 +1,9 @@
# Change Log
+## 4.0.0
+
+* Require Dart >= 2.17
+
## 3.1.0
* Fixed license link
diff --git a/packages/user_agent/melos_user_agent_analyzer.iml b/packages/user_agent/melos_user_agent_analyzer.iml
new file mode 100644
index 0000000..389d07a
--- /dev/null
+++ b/packages/user_agent/melos_user_agent_analyzer.iml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/packages/user_agent/pubspec.yaml b/packages/user_agent/pubspec.yaml
index e3ea5bb..7b0e078 100644
--- a/packages/user_agent/pubspec.yaml
+++ b/packages/user_agent/pubspec.yaml
@@ -1,9 +1,9 @@
name: user_agent_analyzer
-version: 3.1.0
+version: 4.0.0
description: A library to identify the type of devices and web browsers based on User-Agent string.
homepage: https://github.com/dart-backend/belatuk-common-utilities/tree/main/packages/user_agent
environment:
- sdk: '>=2.12.0 <3.0.0'
+ sdk: '>=2.17.0 <3.0.0'
dev_dependencies:
test: ^1.17.8
- lints: ^1.0.0
+ lints: ^2.0.0