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.
|
To install Body Parser for your Dart project, simply add body_parser to your pub dependencies.
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
belatuk_body_parser: ^4.0.0
|
belatuk_body_parser: ^5.0.0
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
|
|
|
@ -10,5 +10,5 @@ dependencies:
|
||||||
mime: ^1.0.0
|
mime: ^1.0.0
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
http: ^0.13.0
|
http: ^0.13.0
|
||||||
test: ^1.17.8
|
test: ^1.24.0
|
||||||
lints: ^2.0.0
|
lints: ^2.0.0
|
|
@ -14,7 +14,7 @@ In your `pubspec.yaml`:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
belatuk_code_buffer: ^4.0.0
|
belatuk_code_buffer: ^5.0.0
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
|
@ -8,5 +8,5 @@ dependencies:
|
||||||
charcode: ^1.2.0
|
charcode: ^1.2.0
|
||||||
source_span: ^1.8.1
|
source_span: ^1.8.1
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
test: ^1.17.3
|
test: ^1.24.0
|
||||||
lints: ^2.0.0
|
lints: ^2.0.0
|
||||||
|
|
|
@ -11,5 +11,5 @@ dependencies:
|
||||||
string_scanner: ^1.1.0
|
string_scanner: ^1.1.0
|
||||||
tuple: ^2.0.0
|
tuple: ^2.0.0
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
test: ^1.17.4
|
test: ^1.24.0
|
||||||
lints: ^2.0.0
|
lints: ^2.0.0
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## 5.0.0-beta.1
|
||||||
|
|
||||||
|
* Require Dart >= 3.0
|
||||||
|
|
||||||
## 4.0.0
|
## 4.0.0
|
||||||
|
|
||||||
* Require Dart >= 2.17
|
* Require Dart >= 2.17
|
||||||
|
|
|
@ -18,7 +18,7 @@ In your `pubspec.yaml`:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
belatuk_html_builder: ^4.0.0
|
belatuk_html_builder: ^5.0.0
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
|
@ -12,9 +12,9 @@ Node Function(Node) rebuild(NodeBuilder Function(NodeBuilder) transform,
|
||||||
///
|
///
|
||||||
/// Use this alongside [rebuild].
|
/// Use this alongside [rebuild].
|
||||||
Node Function(Node) rebuildRecursive(Node Function(Node) f) {
|
Node Function(Node) rebuildRecursive(Node Function(Node) f) {
|
||||||
Node _build(Node node) {
|
Node build(Node node) {
|
||||||
return NodeBuilder.from(f(node)).mapChildren(_build).build();
|
return NodeBuilder.from(f(node)).mapChildren(build).build();
|
||||||
}
|
}
|
||||||
|
|
||||||
return _build;
|
return build;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
name: belatuk_html_builder
|
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.
|
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
|
homepage: https://github.com/dart-backend/belatuk-common-utilities/tree/main/packages/html_builder
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.17.0 <3.0.0'
|
sdk: '>=3.0.0-290.3.beta <4.0.0'
|
||||||
dependencies:
|
dependencies:
|
||||||
collection: ^1.15.0
|
collection: ^1.15.0
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
html: ^0.15.0
|
html: ^0.15.0
|
||||||
test: ^1.17.4
|
test: ^1.24.0
|
||||||
lints: ^2.0.0
|
lints: ^2.0.0
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import 'package:html/parser.dart' as html5;
|
import 'package:html/parser.dart' as html5;
|
||||||
import 'package:belatuk_html_builder/elements.dart';
|
import 'package:belatuk_html_builder/elements.dart';
|
||||||
import 'package:belatuk_html_builder/belatuk_html_builder.dart';
|
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
|
|
Loading…
Reference in a new issue