Skip to content

Commit

Permalink
v1.8.3
Browse files Browse the repository at this point in the history
- `ZoneField`:
  - `createContextZone`: added parameter `zoneValues`.
  - `createSafeContextZone`:
    - Added named parameters `zoneSpecification` and `zoneValues`
    - Changed `handleUncaughtError` to named parameter.

- `APIRoot`:
  - `_callZoned`:
    - Fix closure memory leak.
      - Optimize and avoid a new closure on parameter `handleUncaughtError` for every `Zone` created
        through `currentAPIRequest.createSafeContextZone`. Now using a single `ZoneSpecification` instance.
      - Ensure that `currentAPIRequest.disposeContextZone(callZone)` is always called.

- async_extension: ^1.2.14
- test: ^1.25.14
  • Loading branch information
gmpassos committed Dec 20, 2024
1 parent f5e7f41 commit 51e6635
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
## 1.8.3

- `ZoneField`:
- `createContextZone`: added parameter `zoneValues`.
- `createSafeContextZone`:
- Added named parameters `zoneSpecification` and `zoneValues`
- Changed `handleUncaughtError` to named parameter.

- `APIRoot`:
- `_callZoned`:
- Fix closure memory leak.
- Optimize and avoid a new closure on parameter `handleUncaughtError` for every `Zone` created
through `currentAPIRequest.createSafeContextZone`. Now using a single `ZoneSpecification` instance.
- Ensure that `currentAPIRequest.disposeContextZone(callZone)` is always called.

- async_extension: ^1.2.14
- test: ^1.25.14

## 1.8.2

✨♻️ Add `Time` operators for addition `+` and subtraction `-`.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/bones_api_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ typedef APILogger = void Function(APIRoot apiRoot, String type, String? message,
/// Bones API Library class.
class BonesAPI {
// ignore: constant_identifier_names
static const String VERSION = '1.8.2';
static const String VERSION = '1.8.3';

static bool _boot = false;

Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: bones_api
description: Bones_API - A powerful API backend framework for Dart. It comes with a built-in HTTP Server, route handler, entity handler, SQL translator, and DB adapters.
version: 1.8.2
version: 1.8.3
homepage: https://github.com/Colossus-Services/bones_api

environment:
Expand All @@ -10,7 +10,7 @@ executables:
bones_api:

dependencies:
async_extension: ^1.2.13
async_extension: ^1.2.14
async_events: ^1.2.0
reflection_factory: ^2.4.8
statistics: ^1.1.3
Expand Down Expand Up @@ -54,7 +54,7 @@ dev_dependencies:
lints: ^4.0.0
build_runner: ^2.4.14
build_verify: ^3.1.0
test: ^1.25.13
test: ^1.25.14
pubspec: ^2.3.0
dependency_validator: ^4.1.2
coverage: ^1.11.1
Expand Down

0 comments on commit 51e6635

Please sign in to comment.