Skip to content

Commit

Permalink
Bump version to 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
deriegle committed Aug 23, 2020
1 parent f0e1643 commit b734cb0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@
- Add all files as part of `dart_express` library
- Change visibility of certain classes
- Defer loading of View template libraries

## 0.5.0

- Add CORS middleware
9 changes: 8 additions & 1 deletion lib/src/middleware/cors.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ class CorsOptions {

const CorsOptions({
this.origin = '*',
this.methods = _HTTPMethods.ALL,
this.methods = const [
_HTTPMethods.GET,
_HTTPMethods.HEAD,
_HTTPMethods.PUT,
_HTTPMethods.PATCH,
_HTTPMethods.POST,
_HTTPMethods.DELETE,
],
this.preflightContinue = false,
this.optionsSuccessStatus = 204,
this.credentials = false,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: dart_express
description: An unopinionated express-like HTTP framework built in Dart, includes the ability to render Mustache, Jael and HTML files, and simple routing.
version: 0.4.0
version: 0.5.0
homepage: https://github.com/deriegle/dart-express

environment:
Expand Down

0 comments on commit b734cb0

Please sign in to comment.