Skip to content

Commit 713f544

Browse files
authored
chore: Bump package versions (#132)
* bump package version * _
1 parent 4b97d82 commit 713f544

File tree

5 files changed

+17
-13
lines changed

5 files changed

+17
-13
lines changed

packages/pharaoh/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.0.8
2+
3+
- perf: Use new improvements in spanner version
4+
15
# 0.0.7
26

37
- chore: Perf improvements by @codekeyz in https://github.com/codekeyz/pharaoh/pull/123

packages/pharaoh/pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: pharaoh
22
description: Minimalist web-server library for Dart
3-
version: 0.0.7+2
3+
version: 0.0.8
44
repository: https://github.com/codekeyz/pharaoh/tree/main/packages/pharaoh
55

66
environment:
77
sdk: ^3.0.0
88

99
dependencies:
10-
meta:
11-
spanner: ^1.0.2
10+
meta: ^1.15.0
11+
spanner: ^1.0.3
1212
mime: ^1.0.4
1313
collection: ^1.18.0
1414
http_parser: ^4.0.2
@@ -24,7 +24,7 @@ dependencies:
2424
grammer: ^1.0.3
2525
dotenv: ^4.2.0
2626
ez_validator_dart: ^0.3.1
27-
spookie:
27+
spookie: ^1.0.2+3
2828

2929
dev_dependencies:
3030
lints: ^3.0.0

packages/spanner/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.0.3
2+
3+
- (perf): Improve single-param definition matching.
4+
- (perf): Improve lookup & insert speed by 18%
5+
16
## 1.0.2
27

38
- (perf): Make route debug logs optional.

packages/spanner/README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,16 @@ import 'package:spanner/spanner.dart';
77
import 'package:test/test.dart';
88
99
void main() {
10-
test('spanner sample test', () {
11-
final routeHandler = () async {};
10+
test('spanner sample test', () {
11+
routeHandler() async {}
1212
1313
final router = Spanner()
1414
..addMiddleware('/user', #userMiddleware)
15-
..addMiddleware('/a/<userId>', #anyUser)
1615
..addRoute(HTTPMethod.GET, '/user', #currentUser)
1716
..addRoute(HTTPMethod.GET, '/user/<userId>', 123)
1817
..addRoute(HTTPMethod.GET, '/user/<file>.png/download', null)
1918
..addRoute(HTTPMethod.GET, '/user/<file>.png/<user2>/hello', null)
20-
..addRoute(HTTPMethod.GET, '/a/<userId>-static', routeHandler)
21-
..addRoute(HTTPMethod.GET, '/b/<userId>.static', routeHandler);
19+
..addRoute(HTTPMethod.GET, '/a/<userId>-static', routeHandler);
2220
2321
var result = router.lookup(HTTPMethod.GET, '/user');
2422
expect(result!.values, [#userMiddleware, #currentUser]);
@@ -36,9 +34,6 @@ void main() {
3634
result = router.lookup(HTTPMethod.GET, '/a/chima-static');
3735
expect(result?.values, [routeHandler]);
3836
expect(result?.params, {'userId': 'chima'});
39-
40-
result = router.lookup(HTTPMethod.GET, '/b/codekeyz.static');
41-
expect(result?.values, [routeHandler]);
4237
});
4338
}
4439

packages/spanner/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: spanner
22
description: Generic HTTP Router implementation, internally uses a Radix Tree (aka compact Prefix Tree), supports route params, wildcards.
3-
version: 1.0.2
3+
version: 1.0.3
44
repository: https://github.com/Pharaoh-Framework/pharaoh/tree/main/packages/spanner
55

66
environment:

0 commit comments

Comments
 (0)