Skip to content

Commit

Permalink
Merge pull request #7 from RicardoRB/0.4.1-alpha
Browse files Browse the repository at this point in the history
0.4.5 alpha
  • Loading branch information
RicardoRB committed Jun 20, 2023
2 parents 06b8a8e + 5696410 commit 92cbc35
Show file tree
Hide file tree
Showing 234 changed files with 10,954 additions and 5,707 deletions.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## 0.0.0

- Initial version.

## 0.1.0-alpha

- Created the [Dartness](https://ricardorb.github.io/dartness/) library.
- Created the [Controller](https://ricardorb.github.io/dartness/docs/controller.html) class.
- Created bind annotations.

## 0.3.0-alpha

- Created Get, Post, Put, Delete, Head, Options, and Trace methods.
- Created Header annotation.
- Created Body annotation.
- Created QueryParam annotation.
- Created PathParam annotation.

## 0.4.0-alpha

- Removed [dart:mirrors](https://api.dart.dev/stable/2.17.6/dart-mirrors/dart-mirrors-library.html) in order to be able
to compile and bring stability to the framework
- Created dartness_generator

## 0.4.3-alpha

- Added @Headers
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) [2022] [Ricardo Romero Benitez]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ the [/examples folder](https://github.com/RicardoRB/dartness/tree/master/example

## Requisites

Install [Dart SDK](https://dart.dev/get-dart) version >=2.17.0
Install [Dart SDK](https://dart.dev/get-dart) version >=3.0.0

```bash
$ dart --version
Dart SDK version: 2.17.3 (stable)
Dart SDK version: 3.0.0 (stable)
```

## Docs and more
Expand All @@ -51,11 +51,11 @@ $ dart create -t console your_project_name

```yaml
dependencies:
dartness_server: ^0.4.0-alpha
dartness_server: ^0.4.5-alpha

dev_dependencies:
build_runner: ^2.2.0
dartness_generator: ^0.1.0-alpha
dartness_generator: ^0.1.2-alpha
```
2. Create the file in "bin/main.dart"
Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Install [Dart SDK](https://dart.dev/get-dart) version >=2.17.0

```bash
$ dart --version
Dart SDK version: 2.17.3 (stable)
Dart SDK version: 3.0.0 (stable)
```

## Docs and more
Expand All @@ -51,7 +51,7 @@ $ dart create -t console your_project_name

```yaml
dependencies:
dartness_server: ^0.4.0-alpha
dartness_server: ^0.4.3-alpha

dev_dependencies:
build_runner: ^2.2.0
Expand Down
12 changes: 11 additions & 1 deletion docs/controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ String get() {

## Headers

To specify a custom response header, you can either use a `@Header()` annotation or a library-specific response object
To specify a custom response header, you can either use a `@Header()` or `@Headers()` annotation or a library-specific response object
(eg. `return Response(200, headers: {'content-type': 'application/json'})`).

```dart
Expand All @@ -125,6 +125,16 @@ String get() {
}
```

```dart
@Get()
@Headers({
'content-type': 'application/json',
})
String get() {
return 'This method returns a custom content-type header';
}
```

## Route parameters

`@PathParam()` is used to annotate a method parameter (`id` in the example below), and makes the route parameters
Expand Down
2 changes: 1 addition & 1 deletion docs/first_steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $ dart create -t console your_project_name

```yaml
dependencies:
dartness_server: ^0.4.0-alpha
dartness_server: ^0.4.3-alpha

dev_dependencies:
build_runner: ^2.2.0
Expand Down
4 changes: 2 additions & 2 deletions docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Install [Dart SDK](https://dart.dev/get-dart) version >=2.17.0

```bash
$ dart --version
Dart SDK version: 2.17.3 (stable)
Dart SDK version: 3.0.0 (stable)
```

## Creating a new project
Expand All @@ -29,7 +29,7 @@ $ dart create -t console your_project_name

```yaml
dependencies:
dartness_server: ^0.4.0-alpha
dartness_server: ^0.4.3-alpha
```
2.Create the file in "bin/main.dart"
Expand Down
8 changes: 4 additions & 4 deletions examples/dartness_flutter_melos/apps/my_app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ publish_to: 'none'
version: 1.0.0+1

environment:
sdk: ">=2.17.6 <3.0.0"
sdk: ">=3.0.0 <4.0.0"

dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
http: ^0.13.5
cupertino_icons: ^1.0.5
http: ^1.0.0

dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^2.0.0
flutter_lints: ^2.0.1

flutter:
uses-material-design: true
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ version: 1.0.0
publish_to: 'none'

environment:
sdk: '>=2.17.6 <3.0.0'
sdk: ">=3.0.0 <4.0.0"

dependencies:
dartness_server: ^0.4.0-alpha
dartness_server: ^0.4.4-alpha

dev_dependencies:
lints: ^2.0.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'dart:io';

import 'package:dartness_server/dartness.dart';
import 'package:dartness_server/route.dart';

import '../dtos/city_dto.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:dartness_server/dartness.dart';
import 'package:dartness_server/server.dart';

class ExampleInterceptor implements DartnessInterceptor {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:dartness_server/dartness.dart';
import 'package:dartness_server/server.dart';

class ExampleMiddleware implements DartnessMiddleware {
Expand Down
12 changes: 6 additions & 6 deletions examples/dartness_simple/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ version: 1.0.0
publish_to: none

environment:
sdk: '>=2.17.6 <3.0.0'
sdk: ">=3.0.0 <4.0.0"

dependencies:
dartness_server: ^0.4.0-alpha
dartness_server: ^0.4.4-alpha

dev_dependencies:
lints: ^2.0.0
test: ^1.21.4
build_runner: ^2.2.0
dartness_generator: ^0.1.0-alpha
lints: ^2.1.1
test: ^1.24.3
build_runner: ^2.4.5
dartness_generator: ^0.1.1-alpha
8 changes: 8 additions & 0 deletions packages/dartness_generator/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,11 @@

- First dartness_generator version
- Generation for @Controller and @ErrorHandler

## 0.1.1-alpha

- Compatibility with @Headers
-
## 0.1.2-alpha

- Updated dart sdk to 3.0.0
2 changes: 1 addition & 1 deletion packages/dartness_generator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dartness_generator is used with dartness_server in order to provide the code gen

```yaml
dependencies:
dartness_server: ^0.4.0-alpha
dartness_server: ^0.4.3-alpha

dev_dependencies:
build_runner: ^2.2.0
Expand Down
111 changes: 111 additions & 0 deletions packages/dartness_generator/doc/api/__404error.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
<meta name="generator" content="made with love by dartdoc 6.2.2">
<meta name="description" content="dartness_generator API docs, for the Dart programming language.">
<title>dartness_generator - Dart API docs</title>



<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0" rel="stylesheet">

<link rel="stylesheet" href="static-assets/github.css?v1">
<link rel="stylesheet" href="static-assets/styles.css?v1">
<link rel="icon" href="static-assets/favicon.png?v1">


</head>


<body data-base-href="" data-using-base-href="false" class="light-theme">

<div id="overlay-under-drawer"></div>

<header id="title">
<span id="sidenav-left-toggle" class="material-symbols-outlined" role="button" tabindex="0">menu</span>
<ol class="breadcrumbs gt-separated dark hidden-xs">
<li><a href="https://ricardorb.github.io/dartness/">dartness_generator package</a></li>
</ol>
<div class="self-name">dartness_generator</div>
<form class="search navbar-right" role="search">
<input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
</form>
<div class="toggle" id="theme-button">
<label for="theme">
<input type="checkbox" id="theme" value="light-theme">
<span id="dark-theme-button" class="material-symbols-outlined">
brightness_4
</span>
<span id="light-theme-button" class="material-symbols-outlined">
brightness_5
</span>
</label>
</div>
</header>
<main>

<div id="dartdoc-main-content" class="main-content">
<h1>404: Something's gone wrong :-(</h1>

<section class="desc">
<p>You've tried to visit a page that doesn't exist. Luckily this site
has other <a href="index.html">pages</a>.</p>
<p>If you were looking for something specific, try searching:
<form class="search-body" role="search">
<input type="text" id="search-body" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
</form>
</p>

</section>
</div> <!-- /.main-content -->

<div id="dartdoc-sidebar-left" class="sidebar sidebar-offcanvas-left">
<header id="header-search-sidebar" class="hidden-l">
<form class="search-sidebar" role="search">
<input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
</form>
</header>

<ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
<li><a href="https://ricardorb.github.io/dartness/">dartness_generator package</a></li>
</ol>


<h5><span class="package-name">dartness_generator</span> <span class="package-kind">package</span></h5>
<ol>
<li class="section-title">Libraries</li>
<li><a href="dartness_generator/dartness_generator-library.html">dartness_generator</a></li>
</ol>

</div>

<div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right">
</div>

</main>

<footer>
<span class="no-break">
dartness_generator
0.1.2-alpha
</span>


</footer>



<script src="static-assets/highlight.pack.js?v1"></script>
<script src="static-assets/docs.dart.js"></script>



</body>

</html>

1 change: 1 addition & 0 deletions packages/dartness_generator/doc/api/categories.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Loading

0 comments on commit 92cbc35

Please sign in to comment.