Migrated to Dart 3
This commit is contained in:
parent
f03bd9b3e8
commit
0010405bda
10 changed files with 16 additions and 13 deletions
|
@ -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: ^4.0.0
|
||||
belatuk_body_parser: ^5.0.0
|
||||
|
||||
### Usage
|
||||
|
||||
|
|
|
@ -10,5 +10,5 @@ dependencies:
|
|||
mime: ^1.0.0
|
||||
dev_dependencies:
|
||||
http: ^0.13.0
|
||||
test: ^1.17.8
|
||||
test: ^1.24.0
|
||||
lints: ^2.0.0
|
|
@ -14,7 +14,7 @@ In your `pubspec.yaml`:
|
|||
|
||||
```yaml
|
||||
dependencies:
|
||||
belatuk_code_buffer: ^4.0.0
|
||||
belatuk_code_buffer: ^5.0.0
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
|
|
@ -8,5 +8,5 @@ dependencies:
|
|||
charcode: ^1.2.0
|
||||
source_span: ^1.8.1
|
||||
dev_dependencies:
|
||||
test: ^1.17.3
|
||||
test: ^1.24.0
|
||||
lints: ^2.0.0
|
||||
|
|
|
@ -11,5 +11,5 @@ dependencies:
|
|||
string_scanner: ^1.1.0
|
||||
tuple: ^2.0.0
|
||||
dev_dependencies:
|
||||
test: ^1.17.4
|
||||
test: ^1.24.0
|
||||
lints: ^2.0.0
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
# Change Log
|
||||
|
||||
## 5.0.0-beta.1
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
||||
## 4.0.0
|
||||
|
||||
* Require Dart >= 2.17
|
||||
|
|
|
@ -18,7 +18,7 @@ In your `pubspec.yaml`:
|
|||
|
||||
```yaml
|
||||
dependencies:
|
||||
belatuk_html_builder: ^4.0.0
|
||||
belatuk_html_builder: ^5.0.0
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
|
|
@ -12,9 +12,9 @@ Node Function(Node) rebuild(NodeBuilder Function(NodeBuilder) transform,
|
|||
///
|
||||
/// Use this alongside [rebuild].
|
||||
Node Function(Node) rebuildRecursive(Node Function(Node) f) {
|
||||
Node _build(Node node) {
|
||||
return NodeBuilder.from(f(node)).mapChildren(_build).build();
|
||||
Node build(Node node) {
|
||||
return NodeBuilder.from(f(node)).mapChildren(build).build();
|
||||
}
|
||||
|
||||
return _build;
|
||||
return build;
|
||||
}
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
name: belatuk_html_builder
|
||||
version: 4.0.0
|
||||
version: 5.0.0-beta.1
|
||||
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.17.0 <3.0.0'
|
||||
sdk: '>=3.0.0-290.3.beta <4.0.0'
|
||||
dependencies:
|
||||
collection: ^1.15.0
|
||||
dev_dependencies:
|
||||
html: ^0.15.0
|
||||
test: ^1.17.4
|
||||
test: ^1.24.0
|
||||
lints: ^2.0.0
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import 'package:html/parser.dart' as html5;
|
||||
import 'package:belatuk_html_builder/elements.dart';
|
||||
import 'package:belatuk_html_builder/belatuk_html_builder.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
|
|
Loading…
Reference in a new issue