Skip to content

Commit

Permalink
chore: Bump package versions (#132)
Browse files Browse the repository at this point in the history
* bump package version

* _
  • Loading branch information
codekeyz authored Aug 2, 2024
1 parent 4b97d82 commit 713f544
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
4 changes: 4 additions & 0 deletions packages/pharaoh/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.0.8

- perf: Use new improvements in spanner version

# 0.0.7

- chore: Perf improvements by @codekeyz in https://github.com/codekeyz/pharaoh/pull/123
Expand Down
8 changes: 4 additions & 4 deletions packages/pharaoh/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: pharaoh
description: Minimalist web-server library for Dart
version: 0.0.7+2
version: 0.0.8
repository: https://github.com/codekeyz/pharaoh/tree/main/packages/pharaoh

environment:
sdk: ^3.0.0

dependencies:
meta:
spanner: ^1.0.2
meta: ^1.15.0
spanner: ^1.0.3
mime: ^1.0.4
collection: ^1.18.0
http_parser: ^4.0.2
Expand All @@ -24,7 +24,7 @@ dependencies:
grammer: ^1.0.3
dotenv: ^4.2.0
ez_validator_dart: ^0.3.1
spookie:
spookie: ^1.0.2+3

dev_dependencies:
lints: ^3.0.0
Expand Down
5 changes: 5 additions & 0 deletions packages/spanner/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.0.3

- (perf): Improve single-param definition matching.
- (perf): Improve lookup & insert speed by 18%

## 1.0.2

- (perf): Make route debug logs optional.
Expand Down
11 changes: 3 additions & 8 deletions packages/spanner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,16 @@ import 'package:spanner/spanner.dart';
import 'package:test/test.dart';
void main() {
test('spanner sample test', () {
final routeHandler = () async {};
test('spanner sample test', () {
routeHandler() async {}
final router = Spanner()
..addMiddleware('/user', #userMiddleware)
..addMiddleware('/a/<userId>', #anyUser)
..addRoute(HTTPMethod.GET, '/user', #currentUser)
..addRoute(HTTPMethod.GET, '/user/<userId>', 123)
..addRoute(HTTPMethod.GET, '/user/<file>.png/download', null)
..addRoute(HTTPMethod.GET, '/user/<file>.png/<user2>/hello', null)
..addRoute(HTTPMethod.GET, '/a/<userId>-static', routeHandler)
..addRoute(HTTPMethod.GET, '/b/<userId>.static', routeHandler);
..addRoute(HTTPMethod.GET, '/a/<userId>-static', routeHandler);
var result = router.lookup(HTTPMethod.GET, '/user');
expect(result!.values, [#userMiddleware, #currentUser]);
Expand All @@ -36,9 +34,6 @@ void main() {
result = router.lookup(HTTPMethod.GET, '/a/chima-static');
expect(result?.values, [routeHandler]);
expect(result?.params, {'userId': 'chima'});
result = router.lookup(HTTPMethod.GET, '/b/codekeyz.static');
expect(result?.values, [routeHandler]);
});
}
Expand Down
2 changes: 1 addition & 1 deletion packages/spanner/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: spanner
description: Generic HTTP Router implementation, internally uses a Radix Tree (aka compact Prefix Tree), supports route params, wildcards.
version: 1.0.2
version: 1.0.3
repository: https://github.com/Pharaoh-Framework/pharaoh/tree/main/packages/spanner

environment:
Expand Down

0 comments on commit 713f544

Please sign in to comment.